| 14510 |
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">
|
| 14517 |
anikendra |
7 |
<?php echo $this->element('adminsearch');?>
|
| 14510 |
anikendra |
8 |
<h2><?php echo __('Manual Deals'); ?></h2>
|
|
|
9 |
<table class="table table-striped">
|
|
|
10 |
<tr>
|
|
|
11 |
<th><?php echo ('sku'); ?></th>
|
|
|
12 |
<th><?php echo ('Brand'); ?></th>
|
|
|
13 |
<th><?php echo ('Source'); ?></th>
|
|
|
14 |
<th><?php echo ('Name'); ?></th>
|
|
|
15 |
<th><?php echo ('Bundle Id'); ?></th>
|
| 16493 |
anikendra |
16 |
<!-- <th><?php //echo ('Threshold Price'); ?></th> -->
|
| 16496 |
anikendra |
17 |
<th><?php echo ('Deal Url'); ?></th>
|
| 14510 |
anikendra |
18 |
<th><?php echo ('Start Date'); ?></th>
|
|
|
19 |
<th><?php echo ('End Date'); ?></th>
|
|
|
20 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
|
|
21 |
</tr>
|
|
|
22 |
<?php foreach ($negativedeals as $negativedeal): ?>
|
|
|
23 |
<tr>
|
|
|
24 |
<td><?php echo h($negativedeal['sku']); ?> </td>
|
|
|
25 |
<td><?php echo h($negativedeal['brand']); ?></td>
|
|
|
26 |
<td><?php echo h($sources[$negativedeal['source_id']]); ?></td>
|
|
|
27 |
<td><?php echo h($negativedeal['source_product_name']); ?></td>
|
|
|
28 |
<td><?php echo $negativedeal['skuBundleId']; ?></td>
|
| 16493 |
anikendra |
29 |
<!-- <td><?php //echo $negativedeal['dealThresholdPrice']; ?></td> -->
|
| 16496 |
anikendra |
30 |
<td><?php echo $negativedeal['dealUrl']; ?></td>
|
| 14510 |
anikendra |
31 |
<td><?php echo date('d-m-Y',($negativedeal['startDate']/1000)); ?></td>
|
|
|
32 |
<td><?php echo date('d-m-Y',($negativedeal['endDate']/1000)); ?></td>
|
|
|
33 |
<td class="actions">
|
|
|
34 |
<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $negativedeal['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $negativedeal['_id']['$oid'])); ?>
|
|
|
35 |
</td>
|
|
|
36 |
</tr>
|
|
|
37 |
<?php endforeach; ?>
|
|
|
38 |
</table>
|
|
|
39 |
</div>
|
|
|
40 |
</div>
|
|
|
41 |
<nav>
|
|
|
42 |
<ul class="pager">
|
|
|
43 |
<?php if($page>1):?>
|
|
|
44 |
<li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
|
|
|
45 |
<?php endif;?>
|
|
|
46 |
<li><a href="?page=<?php echo $page+1;?>">Next</a></li>
|
|
|
47 |
</ul>
|
|
|
48 |
</nav>
|
|
|
49 |
</div>
|