Subversion Repositories SmartDukaan

Rev

Rev 4295 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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>
5055 varun.gupt 16
			<legend>Emails submitted to which Product Notifications were sent in past</legend>
17
			Download the emails submitted between (DD/MM/YYYY)&nbsp;  
18
			<input type="text" name="startDate" size="14"/> and 
19
			<input type="text" name="endDate" size="14"/>&nbsp;&nbsp;
4295 varun.gupt 20
			<input type="submit" value="Download" />
21
		</fieldset>
22
	</form>
23
 
24
	<h3>Item wise distribution of product notification requests</h3>
25
	<div id="container">
26
		<form action="" method="GET">
27
			Duration of notification requests
28
			#set($period = $action.getSelectedPeriod())
29
			<select name="sp">
30
				<option value="d" #if($period == "d") SELECTED #end>24 hours</option>
31
				<option value="2d" #if($period == "2d") SELECTED #end>2 days</option>
32
				<option value="3d" #if($period == "3d") SELECTED #end>3 days</option>
33
				<option value="w" #if($period == "w") SELECTED #end>1 week</option>
34
				<option value="f" #if($period == "f") SELECTED #end>1 fortnight</option>
35
				<option value="m" #if($period == "m") SELECTED #end>1 month</option>
36
				<option value="a" #if($period == "a") SELECTED #end>All Emails</option>
37
            </select>
38
			<input type="submit" value="Show" />
39
        </form>
40
		#set($requestCounts = $action.getNotificationRequestCounts())
41
		#if($requestCounts)
42
		<table>
43
			<tr>
44
				<th>Product</th>
45
				<th>No. of Notification Requests</th>
46
			</tr>
47
			#foreach($requestCount in $requestCounts)
48
			<tr>
49
				<td>$action.getProductNameFromItem($requestCount.getItem())</td>
50
				<td align="center">$requestCount.getCount()</td>
5055 varun.gupt 51
				<!--<td>
52
					<form action="" method="post">
53
						<input type="submit" value="Download Emails" />
54
                    </form>
55
				</td>-->
4295 varun.gupt 56
			</tr>
57
			#end
58
		</table>
59
		#else
60
			<p>No statistics can be retrieved. Try again later!</p>
61
		#end
62
    </div>
63
</body>
64
</html>