Rev 7383 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<html><head><title>Dashboard for store pricing</title><style>table { font-size: 12px; }td { border-color: #000000; }.payments, .carts { text-align: center; }</style></head><body><form name="itemstring" action="$action.getServletContextPath()/store-admin" method="get">Search Item: <input type="text" name="itemString"><input type="submit" value="Submit"></form>#set($msgs = $action.getMessages())#if($msgs)#foreach($msg in $msgs)<h3 style="color:red;">$msg</h3>#end#end#set($items = $action.searchItem())#if($itemString)<h1>Search Results for : "$itemString"</h1>#elseif($id)<a href="$action.getServletContextPath()/store-admin">Back to Home</a><br><br><h1>Store Pring Details</h1>#else<h1>Latest Arrivals</h1>#end#if($items && !$items.isEmpty())<table border="1" cellspacing="0" cellpadding="4"><thead><tr><th>ItemId</th><th>Product</th><th>Active For Store?</th><th>Action</th><th>Min Price</th><th>Max Price</th><th>Min Advance Price</th><th>City Head Minimum</th><th>Recommended Selling Price</th><th>Freebie ItemId</th><th>Best Deal Text</th></tr></thead><tbody>#set($sps = $action.getStorePricings($items))#set($i = 0)#foreach($item in $items)#set($sp = $sps.get($i))#set($i = $i + 1)#if(!(!$itemString && $item.isActiveOnStore()))<tr><td>$item.getId()</td><td>$action.getProductNameFromItem($item)</td><td>#if($item.isActiveOnStore())$item.isActiveOnStore()#end</td><td><a href="$action.getServletContextPath()/store-admin/$item.getId()">Store Pricing</a></td><td>$sp.getMinPrice()</td><td>$sp.getMaxPrice()</td><td>$sp.getMinAdvancePrice()</td><td>$sp.getAbsoluteMinPrice()</td><td>$sp.getRecommendedPrice()</td><td>$sp.getFreebieItemId()</td><td>$sp.getBestDealText()</td></tr>#end#end</tbody></table>#end#set($sp1 = $action.getStorePricing())#if($sp1)#set($item = $action.getItem($sp1.getItemId()))<form name="storepricing" action="$action.getServletContextPath()/store-admin" method="post">ItemId: <input type="text" readonly name="itemId" value="$sp1.getItemId()"><br>Product Detail <input type="text" disabled name="productName" value="$action.getProductNameFromItem($item)"><br>Min Price: <input type="text" name="minPrice" value="$sp1.getMinPrice()"><br>Max Price: <input type="text" name="maxPrice" value="$sp1.getMaxPrice()"><br>Min Advance Amount: <input type="text" name="minAdvancePrice" value="$sp1.getMinAdvancePrice()"><br>Recommended Selling Price: <input type="text" name="recommendedPrice" value="$sp1.getRecommendedPrice()"><br>City Head Minimum: <input type="text" name="absoluteMinPrice" value="$sp1.getAbsoluteMinPrice()"><br>Freebie ItemId: <input type="text" name="freebieItemId" value="$sp1.getFreebieItemId()"><br>Best Deal Text: <input type="text" name="bestDealText" value="#if($sp1.getBestDealText()) $sp1.getBestDealText() #end"><br>Active on store: <input type="checkbox" name="activeonstore" #if($item.isActiveOnStore()) checked #end><br>Update All Colors: <input type="checkbox" name="allcolors" checked><br><input type="submit" value="Update"></form>#end<br><br></body></html>