2 <div class="box menubox">
3 <h2><a href="#" id="toggle-admin-actions">Actions</a></h2>
5 <div class="block" id="admin-actions">
6 <h5><?php echo __('Comments', true); ?></h5>
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>
11 <h5><?php echo __('Identifiers', true); ?></h5>
13 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
15 <h5><?php echo __('Users', true); ?></h5>
17 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
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>'; ?>
31 foreach ($comments as $comment):
34 $class = ' class="altrow"';
37 <tr<?php echo $class;?>>
38 <td><?php echo $comment['Comment']['id']; ?></td>
40 <?php echo $this->Html->link($comment['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $comment['Identifier']['id'])); ?>
43 <?php echo $this->Html->link($comment['User']['name'], array('controller' => 'users', 'action' => 'view', $comment['User']['id'])); ?>
45 <td><?php echo $comment['Comment']['comment']; ?></td>
46 <td><?php echo $comment['Comment']['created']; ?></td>
47 <td><?php echo $comment['Comment']['modified']; ?></td>
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'])); ?>
55 <?php echo '<tfoot class=\'dark\'>'.$tableHeaders.'</tfoot>'; ?>
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)
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'));?>
72 <div class="clear"></div>