1
<div class="grants index">
2
<h2><?php __('Grants');?></h2>
3
<table cellpadding="0" cellspacing="0">
5
<th><?php echo $this->Paginator->sort('id');?></th>
6
<th><?php echo $this->Paginator->sort('hospital_id');?></th>
7
<th><?php echo $this->Paginator->sort('group_id');?></th>
8
<th><?php echo $this->Paginator->sort('right_id');?></th>
9
<th class="actions"><?php __('Actions');?></th>
13
foreach ($grants as $grant):
16
$class = ' class="altrow"';
19
<tr<?php echo $class;?>>
20
<td><?php echo $grant['Grant']['id']; ?> </td>
22
<?php echo $this->Html->link($grant['Hospital']['shortname'], array('controller' => 'hospitals', 'action' => 'view', $grant['Hospital']['id'])); ?>
25
<?php echo $this->Html->link($grant['Group']['name'], array('controller' => 'groups', 'action' => 'view', $grant['Group']['id'])); ?>
28
<?php echo $this->Html->link($grant['Right']['name'], array('controller' => 'rights', 'action' => 'view', $grant['Right']['id'])); ?>
31
<?php echo $this->Html->link(__('View', true), array('action' => 'view', $grant['Grant']['id'])); ?>
32
<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $grant['Grant']['id'])); ?>
33
<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $grant['Grant']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $grant['Grant']['id'])); ?>
40
echo $this->Paginator->counter(array(
41
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
46
<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
47
| <?php echo $this->Paginator->numbers();?>
49
<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
53
<h3><?php __('Actions'); ?></h3>
55
<li><?php echo $this->Html->link(__('New Grant', true), array('action' => 'add')); ?></li>
56
<li><?php echo $this->Html->link(__('List Hospitals', true), array('controller' => 'hospitals', 'action' => 'index')); ?> </li>
57
<li><?php echo $this->Html->link(__('New Hospital', true), array('controller' => 'hospitals', 'action' => 'add')); ?> </li>
58
<li><?php echo $this->Html->link(__('List Groups', true), array('controller' => 'groups', 'action' => 'index')); ?> </li>
59
<li><?php echo $this->Html->link(__('New Group', true), array('controller' => 'groups', 'action' => 'add')); ?> </li>
60
<li><?php echo $this->Html->link(__('List Rights', true), array('controller' => 'rights', 'action' => 'index')); ?> </li>
61
<li><?php echo $this->Html->link(__('New Right', true), array('controller' => 'rights', 'action' => 'add')); ?> </li>
b'\\ No newline at end of file'