Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
749 chandransh 1
<head>
2
	<title>Saholic Logistics Support</title>
3
	<script language="javascript" src="js/jquery-1.4.2.js" type="text/javascript"></script>
4
</head>
5
<body>
6
	<div id="login" align="center">
7
	<p>
8
		Welcome to Saholic Logistics Support Center.<br/>
9
		Please select the location you want the details for.
10
	</p>
11
	<label>Warehouse:</label>
12
	<select name="warehouseId" id="warehouseId">
754 chandransh 13
		#set( $warehouses = $action.getWarehouses())
14
		#foreach($warehouseId in $warehouses.keySet())
15
		<option value="$warehouseId">$warehouses.get($warehouseId)</option>
16
		#end
749 chandransh 17
	</select>
18
	<br/>
19
	<a href="#">Download Report</a>
20
	</div>
21
	<script>
22
		$('a').click(function(e){
23
			e.preventDefault();
24
			window.location.href = "courier-details/" + $("#warehouseId option:selected").val();
25
		});
26
 
27
		function getCourierDetails(){
28
			alert("Hi there");
29
			jQuery.ajax({
30
              type: "GET",
31
              url: "courier-details/" + $("#warehouseId option:selected").val(),
32
			  success: function(msg){
33
			  		alert("Returned successfully");
34
			  		return false;
35
			  }
36
         	});
37
 
38
			return false;
39
		}
40
	</script>
41
</body>