|
10 | 10 | */ |
11 | 11 | ?> |
12 | 12 | <div class="users index"> |
13 | | -<h2><?php echo __d('users', 'Users'); ?></h2> |
| 13 | + <h2><?php echo __d('users', 'Users'); ?></h2> |
14 | 14 |
|
15 | | -<p><?php |
16 | | -echo $this->Paginator->counter(array( |
17 | | - 'format' => __d('users', 'Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%') |
18 | | -)); |
19 | | -?></p> |
| 15 | + <p><?php |
| 16 | + echo $this->Paginator->counter(array( |
| 17 | + 'format' => __d('users', 'Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%') |
| 18 | + )); |
| 19 | + ?></p> |
20 | 20 |
|
21 | | -<table cellpadding="0" cellspacing="0"> |
22 | | -<tr> |
23 | | - <th><?php echo $this->Paginator->sort('username'); ?></th> |
24 | | - <th><?php echo $this->Paginator->sort('created'); ?></th> |
25 | | - <th class="actions"><?php __d('users', 'Actions'); ?></th> |
26 | | -</tr> |
27 | | -<?php |
28 | | -$i = 0; |
29 | | -foreach ($users as $user): |
30 | | - $class = null; |
31 | | - if ($i++ % 2 == 0) { |
32 | | - $class = ' class="altrow"'; |
33 | | - } |
34 | | -?> |
35 | | - <tr<?php echo $class; ?>> |
36 | | - <td> |
37 | | - <?php echo $user[$model]['username']; ?> |
38 | | - </td> |
39 | | - <td> |
40 | | - <?php echo $user[$model]['created']; ?> |
41 | | - </td> |
42 | | - <td class="actions"> |
43 | | - <?php echo $this->Html->link(__d('users', 'View'), array('action' => 'view', $user[$model]['id'])); ?> |
44 | | - <?php echo $this->Html->link(__d('users', 'Edit'), array('action' => 'edit', $user[$model]['id'])); ?> |
45 | | - <?php echo $this->Html->link( |
46 | | - __d('users', 'Delete'), |
47 | | - array('action' => 'delete', $user[$model]['id']), |
48 | | - null, |
49 | | - sprintf(__d('users', 'Are you sure you want to delete # %s?'), $user[$model]['id']) |
50 | | - ); ?> |
51 | | - </td> |
| 21 | + <table cellpadding="0" cellspacing="0"> |
| 22 | + <tr> |
| 23 | + <th><?php echo $this->Paginator->sort('username'); ?></th> |
| 24 | + <th><?php echo $this->Paginator->sort('created'); ?></th> |
| 25 | + <th class="actions"><?php __d('users', 'Actions'); ?></th> |
52 | 26 | </tr> |
53 | | -<?php endforeach; ?> |
54 | | -</table> |
55 | | -</div> |
56 | | -<div class="paging"> |
57 | | - <?php echo $this->Paginator->prev('<< ' . __d('users', 'previous'), array(), null, array('class' => 'disabled')); ?> |
58 | | - | <?php echo $this->Paginator->numbers(); ?> |
59 | | - <?php echo $this->Paginator->next(__d('users', 'next') . ' >>', array(), null, array('class' => 'disabled')); ?> |
| 27 | + <?php |
| 28 | + $i = 0; |
| 29 | + foreach ($users as $user): |
| 30 | + $class = null; |
| 31 | + if ($i++ % 2 == 0) { |
| 32 | + $class = ' class="altrow"'; |
| 33 | + } |
| 34 | + ?> |
| 35 | + <tr<?php echo $class; ?>> |
| 36 | + <td> |
| 37 | + <?php echo $user[$model]['username']; ?> |
| 38 | + </td> |
| 39 | + <td> |
| 40 | + <?php echo $user[$model]['created']; ?> |
| 41 | + </td> |
| 42 | + <td class="actions"> |
| 43 | + <?php echo $this->Html->link(__d('users', 'View'), array('action' => 'view', $user[$model]['id'])); ?> |
| 44 | + <?php echo $this->Html->link(__d('users', 'Edit'), array('action' => 'edit', $user[$model]['id'])); ?> |
| 45 | + <?php echo $this->Html->link( |
| 46 | + __d('users', 'Delete'), |
| 47 | + array('action' => 'delete', $user[$model]['id']), |
| 48 | + null, |
| 49 | + sprintf(__d('users', 'Are you sure you want to delete # %s?'), $user[$model]['id']) |
| 50 | + ); ?> |
| 51 | + </td> |
| 52 | + </tr> |
| 53 | + <?php endforeach; ?> |
| 54 | + </table> |
| 55 | + <div class="paging"> |
| 56 | + <?php echo $this->Paginator->prev('<< ' . __d('users', 'previous'), array(), null, array('class' => 'disabled')); ?> |
| 57 | + | <?php echo $this->Paginator->numbers(); ?> |
| 58 | + <?php echo $this->Paginator->next(__d('users', 'next') . ' >>', array(), null, array('class' => 'disabled')); ?> |
| 59 | + </div> |
60 | 60 | </div> |
61 | 61 | <div class="actions"> |
62 | 62 | <ul> |
|
0 commit comments