Subversion Repositories SmartDukaan

Rev

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