Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / webtt / app / views / translations / index.ctp
blobd33f04bb7a3539a7cf2b25d2d77c8260aa9d2b6e
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 __('Translations', true); ?></h5>
7                                 <ul class="menu">
8                                 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('action' => 'index')); ?> </li>
9                                 </ul>
10                                 <h5><?php echo __('Identifiers', true); ?></h5>
11                                 <ul class="menu">
12                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
13                                 </ul>
14                                 <h5><?php echo __('Users', true); ?></h5>
15                                 <ul class="menu">
16                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
17                                 </ul>
18                                 <h5><?php echo __('Votes', true); ?></h5>
19                                 <ul class="menu">
20                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
21                                 </ul>
22                         </div>
23                 </div>
24         </div>
25 </div>
27 <div class="grid_13">
28         <h2 id="page-heading"><?php __('Translations');?></h2>
29         <table cellpadding="0" cellspacing="0">         <?php $tableHeaders = $html->tableHeaders(array($paginator->sort('id'),$paginator->sort('identifier_id'),$paginator->sort('translation_text'),$paginator->sort('user_id'),$paginator->sort('created'),$paginator->sort('modified'),__('Actions', true),));
30                 echo '<thead>'.$tableHeaders.'</thead>'; ?>
32                 <?php
33                 $i = 0;
34                 foreach ($translations as $translation):
35                         $class = null;
36                         if ($i++ % 2 == 0) {
37                                 $class = ' class="altrow"';
38                         }
39                 ?>
40         <tr<?php echo $class;?>>
41                 <td><?php echo $translation['Translation']['id']; ?></td>
42                 <td>
43                         <?php echo $this->Html->link($translation['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $translation['Identifier']['id'])); ?>
44                 </td>
45                 <td><?php echo $translation['Translation']['translation_text']; ?></td>
46                 <td>
47                         <?php echo $this->Html->link($translation['User']['name'], array('controller' => 'users', 'action' => 'view', $translation['User']['id'])); ?>
48                 </td>
49                 <td><?php echo $translation['Translation']['created']; ?></td>
50                 <td><?php echo $translation['Translation']['modified']; ?></td>
51                 <td class="actions">
52                         <?php echo $this->Html->link(__('View', true), array('action' => 'view', $translation['Translation']['id'])); ?>
53                         <?php echo ' | ' . $this->Html->link(__('Edit', true), array('action' => 'edit', $translation['Translation']['id'])); ?>
54                         <?php echo ' | ' . $this->Html->link(__('Delete', true), array('action' => 'delete', $translation['Translation']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translation['Translation']['id'])); ?>
55                         | <?php echo $this->Html->link(__('Vote', true), array('controller' => 'votes', 'action' => 'vote', 'translation_id' => $translation['Translation']['id'])); ?>
56                 </td>
57         </tr>
58         <?php endforeach; ?>
59         <?php echo '<tfoot class=\'dark\'>'.$tableHeaders.'</tfoot>'; ?>
60         </table>
62         
63         <p>
64         <?php
65         echo $this->Paginator->counter(array(
66         'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
67         ));
68         ?>      </p>
70         <div class="paging">
71                 <?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
72                 | <?php echo $this->Paginator->numbers();?> |
73                 <?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
74         </div>
75 </div>
76 <div class="clear"></div>