Subversion Repositories SmartDukaan

Rev

Rev 7420 | Rev 7603 | 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>
7591 kshitij.so 32
	<div>
33
       <a style="padding-left: 10px;" href="/Support/logout">LOGOUT</a>
34
</div>
7283 kshitij.so 35
<div>
36
    <div style="color:blue;">
37
    #sactionmessage()
38
    </div>
39
    <div style="color:red;">
40
    #sactionerror()
41
    </div>
42
 
43
    #drawAllItems($action.fetchItems())
44
</div>
45
 
46
</body>
47
</html>
48
 
49
#macro (drawAllItems $items)
50
    <table id="amazon-listed" style="width: 100%">
51
        <thead>
52
            <tr>
53
                <th>Item Id</th>
54
				<th>Category</th>
55
				<th>Asin</th>
7365 kshitij.so 56
				<th>Saholic Item Description</th>
57
				<th>Amazon Item Description</th>
7283 kshitij.so 58
				<th>Action</th>
59
            </tr>
60
        </thead>
61
        <tbody>
62
    #foreach ( $item in $items )
63
            <tr style="border: 1px">
64
                <td>$item.getItemid()</td>
65
				<td>$item.getCategory()</td>
66
				<td>$item.getAsin()</td>
7365 kshitij.so 67
				<td>$mapItem.get($item.getItemid())</td>  
7283 kshitij.so 68
				<td>$item.getName()</td>
69
				<td><a href="/Support/amazon-list/$item.getItemid()/edit">View/Edit</a></td>
70
				</td>
71
            </tr>
72
    #end
73
        </tbody>
74
    </table>
75
 
76
	<br>
77
		<br>
78
			<br>
79
 
80
		<hr/>
81
 
82
#end