Subversion Repositories SmartDukaan

Rev

Rev 7343 | Rev 7348 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7343 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">
3
<head>
4
	<title>Saholic Catalog</title>
5
	<link rel="stylesheet" href="css/storewebsite.css" type="text/css" />
6
	<script language="javascript" type="text/javascript" src="/storewebsite/js/jquery-1.4.2.js"></script>
7
    <script language="javascript" type="text/javascript" src="/storewebsite/js/storewebsite.js"></script>
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
 
29
		h3{
30
			padding-left:20px;
31
		}
32
	</style>
33
</head>
34
<body style="margin: 0;">
35
	<div style="line-height:37px;height:37px;background-color:#333;color:white;">
7346 anupam.sin 36
    	<span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">ANC</span>
7343 anupam.sin 37
    	<a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/home">HOME</a>
38
    	<a style="color:white;" href="/storewebsite/!doLogout">Logout</a>	
39
    </div>
40
 
41
    <div style="line-height:60px;height: 60px;background-color:#DBEEFF;color: #333333;margin: 0px;border-bottom:1px solid #67ABD3">
42
    	<img style="float:left;" src="/storewebsite/images/Hotspot-Logo.jpg">
43
		<span style="font-size: 35px;font-family:'Verdana', Verdana, sans-serif;float:left">Online Catalog</span>
44
        <img style="float:right;margin-right:20px;" src="/storewebsite/images/Saholic-Logo.jpg">
45
    </div>
46
	<h3>Search Orders</h3>
47
	#if($action.getSearchError() != "")
48
    	<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
49
    		$action.getSearchError()
50
    	</div>
51
	#end
52
 
53
	<form style="padding:20px;border-bottom:1px solid #2789C1;" id="search" action="report!search" method="POST">
54
		<div class="row">
55
        	<div class="text">Please enter the order number : </div>
56
        	<div class="input-div">
57
				#if($action.getNumber())
58
					#set($q=$action.getNumber())
59
				#else
60
					#set($q="")
61
				#end
62
    			<input class="inputbox padding15" type="text" name="number" value="$q">
63
 
64
    		</div><div class="input-div">
65
			<input style="font-size:15px; font-weight:bold;height:26px;width:90px;background-color:#2789C1;border:1px solid blue;border-radius:5px;color:white" type="submit" value="Search">
66
		</div>
67
        </div>
68
		#if(!$action.getSearchResult().isEmpty())
69
    		<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>
70
    		<table width="100%">
71
                <thead>
72
                  <tr>
73
                    <th>Order ID</th>
74
        			<th>Order Date</th>
75
        			<th>Product</th>
76
        			<th>Status</th>
77
        			<th>Advance</th>
78
        			<th>Amount</th>
79
					<th>Cancellation</th>
80
					<th></th>
81
                  </tr>
82
                </thead>
83
                <tbody>
84
        		#foreach ($order in $action.getSearchResult() )
85
        		  <tr>
86
                    <td>$order.getId()</td>
87
        			<td>$action.getDateTime($order.getCreated_timestamp())</td>
88
        			<td>$action.getProductName($order.getLineitems().get(0))</td>
89
        			<td>$order.getStatusDescription()</td>
90
        			<td>$order.getAdvanceAmount()</td>
91
					<td>$order.getTotal_amount()</td>
92
					<td><input type='button' name='cancel' value='Cancel Order'></input></td>
93
					<td>
94
    					#if($order.getStatus().getValue() > 2)
95
            				<input type='button' name='printInvoice' value='Print Invoice'></input>
96
            			#elseif($order.getStatus().getValue() == 2)
97
            				Approval pending
98
    					#else
99
    						N/A
100
    					#end
101
					</td>
102
                  </tr>
103
        		#end
104
                </tbody>
105
    		</table>
106
		#end
107
 
108
	</form>
109
	<br/>
110
 
111
	<div style="padding-bottom:20px;border-bottom:1px solid #2789C1;">
112
	<h3>Orders for Today
113
	</h3>
114
 
115
	#if($orders.size() == 0)
116
		<div class="padding-row" style="font-size: 20px; font-weight:bold;color: #AAAAAA;text-align: center;margin: 5px;padding: 5px;">
117
    		NO ORDERS FOR TODAY
118
    	</div>
119
	#else
120
		<table width="100%">
121
        <thead>
122
          <tr>
123
            <th>Order ID</th>
124
			<th>Product</th>
125
			<th>Status</th>
126
			<th>Collection</th>
127
			<th>Total Price</th>
128
			<th>Invoice</th>
129
			<th>Cancel</th>
130
          </tr>
131
        </thead>
132
        <tbody>
133
		#foreach ( $order in $orders )
134
		  <tr>
135
            <td>$order.getId()</td>
136
			<td>$action.getProductName($order.getLineitems().get(0))</td>
137
			<td>$order.getStatusDescription()</td>
138
			<td>$order.getAdvanceAmount()</td>
139
			<td>$order.getTotal_amount()</td>
140
			<td>
141
			#if($order.getStatus().getValue() > 2)
142
				<a href='/storewebsite/report!downloadInvoice?number=$order.getId()' target='_blank' style='padding:3px;background-color:orange;pointer:cursor;font-size:15px;text-decoration:none'>Invoice</a>
143
			#else
144
				Approval pending
145
			#end
146
			</td>
147
			<td><input type='button' name='printInvoice' value='Cancel Order'></input></td>
148
          </tr>
149
		#end
150
        </tbody>
151
	</table>
152
	#end
153
    </div>
154
 
155
	<h3 id='collectionReport'>Collection report for today</h3>
156
	<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST">
157
		<div>
158
			<input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/>
159
		</div>
160
	</form>
161
	<br/>
162
 
163
	<h3 id='statusReport'>Download Report by Status</h3>
164
	<form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadrep" action="report" method="POST">
165
		<div>
166
		Status:<select name="status">
167
			<option value="-1">ALL</option>
168
			<option value="9">INIT</option>
169
			<option value="5">SUCCESS</option>
170
			<option value="4">FAILED</option>
171
			<option value="6">REFUNDED</option>
172
			<option value="10">UNKNOWN</option>
173
		</select>
174
		Date:<select name="dateselector" id="dateselector">
175
			<option value="1" selected="selected">Today</option>
176
			<option value="2">Yesterday</option>
177
			<option value="3">Daterange</option>
178
		</select>
179
		<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>
180
		</div>
181
		<br>
182
		<div>
183
			<input style="height: 30px;background-color: orange;cursor: pointer;width: 140px;font-size: 21px;" type="submit" value="Download"/>
184
		</div>
185
	</form>
186
	<br/>
187
</body>
188
</html>