Subversion Repositories SmartDukaan

Rev

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

Rev 1028 Rev 1075
Line 1... Line 1...
1
<head>
1
<head>
2
	<title>Saholic Logistics Support</title>
2
	<title>Saholic Logistics Support</title>
3
	<script language="javascript" src="js/jquery-1.4.2.js" type="text/javascript"></script>
3
	<script language="javascript" src="$action.getServletContextPath()/js/jquery-1.4.2.js" type="text/javascript"></script>
4
</head>
4
</head>
5
<body>
5
<body>
6
	<div id="login" align="center">
6
	<div id="login" align="center">
7
	<p>
7
    	<p>
8
		Welcome to Saholic Logistics Support Center.<br/>
8
    		Welcome to Saholic Logistics Support Center.<br/>
9
		Please select the location you want the details for.
9
    		Please select the location you want the details for.
10
	</p>
10
    	</p>
11
	<label>Warehouse:</label>
11
    	<label>Warehouse:</label>
12
	<select name="warehouseId" id="warehouseId">
12
    	<select name="warehouseId" id="warehouseId">
13
		#set( $warehouses = $action.getWarehouses())
13
    		#set( $warehouses = $action.getWarehouses())
14
		#foreach($warehouseId in $warehouses.keySet())
14
    		#foreach($warehouseId in $warehouses.keySet())
15
		<option value="$warehouseId">$warehouses.get($warehouseId)</option>
15
    		<option value="$warehouseId" selected="$warehouseId">$warehouses.get($warehouseId)</option>
16
		#end
16
    		#end
17
	</select>
17
    	</select>
18
	<br/>
18
    	<br/>
19
	<a href="#">Download Report</a>
19
    	Download Report for:
-
 
20
    	<select name="day" id="day">
-
 
21
    		<option value="today">Today</option>
-
 
22
    		<option value="yesterday">Yesterday</option>
-
 
23
            <option value="dayBefore">Day before Yesterday</option>
-
 
24
    	</select>
-
 
25
        <button value="Go">Go</button>
20
	</div>
26
	</div>
21
	<script>
27
	<script>
22
		$('a').click(function(e){
28
		$('button').click(function(e){
23
			e.preventDefault();
29
			e.preventDefault();
24
			window.location.href = "courier-details/" + $("#warehouseId option:selected").val();
30
			window.location.href = "$request.getContextPath()/courier-details/" + $("#warehouseId option:selected").val() + "/"+ $("#day option:selected").val() +"";
25
		});
31
		});
26
	</script>
32
	</script>
27
</body>
33
</body>
28
34