Subversion Repositories SmartDukaan

Rev

Rev 17364 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17364 Rev 17471
Line 9... Line 9...
9
			<table class="table table-striped">
9
			<table class="table table-striped">
10
			<tr>
10
			<tr>
11
					<!-- <th><?php //echo ('sku'); ?></th> -->
11
					<!-- <th><?php //echo ('sku'); ?></th> -->
12
					<th><?php echo ('Brand'); ?></th>
12
					<th><?php echo ('Brand'); ?></th>
13
					<th><?php echo ('Name'); ?></th>
13
					<th><?php echo ('Name'); ?></th>
14
					<th><?php echo ('Category'); ?></th>
-
 
15
					<th><?php echo ('Default Rank'); ?></th>
-
 
16
					<!-- <th><?php //echo ('Mobiles Rank'); ?></th> -->
-
 
17
					<!-- <th><?php //echo ('Tablets Rank'); ?></th> -->
-
 
18
					<th><?php echo ('Threshold Price'); ?></th>
14
					<th><?php echo ('Threshold Price'); ?></th>
19
					<th><?php echo ('Bundle Id'); ?></th>
15
					<th><?php echo ('Bundle Id'); ?></th>
20
					<th><?php echo ('Start Date'); ?></th>
16
					<th><?php echo ('Start Date'); ?></th>
21
					<th><?php echo ('End Date'); ?></th>
17
					<th><?php echo ('End Date'); ?></th>
-
 
18
					<th><?php echo ('Mobiles Rank'); ?></th>
-
 
19
					<th><?php echo ('Tablets Rank'); ?></th>
-
 
20
					<th><?php echo ('Accessories Rank'); ?></th>
22
					<th class="actions"><?php echo __('Actions'); ?></th>
21
					<th class="actions"><?php echo __('Actions'); ?></th>
23
			</tr>
22
			</tr>
24
			<?php foreach ($featureddeals as $negativedeal): ?>
23
			<?php foreach ($featureddeals as $negativedeal): ?>
25
			<tr>
24
			<tr>
26
				<!-- <td><?php //echo h($negativedeal['sku']); ?>&nbsp;</td> -->
25
				<!-- <td><?php //echo h($negativedeal['sku']); ?>&nbsp;</td> -->
27
				<td><?php echo h($negativedeal['brand']); ?></td>
26
				<td><?php echo h($negativedeal['brand']); ?></td>
28
				<td><?php echo h($negativedeal['source_product_name']); ?></td>
27
				<td><?php echo h($negativedeal['source_product_name']); ?></td>
29
				<td><?php echo h($negativedeal['category']); ?></td>
-
 
30
				<!-- <td><?php //if(!empty($negativedeal['rankDetails'][0])) { echo h($negativedeal['rankDetails'][0]);} ?></td> -->
-
 
31
				<!-- <td><?php //if(!empty($negativedeal['rankDetails'][3])) { echo h($negativedeal['rankDetails'][3]);} ?></td> -->
-
 
32
				<!-- <td><?php //if(!empty($negativedeal['rankDetails'][5])) { echo h($negativedeal['rankDetails'][5]);} ?></td> -->
-
 
33
				<td><?php echo h($negativedeal['rank']); ?></td>
-
 
34
				<td><?php echo h($negativedeal['thresholdPrice']); ?></td>
28
				<td><?php echo h($negativedeal['thresholdPrice']); ?></td>
35
				<td><?php echo $negativedeal['skuBundleId']; ?></td>
29
				<td><?php echo $negativedeal['skuBundleId']; ?></td>
36
				<td><?php echo date('d-m-Y H:i:s',($negativedeal['startDate']/1000)); ?></td>
30
				<td><?php echo date('d-m-Y H:i:s',($negativedeal['startDate']/1000)); ?></td>
37
				<td><?php echo date('d-m-Y H:i:s',($negativedeal['endDate']/1000)); ?></td>
31
				<td><?php echo date('d-m-Y H:i:s',($negativedeal['endDate']/1000)); ?></td>
-
 
32
				<?php if(array_key_exists('3', $negativedeal['otherInfo'])){ ?>
-
 
33
					<td><?php echo $negativedeal['otherInfo']['3']; ?></td> 
-
 
34
				<?php } else { ?>
-
 
35
					<td><?php echo '-'; ?></td>
-
 
36
				<?php } ?>
-
 
37
				<?php if(array_key_exists('5', $negativedeal['otherInfo'])){ ?>
-
 
38
                                        <td><?php echo $negativedeal['otherInfo']['5']; ?></td>
-
 
39
                                <?php } else { ?>
-
 
40
                                        <td><?php echo '-'; ?></td>
-
 
41
                                <?php } ?>
-
 
42
				<?php if(array_key_exists('6', $negativedeal['otherInfo'])){ ?>
-
 
43
                                        <td><?php echo $negativedeal['otherInfo']['6']; ?></td>
-
 
44
                                <?php } else { ?>
-
 
45
                                        <td><?php echo '-'; ?></td>
-
 
46
                                <?php } ?>
38
				<td class="actions">
47
				<td class="actions">
39
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $negativedeal['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $negativedeal['_id']['$oid'])); ?>
48
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $negativedeal['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $negativedeal['_id']['$oid'])); ?>
40
				</td>
49
				</td>
41
			</tr>
50
			</tr>
42
		<?php endforeach; ?>
51
		<?php endforeach; ?>