-
Notifications
You must be signed in to change notification settings - Fork 2
/
cancelRequestItem.php
46 lines (44 loc) · 1.57 KB
/
cancelRequestItem.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
<?php
include_once('library/db.php');
include_once ('library/getRefundItem.php');
$items = array();
if (isset($_GET['id'])) $items = getRefundInfo(getConnect(), $_GET['id']);
// var_dump($items);
?>
<!DOCTYPE html>
<html>
<head>
<title>Item Refund</title>
<link rel='stylesheet' href='css/style.css'>
<link rel='stylesheet' href='css/bootstrap.min.css' type='text/css'>
<script src="js/addEvent.js"></script>
</head>
<body>
<div class="col-md-3"></div>
<div class="border-form col-md-6">
<table class="table table-hover">
<thead>
<th>Product name</th>
<th>Refund sum</th>
</thead>
<tbody>
<?php for($i = 0; $i < count($items); $i++) {?>
<tr class="success">
<th><?=$items[$i]['product_name']?></th>
<th><?=$items[$i]['sum']?></th>
</tr>
<?php } ?>
<tbody>
</table>
<div >
<button style="margin:5px;" type="submit" class="btn btn-success">Send</button>
<a href="cancelRequestList.php" style="margin:5px;" class="btn btn-default">Back</a>
</div>
</div>
<div class="col-md-3"></div>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/timer.js"></script>
<script src="js/addEvent.js"></script>
</body>
</html>