Subversion Repositories SmartDukaan

Rev

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