Guest User

Untitled

a guest
May 20th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. <div class="users index">
  2. <h2><?php __('Users');?></h2>
  3. <p>
  4. <?php
  5. echo $paginator->counter(array(
  6. 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
  7. ));
  8. ?></p>
  9. <table cellpadding="0" cellspacing="0">
  10. <tr>
  11. <th><?php echo $paginator->sort('id');?></th>
  12. <th><?php echo $paginator->sort('username');?></th>
  13. <th><?php echo $paginator->sort('password');?></th>
  14. <th><?php echo $paginator->sort('created');?></th>
  15. <th class="actions"><?php __('Actions');?></th>
  16. </tr>
  17. <?php
  18. $i = 0;
  19. foreach ($users as $user):
  20. $class = null;
  21. if ($i++ % 2 == 0) {
  22. $class = ' class="altrow"';
  23. }
  24. ?>
  25. <tr<?php echo $class;?>>
  26. <td>
  27. <?php echo $user['User']['id']; ?>
  28. </td>
  29. <td>
  30. <?php echo $user['User']['username']; ?>
  31. </td>
  32. <td>
  33. <?php echo $user['User']['password']; ?>
  34. </td>
  35. <td>
  36. <?php echo $user['User']['created']; ?>
  37. </td>
  38. <td class="actions">
  39. <?php echo $html->link(__('View', true), array('action' => 'view', $user['User']['id'])); ?>
  40. <?php echo $html->link(__('Edit', true), array('action' => 'edit', $user['User']['id'])); ?>
  41. <?php echo $html->link(__('Delete', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
  42. </td>
  43. </tr>
  44. <?php endforeach; ?>
  45. </table>
  46. </div>
  47. <div class="paging">
  48. <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
  49. | <?php echo $paginator->numbers();?>
  50. <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
  51. </div>
  52. <div class="actions">
  53. <ul>
  54. <li><?php echo $html->link(__('New User', true), array('action' => 'add')); ?></li>
  55. <li><?php echo $html->link(__('List Posts', true), array('controller' => 'posts', 'action' => 'index')); ?> </li>
  56. <li><?php echo $html->link(__('New Post', true), array('controller' => 'posts', 'action' => 'add')); ?> </li>
  57. </ul>
  58. </div>
Add Comment
Please, Sign In to add comment