Rev 20784 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<html ><!-- Latest compiled and minified CSS --><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"><!-- Optional theme --><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker.min.css"><!-- jQuery (necessary for Bootstrap's JavaScript plugins) --><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script><!-- Latest compiled and minified JavaScript --><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/js/bootstrap-datepicker.min.js"></script><script type="text/javascript">$(function(){$("#datepicker").datepicker( {date:new Date(),format: "M, yyyy",viewMode: "months",minViewMode: "months",endDate:"0m"});});</script><head><title>Statistics</title></head><body><div class="container">#parse("../content/reports-common.vm")<h2>Download Order Report</h2><div><form action="/Support/statistics!download" method="POST"><input type="text" readonly id="datepicker" style="width:80px" name="my"/><input type="submit" value="Download"/></form ></div><!--<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 50 Orders</h3><table border="1" width="100%"><thead><tr><th width="8%">Order ID</th><th width="18%">Date/Time</th><th width="32%">Product</th><th width="32%">Quantity</th><th width="8%">Type</th><th width="16%">Status</th><th width="10%">Source</th><th width="8%">Customer City </th></tr></thead><tbody>#set($count = 0)#foreach($order in $action.getValidOrders())#if($order.getSource() == 1 && $count < 50)#set($count = $count + 1)#set($item = $action.getItem($order))<tr><td>$order.getId()</td><td>$action.getDateTime($order.getCreated_timestamp())</td>#set($modelname = "")#set($modelnumber = "")#if($item.getModel_name())#set($modelname = $item.getModel_name())#end#if($item.getModel_number())#set($modelnumber = $item.getModel_number())#end<td>$item.getBrand() $modelname $modelnumber</td><td>$item.getQuantity()</td>#if($order.isCod())<td>COD</td>#else<td>Prepaid</td>#end<td>$action.getOrderStatusString($order.getStatus())</td><td>WEBSITE</td><td>$order.getCustomer_city()</td></tr>#end#end</tbody></table></div></div></body></html>