| 7176 |
anupam.sin |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
| 7082 |
rajveer |
3 |
<head>
|
|
|
4 |
<title>Recharge For Store</title>
|
| 7178 |
anupam.sin |
5 |
<link rel="stylesheet" href="css/rechargewebapp_18042013.css" type="text/css" />
|
| 7151 |
amit.gupta |
6 |
<script language="javascript" type="text/javascript" src="js/jquery-1.4.2.js"></script>
|
| 7289 |
anupam.sin |
7 |
<script language="javascript" type="text/javascript" src="js/rechargewebapp_16052013.js"></script>
|
| 7169 |
anupam.sin |
8 |
|
|
|
9 |
<style>
|
|
|
10 |
table, td, th
|
|
|
11 |
{
|
|
|
12 |
border:1px solid #2789C1;
|
|
|
13 |
border-collapse:collapse;
|
|
|
14 |
border-spacing:0;
|
|
|
15 |
}
|
|
|
16 |
th
|
|
|
17 |
{
|
|
|
18 |
background-color:#2789C1;
|
|
|
19 |
color:white;
|
|
|
20 |
text-align:center;
|
|
|
21 |
padding:5px;
|
|
|
22 |
}
|
|
|
23 |
td
|
|
|
24 |
{
|
|
|
25 |
text-align:center;
|
|
|
26 |
padding:5px;
|
|
|
27 |
}
|
|
|
28 |
</style>
|
| 7082 |
rajveer |
29 |
</head>
|
| 7176 |
anupam.sin |
30 |
<body style="margin: 0;">
|
|
|
31 |
#set($txns=$action.getTxns())
|
|
|
32 |
<div style="line-height:37px;height:37px;background-color:#333;color:white;">
|
| 7207 |
anupam.sin |
33 |
<span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">$action.getStoreCode()</span>
|
|
|
34 |
<span style="margin-left:20px;font-weight:bold;font-size:15px">Today's Collection : </span><span style="font-size:20px">$action.getCollectedAmount()</span>
|
| 7176 |
anupam.sin |
35 |
<a style="margin:0px 25px 0px 25px;color:white" href="/rch/home">HOME</a>
|
|
|
36 |
<a style="color:white;" href="/rch/!doLogout">Logout</a>
|
|
|
37 |
</div>
|
|
|
38 |
|
|
|
39 |
<div style="line-height:60px;height:60px;background-color:#DBEEFF;color: #333333;margin: 0px;padding-left: 35px;border-bottom:1px solid #67ABD3">
|
|
|
40 |
<img style="float:left;" src="/rch/images/Hotspot-Logo.jpg"></img>
|
|
|
41 |
<span style="font-size: 35px;font-family:'Times New Roman', Times, serif;float:left">Recharge Dashboard</span>
|
|
|
42 |
<img style="float:right;margin-right:20px;" src="/rch/images/Saholic-Logo.jpg"></img>
|
|
|
43 |
</div>
|
|
|
44 |
<h3>Search Orders</h3>
|
| 7169 |
anupam.sin |
45 |
#if($action.getSearchError() != "")
|
|
|
46 |
<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
|
|
|
47 |
$action.getSearchError()
|
|
|
48 |
</div>
|
|
|
49 |
#end
|
|
|
50 |
#if($action.getPasswordGeneration() == "SUCCESS")
|
|
|
51 |
<div class="padding-row" style="font-size: 16px;color: #2789C1;text-align: center;border: 1px solid #2789C1;margin: 5px;padding: 5px;">
|
|
|
52 |
Password sent to the registered emailId of this store
|
|
|
53 |
</div>
|
|
|
54 |
#elseif($action.getPasswordGeneration() == "FAIL")
|
|
|
55 |
<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
|
|
|
56 |
Password generation failed. Please try again.
|
|
|
57 |
</div>
|
|
|
58 |
#end
|
| 7176 |
anupam.sin |
59 |
<form style="padding:20px;border-bottom:1px solid #2789C1;" id="search" action="report!search" method="POST">
|
| 7169 |
anupam.sin |
60 |
<div class="row">
|
|
|
61 |
<div class="text">Please enter the device number : </div>
|
|
|
62 |
<div class="input-div">
|
|
|
63 |
<input class="inputbox padding15" type="text" name="number" value="$action.getNumber()">
|
|
|
64 |
|
|
|
65 |
</div><div class="input-div">
|
|
|
66 |
<input style="" type="submit" value="Search">
|
| 7151 |
amit.gupta |
67 |
</div>
|
| 7169 |
anupam.sin |
68 |
</div>
|
|
|
69 |
#if(!$action.getSearchResult().isEmpty())
|
| 7176 |
anupam.sin |
70 |
<div style="border-top: 1px solid #BBBBBB;padding: 5px 0px 5px 25px;margin: 5px 0 5px 0;color: #999999;">$action.getSearchResult().size() search results</div>
|
| 7169 |
anupam.sin |
71 |
<table width="100%">
|
|
|
72 |
<thead>
|
|
|
73 |
<tr>
|
|
|
74 |
<th>Order ID</th>
|
|
|
75 |
<th>Order Date</th>
|
|
|
76 |
<th>Operator</th>
|
|
|
77 |
<th>Status</th>
|
|
|
78 |
<th>Description</th>
|
|
|
79 |
<th>Amount</th>
|
|
|
80 |
#if($action.shouldShowReprintColumn())
|
|
|
81 |
<th></th>
|
|
|
82 |
#end
|
|
|
83 |
</tr>
|
|
|
84 |
</thead>
|
|
|
85 |
<tbody>
|
|
|
86 |
#foreach ($order in $action.getSearchResult() )
|
|
|
87 |
<tr>
|
|
|
88 |
<td>$order.getId()</td>
|
|
|
89 |
<td>$action.getDateTime($order.getTransactionTime())</td>
|
|
|
90 |
<td>$action.getOperatorName($order.getOperatorId())</td>
|
|
|
91 |
<td>$order.getStatus()</td>
|
|
|
92 |
<td>$order.getDescription()</td>
|
|
|
93 |
<td>$order.getAmount()</td>
|
|
|
94 |
#if($order.getStatus().getValue() == 5)
|
|
|
95 |
<td><a href='recharge-result!downloadInvoice?rechargeId=$order.getId()'>Invoice</a></td>
|
|
|
96 |
#end
|
|
|
97 |
</tr>
|
|
|
98 |
#end
|
|
|
99 |
</tbody>
|
|
|
100 |
</table>
|
|
|
101 |
#end
|
|
|
102 |
|
| 7151 |
amit.gupta |
103 |
</form>
|
| 7082 |
rajveer |
104 |
<br/>
|
| 7169 |
anupam.sin |
105 |
|
| 7176 |
anupam.sin |
106 |
<div style="padding-bottom:20px;border-bottom:1px solid #2789C1;">
|
| 7169 |
anupam.sin |
107 |
<h3>Orders for Today
|
| 7096 |
anupam.sin |
108 |
</h3>
|
| 7169 |
anupam.sin |
109 |
|
| 7172 |
anupam.sin |
110 |
#if($txns.size() == 0)
|
| 7176 |
anupam.sin |
111 |
<div class="padding-row" style="font-size: 20px; font-weight:bold;color: #AAAAAA;text-align: center;margin: 5px;padding: 5px;">
|
| 7172 |
anupam.sin |
112 |
NO ORDERS FOR TODAY
|
|
|
113 |
</div>
|
|
|
114 |
#else
|
|
|
115 |
<table width="100%">
|
| 7082 |
rajveer |
116 |
<thead>
|
|
|
117 |
<tr>
|
| 7169 |
anupam.sin |
118 |
<th>Order ID</th>
|
|
|
119 |
<th>Order Date</th>
|
|
|
120 |
<th>Operator</th>
|
|
|
121 |
<th>Device</th>
|
|
|
122 |
<th>Status</th>
|
|
|
123 |
<th>Description</th>
|
|
|
124 |
<th>Amount</th>
|
| 7082 |
rajveer |
125 |
</tr>
|
|
|
126 |
</thead>
|
|
|
127 |
<tbody>
|
| 7096 |
anupam.sin |
128 |
#foreach ( $order in $txns )
|
| 7082 |
rajveer |
129 |
<tr>
|
|
|
130 |
<td>$order.getId()</td>
|
| 7096 |
anupam.sin |
131 |
<td>$action.getDateTime($order.getTransactionTime())</td>
|
|
|
132 |
<td>$action.getOperatorName($order.getOperatorId())</td>
|
| 7082 |
rajveer |
133 |
<td>$order.getDeviceNum()</td>
|
|
|
134 |
<td>$order.getStatus()</td>
|
| 7282 |
anupam.sin |
135 |
<td>
|
|
|
136 |
#if($order.getDescription())
|
|
|
137 |
$order.getDescription()
|
|
|
138 |
#else
|
|
|
139 |
N/A
|
|
|
140 |
#end
|
|
|
141 |
</td>
|
| 7082 |
rajveer |
142 |
<td>$order.getAmount()</td>
|
|
|
143 |
</tr>
|
|
|
144 |
#end
|
|
|
145 |
</tbody>
|
|
|
146 |
</table>
|
| 7172 |
anupam.sin |
147 |
#end
|
| 7082 |
rajveer |
148 |
</div>
|
| 7176 |
anupam.sin |
149 |
|
|
|
150 |
<h3 id='collectionReport'>Collection report for today</h3>
|
|
|
151 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST">
|
| 7169 |
anupam.sin |
152 |
<div>
|
|
|
153 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/>
|
|
|
154 |
</div>
|
|
|
155 |
</form>
|
|
|
156 |
<br/>
|
| 7176 |
anupam.sin |
157 |
|
|
|
158 |
<h3 id='statusReport'>Download Report by Status</h3>
|
|
|
159 |
<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadrep" action="report" method="POST">
|
| 7169 |
anupam.sin |
160 |
<div>
|
|
|
161 |
Status:<select name="status">
|
|
|
162 |
<option value="-1">ALL</option>
|
|
|
163 |
<option value="9">INIT</option>
|
|
|
164 |
<option value="5">SUCCESS</option>
|
|
|
165 |
<option value="4">FAILED</option>
|
|
|
166 |
<option value="6">REFUNDED</option>
|
|
|
167 |
<option value="10">UNKNOWN</option>
|
|
|
168 |
</select>
|
|
|
169 |
Date:<select name="dateselector" id="dateselector">
|
|
|
170 |
<option value="1" selected="selected">Today</option>
|
|
|
171 |
<option value="2">Yesterday</option>
|
|
|
172 |
<option value="3">Daterange</option>
|
|
|
173 |
</select>
|
|
|
174 |
<span id="daterange" style="display:none">From:<input maxlength="10" size="8" type="text" name="startDate" style="padding-left:3px"/>(dd/mm/yyyy) To:<input maxlength="10" size="8" type="text" name="endDate" style="padding-left:3px"/>(dd/mm/yyyy)</span>
|
|
|
175 |
</div>
|
|
|
176 |
<br>
|
|
|
177 |
<div>
|
|
|
178 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 140px;font-size: 21px;" type="submit" value="Download"/>
|
|
|
179 |
</div>
|
|
|
180 |
</form>
|
|
|
181 |
<br/>
|
| 7176 |
anupam.sin |
182 |
|
|
|
183 |
<h3 id='requestPassword'>Request new password</h3>
|
|
|
184 |
<div style='padding:20px;border-bottom:1px solid #2789C1;'>
|
| 7169 |
anupam.sin |
185 |
<div style='padding:20px;'>
|
|
|
186 |
<a href="report!sendPassword">Click here</a> to request a new password.
|
|
|
187 |
</div>
|
|
|
188 |
</div>
|
|
|
189 |
<br/>
|
| 7082 |
rajveer |
190 |
</body>
|
|
|
191 |
</html>
|