Subversion Repositories SmartDukaan

Rev

Rev 8401 | Rev 10922 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8401 Rev 8620
Line 1... Line -...
1
<!DOCTYPE html PUBLIC 
-
 
2
    "-//W3C//DTD XHTML 1.1 Transitional//EN"
-
 
3
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
 
4
    
-
 
5
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-
 
6
<head>
-
 
7
<title>Edit Listing Attributes</title>
-
 
8
<link type="image/x-icon" href="/Support/images/favicon_alt.ico" rel="shortcut icon">
-
 
9
#set ($itemDetail = $action.fetchItemDetail())
1
#set ($itemDetail = $action.fetchItemDetail())
10
#set ($item = $action.getSaholicItem("$itemDetail.getItemid()"))
2
#set ($item = $action.getSaholicItem("$itemDetail.getItemid()"))
11
<style>
3
<style>
12
* { font-family: Verdana; font-size: 96%; }
4
* { font-family: Verdana; font-size: 96%; }
13
		label {
5
		label {
14
    float: left;
6
    float: left;
15
}
7
}
16
 
8
 
17
.spinner {
-
 
18
    position: fixed;
-
 
19
    top: 50%;
-
 
20
    left: 35%;
-
 
21
    margin-top: -50px;
-
 
22
    text-align:center;
-
 
23
    z-index:1234;
-
 
24
    overflow: auto;
-
 
25
}
-
 
26
 
-
 
27
#upload > table {
9
#upload > table {
28
    color: #747474;
10
    color: #747474;
29
    width: 100%;
11
    width: 100%;
30
}
12
}
31
 
13
 
32
#upload thead {
-
 
33
    background: url("/Support/images/head-bcg.jpg") no-repeat scroll right top #0C2C65;
-
 
34
    color: #FFFFFF;
-
 
35
    font-size: 22px;
-
 
36
    font-weight: bold;
-
 
37
    height: 35px;
-
 
38
    padding: 14px 0 0 24px;
-
 
39
}
-
 
40
 
14
 
41
#upload tbody {
15
#upload tbody {
42
    background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
16
    background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
43
    font-weight: bold;
17
    font-weight: bold;
44
}
18
}
Line 48... Line 22...
48
    border-bottom: 1px solid #B3C1DB;
22
    border-bottom: 1px solid #B3C1DB;
49
    border-right: 1px solid #CED9EC;
23
    border-right: 1px solid #CED9EC;
50
    color: #1F3D71;
24
    color: #1F3D71;
51
    height: 25px;
25
    height: 25px;
52
    padding: 10px 0 0 24px;
26
    padding: 10px 0 0 24px;
53
    width: 270px;
-
 
54
}
27
}
55
 
28
 
56
.value {
29
.value {
57
    border-bottom: 1px solid #B3C1DB;
30
    border-bottom: 1px solid #B3C1DB;
58
    border-right: 1px solid #CED9EC;
31
    border-right: 1px solid #CED9EC;
Line 128... Line 101...
128
  $('#cancelbutton').click(function(e) {
101
  $('#cancelbutton').click(function(e) {
129
    window.location.href = '/Support/amazon-list';
102
    window.location.href = '/Support/amazon-list';
130
});
103
});
131
});
104
});
132
</script>
105
</script>
133
<script type="text/javascript">
-
 
134
$(document).ready(function(){
-
 
135
    $('#submit').click(function() {
-
 
136
        $('#spinner').show();
-
 
137
    });
-
 
138
});
-
 
139
</script>
-
 
140
</head>
-
 
141
<body>
-
 
142
	<a href="/Support/amazon-list">Back To Listing</a>
-
 
143
<div id="spinner" class="spinner" style="display:none;">
-
 
144
    <img id="img-spinner" src="/Support/images/spinner.gif" alt="Loading"/>
106
<form id="amazon-form" action="/Support/amazon-list!update" enctype="multipart/form-data" method="post">
145
</div>
-
 
146
<br>
-
 
147
<div id="amazon-form" style="padding-left:15%;width: 70%; display: inline-block;">
107
<div class="left" style="float: left; width: 48%;">
148
<form id="upload" name="amazonList" action="/Support/amazon-list!update" onsubmit="return validateForm()" method="post">
-
 
149
<table style="text-align: center;width: 100%;">
108
<table id="upload" style="text-align: center;width: 100%;height:200px;">
150
<thead>
109
<thead>
151
<tr>
-
 
152
<th colspan="2">Product Details</th>
-
 
153
</tr>
-
 
154
</thead>
110
</thead>
155
<tbody>
111
<tbody>
156
	<tr>
112
<tr style="display:none;">
157
<td class="detail">Item Id</td>
113
<td class="detail">Item Id</td>
158
<td class="value">$itemDetail.getItemid()<input id="itemId" name="itemId" value='$itemDetail.getItemid()'type="hidden"/></td>
114
<td class="value"><input id="itemId" name="itemId" value='$itemDetail.getItemid()'type="text"/></td>
159
</tr>
-
 
160
<tr>    
-
 
161
<td class="detail">Asin</td>
-
 
162
<td class="value">$itemDetail.getAsin()<input id="asin" name="asin" value='$itemDetail.getAsin()'type="hidden"/></td>
-
 
163
</tr>
-
 
164
<tr>
-
 
165
<td class="detail">Item Name</td>
-
 
166
<td class="value">$itemDetail.getName()<input id="itemName" name="itemName" value='$itemDetail.getName()'type="hidden" /></td>
-
 
167
</tr>
115
</tr>
168
<tr>
116
<tr>
169
<td class="detail">Brand</td>
117
<td class="detail">Product Description</td>
170
<td class="value">$itemDetail.getBrand()<input id="brand" name="brand" value='$itemDetail.getBrand()'type="hidden"/></td>
118
<td class="value">$itemDetail.getItemid() | $itemDetail.getName()</td>
171
</tr>
119
</tr>
172
<tr>
120
<tr>
173
<td class="detail">Manufacturer Name</td>
-
 
174
<td class="value">$itemDetail.getManufacturer_name()<input id="manufacturerName" name="manufacturerName" value='$itemDetail.getManufacturer_name()'type="hidden"/></td>
-
 
175
</tr>
-
 
176
<tr>      
-
 
177
<td class="detail">Part Number</td>
-
 
178
<td class="value">$itemDetail.getPart_number()<input id="manufacturerName" name="manufacturerName" value='$itemDetail.getManufacturer_name()'type="hidden"/></td>
-
 
179
</tr>
-
 
180
<tr>      
-
 
181
<td class="detail">Color</td>
121
<td class="detail">Tax Code</td>
182
<td class="value">$itemDetail.getColor()<input id="color" name="color" value='$itemDetail.getColor()'type="hidden"/></td>
-
 
183
</tr>
-
 
184
<tr>
-
 
185
<td class="detail">Saholic Price</td>
-
 
186
<td class="value">$item.getSellingPrice()<input id="saholicPrice" name="saholicPrice" value='$item.getSellingPrice()'type="hidden"/></td>
-
 
187
</tr>
-
 
188
<tr>  
-
 
189
<td class="detail">UPC</td>
122
<td class="value">
190
<td class="value">$itemDetail.getUpc()<input id="upc" name="upc" value='$itemDetail.getUpc()'type="hidden"/></td>
-
 
191
</tr>
-
 
192
<tr>      
-
 
193
<td class="detail">EAN</td>
123
	#if($itemDetail.getTaxCode())
194
<td class="value">$itemDetail.getEan()<input id="ean" name="ean" value='$itemDetail.getEan()'type="hidden"/></td>
124
	<input id="taxCode" name="taxCode" value='$itemDetail.getTaxCode()'type="text"/></td>
195
</tr>
-
 
196
<tr>
-
 
197
<td class="detail">RISKY</td>
-
 
198
<td class="value" style="text-transform : uppercase;">$item.isRisky()</td>
-
 
199
</tr>
-
 
200
<tr>
-
 
201
<td class="detail" style="text-transform : uppercase;">Status</td>
-
 
202
<td class="value">$item.getItemStatus()</td>
-
 
203
</tr>
-
 
204
<tr>      
-
 
205
<td class="detail">Virtual Inventory</td>
-
 
206
<td class="value">$item.getDefaultInventory()</td>
-
 
207
</tr>
-
 
208
<tr>      
-
 
209
<td class="detail">Risky Inventory</td>
-
 
210
<td class="value">$item.getHoldInventory()</td>
-
 
211
</tr>
-
 
212
</tbody>
-
 
213
</table>
-
 
214
<br />
-
 
215
<br />
125
	#else
216
<table id="upload" style="text-align: center;width: 100%;height:200px;">
126
	<input id="taxCode" name="taxCode" value=''type="text"/></td>
217
<thead>
127
	#end
218
<tr>
-
 
219
<th colspan="2">Edit Listing Attributes</th>
-
 
220
</tr>
128
</tr>
221
</thead>
-
 
222
<tbody>
-
 
223
        <tr>
-
 
224
<td class="detail">FBA Listing</td>
129
<td class="detail">FBA Listing</td>
225
<td class="value">#if ($itemDetail.isIsFba())
130
<td class="value">#if ($itemDetail.isIsFba())
226
      <select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
131
      <select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
227
	  <input name="isFba" value='True' type="hidden"/>
132
	  <input name="isFba" value='True' type="hidden"/>
228
	  #else
133
	  #else
Line 247... Line 152...
247
</tr>
152
</tr>
248
<tr>
153
<tr>
249
<td class="detail">MFN Price</td>
154
<td class="detail">MFN Price</td>
250
<td class="value"><input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text"/></td>
155
<td class="value"><input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text"/></td>
251
</tr>
156
</tr>
-
 
157
</tbody>
-
 
158
</table>
-
 
159
</div>
-
 
160
<div class="left" style="float: right; width: 48%;">
-
 
161
<table id="upload" style="text-align: center;width: 100%;height:200px;">
-
 
162
<thead>
-
 
163
</thead>
-
 
164
<tbody>
252
<tr>
165
<tr>
253
<td class="detail">Inventory Override</td>
166
<td class="detail">Inventory Override</td>
254
<td class="value">#if ($itemDetail.isIsInventoryOverride())
167
<td class="value">#if ($itemDetail.isIsInventoryOverride())
255
      <select name="isInventoryOverride"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
168
      <select name="isInventoryOverride"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
256
	  #else
169
	  #else
Line 311... Line 224...
311
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
224
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
312
	  </td>
225
	  </td>
313
</tr>
226
</tr>
314
</tbody>
227
</tbody>
315
</table>
228
</table>
316
</form>
-
 
317
</div>
229
</div>
318
<br />
-
 
319
<br />
230
</form>
320
#set($mapAvailable = $action.getAvailableItemInventory("$itemDetail.getItemid()"))
231
#set($mapAvailable = $action.getAvailableItemInventory("$itemDetail.getItemid()"))
321
#set($mapReserved = $action.getReservedItemInventory("$itemDetail.getItemid()"))
232
#set($mapReserved = $action.getReservedItemInventory("$itemDetail.getItemid()"))
322
<div style="width: 70%;padding-left:15%;">
233
<div class="left" style="padding-top:10px;">
323
	<table id="upload" style="text-align: center;width: 100%">
234
	<table id="upload" style="text-align: center;width: 100%;font-size: 14px;padding-top:10px;">
324
<thead>
235
<thead>
325
<tr>
236
<tr>
326
<th colspan="3">Inventory Saholic & Amazon (Total)</th>
237
<th colspan="3">Inventory Saholic & Amazon (Total)</th>
327
</tr>
238
</tr>
328
</thead>
239
</thead>
329
<tbody>
240
<tbody>
330
	<tr>
241
	<tr>
331
<td class="detail">Warehouse</td>
242
<td class="detail" style="width:33%">Warehouse</td>
332
<td class="value">Available</td>
243
<td class="value">Available</td>
333
<td class="value">Reserved</td>
244
<td class="value">Reserved</td>
334
</tr>
245
</tr>
335
#foreach( $keyAvailable in $mapAvailable.keySet() )
246
#foreach( $keyAvailable in $mapAvailable.keySet() )
336
<tr>
247
<tr>
Line 341... Line 252...
341
#end
252
#end
342
</tbody>
253
</tbody>
343
</table>
254
</table>
344
<br />
255
<br />
345
<br />
256
<br />
-
 
257
</div>
346
#set( $amazonInventory = $action.getInventoryForAmazonItem("$itemDetail.getItemid()") )
258
#set( $amazonInventory = $action.getInventoryForAmazonItem("$itemDetail.getItemid()") )
-
 
259
#set( $amazonFbaInventory = $action.getFbaInventoryForAmazonItem("$itemDetail.getItemid()") )
347
<div id="upload" style="width: 100%;">
260
<div class="right" style="padding-top:10px;">
348
	<table style="text-align: center; width: 100%; font-size: 14px;">
261
	<table style="text-align: center; width: 100%; font-size: 14px;">
349
<thead>
262
<thead>
350
<tr>
263
<tr>
351
<th colspan="2">Amazon Inventory</th>
264
<th colspan="3">Amazon Inventory</th>
352
</tr>
265
</tr>
353
</thead>
266
</thead>
354
<tbody>
267
<tbody>
355
	<tr>
268
	<tr>
356
<td class="detail">Available</td>
269
<td class="detail">MFN Available</td>
357
<td class="value">Reserved</td>
270
<td class="detail">MFN Reserved</td>
-
 
271
<td class="value">FBA Available</td>
358
</tr>
272
</tr>
359
	<tr>
273
	<tr>
360
			#if ( !$amazonInventory.getAvailability() )
274
			#if ( !$amazonInventory.getAvailability() )
361
                 <td class="detail"></td>
275
                 <td class="detail"></td>
362
              #else
276
              #else
363
                <td class="detail">$amazonInventory.getAvailability()</td>
277
                <td class="detail">$amazonInventory.getAvailability()</td>
364
              #end
278
              #end
365
              #if ( !$amazonInventory.getReserved() )
279
              #if ( !$amazonInventory.getReserved() )
366
                 <td class="value"></td>
280
                 <td class="detail"></td>
367
              #else
281
              #else
368
                <td class="value">$amazonInventory.getReserved()</td>
282
                <td class="detail">$amazonInventory.getReserved()</td>
369
              #end
283
			  #end
-
 
284
			  <td class="value">$amazonFbaInventory</td>
-
 
285
			  
370
 
286
 
371
		</tr>
287
		</tr>
372
</tbody>
288
</tbody>
373
</table>
289
</table>
374
</div>
-
 
375
</div>
290
</div>
376
</body>
-
 
377
</html>
-
 
378
291