Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. <?php
  2. $this->assign('title','Serial Numbers - List Records');
  3. ?>
  4.  
  5. <script type="text/javascript">
  6. $(document).ready(function() {
  7. $(document).on('click', '#pagination-container a',
  8. function () {
  9. var thisHref = $(this).attr('href');
  10. if (!thisHref) {
  11. return false;
  12. }
  13.  
  14. $('#pagination-container').fadeTo(300, 0);
  15.  
  16. $('#pagination-container').load(thisHref, function() {
  17. $(this).fadeTo(200, 1);
  18. });
  19. return false;
  20. });
  21. });
  22. </script>
  23.  
  24. <div>
  25. filters here
  26. </div>
  27.  
  28. <div id="pagination-container">
  29.  
  30.  
  31. <div class="serialNumbers index large-10 medium-9 columns">
  32. <table cellpadding="0" cellspacing="0">
  33. <thead>
  34. <tr>
  35. <th><?= $this->Paginator->sort('serial', 'Serial #') ?></th>
  36. <th><?= $this->Paginator->sort('owner', 'Owner') ?></th>
  37. <th><?= $this->Paginator->sort('sku', 'SKU') ?></th>
  38. <th><?= $this->Paginator->sort('registeredon', 'Registered On') ?></th>
  39. <th><?= $this->Paginator->sort('created', 'Created On') ?></th>
  40. <th class="actions"><?= __('Actions') ?></th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <?php foreach ($serialNumbers as $serialNumber): ?>
  45. <tr>
  46. <td style="<?= $this->Html->style(array("font-family"=>"'Lucida Console', monospace")) ?>"><?= h($serialNumber->serial) ?></td>
  47. <td><?= h($serialNumber->owner) ?></td>
  48. <td><?= h($serialNumber->sku) ?></td>
  49. <td><?= $this->Time->format($serialNumber->registeredon,'y-M-d') ?></td>
  50. <td><?= $this->Time->format(($serialNumber->created),'y-M-d') ?></td>
  51. <td class="actions">
  52. <?= $this->Html->link(__('View'), ['action' => 'view', $serialNumber->id]) ?>
  53. <?= $this->Html->link(__('Edit'), ['action' => 'edit', $serialNumber->id]) ?>
  54. <!-- <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $serialNumber->id], ['confirm' => __('Are you sure you want to delete # {0}?', $serialNumber->id)]) ?>
  55. --> </td>
  56. </tr>
  57.  
  58. <?php endforeach; ?>
  59. </tbody>
  60. </table>
  61. <div class="paginator">
  62. <ul class="pagination">
  63. <?= $this->Paginator->prev('< ' . __('previous')) ?>
  64. <?= $this->Paginator->numbers() ?>
  65. <?= $this->Paginator->next(__('next') . ' >') ?>
  66. </ul>
  67. <p><?= $this->Paginator->counter() ?></p>
  68. </div>
  69. </div>
  70.  
  71.  
  72.  
  73.  
  74. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement