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 __('Votes', true); ?></h5>
7 <ul class="menu"> <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('action' => 'index')); ?> </li>
8 </ul> <h5><?php echo __('Translations', true); ?></h5>
10 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
12 <h5><?php echo __('Users', true); ?></h5>
14 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
22 <h2 id="page-heading"><?php __('Votes');?></h2>
23 <table cellpadding="0" cellspacing="0"> <?php $tableHeaders = $html->tableHeaders(array($paginator->sort('id'),$paginator->sort('translation_id'),$paginator->sort('user_id'),$paginator->sort('created'),$paginator->sort('modified'),__('Actions', true),));
24 echo '<thead>'.$tableHeaders.'</thead>'; ?>
28 foreach ($votes as $vote):
31 $class = ' class="altrow"';
34 <tr<?php echo $class;?>>
35 <td><?php echo $vote['Vote']['id']; ?></td>
37 <?php echo $this->Html->link($vote['Translation']['translation_text'], array('controller' => 'translations', 'action' => 'view', $vote['Translation']['id'])); ?>
40 <?php echo $this->Html->link($vote['User']['name'], array('controller' => 'users', 'action' => 'view', $vote['User']['id'])); ?>
42 <td><?php echo $vote['Vote']['created']; ?></td>
43 <td><?php echo $vote['Vote']['modified']; ?></td>
45 <?php echo $this->Html->link(__('View', true), array('action' => 'view', $vote['Vote']['id'])); ?>
46 <?php echo ' | ' . $this->Html->link(__('Edit', true), array('action' => 'edit', $vote['Vote']['id'])); ?>
50 <?php echo '<tfoot class=\'dark\'>'.$tableHeaders.'</tfoot>'; ?>
56 echo $this->Paginator->counter(array(
57 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
62 <?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
63 | <?php echo $this->Paginator->numbers();?> |
64 <?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
67 <div class="clear"></div>