Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
7285 rajveer 1
<html>
2
<head>
3
	<title>Active Coupons</title>
4
	<style>
5
table	{	font-size: 12px;	}
6
td	{	border-color: #000000;	}
7
.payments, .carts	{	text-align: center;	}
8
    </style>
9
</head>
10
<body>
11
 
12
	<form name="itemstring" action="$action.getServletContextPath()/store-admin" method="get">
13
		Search Item: <input type="text" name="itemString">
14
		<input type="submit" value="Submit">
15
	</form>
16
 
17
	#set($items = $action.searchItem())
18
 
19
	#if($items && !$items.isEmpty())
20
	<table border="1" cellspacing="0" cellpadding="4">
21
	<thead>
22
		<tr>
23
			<th>ItemId</th>
24
			<th>Product</th>
25
			<th>Active For Store?</th>
26
			<th>Action</th>
7306 rajveer 27
			<th>Min Price</th>
28
			<th>Max Price</th>
29
			<th>Min Advance Price</th>
30
			<th>Recommended Price</th>
7285 rajveer 31
        </tr>
32
    </thead>
33
	<tbody>
7306 rajveer 34
		#set($sps = $action.getStorePricings($items))
35
		#set($i = 0)
7285 rajveer 36
		#foreach($item in $items)
7306 rajveer 37
		#set($sp = $sps.get($i))
38
		#set($i = $i + 1)
7285 rajveer 39
	    <tr>
40
			<td>$item.getId()</td>
41
            <td>$action.getProductNameFromItem($item)</td>
42
			<td>$item.isActiveOnStore()</td>
43
			<td><a href="$action.getServletContextPath()/store-admin/$item.getId()">Store Pricing</a></td>
7306 rajveer 44
			<td>$sp.getMinPrice()</td>
45
			<td>$sp.getMaxPrice()</td>
46
			<td>$sp.getMinAdvancePrice()</td>
47
			<td>$sp.getRecommendedPrice()</td>
7285 rajveer 48
		</tr>
49
		#end
50
	</tbody>
51
    </table>
52
	#end
53
 
54
	#set($sp = $action.getStorePricing())
55
 
56
	#if($sp)
57
	#set($item = $action.getItem($sp.getItemId()))	
58
	<form name="storepricing" action="$action.getServletContextPath()/store-admin" method="post">
59
		ItemId: 								<input type="text" readonly name="itemId" value="$sp.getItemId()"><br>
60
		Product Detail                     		<input type="text" disabled name="productName" value="$action.getProductNameFromItem($item)"><br>
61
		Min Price: 								<input type="text" name="minPrice" value="$sp.getMinPrice()"><br>
62
		Max Price: 								<input type="text" name="maxPrice" value="$sp.getMaxPrice()"><br>
63
		Min Advance Amount: 					<input type="text" name="minAdvancePrice"  value="$sp.getMinAdvancePrice()"><br>
64
		Recommended Selling Price: 				<input type="text" name="recommendedPrice"  value="$sp.getRecommendedPrice()"><br>
65
		Active on store:                        <input type="checkbox" name="activeonstore" #if($item.isActiveOnStore()) checked #end><br>
66
		<input type="submit" value="Update">
67
	</form>
68
 
69
	#end
70
	<br>
71
	<br>
72
 
73
 
74
</body>
75
</html>