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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/kamariallee.com/public_html/application/views/account/shipping-old.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!--make some space gap on top with menu-->
<div class="banner" style="padding-top: 30px;">
</div> 

<div class="container">
	<div class="row" style="padding-bottom:50px;">
		<div class="col-sm-2" style="border-right:1px solid #ccc;">
			 <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'); ?>">MY ADDRESSES</a></p>
	         <p><a href="<?= base_url('account/order_history'); ?>">ORDER HISTORY</a></p>
	         <p><a href="<?= base_url('wishlist'); ?>">MY WISHLIST</a></p> 
			 <p><a href="<?= base_url('account/point_rewards'); ?>">MY POINT REWARDS</a></p> 
			 <p><a href="<?= base_url('register/logout'); ?>">LOGOUT</a></p>
		</div><!-- end col-sm-2-->  

		<div class="col-sm-10">
			<h4>BILLING ADDRESS</h4>   
			<?= $this->session->flashdata('success'); //to display success message ?> 
			
			<!-- Form Start --> 
			<?php echo form_open('account/update_shipping'); ?>

			<div class="row form-group">
				<div class="col-sm-3">
					<label>Name<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<?php
						$data = array( 
			              'name'        => 'recipient_name',
			              'id'          => 'recipient_name',
			              'value'       => $shipping->recipient_name,
			              'class'		=> 'form-control'
			            );
						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('recipient_name') . '</span>';
					?>	
				</div><!--end class="col-sm-8"-->
			</div><!-- end class="row"-->	

			<div class="row form-group">

				<div class="col-sm-3">
					<label>Country<sup>*</sup></label>
				</div><!--end class="col-sm-3"-->	

				<div class="col-sm-9">
					<select id="country" name="country" class="form-control" required>
						<option value="">Choose Country...</option> 
						<option value="0"
							<?php if($shipping->id_country == 0) : ?>
								selected
							<?php endif; ?>	
						>Indonesia</option>  
						<?php foreach($countries['rajaongkir']['results'] as $country) : ?>
							<option value="<?= $country['country_id']; ?>"
									<?php if($shipping->id_country == $country['country_id']) : ?>
										selected
									<?php endif; ?>	
							><?= ucwords($country['country_name']); ?></option>
						<?php endforeach; ?>	 
					</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 id="provinceBlock" class="row form-group">
				<div class="col-sm-3">
					<label>Province<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<select id="province" name="province" class="form-control">
						<option value="">Choose 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> 
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div id="districtBlock" class="row form-group">
				<div class="col-sm-3">
					<label>City / District<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<select id="district" name="district" class="form-control">
					<?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><span id="loadingSpinner1"><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-8" -->
			</div><!-- end class="row"-->	

			<div id="subdistrictBlock" class="row form-group">
				<div class="col-sm-3">
					<label>Sub District<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<select id="subdistrict" name="subdistrict" class="form-control">
					<?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><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-8" -->
			</div><!-- end class="row"-->	

			<div class="row form-group">
				<div class="col-sm-3">
					<label>Address<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<?php
						$data = array( 
			              'name'        => 'address',
			              'id'          => 'address',
			              'value'       => ucfirst($shipping->address),
			              'class'		=> 'form-control' 
			            );
						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('address') . '</span>';
					?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div class="row form-group">
				<div class="col-sm-3">
					<label>Post Code<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<?php
						$data = array( 
			              'name'        => 'postcode',
			              'id'          => 'postcode',
			              'value'       => $shipping->postcode,
			              'class'		=> 'form-control'
			            );
						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('postcode') . '</span>';
					?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div class="row form-group">
				<div class="col-sm-3">
					<label>HP/Phone<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<?php
						$data = array( 
			              'name'        => 'phone',
			              'id'          => 'phone',
			              'value'       => $shipping->phone,
			              'class'       => 'form-control',
			            );
						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('phone') . '</span>';
					?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	 

			<div class="row form-group">
				<div class="col-sm-12">
					<h4>SHIPPING ADDRESS</h4>   
				</div><!--end class="col-sm-4" -->
			</div><!-- end class="row"-->	

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

			<div class="row form-group">
				<div class="col-sm-3">
					<label>Recipient Name<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<?php
						$data = array( 
			              'name'        => 'shipping_name',
			              'id'          => 'shipping_name',
			              'value'       => $shipping->shipping_name,
			              'class'		=> 'form-control'
			            );
						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('shipping_name') . '</span>';
					?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div class="row form-group">
				<div class="col-sm-3">
					<label>Country<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<select id="shipping_country" name="shipping_country" class="form-control">
						<option value="">Choose Country...</option> 
						
						<?php foreach($countries['rajaongkir']['results'] as $country) : ?>
							<option value="<?= $country['country_id']; ?>"
									<?php if($shipping->shipping_id_country == $country['country_id']) : ?>
										selected
									<?php endif; ?>	
							><?= ucwords($country['country_name']); ?></option>

							<?php if($country['country_id'] == 84) : ?>
								<option value="0"
									<?php if($shipping->shipping_id_country == 0) : ?>
										selected
									<?php endif; ?>	
								>Indonesia</option>  
							<?php endif; ?>

						<?php endforeach; ?>	 
					</select>	
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

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

					if( $('#shipping_country').val() != 0 ) {
						$('#shippingprovinceBlock').hide();
						$('#shippingdistrictBlock').hide();
						$('#shippingsubdistrictBlock').hide(); 
					}

					$('#shipping_country').change(function() {
						if($(this).val() == '0') { //if Indonesia is chosen
							$('#shippingprovinceBlock').show();
							$('#shippingdistrictBlock').show();
							$('#shippingsubdistrictBlock').show();
						} else {
							$('#shippingprovinceBlock').hide();
							$('#shippingdistrictBlock').hide();
							$('#shippingsubdistrictBlock').hide();
						}
					});	
				});
			</script>

			<div id="shippingprovinceBlock" class="row form-group">
				<div class="col-sm-3">
					<label>Province<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<select id="shipping_province" name="shipping_province" class="form-control">
						<option value="">Province...</option>
						<?php foreach($shipping_provinces['rajaongkir']['results'] as $shipping_province) : ?>
							<option value="<?= $shipping_province['province_id']; ?>"
								<?php if ($shipping_province['province_id'] == $shipping->shipping_id_province): ?>
									selected    
								<?php endif ?>     	
							><?= ucwords($shipping_province['province']); ?></option>
						<?php endforeach; ?>	
					</select> 
					<?php echo '<span style="font-size:10px;">' . form_error('shipping_province') . '</span>'; ?> 
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div id="shippingdistrictBlock" class="row form-group">
				<div class="col-sm-3">
					<label>City / District<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<select id="shipping_district" name="shipping_district" class="form-control">
					<?php if (isset($shipping_district_lists)) : ?>  
	                    <?php foreach($shipping_district_lists['rajaongkir']['results'] as 
	                    $shipping_district) : ?>
	                        <option value="<?= $shipping_district['city_id']; ?>"
								<?php if ($shipping_district['city_id'] == $shipping->shipping_id_district) : ?>
									selected
								<?php endif; ?>
	                        ><?= ucwords($shipping_district['city_name']); ?></option>
	                    <?php endforeach; ?>
	                <?php endif; ?>
					</select><span id="loadingSpinner3"><img style="width:30px; height:auto;" src="<?= base_url('assets/frontend/img/spinner.gif'); ?>"></span> 
					<?php echo '<span style="font-size:10px;">' . form_error('shipping_district') . '</span>'; ?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div id="shippingsubdistrictBlock" class="row form-group">
				<div class="col-sm-3">
					<label>Sub District<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<select id="shipping_subdistrict" name="shipping_subdistrict" class="form-control">
					<?php if (isset($shipping_subdistrict_lists)) : ?>  
	                    <?php foreach($shipping_subdistrict_lists['rajaongkir']['results'] as 
	                    $shipping_subdistrict) : ?>
	                        <option value="<?= $shipping_subdistrict['subdistrict_id']; ?>"
								<?php if ($shipping_subdistrict['subdistrict_id'] == $shipping->shipping_id_subdistrict) : ?>
									selected
								<?php endif; ?>
	                        ><?= ucwords($shipping_subdistrict['subdistrict_name']); ?></option>
	                    <?php endforeach; ?>
	                <?php endif; ?>
					</select> <span id="loadingSpinner4"><img style="width:30px; height:auto;" src="<?= base_url('assets/frontend/img/spinner.gif'); ?>"></span> 
					<?php echo '<span style="font-size:10px;">' . form_error('shipping_subdistrict') . '</span>'; ?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div class="row form-group">
				<div class="col-sm-3">
					<label>Address<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<?php
						$data = array( 
			              'name'        => 'shipping_address',
			              'id'          => 'address',
			              'value'       => ucfirst($shipping->shipping_address),
			              'class'		=> 'form-control'
			            );
						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('shipping_address') . '</span>';
					?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div class="row form-group">
				<div class="col-sm-3">
					<label>Post Code<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<?php
						$data = array( 
			              'name'        => 'shipping_postcode',
			              'id'          => 'postcode',
			              'value'       => $shipping->shipping_postcode,
			              'class'		=> 'form-control'
			            );
						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('shipping_postcode') . '</span>';
					?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div class="row form-group">
				<div class="col-sm-3">
					<label>HP/Phone<sup>*</sup></label>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<?php
						$data = array( 
			              'name'        => 'shipping_phone',
			              'id'          => 'phone',
			              'value'       => $shipping->shipping_phone,
			              'class'		=> 'form-control'
			            );
						echo form_input($data);
						echo '<span style="font-size:10px;">' . form_error('shipping_phone') . '</span>';
					?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div class="row form-group">
				<div class="col-sm-3">
					<p><sup>*</sup> Required Fields</p>
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
				
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->	

			<div class="row form-group">
				<div class="col-sm-3">
					
				</div><!--end class="col-sm-4" -->	
				<div class="col-sm-9">
					<input type="submit" name="update_shipping" value="UPDATE DETAILS" class="form-control" style="background:<?= $primary_colortheme; ?>; color: white;" />
				</div><!--end class="col-sm-9" -->
			</div><!-- end class="row"-->	
			
			<?php echo form_close(); ?>	

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

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

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

	 $('#loadingSpinner1').hide();
	 $('#loadingSpinner2').hide();
	 $('#loadingSpinner3').hide();
	 $('#loadingSpinner4').hide();
  
    $('#province').change(function() {
		var id_province = $(this).val();
		load_district_ajax(id_province);
	});  

	$('#shipping_province').change(function() {
        var id_shipping_province = $(this).val();
        load_shipping_district_ajax(id_shipping_province);
    });  

	$('#district').change(function() {
		var id_district = $(this).val();
		load_subdistrict_ajax(id_district);
	}); 

	$('#shipping_district').change(function() {
		var id_shipping_district = $(this).val();
		load_shipping_subdistrict_ajax(id_shipping_district);
	}); 

	function load_district_ajax(id_province) {

		$('#loadingSpinner1').show();
		$.ajax({
			'url'       : '<?= base_url(); ?>' + 'ajax' + '/ajax_get_district',
			'type'      : 'POST',
			'data'      : {'id_province' : id_province}, 
			'success'   : function(data) {
				if (data) { 
					/*---success----*/
					$('#district').html(data);  
					$('#loadingSpinner1').hide();
				};
			}
		});
	}

	function load_subdistrict_ajax(id_district) {

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

		$.ajax({
			'url'       : '<?= base_url(); ?>' + 'ajax' + '/ajax_get_subdistrict',
			'type'      : 'POST',
			'data'      : {'id_district' : id_district}, 
			'success'   : function(data) {
				if (data) { 
					/*---success----*/
					$('#subdistrict').html(data);  
					$('#loadingSpinner2').hide(); 
				};
			}
		});
	}

    function load_shipping_district_ajax(id_shipping_province) {

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

        $.ajax({
            'url'       : '<?= base_url(); ?>' + 'ajax' + '/ajax_get_shipping_district',  
            'type'      : 'POST', 
            'data'      : {'id_shipping_province' : id_shipping_province},  
            'success'   : function(data) {
                
                var container = $('#shipping_district');
                
                if (data) {
                    container.html(data);  
                    $('#loadingSpinner3').hide();  
                };
            }
        });
    } 

	function load_shipping_subdistrict_ajax(id_shipping_district) {

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

		$.ajax({
			'url'       : '<?= base_url(); ?>' + 'ajax' + '/ajax_get_shipping_subdistrict',
			'type'      : 'POST',
			'data'      : {'id_shipping_district' : id_shipping_district}, 
			'success'   : function(data) {
				if (data) { 
					/*---success----*/
					$('#shipping_subdistrict').html(data);  
					$('#loadingSpinner4').hide(); 
				};
			}
		});
	}
 
});

</script>

https://t.me/RX1948 - 2025