Subversion Repositories SmartDukaan

Rev

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

Rev 7351 Rev 7382
Line 12... Line 12...
12
	<form name="itemstring" action="$action.getServletContextPath()/store-admin" method="get">
12
	<form name="itemstring" action="$action.getServletContextPath()/store-admin" method="get">
13
		Search Item: <input type="text" name="itemString">
13
		Search Item: <input type="text" name="itemString">
14
		<input type="submit" value="Submit">
14
		<input type="submit" value="Submit">
15
	</form>
15
	</form>
16
 
16
 
-
 
17
	#set($msgs = $action.getMessages())
-
 
18
	#if($msgs)
-
 
19
		#foreach($msg in $msgs)
-
 
20
			<h3 style="color:red;">$msg</h3>
-
 
21
		#end
-
 
22
	#end
-
 
23
	
17
	#set($items = $action.searchItem())
24
	#set($items = $action.searchItem())
18
	
25
	
-
 
26
	#if($itemString)
-
 
27
		<h1>Search Results for : "$itemString"</h1>
-
 
28
	#elseif($id)
-
 
29
		<a href="$action.getServletContextPath()/store-admin">Back to Home</a><br><br>
-
 
30
		<h1>Store Pring Details</h1>
-
 
31
		
-
 
32
	#else
-
 
33
		<h1>Latest Arrivals</h1>
-
 
34
	#end
-
 
35
	
-
 
36
	
-
 
37
	
19
	#if($items && !$items.isEmpty())
38
	#if($items && !$items.isEmpty())
20
	<table border="1" cellspacing="0" cellpadding="4">
39
	<table border="1" cellspacing="0" cellpadding="4">
21
	<thead>
40
	<thead>
22
		<tr>
41
		<tr>
23
			<th>ItemId</th>
42
			<th>ItemId</th>
Line 37... Line 56...
37
		#set($sps = $action.getStorePricings($items))
56
		#set($sps = $action.getStorePricings($items))
38
		#set($i = 0)
57
		#set($i = 0)
39
		#foreach($item in $items)
58
		#foreach($item in $items)
40
		#set($sp = $sps.get($i))
59
		#set($sp = $sps.get($i))
41
		#set($i = $i + 1)
60
		#set($i = $i + 1)
-
 
61
		#if(!(!$itemString && $item.isActiveOnStore()))
42
	    <tr>
62
	    <tr>
43
			<td>$item.getId()</td>
63
			<td>$item.getId()</td>
44
            <td>$action.getProductNameFromItem($item)</td>
64
            <td>$action.getProductNameFromItem($item)</td>
45
			<td>#if($item.isActiveOnStore())$item.isActiveOnStore()#end</td>
65
			<td>#if($item.isActiveOnStore())$item.isActiveOnStore()#end</td>
46
			<td><a href="$action.getServletContextPath()/store-admin/$item.getId()">Store Pricing</a></td>
66
			<td><a href="$action.getServletContextPath()/store-admin/$item.getId()">Store Pricing</a></td>
Line 51... Line 71...
51
			<td>$sp.getAbsoluteMinPrice()</td>
71
			<td>$sp.getAbsoluteMinPrice()</td>
52
			<td>$sp.getFreebieItemId()</td>
72
			<td>$sp.getFreebieItemId()</td>
53
			<td>$sp.getBestDealText()</td>
73
			<td>$sp.getBestDealText()</td>
54
		</tr>
74
		</tr>
55
		#end
75
		#end
-
 
76
		#end
56
	</tbody>
77
	</tbody>
57
    </table>
78
    </table>
58
	#end
79
	#end
59
	
80
	
60
	#set($sp1 = $action.getStorePricing())
81
	#set($sp1 = $action.getStorePricing())
Line 70... Line 91...
70
		Recommended Selling Price: 				<input type="text" name="recommendedPrice"  value="$sp1.getRecommendedPrice()"><br>
91
		Recommended Selling Price: 				<input type="text" name="recommendedPrice"  value="$sp1.getRecommendedPrice()"><br>
71
		Absolute Minimum Price: 				<input type="text" name="absoluteMinPrice"  value="$sp1.getAbsoluteMinPrice()"><br>
92
		Absolute Minimum Price: 				<input type="text" name="absoluteMinPrice"  value="$sp1.getAbsoluteMinPrice()"><br>
72
		Freebie ItemId: 						<input type="text" name="freebieItemId" value="$sp1.getFreebieItemId()"><br>
93
		Freebie ItemId: 						<input type="text" name="freebieItemId" value="$sp1.getFreebieItemId()"><br>
73
		Best Deal Text: 						<input type="text" name="bestDealText" value="$sp1.getBestDealText()"><br>
94
		Best Deal Text: 						<input type="text" name="bestDealText" value="$sp1.getBestDealText()"><br>
74
		Active on store:                        <input type="checkbox" name="activeonstore" #if($item.isActiveOnStore()) checked #end><br>
95
		Active on store:                        <input type="checkbox" name="activeonstore" #if($item.isActiveOnStore()) checked #end><br>
-
 
96
		Update All Colors:                      <input type="checkbox" name="allcolors" checked><br>
75
		<input type="submit" value="Update">
97
		<input type="submit" value="Update">
76
	</form>
98
	</form>
77
		
99
		
78
	#end
100
	#end
79
	<br>
101
	<br>