| 14517 |
anikendra |
1 |
<div class="container">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-3">
|
|
|
4 |
<?php echo $this->Element('adminactions');?>
|
|
|
5 |
</div>
|
|
|
6 |
<div class="col-lg-9">
|
|
|
7 |
<?php echo $this->element('adminsearch');?>
|
|
|
8 |
<h2><?php echo __('Featured Deals'); ?></h2>
|
|
|
9 |
<table class="table table-striped">
|
|
|
10 |
<tr>
|
| 17343 |
naman |
11 |
<!-- <th><?php //echo ('sku'); ?></th> -->
|
| 14517 |
anikendra |
12 |
<th><?php echo ('Brand'); ?></th>
|
|
|
13 |
<th><?php echo ('Name'); ?></th>
|
|
|
14 |
<th><?php echo ('Threshold Price'); ?></th>
|
|
|
15 |
<th><?php echo ('Bundle Id'); ?></th>
|
|
|
16 |
<th><?php echo ('Start Date'); ?></th>
|
|
|
17 |
<th><?php echo ('End Date'); ?></th>
|
| 17471 |
manish.sha |
18 |
<th><?php echo ('Mobiles Rank'); ?></th>
|
|
|
19 |
<th><?php echo ('Tablets Rank'); ?></th>
|
|
|
20 |
<th><?php echo ('Accessories Rank'); ?></th>
|
| 14517 |
anikendra |
21 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
|
|
22 |
</tr>
|
|
|
23 |
<?php foreach ($featureddeals as $negativedeal): ?>
|
|
|
24 |
<tr>
|
| 17343 |
naman |
25 |
<!-- <td><?php //echo h($negativedeal['sku']); ?> </td> -->
|
| 14517 |
anikendra |
26 |
<td><?php echo h($negativedeal['brand']); ?></td>
|
|
|
27 |
<td><?php echo h($negativedeal['source_product_name']); ?></td>
|
|
|
28 |
<td><?php echo h($negativedeal['thresholdPrice']); ?></td>
|
|
|
29 |
<td><?php echo $negativedeal['skuBundleId']; ?></td>
|
| 17343 |
naman |
30 |
<td><?php echo date('d-m-Y H:i:s',($negativedeal['startDate']/1000)); ?></td>
|
|
|
31 |
<td><?php echo date('d-m-Y H:i:s',($negativedeal['endDate']/1000)); ?></td>
|
| 17471 |
manish.sha |
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 } ?>
|
| 14517 |
anikendra |
47 |
<td class="actions">
|
|
|
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'])); ?>
|
|
|
49 |
</td>
|
|
|
50 |
</tr>
|
|
|
51 |
<?php endforeach; ?>
|
|
|
52 |
</table>
|
|
|
53 |
</div>
|
|
|
54 |
</div>
|
|
|
55 |
<nav>
|
|
|
56 |
<ul class="pager">
|
|
|
57 |
<?php if($page>1):?>
|
|
|
58 |
<li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
|
|
|
59 |
<?php endif;?>
|
|
|
60 |
<li><a href="?page=<?php echo $page+1;?>">Next</a></li>
|
|
|
61 |
</ul>
|
|
|
62 |
</nav>
|
|
|
63 |
</div>
|