2 <div class="box menubox">
3 <h2><a href="#" id="toggle-admin-actions">Actions</a></h2>
5 <div class="block" id="admin-actions">
6 <h5><?php echo __('Users', true); ?></h5>
8 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('action' => 'index')); ?> </li>
10 <h5><?php echo __('Translations', true); ?></h5>
12 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
13 <li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
15 <h5><?php echo __('Votes', true); ?></h5>
17 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
18 <li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
20 <h5><?php echo __('Comments', true); ?></h5>
22 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index')); ?> </li>
23 <li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add')); ?> </li>
31 <h2 id="page-heading"><?php __('Users');?></h2>
32 <table cellpadding="0" cellspacing="0"> <?php $tableHeaders = $html->tableHeaders(array($paginator->sort('id'),$paginator->sort('name'),$paginator->sort('email'),$paginator->sort('username'),$paginator->sort('role'),__('Actions', true),));
33 echo '<thead>'.$tableHeaders.'</thead>'; ?>
37 foreach ($users as $user):
40 $class = ' class="altrow"';
43 <tr<?php echo $class;?>>
44 <td><?php echo $user['User']['id']; ?></td>
45 <td><?php echo $user['User']['name']; ?></td>
46 <td><?php echo $user['User']['email']; ?></td>
47 <td><?php echo $user['User']['username']; ?></td>
48 <td><?php echo $user['User']['role']; ?></td>
50 <?php echo $this->Html->link(__('View', true), array('action' => 'view', $user['User']['id'])); ?>
54 <?php echo '<tfoot class=\'dark\'>'.$tableHeaders.'</tfoot>'; ?>
60 echo $this->Paginator->counter(array(
61 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
66 <?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
67 | <?php echo $this->Paginator->numbers();?> |
68 <?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
71 <div class="clear"></div>