mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-15 21:38:43 +00:00
68 lines
2.7 KiB
Text
68 lines
2.7 KiB
Text
|
<div class="grid_3">
|
||
|
<div class="box menubox">
|
||
|
<h2><a href="#" id="toggle-admin-actions">Actions</a></h2>
|
||
|
<div class="inbox">
|
||
|
<div class="block" id="admin-actions">
|
||
|
<h5><?php echo __('Votes', true); ?></h5>
|
||
|
<ul class="menu"> <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('action' => 'index')); ?> </li>
|
||
|
</ul> <h5><?php echo __('Translations', true); ?></h5>
|
||
|
<ul class="menu">
|
||
|
<li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||
|
</ul>
|
||
|
<h5><?php echo __('Users', true); ?></h5>
|
||
|
<ul class="menu">
|
||
|
<li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="grid_13">
|
||
|
<h2 id="page-heading"><?php __('Votes');?></h2>
|
||
|
<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),));
|
||
|
echo '<thead>'.$tableHeaders.'</thead>'; ?>
|
||
|
|
||
|
<?php
|
||
|
$i = 0;
|
||
|
foreach ($votes as $vote):
|
||
|
$class = null;
|
||
|
if ($i++ % 2 == 0) {
|
||
|
$class = ' class="altrow"';
|
||
|
}
|
||
|
?>
|
||
|
<tr<?php echo $class;?>>
|
||
|
<td><?php echo $vote['Vote']['id']; ?></td>
|
||
|
<td>
|
||
|
<?php echo $this->Html->link($vote['Translation']['translation_text'], array('controller' => 'translations', 'action' => 'view', $vote['Translation']['id'])); ?>
|
||
|
</td>
|
||
|
<td>
|
||
|
<?php echo $this->Html->link($vote['User']['name'], array('controller' => 'users', 'action' => 'view', $vote['User']['id'])); ?>
|
||
|
</td>
|
||
|
<td><?php echo $vote['Vote']['created']; ?></td>
|
||
|
<td><?php echo $vote['Vote']['modified']; ?></td>
|
||
|
<td class="actions">
|
||
|
<?php echo $this->Html->link(__('View', true), array('action' => 'view', $vote['Vote']['id'])); ?>
|
||
|
<?php echo ' | ' . $this->Html->link(__('Edit', true), array('action' => 'edit', $vote['Vote']['id'])); ?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php endforeach; ?>
|
||
|
<?php echo '<tfoot class=\'dark\'>'.$tableHeaders.'</tfoot>'; ?>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
<p>
|
||
|
<?php
|
||
|
echo $this->Paginator->counter(array(
|
||
|
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
|
||
|
));
|
||
|
?> </p>
|
||
|
|
||
|
<div class="paging">
|
||
|
<?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
|
||
|
| <?php echo $this->Paginator->numbers();?> |
|
||
|
<?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="clear"></div>
|