| 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,
|
| 7603 |
kshitij.so |
25 |
"bAutoWidth": false,
|
| 7283 |
kshitij.so |
26 |
"aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]]
|
|
|
27 |
} );
|
|
|
28 |
} );
|
|
|
29 |
</script>
|
|
|
30 |
<title>Amazon Listed Items</title>
|
|
|
31 |
</head>
|
|
|
32 |
<body>
|
| 7591 |
kshitij.so |
33 |
<div>
|
| 7603 |
kshitij.so |
34 |
<a style="padding-left: 10px;" href="/Support/logout">Logout</a>
|
| 7591 |
kshitij.so |
35 |
</div>
|
| 7283 |
kshitij.so |
36 |
<div>
|
|
|
37 |
<div style="color:blue;">
|
|
|
38 |
#sactionmessage()
|
|
|
39 |
</div>
|
|
|
40 |
<div style="color:red;">
|
|
|
41 |
#sactionerror()
|
|
|
42 |
</div>
|
|
|
43 |
|
|
|
44 |
#drawAllItems($action.fetchItems())
|
|
|
45 |
</div>
|
|
|
46 |
|
|
|
47 |
</body>
|
|
|
48 |
</html>
|
|
|
49 |
|
|
|
50 |
#macro (drawAllItems $items)
|
|
|
51 |
<table id="amazon-listed" style="width: 100%">
|
|
|
52 |
<thead>
|
|
|
53 |
<tr>
|
|
|
54 |
<th>Item Id</th>
|
|
|
55 |
<th>Category</th>
|
|
|
56 |
<th>Asin</th>
|
| 7603 |
kshitij.so |
57 |
<th>Saholic / Amazon Item Description</th>
|
|
|
58 |
<th>Price Difference</th>
|
|
|
59 |
<th>Risky</th>
|
|
|
60 |
<th>Shipping</th>
|
|
|
61 |
<th>Inventory</th>
|
| 7283 |
kshitij.so |
62 |
<th>Action</th>
|
|
|
63 |
</tr>
|
|
|
64 |
</thead>
|
|
|
65 |
<tbody>
|
|
|
66 |
#foreach ( $item in $items )
|
|
|
67 |
<tr style="border: 1px">
|
|
|
68 |
<td>$item.getItemid()</td>
|
|
|
69 |
<td>$item.getCategory()</td>
|
|
|
70 |
<td>$item.getAsin()</td>
|
| 7603 |
kshitij.so |
71 |
<td style="text-align:left;">SAHOLIC: $mapItem.get($item.getItemid()).getBrand() $mapItem.get($item.getItemid()).getModelName() $mapItem.get($item.getItemid()).getModelNumber() $mapItem.get($item.getItemid()).getColor()<br /> AMAZON: $item.getName()</td>
|
|
|
72 |
#if($mapItem.get($item.getItemid()).getSellingPrice() != $item.getFbaPrice() || $mapItem.get($item.getItemid()).getSellingPrice() != $item.getSellingPrice())
|
|
|
73 |
<td>Saholic: $mapItem.get($item.getItemid()).getSellingPrice() / FBA: $item.getFbaPrice() / MFN: $item.getSellingPrice()</td>
|
|
|
74 |
#else
|
|
|
75 |
<td>-</td>
|
|
|
76 |
#end
|
|
|
77 |
#if($mapItem.get($item.getItemid()).isRisky())
|
|
|
78 |
<td>Risky</td>
|
|
|
79 |
#else
|
|
|
80 |
<td></td>
|
|
|
81 |
#end
|
|
|
82 |
#if($item.isIsCustomTime())
|
|
|
83 |
<td>Set To Custom</td>
|
|
|
84 |
#else
|
|
|
85 |
<td>Set To Default</td>
|
|
|
86 |
#end
|
|
|
87 |
#if($item.isIsInventoryOverride())
|
|
|
88 |
<td>Overridden</td>
|
|
|
89 |
#else
|
|
|
90 |
<td></td>
|
|
|
91 |
#end
|
| 7283 |
kshitij.so |
92 |
<td><a href="/Support/amazon-list/$item.getItemid()/edit">View/Edit</a></td>
|
|
|
93 |
</td>
|
|
|
94 |
</tr>
|
|
|
95 |
#end
|
|
|
96 |
</tbody>
|
|
|
97 |
</table>
|
|
|
98 |
|
|
|
99 |
<br>
|
|
|
100 |
<br>
|
|
|
101 |
<br>
|
|
|
102 |
|
|
|
103 |
<hr/>
|
|
|
104 |
|
|
|
105 |
#end
|