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/order_history.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

<!-- BEGIN CONTENT PAGE -->
<section class="all-content-page">			
    <!-- Banner Categories -->					
    <div class="baner-top-categories">
        <div class="categories-text-hero">
            <h1>MY ORDER HISTORY</h1>
        </div>
        <img src="<?=base_url()?>assets/frontend_new/images/banner/11.jpg" alt="banner">
    </div>		

	<div class="container">
		<div class="breadcrumbs">
            <a href="<?=base_url()?>">Home</a>
			<a href="<?=base_url()?>account">Account</a>
            <span>My Order History</span>
        </div>	

		<div class="row">
			<div class="col-sm-2">

				<h4>MY ACCOUNT</h4> 

				<p>view &amp; edit your details</p> 
				<p style="font-size: 18px;color: #dd9b5e;font-weight: 600;">Point : <?= number_format($point,0,",","."); ?> 
					
				<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/point_history'); ?>">POINT HISTORY</a></p>

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

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

			<div class="col-sm-10" style="border-left:1px solid #ccc;min-height:250px">

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

				<br>

				<div class="table-responsive" style="border:unset;">
				<table cellspacing="0" class="table">

					<thead>
						<tr>
							<th>Order No</th>
							<th>Order Date</th>
							<th>Amount</th>
							<th>Item Details</th>
							<th>Payment Status</th>
						</tr>
					</thead>
					<body>
				<?php foreach ($order_history as $item) : ?>
				
					<!-- Form Start --> 
					<?php echo form_open('account/payment_confirmation'); ?>  
					
					<input type="hidden" name="order_id" value="<?= $item->id_orders; ?>">         

					<tr>
						<td style="padding:3px;"><?= $item->id_orders; ?></td>
						<td style="padding:3px;">
						<?php
							$order_date = strtotime($item->order_date); 
							
							$new_date = date('j/m/Y', $order_date);

							echo $new_date;

						?>	
						</td>
						<td style="padding:3px;">Rp <?= number_format($item->total_amount); ?></td>

						<td> 
						<?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); ?></p>

						<?php endforeach; ?>

						</td>

						<td style="text-align:center;">
							<?php if ($item->payment_status == 0) : ?>
								
								Not Paid

								<?php if ($item->payment_confirm == 0) : ?>

								&nbsp;<input type="submit" name="confirm_payment" value="CONFIRM" style="background:#443D41; color:white; cursor: pointer; border:none; padding:3px 8px 3px 8px;">

								<?php else: ?>

								&nbsp;<input type="submit" name="confirm_payment" value="RE-CONFIRM" style="background:#443D41; color:white; cursor: pointer; border:none; padding:3px 8px 3px 8px; ">

								<?php endif; ?>	

							<?php elseif ($item->payment_status == 1) : ?>
								Paid
											<?php elseif($item->payment_status == 3) : ?>
													Product Sent   
											<?php elseif($item->payment_status == 4) : ?>
													Product Packed   		 
											<?php elseif($item->payment_status ==2) : ?>
								Cancel
							<?php endif; ?>
						</td>

					</tr>	

					<?php echo form_close(); ?>

				<?php endforeach; ?>
					</body>
					
				</table> 
				</div>
			</div><!-- end col-sm-8-->

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

</section>

https://t.me/RX1948 - 2025