2009-01-12 21:13:18 -08:00
|
|
|
<div class="users view">
|
|
|
|
|
<h2><?php __('User: '.$user['User']['username'] );?></h2>
|
|
|
|
|
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Username'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $user['User']['username']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('First Name'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $user['User']['first_name']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Last Name'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $user['User']['last_name']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $html->link($user['User']['email'], 'mailto:'.$user['User']['email']); ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
2009-03-19 22:37:24 -07:00
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Group'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $html->link($user['Group']['name'], array('controller'=>'groups', 'action' => 'view/'.$user['Group']['id'])); ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
2009-01-12 21:13:18 -08:00
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Job Title'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $user['User']['job_title']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="related">
|
|
|
|
|
<h3><?php __('Enquiries Assigned to this User');?></h3>
|
|
|
|
|
<? /* If there are enquiries for this user, render the enquiries table passing the $enquiries array */ ?>
|
|
|
|
|
<?php if (!empty($user['Enquiry'])) {
|
|
|
|
|
echo $this->element('enquiry_table', $enquiries);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo "No Enquiries for this User";
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add'));?> </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2011-03-05 21:27:20 -08:00
|
|
|
|
|
|
|
|
<?php if(!empty($user['Principle']['id'])) {
|
|
|
|
|
echo "Principle Contact!!";
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<?php debug($user); ?>
|