Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $this->assign('title','Serial Numbers - List Records');
- ?>
- <script type="text/javascript">
- $(document).ready(function() {
- $(document).on('click', '#pagination-container a',
- function () {
- var thisHref = $(this).attr('href');
- if (!thisHref) {
- return false;
- }
- $('#pagination-container').fadeTo(300, 0);
- $('#pagination-container').load(thisHref, function() {
- $(this).fadeTo(200, 1);
- });
- return false;
- });
- });
- </script>
- <div>
- filters here
- </div>
- <div id="pagination-container">
- <div class="serialNumbers index large-10 medium-9 columns">
- <table cellpadding="0" cellspacing="0">
- <thead>
- <tr>
- <th><?= $this->Paginator->sort('serial', 'Serial #') ?></th>
- <th><?= $this->Paginator->sort('owner', 'Owner') ?></th>
- <th><?= $this->Paginator->sort('sku', 'SKU') ?></th>
- <th><?= $this->Paginator->sort('registeredon', 'Registered On') ?></th>
- <th><?= $this->Paginator->sort('created', 'Created On') ?></th>
- <th class="actions"><?= __('Actions') ?></th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($serialNumbers as $serialNumber): ?>
- <tr>
- <td style="<?= $this->Html->style(array("font-family"=>"'Lucida Console', monospace")) ?>"><?= h($serialNumber->serial) ?></td>
- <td><?= h($serialNumber->owner) ?></td>
- <td><?= h($serialNumber->sku) ?></td>
- <td><?= $this->Time->format($serialNumber->registeredon,'y-M-d') ?></td>
- <td><?= $this->Time->format(($serialNumber->created),'y-M-d') ?></td>
- <td class="actions">
- <?= $this->Html->link(__('View'), ['action' => 'view', $serialNumber->id]) ?>
- <?= $this->Html->link(__('Edit'), ['action' => 'edit', $serialNumber->id]) ?>
- <!-- <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $serialNumber->id], ['confirm' => __('Are you sure you want to delete # {0}?', $serialNumber->id)]) ?>
- --> </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- <div class="paginator">
- <ul class="pagination">
- <?= $this->Paginator->prev('< ' . __('previous')) ?>
- <?= $this->Paginator->numbers() ?>
- <?= $this->Paginator->next(__('next') . ' >') ?>
- </ul>
- <p><?= $this->Paginator->counter() ?></p>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement