Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="container">
        <div class="row">
                <div class="col-lg-2">
                        <?php echo $this->Element('offeractions');?>
                </div>
                <div class="col-lg-10">
                <h2><?php echo __('Offers'); ?></h2>
                <table cellpadding="0" cellspacing="0" class="table table-striped">
                <tr>
                        <th><?php echo $this->Paginator->sort('id'); ?></th>
                        <th><?php echo $this->Paginator->sort('starttime'); ?></th>
                        <th><?php echo $this->Paginator->sort('endtime'); ?></th>
                        <th><?php echo $this->Paginator->sort('url'); ?></th>
                        <th><?php echo $this->Paginator->sort('title'); ?></th>
                        <th><?php echo $this->Paginator->sort('description'); ?></th>
                        <th><?php echo $this->Paginator->sort('category'); ?></th>
                        <th><?php echo $this->Paginator->sort('img730x150'); ?></th>
                        <th><?php echo $this->Paginator->sort('img482x234'); ?></th>
                        <th><?php echo $this->Paginator->sort('img720x280'); ?></th>
                        <th><?php echo $this->Paginator->sort('img540x210'); ?></th>
                        <th><?php echo $this->Paginator->sort('img360x140'); ?></th>
                        <th><?php echo $this->Paginator->sort('img270x105'); ?></th>
                        <th><?php echo $this->Paginator->sort('created'); ?></th>
                        <th><?php echo $this->Paginator->sort('modified'); ?></th>
                        <th class="actions"><?php echo __('Actions'); ?></th>
                </tr>
                <?php foreach ($offers as $offer): ?>
                <tr>
                        <td><?php echo h($offer['Offer']['id']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['starttime']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['endtime']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['url']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['title']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['description']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['category']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['img730x150']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['img482x234']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['img720x280']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['img540x210']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['img360x140']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['img270x105']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['created']); ?>&nbsp;</td>
                        <td><?php echo h($offer['Offer']['modified']); ?>&nbsp;</td>
                        <td class="actions">
                                <?php echo $this->Html->link(__('View'), array('action' => 'view', $offer['Offer']['id'])); ?>
                                <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $offer['Offer']['id'])); ?>
                                <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $offer['Offer']['id']), null, __('Are you sure you want to delete # %s?', $offer['Offer']['id'])); ?>
                        </td>
                </tr>
        <?php endforeach; ?>
                </table>
                <p>
                <?php
                echo $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">
                <?php
                        echo $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>