Subversion Repositories SmartDukaan

Rev

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