Subversion Repositories SmartDukaan

Rev

Rev 1630 | Rev 1888 | 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>
1886 ankur.sing 6
	#parse("../content/reports-common.vm")
1597 ankur.sing 7
	<h2 >Statistics</h2>
8
	<div>
9
		<table border="1">
10
			<tr>
11
				<th width=50%>Field</th>
12
				<th>Value</th>
13
			</tr>
14
			<tr>
15
				<td>Number of Registrations</td>
16
				<td align="right">$noOfRegisterUsers</td>
17
			</tr>
18
			<tr>
19
				<td>Number of Valid Orders</td>
20
				<td align="right">$noOfOrders</td>
21
			</tr>
1630 ankur.sing 22
			<tr>
23
				<td>Number of Distinct Customers</td>
24
				<td align="right">$noOfCustomers</td>
25
			</tr>
26
			<tr>
27
				<td>Maximum Order Amount</td>
28
				<td align="right">$maxOrderAmount</td>
29
			</tr>
30
			<tr>
31
				<td>Minimum Order Amount</td>
32
				<td align="right">$minOrderAmount</td>
33
			</tr>
34
			<tr>
35
				<td>Maximum Payment Amount</td>
36
				<td align="right">$maxPaymentAmount</td>
37
			</tr>
38
			<tr>
39
				<td>Minimum Payment Amount</td>
40
				<td align="right">$minPaymentAmount</td>
41
			</tr>
1886 ankur.sing 42
			<br/>
43
		</table>
44
		<br/>
45
 
46
		<h3>Last 10 Orders</h3>
47
		<table border="1">
48
            <thead>
49
              <tr>
50
                <th width="10%">Order ID</th>
51
                <th width="20%">Brand</th>
52
                <th width="20%">Model Number</th>
53
                <th width="8%">Qty</th>
54
                <th width="20%">Status</th>
55
				<th width="15%">Customer ID</th>
56
                <th width="10%">Customer City </th>
57
              </tr>
58
            </thead>
59
            <tbody>
60
					#foreach($order in $action.getValidOrders())
61
						#set($item = $action.getItem($order.getId()))
62
              <tr>
63
                <td>$order.getId()</td>
64
                <td>$item.getBrand()</td>
65
                <td>$item.getModel_number()</td>
66
				<td>$item.getQuantity()</td>
67
				<td>$action.getOrderStatusString($order.getStatus())
68
                <td>$order.getCustomer_id()</td>
69
				<td>$order.getCustomer_city()</td>
70
              </tr>
71
					#end
72
            </tbody>
73
		</table>
74
 
1597 ankur.sing 75
    </div>
76
	<div id="messageError">
77
         $errorMsg
78
    </div>
79
</body>
80
</html>