Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / webtt / app / views / languages / index.ctp
blob79343d4be2d8ba188971aa19da2d8e0d5a88fba0
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 __('Languages', true); ?></h5>
7                                 <ul class="menu">
8                                         <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('action' => 'index')); ?> </li>
9                                 </ul>
10                                 <h5><?php echo __('Translation Files', true); ?></h5>
11                                 <ul class="menu">
12                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
13                                 </ul>
14                         </div>
15                 </div>
16         </div>
17 </div>
19 <div class="grid_13">
20         <p class="help">Choose a language and click "List Translation Files" to see project language files you can translate.</p>
21         <h2 id="page-heading"><?php __('Languages');?></h2>
22         <table cellpadding="0" cellspacing="0">         <?php $tableHeaders = $html->tableHeaders(array($paginator->sort('id'),$paginator->sort('name'),$paginator->sort('code'),$paginator->sort('created'),$paginator->sort('modified'),__('Actions', true),));
23                 echo '<thead>'.$tableHeaders.'</thead>'; ?>
25                 <?php
26                 $i = 0;
27                 foreach ($languages as $language):
28                         $class = null;
29                         if ($i++ % 2 == 0) {
30                                 $class = ' class="altrow"';
31                         }
32                 ?>
33         <tr<?php echo $class;?>>
34                 <td><?php echo $language['Language']['id']; ?></td>
35                 <td><?php echo $language['Language']['name']; ?></td>
36                 <td><?php echo $language['Language']['code']; ?></td>
37                 <td><?php echo $language['Language']['created']; ?></td>
38                 <td><?php echo $language['Language']['modified']; ?></td>
39                 <td class="actions">
40                         <?php echo $this->Html->link(__('View', true), array('action' => 'view', $language['Language']['id'])); ?>
41                         | <?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index', 'language_id' => $language['Language']['id'])); ?>
42                 </td>
43         </tr>
44         <?php endforeach; ?>
45         <?php echo '<tfoot class=\'dark\'>'.$tableHeaders.'</tfoot>'; ?>
46         </table>
48         
49         <p>
50         <?php
51         echo $this->Paginator->counter(array(
52         'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
53         ));
54         ?>      </p>
56         <div class="paging">
57                 <?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
58                 | <?php echo $this->Paginator->numbers();?> |
59                 <?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
60         </div>
61 </div>
62 <div class="clear"></div>