Rev 17364 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<div class="container"><div class="row"><div class="col-lg-3"><?php echo $this->Element('adminactions');?></div><div class="col-lg-9"><?php echo $this->element('adminsearch');?><h2><?php echo __('Featured Deals'); ?></h2><table class="table table-striped"><tr><!-- <th><?php //echo ('sku'); ?></th> --><th><?php echo ('Brand'); ?></th><th><?php echo ('Name'); ?></th><th><?php echo ('Threshold Price'); ?></th><th><?php echo ('Bundle Id'); ?></th><th><?php echo ('Start Date'); ?></th><th><?php echo ('End Date'); ?></th><th><?php echo ('Mobiles Rank'); ?></th><th><?php echo ('Tablets Rank'); ?></th><th><?php echo ('Accessories Rank'); ?></th><th class="actions"><?php echo __('Actions'); ?></th></tr><?php foreach ($featureddeals as $negativedeal): ?><tr><!-- <td><?php //echo h($negativedeal['sku']); ?> </td> --><td><?php echo h($negativedeal['brand']); ?></td><td><?php echo h($negativedeal['source_product_name']); ?></td><td><?php echo h($negativedeal['thresholdPrice']); ?></td><td><?php echo $negativedeal['skuBundleId']; ?></td><td><?php echo date('d-m-Y H:i:s',($negativedeal['startDate']/1000)); ?></td><td><?php echo date('d-m-Y H:i:s',($negativedeal['endDate']/1000)); ?></td><?php if(array_key_exists('3', $negativedeal['otherInfo'])){ ?><td><?php echo $negativedeal['otherInfo']['3']; ?></td><?php } else { ?><td><?php echo '-'; ?></td><?php } ?><?php if(array_key_exists('5', $negativedeal['otherInfo'])){ ?><td><?php echo $negativedeal['otherInfo']['5']; ?></td><?php } else { ?><td><?php echo '-'; ?></td><?php } ?><?php if(array_key_exists('6', $negativedeal['otherInfo'])){ ?><td><?php echo $negativedeal['otherInfo']['6']; ?></td><?php } else { ?><td><?php echo '-'; ?></td><?php } ?><td class="actions"><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $negativedeal['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $negativedeal['_id']['$oid'])); ?></td></tr><?php endforeach; ?></table></div></div><nav><ul class="pager"><?php if($page>1):?><li><a href="?page=<?php echo $page-1;?>">Previous</a></li><?php endif;?><li><a href="?page=<?php echo $page+1;?>">Next</a></li></ul></nav></div>