Subversion Repositories SmartDukaan

Rev

Rev 5055 | 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>
7897 amar.kumar 38
			#set($categories = $action.getParentCategories())
39
			<select name = "categoryId">
40
				<option value = "0">Select Category</option>
41
				#foreach($category in $categories)
42
                    <option value = $category.getId()>$category.getLabel()</option>
43
				#end
44
			</select>
4295 varun.gupt 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>
5055 varun.gupt 58
				<!--<td>
59
					<form action="" method="post">
60
						<input type="submit" value="Download Emails" />
61
                    </form>
62
				</td>-->
4295 varun.gupt 63
			</tr>
64
			#end
65
		</table>
66
		#else
67
			<p>No statistics can be retrieved. Try again later!</p>
68
		#end
69
    </div>
70
</body>
71
</html>