Subversion Repositories SmartDukaan

Rev

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

Rev 7603 Rev 7800
Line 19... Line 19...
19
.dataTable { width: 100%;}
19
.dataTable { width: 100%;}
20
</style>
20
</style>
21
<script type="text/javascript">
21
<script type="text/javascript">
22
$(document).ready( function() {
22
$(document).ready( function() {
23
  $('#amazon-listed').dataTable( {
23
  $('#amazon-listed').dataTable( {
-
 
24
    "bAutoWidth": false,
24
    "iDisplayLength": 25,
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" },
25
	"bAutoWidth": false,
40
	  { "sType": "html" },
-
 
41
      null
-
 
42
    ],
26
    "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]]
43
    "aLengthMenu": [[15, 25 ,50, 100, -1], [15 ,25, 50, 100, "All"]]
27
  } );
44
  } );
28
} );
45
} );
29
</script>
46
</script>
30
<title>Amazon Listed Items</title>
47
<title>Amazon Listed Items</title>
31
</head>
48
</head>
Line 55... Line 72...
55
				<th>Category</th>
72
				<th>Category</th>
56
				<th>Asin</th>
73
				<th>Asin</th>
57
				<th>Saholic / Amazon Item Description</th>
74
				<th>Saholic / Amazon Item Description</th>
58
				<th>Price Difference</th>
75
				<th>Price Difference</th>
59
				<th>Risky</th>
76
				<th>Risky</th>
-
 
77
                 <th>Status</th>
60
				<th>Shipping</th>
78
				<th>Shipping</th>
61
				<th>Inventory</th>
79
				<th>Inventory Sync</th>
-
 
80
				<th>Mfn Listing</th>
-
 
81
				<th>Fba Listing</th>
62
				<th>Action</th>
82
				<th>Action</th>
63
            </tr>
83
            </tr>
64
        </thead>
84
        </thead>
65
        <tbody>
85
        <tbody>
66
    #foreach ( $item in $items )
86
    #foreach ( $item in $items )
67
            <tr style="border: 1px">
87
            <tr style="border: 1px">
68
                <td>$item.getItemid()</td>
88
                <td>$item.getItemid()</td>
69
				<td>$item.getCategory()</td>
89
				<td>$item.getCategory()</td>
70
				<td>$item.getAsin()</td>
90
				<td>$item.getAsin()</td>
-
 
91
				#if ($mapItem.get($item.getItemid()))
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>
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>
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
93
				#else
75
					<td>-</td>
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>
76
				#end
96
				#end
77
				#if($mapItem.get($item.getItemid()).isRisky())
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
78
				<td>Risky</td>
101
						<td>-</td>
-
 
102
					#end
79
				#else
103
				#else
-
 
104
					#if($saholicItem.getSellingPrice() != $item.getFbaPrice() || $saholicItem.getSellingPrice() != $item.getSellingPrice())
-
 
105
						<td>$saholicItem.getSellingPrice() / FBA: $item.getFbaPrice() / MFN: $item.getSellingPrice()</td>
-
 
106
					#else
80
				<td></td>
107
						<td>-</td>
-
 
108
					#end
-
 
109
				#end
-
 
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>
81
				#end
127
				#end
82
				#if($item.isIsCustomTime())
128
				#if($item.isIsCustomTime())
83
				<td>Set To Custom</td>
129
					<td>Set To Custom</td>
84
				#else
130
				#else
85
				<td>Set To Default</td>
131
					<td>Set To Default</td>
86
				#end
132
				#end
87
				#if($item.isIsInventoryOverride())
133
				#if($item.isIsInventoryOverride())
88
				<td>Overridden</td>
134
					<td><a style="visibility: hidden;">A</a><img alt="active" src="/Support/images/active.ico" style="width: 18px;"></td>
89
				#else
135
				#else
-
 
136
					<td><a style="visibility: hidden;">I</a><img alt="Inactive" src="/Support/images/inactive.ico" style="width: 18px;"></td>
-
 
137
				#end
-
 
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>
90
				<td></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>
91
				#end
147
				#end
92
				<td><a href="/Support/amazon-list/$item.getItemid()/edit">View/Edit</a></td>
148
				<td><a href="/Support/amazon-list/$item.getItemid()/edit">View/Edit</a></td>
93
				</td>
149
				</td>
94
            </tr>
150
            </tr>
95
    #end
151
    #end
96
        </tbody>
152
        </tbody>
97
    </table>
153
    </table>
98
	
-
 
99
	<br>
154
	<br>
100
		<br>
155
		<br>
101
			<br>
156
			<br>
102
		
-
 
103
		<hr/>
157
		<hr/>
104
 
-
 
105
#end
158
#end