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