Subversion Repositories SmartDukaan

Rev

Rev 7151 | Rev 7172 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7151 Rev 7169
Line 1... Line 1...
1
#set($txns=$action.getTxns())
1
#set($txns=$action.getTxns())
2
 
2
 
3
<html >
3
<html >
4
<head>
4
<head>
5
	<title>Recharge For Store</title>
5
	<title>Recharge For Store</title>
-
 
6
	<link rel="stylesheet" href="css/rechargewebapp.css" type="text/css" />
6
	<script language="javascript" type="text/javascript" src="js/jquery-1.4.2.js"></script>
7
	<script language="javascript" type="text/javascript" src="js/jquery-1.4.2.js"></script>
7
    <script language="javascript" type="text/javascript" src="js/rechargewebapp.js"></script>
8
    <script language="javascript" type="text/javascript" src="js/rechargewebapp.js"></script>
-
 
9
	
-
 
10
	<style>
-
 
11
		table, td, th
-
 
12
		{
-
 
13
			border:1px solid #2789C1;
-
 
14
			border-collapse:collapse;
-
 
15
			border-spacing:0;
-
 
16
		}
-
 
17
		th
-
 
18
		{
-
 
19
			background-color:#2789C1;
-
 
20
			color:white;
-
 
21
			text-align:center;
-
 
22
			padding:5px;
-
 
23
		}
-
 
24
		td
-
 
25
        {
-
 
26
			text-align:center;
-
 
27
			padding:5px;
-
 
28
        }
-
 
29
	</style>
8
</head>
30
</head>
9
<body>
31
<body>
10
	
32
	
11
	<div>
33
	<h3>Search Orders
12
	<form id="downloadrep" action="report" method="POST">
34
		<a style="float:right;" href='/rch/home'>Home</a>
13
		<div>
35
	</h3>
14
		Status:<select name="status">
36
	#if($action.getSearchError() != "")
-
 
37
    	<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
15
			<option value="-1">ALL</option>
38
    		$action.getSearchError()
16
			<option value="9">INIT</option>
39
    	</div>
-
 
40
	#end
17
			<option value="5">SUCCESS</option>
41
	#if($action.getPasswordGeneration() == "SUCCESS")
-
 
42
		<div class="padding-row" style="font-size: 16px;color: #2789C1;text-align: center;border: 1px solid #2789C1;margin: 5px;padding: 5px;">
18
			<option value="4">FAILED</option>
43
    		Password sent to the registered emailId of this store
19
		</select>
44
    	</div>
20
		Date:<select name="dateselector" id="dateselector">
45
	#elseif($action.getPasswordGeneration() == "FAIL")
21
			<option value="1" selected="selected">Today</option>
46
		<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
22
			<option value="2">Yesterday</option>
47
    		Password generation failed. Please try again.
23
			<option value="3">Daterange</option>
48
    	</div>
24
		</select>
49
	#end
25
		<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>
50
	<form style="padding:20px;border-bottom:2px solid #2789C1;" id="search" action="report!search" method="POST">
26
		</div>
51
		<div class="row">
-
 
52
        	<div class="text">Please enter the device number : </div>
-
 
53
        	<div class="input-div">
-
 
54
    			<input class="inputbox padding15" type="text" name="number" value="$action.getNumber()">
27
		<br>
55
 
28
		<div>
56
    		</div><div class="input-div">
29
			<input type="submit" value="Download Report"/>
57
			<input style="" type="submit" value="Search">
30
		</div>
58
		</div>
-
 
59
        </div>
-
 
60
		#if(!$action.getSearchResult().isEmpty())
-
 
61
    		<div style="border-top: 1px solid #BBB;padding: 5px 0px 5px 25px;margin: 5px 0 5px 0;color: #999;">$action.getSearchResult().size() search results</div>
-
 
62
    		<table width="100%">
-
 
63
                <thead>
-
 
64
                  <tr>
-
 
65
                    <th>Order ID</th>
-
 
66
        			<th>Order Date</th>
-
 
67
        			<th>Operator</th>
-
 
68
        			<th>Status</th>
-
 
69
        			<th>Description</th>
-
 
70
        			<th>Amount</th>
-
 
71
					#if($action.shouldShowReprintColumn())
-
 
72
						<th></th>
-
 
73
					#end
-
 
74
                  </tr>
-
 
75
                </thead>
-
 
76
                <tbody>
-
 
77
        		#foreach ($order in $action.getSearchResult() )
-
 
78
        		  <tr>
-
 
79
                    <td>$order.getId()</td>
-
 
80
        			<td>$action.getDateTime($order.getTransactionTime())</td>
-
 
81
        			<td>$action.getOperatorName($order.getOperatorId())</td>
-
 
82
        			<td>$order.getStatus()</td>
-
 
83
        			<td>$order.getDescription()</td>
-
 
84
        			<td>$order.getAmount()</td>
-
 
85
					#if($order.getStatus().getValue() == 5)
-
 
86
    					<td><a href='recharge-result!downloadInvoice?rechargeId=$order.getId()'>Invoice</a></td>
-
 
87
					#end
-
 
88
                  </tr>
-
 
89
        		#end
-
 
90
                </tbody>
-
 
91
    		</table>
-
 
92
		#end
-
 
93
 
31
	</form>
94
	</form>
32
	<br/>
95
	<br/>
-
 
96
	
-
 
97
	<div style="padding-bottom:20px;border-bottom:2px solid #2789C1;">
33
	<h3>Recharge Orders
98
	<h3>Orders for Today
34
		<a style="float:right;" href='/rch/home'>Home</a>
-
 
35
	</h3>
99
	</h3>
-
 
100
	
36
	<table border="1" width="100%">
101
	<table width="100%">
37
        <thead>
102
        <thead>
38
          <tr>
103
          <tr>
39
            <th width="5%">Order ID</th>
104
            <th>Order ID</th>
40
			<th width="16%">Order Date</th>
105
			<th>Order Date</th>
41
			<th width="10%">Operator</th>
106
			<th>Operator</th>
42
            <th width="9%">Device</th>
107
            <th>Device</th>
43
			<th width="15%">Status</th>
108
			<th>Status</th>
44
			<th width="30%">Description</th>
109
			<th>Description</th>
45
			<th width="4%">Amount</th>
110
			<th>Amount</th>
46
          </tr>
111
          </tr>
47
        </thead>
112
        </thead>
48
        <tbody>
113
        <tbody>
49
		#foreach ( $order in $txns )
114
		#foreach ( $order in $txns )
50
		  <tr>
115
		  <tr>
Line 59... Line 124...
59
		#end
124
		#end
60
        </tbody>
125
        </tbody>
61
	</table>
126
	</table>
62
	
127
	
63
    </div>
128
    </div>
-
 
129
	
-
 
130
	<form style='padding:20px;border-bottom:2px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST">
-
 
131
		<h3>Collection report for today</h3>
-
 
132
		<div>
-
 
133
			<input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/>
-
 
134
		</div>
-
 
135
	</form>
-
 
136
	<br/>
-
 
137
	<form style='padding:20px;border-bottom:2px solid #2789C1;' id="downloadrep" action="report" method="POST">
-
 
138
		<h3>Download Report by Status</h3>
-
 
139
		<div>
-
 
140
		Status:<select name="status">
-
 
141
			<option value="-1">ALL</option>
-
 
142
			<option value="9">INIT</option>
-
 
143
			<option value="5">SUCCESS</option>
-
 
144
			<option value="4">FAILED</option>
-
 
145
			<option value="6">REFUNDED</option>
-
 
146
			<option value="10">UNKNOWN</option>
-
 
147
		</select>
-
 
148
		Date:<select name="dateselector" id="dateselector">
-
 
149
			<option value="1" selected="selected">Today</option>
-
 
150
			<option value="2">Yesterday</option>
-
 
151
			<option value="3">Daterange</option>
-
 
152
		</select>
-
 
153
		<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>
-
 
154
		</div>
-
 
155
		<br>
-
 
156
		<div>
-
 
157
			<input style="height: 30px;background-color: orange;cursor: pointer;width: 140px;font-size: 21px;" type="submit" value="Download"/>
-
 
158
		</div>
-
 
159
	</form>
-
 
160
	<br/>
-
 
161
	<div style='padding:20px;border-bottom:2px solid #2789C1;'>
-
 
162
		<h3>Request new password</h3>
-
 
163
		<div style='padding:20px;'>
-
 
164
			<a href="report!sendPassword">Click here</a> to request a new password.
-
 
165
		</div>
-
 
166
	</div>
-
 
167
	<br/>
64
</body>
168
</body>
65
</html>
169
</html>
66
170