| 4295 |
varun.gupt |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>Product Notifications</title>
|
|
|
4 |
<style>
|
|
|
5 |
body { font-size: 12px; }
|
|
|
6 |
fieldset { padding: 10px 20px; }
|
|
|
7 |
#container { padding: 20px; border: 1px solid; }
|
|
|
8 |
th, td { font-size: 12px; padding: 2px 4px; }
|
|
|
9 |
</style>
|
|
|
10 |
</head>
|
|
|
11 |
<body>
|
|
|
12 |
<h3>User Requests for Product Notifications</h3>
|
|
|
13 |
|
|
|
14 |
<form action="" method="POST">
|
|
|
15 |
<fieldset>
|
|
|
16 |
<legend>Emails submitted to recieve Product Notifications</legend>
|
|
|
17 |
Download the emails submitted during last
|
|
|
18 |
<select name="np">
|
|
|
19 |
<option value="d">24 hours</option>
|
|
|
20 |
<option value="w">1 week</option>
|
|
|
21 |
<option value="f">1 fortnight</option>
|
|
|
22 |
<option value="m" selected>1 month</option>
|
|
|
23 |
<option value="3m">3 months</option>
|
|
|
24 |
<option value="6m">6 months</option>
|
|
|
25 |
<option value="a">[All Emails]</option>
|
|
|
26 |
</select>
|
|
|
27 |
<input type="submit" value="Download" />
|
|
|
28 |
</fieldset>
|
|
|
29 |
</form>
|
|
|
30 |
|
|
|
31 |
<h3>Item wise distribution of product notification requests</h3>
|
|
|
32 |
<div id="container">
|
|
|
33 |
<form action="" method="GET">
|
|
|
34 |
Duration of notification requests
|
|
|
35 |
#set($period = $action.getSelectedPeriod())
|
|
|
36 |
<select name="sp">
|
|
|
37 |
<option value="d" #if($period == "d") SELECTED #end>24 hours</option>
|
|
|
38 |
<option value="2d" #if($period == "2d") SELECTED #end>2 days</option>
|
|
|
39 |
<option value="3d" #if($period == "3d") SELECTED #end>3 days</option>
|
|
|
40 |
<option value="w" #if($period == "w") SELECTED #end>1 week</option>
|
|
|
41 |
<option value="f" #if($period == "f") SELECTED #end>1 fortnight</option>
|
|
|
42 |
<option value="m" #if($period == "m") SELECTED #end>1 month</option>
|
|
|
43 |
<option value="a" #if($period == "a") SELECTED #end>All Emails</option>
|
|
|
44 |
</select>
|
|
|
45 |
<input type="submit" value="Show" />
|
|
|
46 |
</form>
|
|
|
47 |
#set($requestCounts = $action.getNotificationRequestCounts())
|
|
|
48 |
#if($requestCounts)
|
|
|
49 |
<table>
|
|
|
50 |
<tr>
|
|
|
51 |
<th>Product</th>
|
|
|
52 |
<th>No. of Notification Requests</th>
|
|
|
53 |
</tr>
|
|
|
54 |
#foreach($requestCount in $requestCounts)
|
|
|
55 |
<tr>
|
|
|
56 |
<td>$action.getProductNameFromItem($requestCount.getItem())</td>
|
|
|
57 |
<td align="center">$requestCount.getCount()</td>
|
|
|
58 |
</tr>
|
|
|
59 |
#end
|
|
|
60 |
</table>
|
|
|
61 |
#else
|
|
|
62 |
<p>No statistics can be retrieved. Try again later!</p>
|
|
|
63 |
#end
|
|
|
64 |
</div>
|
|
|
65 |
</body>
|
|
|
66 |
</html>
|