Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
7283 kshitij.so 1
<!DOCTYPE html PUBLIC 
2
    "-//W3C//DTD XHTML 1.1 Transitional//EN"
3
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<head>
7365 kshitij.so 6
#set($mapItem = $action.getAliveItemMap())
7420 kshitij.so 7
<link type="image/x-icon" href="/Support/images/favicon_alt.ico" rel="shortcut icon">
7283 kshitij.so 8
<link href="/Support/css/demo_page_amazon.css" type="text/css" rel="stylesheet">
9
<link href="/Support/css/demo_table_amazon.css" type="text/css" rel="stylesheet">
10
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
11
<script type="text/javascript" src="/Support/js/jquery.dataTables.min.js"></script>
12
<style type="text/css">   
13
* { font-family: Verdana; font-size: 96%; }
14
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
15
p { clear: both; }
16
.submit { margin-left: 12em; }
17
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
18
ul { padding-left: 13px;}
19
.dataTable { width: 100%;}
20
</style>
21
<script type="text/javascript">
22
$(document).ready( function() {
23
  $('#amazon-listed').dataTable( {
24
    "iDisplayLength": 25,
25
    "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]]
26
  } );
27
} );
28
</script>
29
<title>Amazon Listed Items</title>
30
</head>
31
<body>
32
<div>
33
    <div style="color:blue;">
34
    #sactionmessage()
35
    </div>
36
    <div style="color:red;">
37
    #sactionerror()
38
    </div>
39
 
40
    #drawAllItems($action.fetchItems())
41
</div>
42
 
43
</body>
44
</html>
45
 
46
#macro (drawAllItems $items)
47
    <table id="amazon-listed" style="width: 100%">
48
        <thead>
49
            <tr>
50
                <th>Item Id</th>
51
				<th>Category</th>
52
				<th>Asin</th>
7365 kshitij.so 53
				<th>Saholic Item Description</th>
54
				<th>Amazon Item Description</th>
7283 kshitij.so 55
				<th>Action</th>
56
            </tr>
57
        </thead>
58
        <tbody>
59
    #foreach ( $item in $items )
60
            <tr style="border: 1px">
61
                <td>$item.getItemid()</td>
62
				<td>$item.getCategory()</td>
63
				<td>$item.getAsin()</td>
7365 kshitij.so 64
				<td>$mapItem.get($item.getItemid())</td>  
7283 kshitij.so 65
				<td>$item.getName()</td>
66
				<td><a href="/Support/amazon-list/$item.getItemid()/edit">View/Edit</a></td>
67
				</td>
68
            </tr>
69
    #end
70
        </tbody>
71
    </table>
72
 
73
	<br>
74
		<br>
75
			<br>
76
 
77
		<hr/>
78
 
79
#end