| 5068 |
varun.gupt |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>Order Monitor</title>
|
|
|
4 |
<style>
|
|
|
5 |
body { font-size: 12px; }
|
|
|
6 |
legend { font-weight: bold; }
|
|
|
7 |
.fieldset { border: 1px solid; padding: 8px; }
|
|
|
8 |
#error { padding: 0px 10px 5px; border: 1px solid #FF0000; color: #C41616; margin-bottom: 10px; }
|
|
|
9 |
td { min-width: 100px; font-size: 12px; }
|
|
|
10 |
</style>
|
|
|
11 |
</head>
|
|
|
12 |
<body>
|
|
|
13 |
#parse("../content/reports-common.vm")
|
|
|
14 |
<h2>Order Monitor</h2>
|
|
|
15 |
<hr>
|
|
|
16 |
<form action="" method="get">
|
|
|
17 |
<fieldset>
|
|
|
18 |
<legend>Select Date Range</legend>
|
| 5069 |
varun.gupt |
19 |
Start Date (DD/MM/YYYY) <input type="text" name="start" size="12"/>
|
|
|
20 |
End Date (DD/MM/YYYY) <input type="text" name="end" size="12"/>
|
| 5068 |
varun.gupt |
21 |
<input type="submit" value="Update"/>
|
|
|
22 |
</fieldset>
|
|
|
23 |
</form>
|
|
|
24 |
#set($errors = $action.getActionErrors())
|
|
|
25 |
#if($errors.size() > 0)
|
|
|
26 |
<div id="error">
|
|
|
27 |
<h4>Errors:</h4>
|
|
|
28 |
#foreach($error in $errors)
|
|
|
29 |
$error<br />
|
|
|
30 |
#end
|
|
|
31 |
</div>
|
|
|
32 |
#end
|
|
|
33 |
|
|
|
34 |
#set($orderStatusDistribution = $action.getOrderStatusDistribution())
|
|
|
35 |
#set($baseURL = $action.getPath())
|
|
|
36 |
|
|
|
37 |
#if($orderStatusDistribution)
|
|
|
38 |
<form id="getOrderIds" action="/Support$baseURL!getOrderIds" method="post">
|
|
|
39 |
<input type="hidden" id="status" name="status" />
|
|
|
40 |
<input type="hidden" id="timestamps" name="timestamps" value="$action.getStartEndTimestamp()" />
|
|
|
41 |
</form>
|
|
|
42 |
<table>
|
|
|
43 |
#foreach($status in $orderStatusDistribution.keySet())
|
|
|
44 |
#set($count = $orderStatusDistribution.get($status))
|
|
|
45 |
<tr>
|
|
|
46 |
<td>$status</td>
|
|
|
47 |
<td>$count</td>
|
|
|
48 |
<td>
|
|
|
49 |
#if($count > 0)
|
|
|
50 |
<a class="download-order-ids" status="$status" href="#">Download Ids</a>
|
|
|
51 |
#end
|
|
|
52 |
</td>
|
|
|
53 |
</tr>
|
|
|
54 |
#end
|
|
|
55 |
</table>
|
|
|
56 |
#end
|
|
|
57 |
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
|
|
|
58 |
<script type="text/javascript" src="/Support/js/order-monitor.js"></script>
|
|
|
59 |
</body>
|
|
|
60 |
</html>
|