Subversion Repositories SmartDukaan

Rev

Rev 3071 | Rev 7621 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<html >
<head>
        <title>Statistics</title>
</head>
<body>
        #parse("../content/reports-common.vm")
        <h2 >Statistics</h2>
        <div>
                <table border="1">
                        <tr>
                                <th width=50%>Field</th>
                                <th>Value</th>
                        </tr>
                        <tr>
                                <td>Number of Registrations</td>
                                <td align="right">$noOfRegisterUsers</td>
                        </tr>
                        <tr>
                                <td>Number of Valid Orders</td>
                                <td align="right">$noOfOrders</td>
                        </tr>
                        <tr>
                                <td>Number of Distinct Customers</td>
                                <td align="right">$noOfCustomers</td>
                        </tr>
                        <tr>
                                <td>Maximum Order Amount</td>
                                <td align="right">$maxOrderAmount</td>
                        </tr>
                        <tr>
                                <td>Minimum Order Amount</td>
                                <td align="right">$minOrderAmount</td>
                        </tr>
                        <tr>
                                <td>Maximum Payment Amount</td>
                                <td align="right">$maxPaymentAmount</td>
                        </tr>
                        <tr>
                                <td>Minimum Payment Amount</td>
                                <td align="right">$minPaymentAmount</td>
                        </tr>
                        <br/>
                </table>
                <br/>
                
                <h3>Last 10 Orders</h3>
                <table border="1" width="100%">
            <thead>
              <tr>
                <th width="8%">Order ID</th>
                                <th width="18%">Date/Time</th>
                <th width="12%">Brand</th>
                <th width="20%">Model Number</th>
                <th width="8%">Type</th>
                <th width="16%">Status</th>
                                <th width="10%">Customer ID</th>
                <th width="8%">Customer City </th>
              </tr>
            </thead>
            <tbody>
                        #foreach($order in $action.getValidOrders())
                        #set($item = $action.getItem($order))
              <tr>
                <td>$order.getId()</td>
                                <td>$action.getDateTime($order.getCreated_timestamp())</td>
                <td>$item.getBrand()</td>
                <td>$item.getModel_number()</td>
                                #if($order.isCod())
                                <td>COD</td>
                                #else
                                <td>Prepaid</td>
                                #end
                                <td>$action.getOrderStatusString($order.getStatus())</td>
                <td>$order.getCustomer_id()</td>
                                <td>$order.getCustomer_city()</td>
              </tr>
                        #end
            </tbody>
                </table>
 
    </div>
</body>
</html>