Preview: my-orders.php
Size: 9.37 KB
//home/justbyquicklly-old/public_html/my-orders.php
<?php
include("include/config.php");
include("include/functions.php");
if($_SESSION['value_user_id']==''){
header("location:".SITE_URL);
exit();
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<?php //include_once("metas.php") ?>
<title>Just By Quicklly</title>
<meta name="keywords" content="<?php //echo SITE_KEYWORD; ?>">
<meta name="description" content="<?php //echo SITE_DESC; ?>">
<!-- google analytics code-->
<?php include_once("analyticstracking.php") ?>
<script type="text/javascript" src="admin/js/jquery-1.7.2.min.js"></script>
<script>
function checkall(objForm)
{
len = objForm.elements.length;
var i=0;
for( i=0 ; i<len ; i++){
if (objForm.elements[i].type=='checkbox')
objForm.elements[i].checked=objForm.check_all.checked;
}
}
</script>
<link rel="stylesheet" type="text/css" href="css/stylesheet/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/stylesheet/font-awesome.css">
<link rel="stylesheet" type="text/css" href="css/stylesheet/style.css?ver=1.1">
<?php include_once("css.php") ?>
</head>
<body>
<?php include("header.php"); ?>
<?php include("cart.php"); ?>
<link rel="stylesheet" href="css/colorbox.css" />
<script src="js/jquery.colorbox.js"></script>
<style>
.data-table tbody td, .data-table tbody th {
text-wrap: wrap;
}
#my-orders-table h3 {
margin-top: 15px;
}
</style>
<div id="searchhide" >
<?php
$userdata=callAPI('POST', WEBAPI_URL_NEW.'miniuser/my-orders',array("uid"=>$_SESSION['value_user_id'],'lastOid'=>0,'callFrom'=>'MINIWEBSITE'));
?>
<!-- BEGIN Main Container col2-right -->
<section class="main-container col2-right-layout" style="background-color: #F4F4F4;">
<div class="main container">
<div class="row">
<?php if($_SESSION['value_user_type']!=1){
include("myaccount-left.php");
}?>
<section class="col-main col-sm-9 col-xs-12 wow bounceInUp animated animated" style="visibility: visible;">
<div class="my-account">
<!--page-title-->
<!-- BEGIN DASHBOARD-->
<div class="dashboard">
<div class="recent-orders">
<h1 class="title-buttons" style="margin:0 0 10px;"> <strong>My Orders</strong></h1>
<div class="table-responsive">
<table class="data-table table-striped" id="my-orders-table">
<colgroup>
<col width="">
<col width="">
<col>
<col width="1">
<col width="1">
<col width="10%">
</colgroup>
<thead>
<tr class="first last">
<th>Order ID </th>
<th>Date</th>
<th>Order Total</th>
<th>Status</th>
<th>Invoice</th>
<!--<th>Reorder</th>-->
</tr>
</thead>
<tbody>
<?php
foreach($userdata->lstOrders as $row)
{
?>
<tr>
<td><?=$row->orderNo?></td>
<td><?=$row->date?></td>
<td><b>$<?=$row->total?></b></td>
<td><?=$row->orderStatus?></td>
<td>
<?php
$OrderData=callAPI('POST', WEBAPI_URL_NEW.'miniuser/order-details',array("uid"=>$_SESSION['value_user_id'],"oid"=>$row->oid,'callFrom'=>'MINIWEBSITE'));
?>
<a href="javascript:void(0)" id="showmyorderinvoice<?php echo $row->oid; ?>" class="iframeOrder<?php echo $row->oid; ?>" title="View Invoice" ><button class="btn-success" style="width:100px; border-radius:4px; height:35px; background: #9d2f88;border:solid 1px #9d2f88;">View Order</button></a>
<!-- Track Delivery popup Modal Section Start -->
<div class="modal delvryModal" style="overflow: scroll;" id="myorderinvoice<?php echo $row->oid; ?>" tabindex="-1" role="dialog" aria-labelledby="delvryformmodalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h3>Order Id #<?php echo $row->orderNo; ?></h3>
<button type="button" class="close myorderinvoice-togglebtn<?php echo $row->oid; ?>" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">X</span>
</button>
</div>
<div class="modal-body delvupformmdl">
<div class="delvupformmdl-wrapper">
<table width="100%">
<tbody><tr style="background:#9d2f88;color:#ffffff;">
<th scope="col">Product Purchased</th>
<th scope="col">Unit Price ($)</th>
<th scope="col">Quantity</th>
<th scope="col">Price ($)</th>
</tr>
<?php
foreach($OrderData->lstStores as $key => $rowod)
{
?>
<tr style="color:#000;padding:10px;background-color: #F5F5F5;">
<td><strong><?=$rowod->name?></strong></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?php
foreach($rowod->lstProds as $key => $rowod1)
{
?>
<tr>
<td><strong><?=$rowod1->name?></strong><br>
<span style="padding:0px; width:100%; color:#666"><?=$rowod1->remarks?></span> </td>
<td>$<?=$rowod1->cost?></td>
<td><?=$rowod1->qty?></td>
<td>$<?=$rowod1->total?></td>
</tr>
<?php
}
}
?>
<tr>
<td style="border:none"> </td>
<td style="border:none"> </td>
<td>Billed Amount</td>
<td>$<?=$OrderData->billedAmt?></td>
</tr>
<tr>
<td style="border:none"> </td>
<td style="border:none"> </td>
<td>Taxes & Other Fees</td>
<td>$<?=$OrderData->tax+$OrderData->eServiceFees?></td>
</tr>
<?php
if($OrderData->discount>0)
{
?>
<tr>
<td style="border:none"> </td>
<td style="border:none"> </td>
<td>Discounts</td>
<td>$<?=$OrderData->discount?></td>
</tr>
<?php
}
?>
<tr>
</tr>
<?php
if($OrderData->deliveryCharges>0)
{
?>
<tr>
<td style="border:none"> </td>
<td style="border:none"> </td>
<td>Delivery Charges</td>
<td>$<?=$OrderData->deliveryCharges?></td>
</tr>
<?php
}
?>
<?php
if($OrderData->tip>0)
{
?>
<tr>
<td style="border:none"> </td>
<td style="border:none"> </td>
<td>Tip</td>
<td>$<?=$OrderData->tip?></td>
</tr>
<?php
}
?>
<?php
if($OrderData->packagingCharges>0)
{
?>
<tr>
<td style="border:none"> </td>
<td style="border:none"> </td>
<td>Packaging/Handling</td>
<td>$<?=$OrderData->packagingCharges?></td>
</tr>
<?php
}
?>
<?php
if($OrderData->minOrderCharges>0)
{
?>
<tr>
<td style="border:none"> </td>
<td style="border:none"> </td>
<td>Minimum Order Charge</td>
<td>$<?=$OrderData->minOrderCharges?></td>
</tr>
<?php
}
?>
<tr>
<td style="border:none"> </td>
<td style="border:none"> </td>
<td><strong>Total Amount:</strong></td>
<td><strong>$<?=$OrderData->totalAmt?></strong></td>
</tr>
</tbody></table>
</div>
</div>
</div>
</section>
</div>
<!--row-->
</div>
</td>
</tr>
<script>
$('body').on('click','#showmyorderinvoice<?php echo $row->oid; ?>',function(e){
$('body').toggleClass('modal-open');
$('#myorderinvoice<?php echo $row->oid; ?>').toggleClass('show');
});
$('body').on('click','.myorderinvoice-togglebtn<?php echo $row->oid; ?>',function(e){
e.preventDefault();
$('body').toggleClass('modal-open');
$('#myorderinvoice<?php echo $row->oid; ?>').toggleClass('show');
});
</script>
<?php
}
?>
</tbody>
</table>
</div>
<!--table-responsive-->
</div>
</div>
</div>
</section>
</div>
<!--row-->
</div>
<!--main container-->
</section>
<!--main-container col2-left-layout-->
<!-- JavaScript -->
<!-- JavaScript -->
<?php include_once("js.php") ?>
<?php include("footer.php"); ?>
<script type="text/javascript" src="<?php echo getFileVer('js/cart.js'); ?>" ></script>
<script defer="defer" type="text/javascript" src="js/js/bootstrap.min.js"></script>
<script defer="defer" type="text/javascript" src="js/custom.js"></script>
<script defer="defer" type="text/javascript" src="js/js/parallax.js"></script>
<script defer="defer" type="text/javascript" src="js/js/revslider.js"></script>
<script defer="defer" type="text/javascript" src="js/js/common.js"></script>
<script defer="defer" type="text/javascript" src="js/js/jquery.bxslider.min.js"></script>
<script defer="defer" type="text/javascript" src="js/js/owl.carousel.min.js"></script>
<script defer="defer" type="text/javascript" src="js/js/jquery.mobile-menu.min.js"></script>
</body>
</html>
Directory Contents
Dirs: 12 × Files: 59