Preview: myaccount.php
Size: 7.69 KB
/home/justbyquicklly-old/www/myaccount.php
<?php
include("include/config.php");
include("include/functions.php");
if ($_SESSION['value_user_id'] == '') {
header("location:" . SITE_URL);
exit();
}
if (trim($_COOKIE['url']) != '' && trim($_COOKIE['url']) != ',') {
$urlarr = explode(',', $_COOKIE['url']);
$url = $urlarr[0] . '-' . $urlarr[1];
} else {
$url = '';
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<?php //include("metas.php"); ?>
<title>Just By Quicklly</title>
<meta name="keywords" content="Subham Chettinad Grill" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></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("css.php"); ?>
<?php //include("common-head.php"); ?>
<style>
h1{margin-top: 2px;}
.data-table tbody td, .data-table tbody th {
text-wrap: wrap;
}
#my-orders-table h3 {
margin-top: 15px;
}
</style>
</head>
<body>
<?php include("header.php"); ?>
<?php include("cart.php"); ?>
<div id="searchhide" >
<!-- 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-->
<?php
// $uArr = $obj->query("select * from tbl_user where id='" . $_SESSION['value_user_id'] . "' ");
// $resultUser = $obj->fetchNextObject($uArr);
$uArr=callAPI('POST', WEBAPI_URL_NEW.'miniWebsite/order-review-user', array('user_id' =>$_SESSION['value_user_id']));
foreach($uArr->lstuser as $resultUser){}
?>
<!-- BEGIN DASHBOARD-->
<div class="dashboard">
<div class="welcome-msg" style="background-color:#FFF2FD; margin-bottom: 22px; padding: 0px 10px 5px 10px;">
<h1 class="hello"><strong>Hello, <?php echo stripslashes($resultUser->fname1 . " " . $resultUser->lname1); ?>!</strong></h1>
<p>From your My Account Dashboard you have the ability to view a snapshot of your recent account activity and update your account information. Select a link below to view or edit information.</p>
</div>
<div class="recent-orders">
<div class="title-buttons"> <strong>Recent Orders</strong> </div>
<div class="table-responsive">
<?php
$orderdata=callAPI('POST', WEBAPI_URL_NEW.'miniuser/get-last-order',array("uid"=>$_SESSION['value_user_id'],'callFrom'=>'MINIWEBSITE'));
?>
<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><span class="nobr">Order Total</span></th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php
foreach($orderdata->lastOrder as $row)
{
?>
<tr>
<td><?=$row->orderNo?></td>
<td><?=$row->date?></td>
<td><b>$<?=$row->total?></b></td>
<td><?=$row->status?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<!--table-responsive-->
</div>
<!--recent-orders-->
</section>
</div>
<!--row-->
</div>
<!--main container-->
</section>
<!--main-container col2-left-layout-->
<?php include("footer.php"); ?>
<?php include("js.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