Subversion Repositories SmartDukaan

Rev

Rev 7833 | Rev 8172 | 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( {
7800 kshitij.so 24
    "bAutoWidth": false,
25
    "iDisplayLength": 15,
26
		"aoColumns": [
27
      null,
28
      null,
29
      null,
30
      null,
31
      null,
32
	  null,
33
      null,
34
      null,
35
      null,
36
	  { "sType": "html" },
37
	  { "sType": "html" },
38
      null
39
    ],
40
    "aLengthMenu": [[15, 25 ,50, 100, -1], [15 ,25, 50, 100, "All"]]
7283 kshitij.so 41
  } );
42
} );
43
</script>
44
<title>Amazon Listed Items</title>
45
</head>
46
<body>
7591 kshitij.so 47
	<div>
7603 kshitij.so 48
       <a style="padding-left: 10px;" href="/Support/logout">Logout</a>
8073 kshitij.so 49
	   <a style="padding-left: 10px;" href="/Support/amazon-list!runAsinJob">Run Asin Job</a>
7591 kshitij.so 50
</div>
7283 kshitij.so 51
<div>
52
    <div style="color:blue;">
53
    #sactionmessage()
54
    </div>
55
    <div style="color:red;">
56
    #sactionerror()
57
    </div>
58
 
59
    #drawAllItems($action.fetchItems())
60
</div>
61
 
62
</body>
63
</html>
64
 
65
#macro (drawAllItems $items)
66
    <table id="amazon-listed" style="width: 100%">
67
        <thead>
68
            <tr>
69
                <th>Item Id</th>
70
				<th>Category</th>
71
				<th>Asin</th>
7603 kshitij.so 72
				<th>Saholic / Amazon Item Description</th>
73
				<th>Price Difference</th>
74
				<th>Risky</th>
7800 kshitij.so 75
                 <th>Status</th>
7603 kshitij.so 76
				<th>Shipping</th>
7833 vikram.rag 77
				<th>Inventory Override</th>
7800 kshitij.so 78
				<th>Mfn Listing</th>
79
				<th>Fba Listing</th>
7283 kshitij.so 80
				<th>Action</th>
81
            </tr>
82
        </thead>
83
        <tbody>
84
    #foreach ( $item in $items )
85
            <tr style="border: 1px">
86
                <td>$item.getItemid()</td>
87
				<td>$item.getCategory()</td>
88
				<td>$item.getAsin()</td>
7800 kshitij.so 89
				#if ($mapItem.get($item.getItemid()))
7603 kshitij.so 90
				<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>
91
				#else
7800 kshitij.so 92
					#set ($saholicItem = $action.getSaholicItem("$item.getItemid()"))
93
				<td style="text-align:left;">SAHOLIC: $saholicItem.getBrand() $saholicItem.getModelName() $saholicItem.getModelNumber() $saholicItem.getColor()<br /> AMAZON: $item.getName()</td>
7603 kshitij.so 94
				#end
7800 kshitij.so 95
				#if ($mapItem.get($item.getItemid()))
96
					#if($mapItem.get($item.getItemid()).getSellingPrice() != $item.getFbaPrice() || $mapItem.get($item.getItemid()).getSellingPrice() != $item.getSellingPrice())
97
						<td>Saholic: $mapItem.get($item.getItemid()).getSellingPrice() / FBA: $item.getFbaPrice() / MFN: $item.getSellingPrice()</td>
98
					#else
99
						<td>-</td>
100
					#end
7603 kshitij.so 101
				#else
7800 kshitij.so 102
					#if($saholicItem.getSellingPrice() != $item.getFbaPrice() || $saholicItem.getSellingPrice() != $item.getSellingPrice())
103
						<td>$saholicItem.getSellingPrice() / FBA: $item.getFbaPrice() / MFN: $item.getSellingPrice()</td>
104
					#else
105
						<td>-</td>
106
					#end
7603 kshitij.so 107
				#end
7800 kshitij.so 108
				#if ($mapItem.get($item.getItemid()))
109
					#if($mapItem.get($item.getItemid()).isRisky())
110
						<td><a style="visibility: hidden;">A</a><img alt="active" src="/Support/images/active.ico" style="width: 18px;"></td>
111
					#else
112
						<td><a style="visibility: hidden;">I</a><img alt="Inactive" src="/Support/images/inactive.ico" style="width: 18px;"></td>
113
					#end
114
				#else
115
					#if($saholicItem.isRisky())
116
						<td><a style="visibility: hidden;">A</a><img alt="active" src="/Support/images/active.ico" style="width: 18px;"></td>
117
					#else
118
						<td><a style="visibility: hidden;">I</a><img alt="Inactive" src="/Support/images/inactive.ico" style="width: 18px;"></td>
119
					#end
120
				#end
121
                #if ($mapItem.get($item.getItemid()))
122
					<td>$mapItem.get($item.getItemid()).getItemStatus()</td>
123
				#else
124
					<td>$saholicItem.getItemStatus()</td>
125
				#end
7603 kshitij.so 126
				#if($item.isIsCustomTime())
7800 kshitij.so 127
					<td>Set To Custom</td>
7603 kshitij.so 128
				#else
7800 kshitij.so 129
					<td>Set To Default</td>
7603 kshitij.so 130
				#end
131
				#if($item.isIsInventoryOverride())
7800 kshitij.so 132
					<td><a style="visibility: hidden;">A</a><img alt="active" src="/Support/images/active.ico" style="width: 18px;"></td>
7603 kshitij.so 133
				#else
7800 kshitij.so 134
					<td><a style="visibility: hidden;">I</a><img alt="Inactive" src="/Support/images/inactive.ico" style="width: 18px;"></td>
7603 kshitij.so 135
				#end
7800 kshitij.so 136
				#if($item.isIsNonFba())
137
					<td><a style="visibility: hidden;">A</a><img alt="active" src="/Support/images/active.ico" style="width: 18px;"></td>
138
				#else
139
				<td><a style="visibility: hidden;">I</a><img alt="inactive" src="/Support/images/inactive.ico" style="width: 18px;"></td>
140
				#end
141
				#if($item.isIsFba())
142
					<td><a style="visibility: hidden;">A</a><img alt="active" src="/Support/images/active.ico" style="width: 18px;"></td>
143
				#else
144
					<td><a style="visibility: hidden;">I</a><img alt="inactive" src="/Support/images/inactive.ico" style="width: 18px;"></td>
145
				#end
7283 kshitij.so 146
				<td><a href="/Support/amazon-list/$item.getItemid()/edit">View/Edit</a></td>
147
				</td>
148
            </tr>
149
    #end
150
        </tbody>
151
    </table>
152
	<br>
153
		<br>
154
			<br>
155
		<hr/>
156
#end