Rev 14509 | 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 __('Campaigns'); ?></h2><table cellpadding="0" cellspacing="0"><tr><th><?php echo $this->Paginator->sort('id'); ?></th><th><?php echo $this->Paginator->sort('name'); ?></th><th><?php echo $this->Paginator->sort('url'); ?></th><th><?php echo $this->Paginator->sort('img_url'); ?></th><th><?php echo $this->Paginator->sort('status'); ?></th><th><?php echo $this->Paginator->sort('store_id'); ?></th><th><?php echo $this->Paginator->sort('starttime'); ?></th><th><?php echo $this->Paginator->sort('endtime'); ?></th><th class="actions"><?php echo __('Actions'); ?></th></tr><?php foreach ($campaigns as $campaign): ?><tr><td><?php echo h($campaign['Campaign']['id']); ?> </td><td><?php echo h($campaign['Campaign']['name']); ?> </td><td><?php echo h($campaign['Campaign']['url']); ?> </td><td><img src="<?php echo h($campaign['Campaign']['img_url']); ?>"/></td><td><?php echo h($campaign['Campaign']['status']); ?> </td><td><?php echo $stores[$campaign['Campaign']['store_id']]; ?> </td><td><?php echo h($campaign['Campaign']['starttime']); ?> </td><td><?php echo h($campaign['Campaign']['endtime']); ?> </td><td class="actions"><?php echo $this->Html->link(__('View'), array('action' => 'view', $campaign['Campaign']['id'])); ?><?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $campaign['Campaign']['id'])); ?><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $campaign['Campaign']['id']), null, __('Are you sure you want to delete # %s?', $campaign['Campaign']['id'])); ?></td></tr><?php endforeach; ?></table><p><?phpecho $this->Paginator->counter(array('format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')));?> </p><div class="paging"><?phpecho $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));echo $this->Paginator->numbers(array('separator' => ''));echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));?></div></div></div></div>