70 lines
2.4 KiB
Plaintext
70 lines
2.4 KiB
Plaintext
|
|
<div class="principleContacts index">
|
||
|
|
<h2><?php __('PrincipleContacts');?></h2>
|
||
|
|
<p>
|
||
|
|
<?php
|
||
|
|
echo $paginator->counter(array(
|
||
|
|
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
|
||
|
|
));
|
||
|
|
?></p>
|
||
|
|
<table cellpadding="0" cellspacing="0">
|
||
|
|
<tr>
|
||
|
|
<th><?php echo $paginator->sort('first_name');?></th>
|
||
|
|
<th><?php echo $paginator->sort('last_name');?></th>
|
||
|
|
<th><?php echo $paginator->sort('job_title');?></th>
|
||
|
|
<th><?php echo $paginator->sort('email');?></th>
|
||
|
|
<th><?php echo $paginator->sort('phone');?></th>
|
||
|
|
<th><?php echo $paginator->sort('fax');?></th>
|
||
|
|
<th><?php echo $paginator->sort('notes');?></th>
|
||
|
|
<th class="actions"><?php __('Actions');?></th>
|
||
|
|
</tr>
|
||
|
|
<?php
|
||
|
|
$i = 0;
|
||
|
|
foreach ($principleContacts as $principleContact):
|
||
|
|
$class = null;
|
||
|
|
if ($i++ % 2 == 0) {
|
||
|
|
$class = ' class="altrow"';
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<tr<?php echo $class;?>>
|
||
|
|
|
||
|
|
<td>
|
||
|
|
<?php echo $principleContact['PrincipleContact']['first_name']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $principleContact['PrincipleContact']['last_name']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $principleContact['PrincipleContact']['job_title']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $principleContact['PrincipleContact']['email']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $principleContact['PrincipleContact']['phone']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $principleContact['PrincipleContact']['fax']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $principleContact['PrincipleContact']['notes']; ?>
|
||
|
|
</td>
|
||
|
|
<td class="actions">
|
||
|
|
<?php echo $html->link(__('View', true), array('action'=>'view', $principleContact['PrincipleContact']['id'])); ?>
|
||
|
|
<?php echo $html->link(__('Edit', true), array('action'=>'edit', $principleContact['PrincipleContact']['id'])); ?>
|
||
|
|
<?php echo $html->link(__('Delete', true), array('action'=>'delete', $principleContact['PrincipleContact']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $principleContact['PrincipleContact']['id'])); ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<div class="paging">
|
||
|
|
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
|
||
|
|
| <?php echo $paginator->numbers();?>
|
||
|
|
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
|
||
|
|
</div>
|
||
|
|
<div class="actions">
|
||
|
|
<ul>
|
||
|
|
<li><?php echo $html->link(__('New PrincipleContact', true), array('action'=>'add')); ?></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|