Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / webtt / app / views / languages / view.ctp
blob44f27f047e1680924541f6cabe5442f643ffe0b1
1 <div class="grid_3">
2         <div class="box menubox">
3                 <h2>
4                         <a href="#" id="toggle-admin-actions">Actions</a>
5                 </h2>
6                 <div class="inbox">
7                 <div class="block" id="admin-actions">
8                         <h5><?php echo __('Languages', true); ?></h5>
9                         <ul class="menu">
10                                                         <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('action' => 'index')); ?> </li>
11                         </ul>
12                                 
13                         <h5>Translation Files</h5>
14                         <ul class="menu">
15                                 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index', 'language_id' => $language['Language']['id'])); ?> </li>
16                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
17                         </ul>
18                 </div>
19                 </div>
20         </div>
21 </div>
23 <div class="grid_13">
25 <div class="box">
26         <div class="languages view">
27         <h2><?php  __('Language');?></h2>
28                 <div class="block">
29                         <div class="dl">
30                                 <?php $i = 1; $class = ' altrow';?>
31                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
32                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
33                                         <?php echo $language['Language']['id']; ?>
34                                 </div>
35                                 <?php $i++; ?>
36                                 <div style="clear: both"></div>
38                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Name'); ?></div>
39                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
40                                         <?php echo $language['Language']['name']; ?>
41                                 </div>
42                                 <?php $i++; ?>
43                                 <div style="clear: both"></div>
45                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Code'); ?></div>
46                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
47                                         <?php echo $language['Language']['code']; ?>
48                                 </div>
49                                 <?php $i++; ?>
50                                 <div style="clear: both"></div>
52                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
53                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
54                                         <?php echo $language['Language']['created']; ?>
55                                 </div>
56                                 <?php $i++; ?>
57                                 <div style="clear: both"></div>
59                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
60                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
61                                         <?php echo $language['Language']['modified']; ?>
62                                 </div>
63                                 <?php $i++; ?>
64                                 <div style="clear: both"></div>
66                         </div>
67                 </div>
68         </div>
69 </div>
71 <div class="box">
72         <h2>
73                 <a href="#" id="toggle-related-records"><?php echo (__('Related', true)); ?></a>
74         </h2>
75         <div class="block" id="related-records">
76                 <!-- RELATED -->
77                 <!-- TranslationFile -->
78                 <div class="related">
79                         <h3><?php printf(__('Related %s', true), __('Translation Files', true));?></h3>
80                         <?php if (!empty($language['TranslationFile'])):?>
81                         <table cellpadding = "0" cellspacing = "0">
82                                 <thead>
83                                         <tr>
84                                                 <th><?php __('Id'); ?></th>
85                                                 <th><?php __('Language Id'); ?></th>
86                                                 <th><?php __('Filename Template'); ?></th>
87                                                 <th><?php __('Created'); ?></th>
88                                                 <th><?php __('Modified'); ?></th>
89                                                 <th class="actions"><?php __('Actions');?></th>
90                                         </tr>
91                                 </thead>
92                                 <?php
93                                 $i = 0;
94                                 foreach ($language['TranslationFile'] as $translationFile):
95                                         $class = null;
96                                         if ($i++ % 2 == 0) {
97                                                 $class = ' class="altrow"';
98                                         }
99                                 ?>
100                                 <tr<?php echo $class;?>>
101                                         <td><?php echo $translationFile['id'];?></td>
102                                         <td><?php echo $translationFile['language_id'];?></td>
103                                         <td><?php echo $translationFile['filename_template'];?></td>
104                                         <td><?php echo $translationFile['created'];?></td>
105                                         <td><?php echo $translationFile['modified'];?></td>
106                                         <td class="actions">
107                                                 <?php echo $this->Html->link(__('View', true), array('controller' => 'translation_files', 'action' => 'view', $translationFile['id'])); ?>
108                                         </td>
109                                 </tr>
110                                 <?php endforeach; ?>
111                         </table>
112                         <?php endif; ?>
114                         <div class="actions">
115                                 <ul>
116                                         <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index', 'language_id' => $language['Language']['id']));?></li>
117                                 </ul>
118                         </div>
119                 </div>
120                 <!-- /RELATED -->
121         </div>
122 </div>
124 </div>
125 <div class="clear"></div>