<?=$javascript->link('view_user'); ?>
<?=$javascript->link('view_user_email'); ?>
<span id="userID" style="display: none;"><?=$user['User']['id']?></span>

<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']; ?>
	    &nbsp;
	</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']; ?>
	    &nbsp;
	</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']; ?>
	    &nbsp;
	</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']); ?>
	    &nbsp;
	</dd>
	<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']; ?>
	    &nbsp;
	</dd>
    </dl>
</div>
<div class="related">
    <h3><?php __('Enquiries Assigned to this User');?></h3>
    <button id="show" class="showHide">Show</button>
    <button id="hide" class="showHide">Hide</button>

    <div id="ajaxLoadEnquiry" style="display:none;"><?php echo $html->image('ajax-loader.gif'); ?></div>

    <div id="enquiryTable">

    </div>
</div>


<div class="related">
    <h3>Email Correspondence with this User.</h3>
    <button id="showEmail" class="showHide">Show</button>
    <button id="hideEmail" class="showHide">Hide</button>

    <div id="ajaxLoadEmail" style="display:none;"><?php echo $html->image('ajax-loader.gif'); ?></div>


    <div id="emailTable">
    </div>
</div>


<?php debug($user); ?>