Subversion Repositories SmartDukaan

Rev

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

<html>
<head>
        <title>Active Coupons</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($items = $action.searchItem())
        
        #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>
        </tr>
    </thead>
        <tbody>
                #foreach($item in $items)
            <tr>
                        <td>$item.getId()</td>
            <td>$action.getProductNameFromItem($item)</td>
                        <td>$item.isActiveOnStore()</td>
                        <td><a href="$action.getServletContextPath()/store-admin/$item.getId()">Store Pricing</a></td>
                </tr>
                #end
        </tbody>
    </table>
        #end
        
        #set($sp = $action.getStorePricing())
        
        #if($sp)
        #set($item = $action.getItem($sp.getItemId()))  
        <form name="storepricing" action="$action.getServletContextPath()/store-admin" method="post">
                ItemId:                                                                 <input type="text" readonly name="itemId" value="$sp.getItemId()"><br>
                Product Detail                                  <input type="text" disabled name="productName" value="$action.getProductNameFromItem($item)"><br>
                Min Price:                                                              <input type="text" name="minPrice" value="$sp.getMinPrice()"><br>
                Max Price:                                                              <input type="text" name="maxPrice" value="$sp.getMaxPrice()"><br>
                Min Advance Amount:                                     <input type="text" name="minAdvancePrice"  value="$sp.getMinAdvancePrice()"><br>
                Recommended Selling Price:                              <input type="text" name="recommendedPrice"  value="$sp.getRecommendedPrice()"><br>
                Active on store:                        <input type="checkbox" name="activeonstore" #if($item.isActiveOnStore()) checked #end><br>
                <input type="submit" value="Update">
        </form>
                
        #end
        <br>
        <br>
        

</body>
</html>