Subversion Repositories SmartDukaan

Rev

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

Rev 14098 Rev 14517
Line 2... Line 2...
2
	<div class="row">
2
	<div class="row">
3
		<div class="col-lg-3">
3
		<div class="col-lg-3">
4
			<?php echo $this->Element('adminactions');?>
4
			<?php echo $this->Element('adminactions');?>
5
		</div>
5
		</div>
6
		<div class="col-lg-9">	<h2><?php echo __('Exceptional Sku Discounts'); ?></h2>
6
		<div class="col-lg-9">	<h2><?php echo __('Exceptional Sku Discounts'); ?></h2>
-
 
7
			<?php echo $this->element('adminsearch');?>
7
			<table class="table">
8
			<table class="table">
8
			<tr>
9
			<tr>
9
					<th><?php echo ('sku'); ?></th>
10
					<th><?php echo ('sku'); ?></th>
10
					<th><?php echo ('name'); ?></th>
11
					<th><?php echo ('name'); ?></th>
11
					<th><?php echo ('min_discount'); ?></th>
12
					<th><?php echo ('min_discount'); ?></th>
12
					<th><?php echo ('max_discount'); ?></th>
13
					<th><?php echo ('max_discount'); ?></th>
13
					<th><?php echo ('discountType'); ?></th>
14
					<th><?php echo ('discountType'); ?></th>
14
					<th class="actions"><?php echo __('Actions'); ?></th>
15
					<th class="actions"><?php echo __('Actions'); ?></th>
15
			</tr>
16
			</tr>
16
			<?php foreach ($exceptionalskudiscounts as $exceptionalskudiscount): ?>
17
			<?php foreach ($exceptionalskudiscounts as $exceptionalskudiscount): ?>
-
 
18
			<?php if(!is_array($exceptionalskudiscount)){
17
			<?php $exceptionalskudiscount = json_decode($exceptionalskudiscount,1);?>
19
				$exceptionalskudiscount = json_decode($exceptionalskudiscount,1);
-
 
20
			}?>
18
			<tr>
21
			<tr>
19
				<td><?php echo h($exceptionalskudiscount['sku']); ?>&nbsp;</td>
22
				<td><?php echo h($exceptionalskudiscount['sku']); ?>&nbsp;</td>
20
				<td><?php echo h($exceptionalskudiscount['source_product_name']); ?>&nbsp;</td>
23
				<td><?php echo h($exceptionalskudiscount['source_product_name']); ?>&nbsp;</td>
21
				<td class="edit" id="min_discount" data-oid="<?php echo $exceptionalskudiscount['_id']['$oid'];?>"><?php echo h($exceptionalskudiscount['min_discount']); ?></td>
24
				<td class="edit" id="min_discount" data-oid="<?php echo $exceptionalskudiscount['_id']['$oid'];?>"><?php echo h($exceptionalskudiscount['min_discount']); ?></td>
22
				<td class="edit" id="max_discount" data-oid="<?php echo $exceptionalskudiscount['_id']['$oid'];?>"><?php echo h($exceptionalskudiscount['max_discount']); ?></td>
25
				<td class="edit" id="max_discount" data-oid="<?php echo $exceptionalskudiscount['_id']['$oid'];?>"><?php echo h($exceptionalskudiscount['max_discount']); ?></td>