-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorders.php
29 lines (27 loc) · 1.11 KB
/
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
<?php
session_start();
require 'inc/navUser.php';
?>
<div class="ordersContainer" ng-init="loadOrders('<?php echo $_SESSION["id"] ?>')">
<h3 align="center">Your Cart</h3>
<div id="shoppingCartView" class="table-responsive" id="order_table">
<table class="table table-bordered table-striped">
<tr>
<th width="10%">Order Id</th>
<th width="20%">Username</th>
<th width=20%>Date</th>
<th width="20%">Total Price</th>
<th width="10%">Status</th>
</tr>
<tr ng-repeat="order in orders" ng-init = "setOrderBtnText(order.status)">
<td>{{order.orderId}}</td>
<td>{{order.userName}}</td>
<td>{{order.date | timestampToISO | date}}</td>
<td>{{order.total_to_pay}}</td>
<td id="orderCell" ng-style="{'background-color': getStyle(order.status)} ">{{order.status}}<span ng-style="{'visibility': getBtnOrderVisibility(order.status)}"><br><br><button class="btn btn-primary" ng-click="orderAction()" id="orderBtn">{{setOrderBtnText(order.status)}}</button></span></td>
</td>
</tr>
</table>
</div>
</div>
<?php require 'inc/footer.php'; ?>