Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
1597 ankur.sing 1
<html >
2
<head>
3
	<title>Statistics</title>
4
</head>
5
<body>
1891 ankur.sing 6
	#parse("../content/reports-common.vm")
7240 rajveer 7
	<!--
1597 ankur.sing 8
	<h2 >Statistics</h2>
9
	<div>
10
		<table border="1">
11
			<tr>
12
				<th width=50%>Field</th>
13
				<th>Value</th>
14
			</tr>
15
			<tr>
16
				<td>Number of Registrations</td>
17
				<td align="right">$noOfRegisterUsers</td>
18
			</tr>
19
			<tr>
20
				<td>Number of Valid Orders</td>
21
				<td align="right">$noOfOrders</td>
22
			</tr>
1630 ankur.sing 23
			<tr>
24
				<td>Number of Distinct Customers</td>
25
				<td align="right">$noOfCustomers</td>
26
			</tr>
27
			<tr>
28
				<td>Maximum Order Amount</td>
29
				<td align="right">$maxOrderAmount</td>
30
			</tr>
31
			<tr>
32
				<td>Minimum Order Amount</td>
33
				<td align="right">$minOrderAmount</td>
34
			</tr>
35
			<tr>
36
				<td>Maximum Payment Amount</td>
37
				<td align="right">$maxPaymentAmount</td>
38
			</tr>
39
			<tr>
40
				<td>Minimum Payment Amount</td>
41
				<td align="right">$minPaymentAmount</td>
42
			</tr>
1886 ankur.sing 43
			<br/>
44
		</table>
45
		<br/>
7240 rajveer 46
		-->
1886 ankur.sing 47
 
7240 rajveer 48
		<h3>Last 50 Orders</h3>
1891 ankur.sing 49
		<table border="1" width="100%">
1886 ankur.sing 50
            <thead>
51
              <tr>
1891 ankur.sing 52
                <th width="8%">Order ID</th>
53
				<th width="18%">Date/Time</th>
7621 anupam.sin 54
                <th width="32%">Product</th>
20682 amit.gupta 55
                <th width="32%">Quantity</th>
3071 chandransh 56
                <th width="8%">Type</th>
1891 ankur.sing 57
                <th width="16%">Status</th>
7621 anupam.sin 58
				<th width="10%">Source</th>
1891 ankur.sing 59
                <th width="8%">Customer City </th>
1886 ankur.sing 60
              </tr>
61
            </thead>
62
            <tbody>
8406 rajveer 63
			#set($count = 0)
3071 chandransh 64
			#foreach($order in $action.getValidOrders())
8406 rajveer 65
			#if($order.getSource() == 1 && $count < 50)
66
			#set($count = $count + 1)
3071 chandransh 67
			#set($item = $action.getItem($order))
1886 ankur.sing 68
              <tr>
69
                <td>$order.getId()</td>
1891 ankur.sing 70
				<td>$action.getDateTime($order.getCreated_timestamp())</td>
7621 anupam.sin 71
				#set($modelname = "")
72
				#set($modelnumber = "")
73
				#if($item.getModel_name())
74
					#set($modelname = $item.getModel_name())
75
				#end
76
				#if($item.getModel_number())
77
					#set($modelnumber = $item.getModel_number())
78
				#end
79
                <td>$item.getBrand() $modelname $modelnumber</td>
20682 amit.gupta 80
                <td>$item.getQuantity()</td>
3071 chandransh 81
				#if($order.isCod())
82
				<td>COD</td>
83
				#else
84
				<td>Prepaid</td>
85
				#end
3279 chandransh 86
				<td>$action.getOrderStatusString($order.getStatus())</td>
8406 rajveer 87
				<td>WEBSITE</td>
1886 ankur.sing 88
				<td>$order.getCustomer_city()</td>
89
              </tr>
3071 chandransh 90
			#end
8406 rajveer 91
			#end
1886 ankur.sing 92
            </tbody>
93
		</table>
94
 
1597 ankur.sing 95
    </div>
96
</body>
97
</html>