| 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>
|
|
|
27 |
</tr>
|
|
|
28 |
</thead>
|
|
|
29 |
<tbody>
|
|
|
30 |
#foreach($item in $items)
|
|
|
31 |
<tr>
|
|
|
32 |
<td>$item.getId()</td>
|
|
|
33 |
<td>$action.getProductNameFromItem($item)</td>
|
|
|
34 |
<td>$item.isActiveOnStore()</td>
|
|
|
35 |
<td><a href="$action.getServletContextPath()/store-admin/$item.getId()">Store Pricing</a></td>
|
|
|
36 |
</tr>
|
|
|
37 |
#end
|
|
|
38 |
</tbody>
|
|
|
39 |
</table>
|
|
|
40 |
#end
|
|
|
41 |
|
|
|
42 |
#set($sp = $action.getStorePricing())
|
|
|
43 |
|
|
|
44 |
#if($sp)
|
|
|
45 |
#set($item = $action.getItem($sp.getItemId()))
|
|
|
46 |
<form name="storepricing" action="$action.getServletContextPath()/store-admin" method="post">
|
|
|
47 |
ItemId: <input type="text" readonly name="itemId" value="$sp.getItemId()"><br>
|
|
|
48 |
Product Detail <input type="text" disabled name="productName" value="$action.getProductNameFromItem($item)"><br>
|
|
|
49 |
Min Price: <input type="text" name="minPrice" value="$sp.getMinPrice()"><br>
|
|
|
50 |
Max Price: <input type="text" name="maxPrice" value="$sp.getMaxPrice()"><br>
|
|
|
51 |
Min Advance Amount: <input type="text" name="minAdvancePrice" value="$sp.getMinAdvancePrice()"><br>
|
|
|
52 |
Recommended Selling Price: <input type="text" name="recommendedPrice" value="$sp.getRecommendedPrice()"><br>
|
|
|
53 |
Active on store: <input type="checkbox" name="activeonstore" #if($item.isActiveOnStore()) checked #end><br>
|
|
|
54 |
<input type="submit" value="Update">
|
|
|
55 |
</form>
|
|
|
56 |
|
|
|
57 |
#end
|
|
|
58 |
<br>
|
|
|
59 |
<br>
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
</body>
|
|
|
63 |
</html>
|