Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / webtt / app / views / users / index.ctp
blob376183c785f4eb4debd3a239037f2461eb8a7c82
1 <div class="grid_3">
2         <div class="box menubox">
3                 <h2><a href="#" id="toggle-admin-actions">Actions</a></h2>
4                 <div class="inbox">
5                         <div class="block" id="admin-actions">
6                                 <h5><?php echo __('Users', true); ?></h5>
7                                 <ul class="menu">
8                                         <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('action' => 'index')); ?> </li>
9                                 </ul>
10                                 <h5><?php echo __('Translations', true); ?></h5>
11                                 <ul class="menu">
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>
14                                 </ul>
15                                 <h5><?php echo __('Votes', true); ?></h5>
16                                 <ul class="menu">
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>
19                                 </ul>
20                                 <h5><?php echo __('Comments', true); ?></h5>
21                                 <ul class="menu">
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>
24                                 </ul>
25                         </div>
26                 </div>
27         </div>
28 </div>
30 <div class="grid_13">
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>'; ?>
35                 <?php
36                 $i = 0;
37                 foreach ($users as $user):
38                         $class = null;
39                         if ($i++ % 2 == 0) {
40                                 $class = ' class="altrow"';
41                         }
42                 ?>
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>
49                 <td class="actions">
50                         <?php echo $this->Html->link(__('View', true), array('action' => 'view', $user['User']['id'])); ?>
51                 </td>
52         </tr>
53         <?php endforeach; ?>
54         <?php echo '<tfoot class=\'dark\'>'.$tableHeaders.'</tfoot>'; ?>
55         </table>
57         
58         <p>
59         <?php
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)
62         ));
63         ?>      </p>
65         <div class="paging">
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'));?>
69         </div>
70 </div>
71 <div class="clear"></div>