Subversion Repositories SmartDukaan

Rev

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