https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/rabbithabit.com/public_html/application/views/admin/customers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/rabbithabit.com/public_html/application/views/admin/customers/edit.php
<div class="row">

    <div class="col-sm-12">

        <?php $location = "";

        if (

          $this->session->userdata('location_add_customer') == 'orders') :

            $location = "admin/orders/add_order";

        ?>

            <p><a href="<?= base_url($location); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke pesanan</a></p><br>

        <?php

        else:

            $location = "admin/customers";

        ?>

            <p><a href="<?= base_url($location); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke pelanggan</a></p><br>

        <?php endif; ?>



        <h4><?= empty($customers->id_customers) ? 'Tambah pelanggan baru' : 'Edit pelanggan: ' 

	. $customers->name; ?></h4>

        <?= $this->session->flashdata('success'); //to display success message ?> 

        <?= $this->session->flashdata('result'); //to display result message ?>

    </div><!-- end class="col-sm-12" --> 

</div> <!-- end row --> 



<?= form_open_multipart(); ?>



<div class="row"> 

    <div class="col-sm-3">

        <p>Nama Pelanggan <sup>*</sup></p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <p>

        <?php

        $data = array( 

            'name'        => 'name',

            'value'       => $customers->name,

            'class'       => 'form-control'

         );

        echo form_input($data); ?>

        <?= form_error('name'); ?></p>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row"> 

    <div class="col-sm-3">

        <p>Jenis Kelamin</p>

    </div><!-- end class="col-sm-3" -->


     <div class="col-sm-9"> 

       <?php

            $options = array(

                NULL => 'Jenis Kelamin',

                'male'  => 'Male',

                'female'  => 'Female',

            );

            echo form_dropdown('sex_type', $options, $customers->sex_type, 'class="form-control"'); ?>

    </div> <!-- end class="col-sm-9" -->

</div> <!-- end row -->  


<div class="row"> 

    <div class="col-sm-3">

        <p>Hp <sup>*</sup></p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <p>

        <?php

        $data = array( 

            'name'        => 'phone',

            'value'       => $customers->phone,

            'class'       => 'form-control',

            'placeholder' => '8xxxxxxxx' 

          );

        echo form_input($data); ?>

        <?= form_error('phone'); ?></p>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row">

    <div class="col-sm-3">

        <p>Tanggal Lahir</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <p>

        <?php

        $data = array( 

            'name'        => 'birthday',

            'class'       => 'form-control registerdatepicker'

         );

         if(!empty($customers->birthday)) {

             $data['value'] = date('d-m-Y', strtotime($customers->birthday));

         }

        echo form_input($data); ?>

        <?= form_error('birthday'); ?></p>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row"> 

    <div class="col-sm-3">

        <p>E-mail <sup>*</sup></p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <p>

        <?php

        $data = array( 

            'name'        => 'email',

            'value'       => $customers->email,

            'class'       => 'form-control'

         );

        echo form_input($data); ?>

        <?= form_error('email'); ?></p>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row"> 

    <div class="col-sm-3">

        <p>Kata Sandi 

        <?php if(isset($page_type)) : ?>    

            <sup>*</sup>    

        <?php endif; ?>

        </p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <p>

        <?php

        $data = array( 

            'name'        => 'register_password',

            'class'       => 'form-control'

         );

        echo form_password($data); ?>

        <?= form_error('register_password'); ?></p>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row"> 

    <div class="col-sm-3">

        <p>Konfirmasi Kata Sandi

            <?php if(isset($page_type)) : ?>    

                <sup>*</sup>    

            <?php endif; ?>

        </p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <p>

        <?php

        $data = array( 

            'name'        => 'retype_register_password',

            'class'       => 'form-control'

         );

        echo form_password($data); ?>

        <?= form_error('retype_register_password'); ?></p>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row" style="display: none;"> 

    <div class="col-sm-3">

        <p>Daftar Keinginan</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

      <select name="wishlist" class="form-control">

        <?php if(isset($wishlists)) : ?>

            <?php foreach ($wishlists as $item) : ?>

                <option class="form-control">

                    <?php 

                        //get product name

                        $this->db->select('title')->from('products')->where('id_products', $item->product_id);

                        $product = $this->db->get()->row()->title;

                        echo ucwords($product);

                    ?>    

                </option>

            <?php endforeach; ?>

        <?php endif; ?>    

      </select>  

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row --> 



<!-- <div class="row"> 

    <div class="col-sm-3">

        <p>Laporan berkala</p>

    </div> --><!-- end class="col-sm-3" -->



     <!-- <div class="col-sm-9"> 

       <?php

            $options = array(

                'no'  => 'No',

                'yes'  => 'Yes',

            );

            echo form_dropdown('newsletter', $options, $customers->newsletter, 'class="form-control"'); ?>

    </div> --><!-- end class="col-sm-9" -->

<!-- </div> --> <!-- end row -->  



<div class="row"> 

    <div class="col-sm-3">

        <p>Tipe Reseller</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <select name="reseller_id" class="form-control">

            <option value="">Regular</option>

            <?php

                //get all reseller types

                $this->db->select('id_resellers, reseller_name')->from('resellers');

                $resellers = $this->db->get()->result();

            ?>

            <?php foreach($resellers as $reseller) : ?>

                <option value="<?= $reseller->id_resellers; ?>"

                    <?php if($reseller->id_resellers == $customers->reseller_id) : ?>

                        selected

                    <?php endif; ?>    

                ><?= ucwords($reseller->reseller_name); ?></option>

            <?php endforeach; ?>

        </select>

        

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row"> 

    <div class="col-sm-3">

        <p>Poin Imbalan</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <p>

        <?php

        $data = array( 

            'name'        => 'pointrewards',

            'class'       => 'form-control',

            'disabled'    => 'disabled',

         );



        if(isset($customers->current_pointreward)) {

            $data['value'] = $customers->current_pointreward;

        } else {

             $data['value'] = 0;

        }



        echo form_input($data); ?>

        <?= form_error('pointrewards'); ?></p>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  





<div class="row"> 

    <div class="col-sm-3">

        <p>Status</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

       <?php

            $options = array(
                '1'  => 'Active',
                '0'  => 'Not Active'
            );

            echo form_dropdown('status', $options, $customers->status, 'class="form-control"'); ?>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<!-- <div class="row">  -->

   <!--  <div class="col-sm-3">

        <p>Apakah bisa dihapus?</p>

    </div> --><!-- end class="col-sm-3" -->



    <!--  <div class="col-sm-9"> 

       <?php

            $options = array(

                'no'  => 'No',

                'yes'  => 'Yes'

            );

            echo form_dropdown('is_delete', $options, $customers->is_delete, 'class="form-control"'); ?>

    </div> --><!-- end class="col-sm-9" -->

<!-- </div> --> <!-- end row -->  



<div class="row"> 

    <div class="col-sm-3">

        <p>Tipe Pelanggan</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

     	<select class="form-control" name="customer_type">

            <option value="guest"

                <?php if($customers->type == 'guest'): ?>

                    selected

                <?php endif; ?>

            >Guest</option> 

            <!-- <option value="marketplace"

                <?php if($customers->type == 'marketplace'): ?>

                    selected

                <?php endif; ?>

            >Marketplace</option> -->

     		<option value="regular" 

     			<?php if($customers->type == 'regular'): ?>

     				selected

     			<?php endif; ?>

     		>Regular</option>

     	</select>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row" style="padding-bottom:15px;">

    <div class="col-sm-12">

        <p><strong>ALAMAT PENGIRIMAN</strong></p>

    </div>    

</div>    





<div class="row" style="padding-bottom:15px;">

    <div class="col-sm-3">

        <p>Negara</p>

    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">



        <select id="country" name="country" class="form-control">

            <option value="0" selected>INDONESIA</option> 

        </select>	

    </div><!-- end class="col-sm-9" -->

</div><!-- end class="row" --> 



<script>

$(document).ready(function() {

    if( $('#country').val() != 0 ) {

        $('#provinceBlock').hide();

        $('#districtBlock').hide();

        $('#subdistrictBlock').hide(); 

    }



    $('#country').change(function() {

        if($(this).val() == '0') { //if Indonesia is chosen

            $('#provinceBlock').show();

            $('#districtBlock').show();

            $('#subdistrictBlock').show();

        } else {

            $('#provinceBlock').hide();

            $('#districtBlock').hide();

            $('#subdistrictBlock').hide();

        }

    });	

});

</script>



<div class="row" id="provinceBlock"> 

    <div class="col-sm-3">

        <p>Propinsi</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

       <select id="province" name="province" class="form-control">



        <option value="">Pilih Propinsi...</option>



        <?php foreach($provinces as $province) : ?> 



            <option value="<?= $province->rajaongkir_province_id; ?>"

            

            <?php if(isset($shipping)) : ?>    

                <?php if ($province->rajaongkir_province_id == $shipping->shipping_id_province): ?>

                    selected    

                <?php endif ?> 

            <?php endif; ?> 



            ><?= ucwords($province->province); ?></option>



        <?php endforeach; ?>	



    </select> 

        

    <?php echo '<span style="font-size:10px;">' . form_error('province') . '</span>'; 



    ?> 

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row" id="districtBlock"> 

    <div class="col-sm-3">

        <p>Kota/Kabupaten</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

       <select id="district" name="district" class="form-control">



        <?php if (isset($district_lists)) : ?>  

            <?php foreach($district_lists as $district) : ?>

                <option value="<?= $district->rajaongkir_id_district; ?>"

                <?php if(isset($shipping)) : ?>               

                    <?php if ($district->rajaongkir_id_district == $shipping->shipping_id_district) : ?>

                        selected

                    <?php endif; ?>

                <?php endif; ?>

                ><?= ucwords($district->district); ?></option>

            <?php endforeach; ?>

        <?php endif; ?>



        </select> <span id="loadingSpinner"><img style="width:30px; height:auto;" src="<?= base_url('assets/frontend/img/spinner.gif'); ?>"></span>

							

		<?php echo '<span style="font-size:10px;">' . form_error('district') . '</span>'; ?>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row" id="subdistrictBlock"> 

    <div class="col-sm-3">

        <p>Kecamatan</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <select id="subdistrict" name="subdistrict" class="form-control" >



        <?php if (isset($subdistrict_lists)) : ?>  

            <?php foreach($subdistrict_lists as $subdistrict) : ?>

                <option value="<?= $subdistrict->rajaongkir_id_subdistrict; ?>"



                <?php if(isset($shipping)) : ?>          	

                    <?php if ($subdistrict->rajaongkir_id_subdistrict == $shipping->shipping_id_subdistrict) : ?>

                        selected

                    <?php endif; ?>

                <?php endif; ?>



                ><?= ucwords($subdistrict->subdistrict); ?></option>

            <?php endforeach; ?>

        <?php endif; ?>



        </select> <span id="loadingSpinner2"><img style="width:30px; height:auto;" src="<?= base_url('assets/frontend/img/spinner.gif'); ?>"></span>

							

		<?php echo '<span style="font-size:10px;">' . form_error('subdistrict') . '</span>'; ?>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<div class="row"> 

    <div class="col-sm-3">

        <p>Alamat</p>

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <p>

        <?php

        $data = array( 

            'name'        => 'address',

            'value'       => $customers->shipping_address,

            'class'       => 'form-control'

         );

        echo form_input($data); ?>

        <?= form_error('address'); ?></p>

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<script>

//Ajax call to get district from province

$( document ).ready(function() {



    var id_province;

    var id_district;

    var id_subdistrict;



    /*----for registration-----*/

    $( ".registerdatepicker" ).datepicker({

        dateFormat:'dd-mm-yy',

        changeYear: true,

        changeMonth: true, 

        yearRange: '1960:2016',

    });



    //Spinner on loading districts from province

    $('#loadingSpinner').hide();

    $('#loadingSpinner2').hide();

    $('#loadingSpinner3').hide();



    $('#province').change(function() {

        id_province = $(this).val();

        load_data_district(id_province);

    });  



    $('#district').change(function() {

        id_district = $(this).val();

        load_data_subdistrict(id_district);

    });  



    $('#subdistrict').change(function() {

        id_subdistrict = $(this).val();

        //load_data_outlet(id_province, id_district, id_subdistrict);

    });  



    var controller = 'ajax';

    var base_url = '<?php echo base_url(); ?>'; 



    function load_data_district(id_province) {



        $('#loadingSpinner').show();



        $.ajax({

            'url'       : base_url + controller + '/ajax_get_district',

            'type'      : 'POST',

            'data'      : {

                          'id_province' : id_province,

                          '<?= $this->security->get_csrf_token_name(); ?>' : '<?= $this->security->get_csrf_hash(); ?>'

                          }, 

            'success'   : function(data) {

                

                var container = $('#district');

                

                if (data) { 

                    /*---success----*/

                    container.html(data);  

                    $('#loadingSpinner').hide(); 

                };

            }

        });

    }



    function load_data_subdistrict(id_district) {



        $('#loadingSpinner2').show();



        $.ajax({

            'url'       : base_url + controller + '/ajax_get_subdistrict', 

            'type'      : 'POST',

            'data'      : {

                          'id_district' : id_district,

                          '<?= $this->security->get_csrf_token_name(); ?>' : '<?= $this->security->get_csrf_hash(); ?>'

                          }, 

            'success'   : function(data) {

                

                var container = $('#subdistrict');

                

                if (data) { 

                    /*---success----*/

                    container.html(data);  

                    $('#loadingSpinner2').hide(); 

                };

            }

        });

    }

    

});



</script>







<!-- <div class="row"> 

    <div class="col-sm-3">

        <p>Kode Pos</p>

    </div> --><!-- end class="col-sm-3" -->



     <!-- <div class="col-sm-9"> 

        <p>

        <?php

        $data = array( 

            'name'        => 'postcode',

            'value'       => $customers->shipping_postcode,

            'class'       => 'form-control'

         );

        echo form_input($data); ?>

        <?= form_error('postcode'); ?></p>

    </div> --><!-- end class="col-sm-9" -->

<!-- </div> --> <!-- end row -->  





<div class="row"> 

    <div class="col-sm-3">

    </div><!-- end class="col-sm-3" -->



     <div class="col-sm-9"> 

        <p>*) wajib</p><br>

       

        <p>

<?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?>

            &nbsp;&nbsp;&nbsp;<?= anchor($location, 'Batal'); ?></p>

       

    </div><!-- end class="col-sm-9" -->

</div> <!-- end row -->  



<?= form_close(); ?>


https://t.me/RX1948 - 2025