Rev 14517 | Go to most recent revision | 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"><h2><?php echo __('Dealer Prices'); ?></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 __('dp'); ?></th><th class="actions"><?php echo __('Actions'); ?></th></tr><?php foreach ($dealerprices as $dp): ?><?php $dp = json_decode($dp,1);?><?php //debug($dp);?><tr><td><?php echo h($dp['sku']); ?> </td><td><?php echo h($dp['brand']); ?> </td><td id="source_product_name" data-oid="<?php echo $dp['_id']['$oid'];?>" ><?php echo h($dp['source_product_name']); ?></td><td class="edit" id="dp" data-oid="<?php echo $dp['_id']['$oid'];?>" ><?php echo h($dp['dp']); ?></td><td class="actions"><?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $dp['_id']['$oid'])); ?><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $dp['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $dp['_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>