Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / webtt / app / views / users / view.ctp
blob1014a2d7188dbf788df5ed84b3a4d9ddee0746a9
1 <div class="grid_3">
2         <div class="box menubox">               <h2>
3                         <a href="#" id="toggle-admin-actions">Actions</a>
4                 </h2>
5                 <div class="inbox">
6                 <div class="block" id="admin-actions">
7                         <h5><?php echo __('Users', true); ?></h5>
8                         <ul class="menu">
9                                                         <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('action' => 'index')); ?> </li>
10                         </ul>
11                                 
12                         <h5>Translations</h5>
13                         <ul class="menu">
14                                 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index', 'user_id' => $user['User']['id'])); ?> </li>
15                                 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add', 'user_id' => $user['User']['id'])); ?> </li>
16                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
17                                 <li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
18                         </ul>
20                         <h5>Votes</h5>
21                         <ul class="menu">
22                                 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index', 'user_id' => $user['User']['id'])); ?> </li>
23                                 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add', 'user_id' => $user['User']['id'])); ?> </li>
24                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
25                                 <li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
26                         </ul>
28                         <h5>Comments</h5>
29                         <ul class="menu">
30                                 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index', 'user_id' => $user['User']['id'])); ?> </li>
31                                 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add', 'user_id' => $user['User']['id'])); ?> </li>
32                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index')); ?> </li>
33                                 <li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add')); ?> </li>
34                         </ul>
35                 </div>
36                 </div>
37         </div>
38 </div>
40 <div class="grid_13">
42 <div class="box">
43         <div class="users view">
44         <h2><?php  __('User');?></h2>
45                 <div class="block">
46                         <div class="dl">
47                                 <?php $i = 1; $class = ' altrow';?>
48                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
49                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
50                                         <?php echo $user['User']['id']; ?>
51                                 </div>
52                                 <?php $i++; ?>
53                                 <div style="clear: both"></div>
55                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Name'); ?></div>
56                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
57                                         <?php echo $user['User']['name']; ?>
58                                 </div>
59                                 <?php $i++; ?>
60                                 <div style="clear: both"></div>
62                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Email'); ?></div>
63                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
64                                         <?php echo $user['User']['email']; ?>
65                                 </div>
66                                 <?php $i++; ?>
67                                 <div style="clear: both"></div>
69                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Username'); ?></div>
70                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
71                                         <?php echo $user['User']['username']; ?>
72                                 </div>
73                                 <?php $i++; ?>
74                                 <div style="clear: both"></div>
76                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Role'); ?></div>
77                                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
78                                         <?php echo $user['User']['role']; ?>
79                                 </div>
80                                 <?php $i++; ?>
81                                 <div style="clear: both"></div>
83                         </div>
84                 </div>
85         </div>
86 </div>
88 <div class="box">
89         <h2>
90                 <a href="#" id="toggle-related-records"><?php echo (__('Related', true)); ?></a>
91         </h2>
92         <div class="block" id="related-records">
93                 <!-- RELATED -->
94                 <!-- Translation -->
95                 <div class="related">
96                         <h3><?php printf(__('Related %s', true), __('Translations', true));?></h3>
97                         <?php if (!empty($user['Translation'])):?>
98                         <table cellpadding = "0" cellspacing = "0">
99                                 <thead>
100                                         <tr>
101                                                 <th><?php __('Id'); ?></th>
102                                                 <th><?php __('Identifier Id'); ?></th>
103                                                 <th><?php __('Identifier Column Id'); ?></th>
104                                                 <th><?php __('Translation Text'); ?></th>
105                                                 <th><?php __('User Id'); ?></th>
106                                                 <th><?php __('Best'); ?></th>
107                                                 <th><?php __('Created'); ?></th>
108                                                 <th><?php __('Modified'); ?></th>
109                                                 <th class="actions"><?php __('Actions');?></th>
110                                         </tr>
111                                 </thead>
112                                 <?php
113                                 $i = 0;
114                                 foreach ($user['Translation'] as $translation):
115                                         $class = null;
116                                         if ($i++ % 2 == 0) {
117                                                 $class = ' class="altrow"';
118                                         }
119                                 ?>
120                                 <tr<?php echo $class;?>>
121                                         <td><?php echo $translation['id'];?></td>
122                                         <td><?php echo $translation['identifier_id'];?></td>
123                                         <td><?php echo $translation['identifier_column_id'];?></td>
124                                         <td><?php echo $translation['translation_text'];?></td>
125                                         <td><?php echo $translation['user_id'];?></td>
126                                         <td><?php echo $translation['best'];?></td>
127                                         <td><?php echo $translation['created'];?></td>
128                                         <td><?php echo $translation['modified'];?></td>
129                                         <td class="actions">
130                                                 <?php echo $this->Html->link(__('View', true), array('controller' => 'translations', 'action' => 'view', $translation['id'])); ?>
131                                                 <?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'translations', 'action' => 'edit', $translation['id'])); ?>
132                                                 <?php echo ' | '. $this->Html->link(__('Delete', true), array('controller' => 'translations', 'action' => 'delete', $translation['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translation['id'])); ?>
133                                         </td>
134                                 </tr>
135                                 <?php endforeach; ?>
136                         </table>
137                         <?php endif; ?>
139                         <div class="actions">
140                                 <ul>
141                                         <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index', 'user_id' => $user['User']['id']));?></li>
142                                         <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add', 'user_id' => $user['User']['id']));?></li>
143                                 </ul>
144                         </div>
145                 </div>
146                 <!-- Vote -->
147                 <div class="related">
148                         <h3><?php printf(__('Related %s', true), __('Votes', true));?></h3>
149                         <?php if (!empty($user['Vote'])):?>
150                         <table cellpadding = "0" cellspacing = "0">
151                                 <thead>
152                                         <tr>
153                                                 <th><?php __('Id'); ?></th>
154                                                 <th><?php __('Translation Id'); ?></th>
155                                                 <th><?php __('User Id'); ?></th>
156                                                 <th><?php __('Created'); ?></th>
157                                                 <th><?php __('Modified'); ?></th>
158                                                 <th class="actions"><?php __('Actions');?></th>
159                                         </tr>
160                                 </thead>
161                                 <?php
162                                 $i = 0;
163                                 foreach ($user['Vote'] as $vote):
164                                         $class = null;
165                                         if ($i++ % 2 == 0) {
166                                                 $class = ' class="altrow"';
167                                         }
168                                 ?>
169                                 <tr<?php echo $class;?>>
170                                         <td><?php echo $vote['id'];?></td>
171                                         <td><?php echo $vote['translation_id'];?></td>
172                                         <td><?php echo $vote['user_id'];?></td>
173                                         <td><?php echo $vote['created'];?></td>
174                                         <td><?php echo $vote['modified'];?></td>
175                                         <td class="actions">
176                                                 <?php echo $this->Html->link(__('View', true), array('controller' => 'votes', 'action' => 'view', $vote['id'])); ?>
177                                                 <?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'votes', 'action' => 'edit', $vote['id'])); ?>
178                                         </td>
179                                 </tr>
180                                 <?php endforeach; ?>
181                         </table>
182                         <?php endif; ?>
184                         <div class="actions">
185                                 <ul>
186                                         <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index', 'user_id' => $user['User']['id']));?></li>
187                                         <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add', 'user_id' => $user['User']['id']));?></li>
188                                 </ul>
189                         </div>
190                 </div>
191                 <!-- Comment -->
192                 <div class="related">
193                         <h3><?php printf(__('Related %s', true), __('Comments', true));?></h3>
194                         <?php if (!empty($user['Comment'])):?>
195                         <table cellpadding = "0" cellspacing = "0">
196                                 <thead>
197                                         <tr>
198                                                 <th><?php __('Id'); ?></th>
199                                                 <th><?php __('Translation Id'); ?></th>
200                                                 <th><?php __('Identifier Id'); ?></th>
201                                                 <th><?php __('User Id'); ?></th>
202                                                 <th><?php __('Comment'); ?></th>
203                                                 <th><?php __('Created'); ?></th>
204                                                 <th><?php __('Modified'); ?></th>
205                                                 <th class="actions"><?php __('Actions');?></th>
206                                         </tr>
207                                 </thead>
208                                 <?php
209                                 $i = 0;
210                                 foreach ($user['Comment'] as $comment):
211                                         $class = null;
212                                         if ($i++ % 2 == 0) {
213                                                 $class = ' class="altrow"';
214                                         }
215                                 ?>
216                                 <tr<?php echo $class;?>>
217                                         <td><?php echo $comment['id'];?></td>
218                                         <td><?php echo $comment['translation_id'];?></td>
219                                         <td><?php echo $comment['identifier_id'];?></td>
220                                         <td><?php echo $comment['user_id'];?></td>
221                                         <td><?php echo $comment['comment'];?></td>
222                                         <td><?php echo $comment['created'];?></td>
223                                         <td><?php echo $comment['modified'];?></td>
224                                         <td class="actions">
225                                                 <?php echo $this->Html->link(__('View', true), array('controller' => 'comments', 'action' => 'view', $comment['id'])); ?>
226                                                 <?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'comments', 'action' => 'edit', $comment['id'])); ?>
227                                                 <?php echo ' | '. $this->Html->link(__('Delete', true), array('controller' => 'comments', 'action' => 'delete', $comment['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $comment['id'])); ?>
228                                         </td>
229                                 </tr>
230                                 <?php endforeach; ?>
231                         </table>
232                         <?php endif; ?>
234                         <div class="actions">
235                                 <ul>
236                                         <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index', 'user_id' => $user['User']['id']));?></li>
237                                         <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add', 'user_id' => $user['User']['id']));?></li>
238                                 </ul>
239                         </div>
240                 </div>
241                 <!-- /RELATED -->
242         </div>
243 </div>
245 </div>
246 <div class="clear"></div>