Subversion Repositories SmartDukaan

Rev

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

<!DOCTYPE html PUBLIC 
    "-//W3C//DTD XHTML 1.1 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
#set($mapItem = $action.getAliveItemMap())
<link type="image/x-icon" href="/Support/images/favicon_alt.ico" rel="shortcut icon">
<link href="/Support/css/demo_page_amazon.css" type="text/css" rel="stylesheet">
<link href="/Support/css/demo_table_amazon.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="/Support/js/jquery.dataTables.min.js"></script>
<style type="text/css">   
* { font-family: Verdana; font-size: 96%; }
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
p { clear: both; }
.submit { margin-left: 12em; }
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
ul { padding-left: 13px;}
.dataTable { width: 100%;}
</style>
<script type="text/javascript">
$(document).ready( function() {
  $('#amazon-listed').dataTable( {
    "iDisplayLength": 25,
    "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]]
  } );
} );
</script>
<title>Amazon Listed Items</title>
</head>
<body>
<div>
    <div style="color:blue;">
    #sactionmessage()
    </div>
    <div style="color:red;">
    #sactionerror()
    </div>
    
    #drawAllItems($action.fetchItems())
</div>

</body>
</html>

#macro (drawAllItems $items)
    <table id="amazon-listed" style="width: 100%">
        <thead>
            <tr>
                <th>Item Id</th>
                                <th>Category</th>
                                <th>Asin</th>
                                <th>Saholic Item Description</th>
                                <th>Amazon Item Description</th>
                                <th>Action</th>
            </tr>
        </thead>
        <tbody>
    #foreach ( $item in $items )
            <tr style="border: 1px">
                <td>$item.getItemid()</td>
                                <td>$item.getCategory()</td>
                                <td>$item.getAsin()</td>
                                <td>$mapItem.get($item.getItemid())</td>  
                                <td>$item.getName()</td>
                                <td><a href="/Support/amazon-list/$item.getItemid()/edit">View/Edit</a></td>
                                </td>
            </tr>
    #end
        </tbody>
    </table>
        
        <br>
                <br>
                        <br>
                
                <hr/>

#end