Subversion Repositories SmartDukaan

Rev

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