-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_view_orders.php
97 lines (94 loc) · 3.53 KB
/
admin_view_orders.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OG Tech PC - Admin View Orders</title>
</head>
<?php
include "header.php";
include "static/pages/side_nav.html";
include "static/pages/admin_nav.php";
?>
<body>
<!-- manage users -->
<div class="container" style="margin-top: 150px">
<h3 class="page-title white-text">View Customers Cart/Orders </h3>
<div class="row" style="padding-bottom: 10px;">
<div class="rounded-card-parent">
<div class="card rounded-card">
<div class="card-content white-text">
<span class="orange-text center" style="font-size: 24px">
Customers Orders List - Sorted by latest
<small style="font-size: 20px; margin-top: 10px">(Autosync table)</small>
</span>
<form class="row" action="admin_view_orders.php" method="POST" style="margin: 0px;">
<div class="input-field col s3 white-text">
<input name="search_members" id="search_members" type="text" class="validate; white-text" maxlength="20">
<label for="search_members">Search member by Name or Email</label>
<span class="helper-text" data-error="text only" data-success="correct"></span>
</div>
</form>
<div class="grid" style="margin-right: 300px">
<div class="grid" style="margin-right: 150px">
<h6 class="blue-text bold center">Username</h6>
</div>
<div class="grid" style="margin-right: 150px">
<h6 class="blue-text bold center">Email</h6>
</div>
<div class="grid" style="margin-right: 150px">
<h6 class="blue-text bold center">OrderID</h6>
</div>
<div class="grid" style="margin-right: 150px">
<h6 class="blue-text bold center">Payment Date</h6>
</div>
</div>
<table class='responsive-table' style='table-layout: fixed; width: 100%;' id='pagination'>
<tbody>
<?php
$admin = new adminContr();
$admin->showSearchMember();
?>
</tbody>
</table>
<div class='col-md-12 center text-center'>
<span class='left' id='total_reg'></span>
<ul class='pagination pager' id='myPager'></ul>
</div>
</div>
</div>
</div>
</div>
<!-- view cart/order details selected by admin -->
<?php if (isset($_GET["view_order"])) { ?>
<div class="rounded-card-parent">
<div class="card rounded-card">
<div class="card-content">
<span class="card-title cyan-text bold">
Cart/Order Details
<?php echo("[".$_GET["username"]."]");?>
</span>
<?php
// View Selected Customer Cart/Orders
if (isset($_GET["view_order"]))
{
$uid = $_GET["view_order"];
include_once "static/pages/cart_items.php";
include_once "static/pages/order_items.php";
}
?>
</div>
</div>
</div>
<?php } ?>
</div>
</body>
<script type="text/javascript">
window.onload = function() {
var elems = document.querySelectorAll("input[type=range]");
M.Range.init(elems);
};
</script>
<?php include "footer.php"; ?>
</html>