<div class="contactCategories view">
<h2><?php  __('ContactCategory');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $contactCategory['ContactCategory']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $contactCategory['ContactCategory']['name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit ContactCategory', true), array('action'=>'edit', $contactCategory['ContactCategory']['id'])); ?> </li>
		<li><?php echo $html->link(__('Delete ContactCategory', true), array('action'=>'delete', $contactCategory['ContactCategory']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $contactCategory['ContactCategory']['id'])); ?> </li>
		<li><?php echo $html->link(__('List ContactCategories', true), array('action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New ContactCategory', true), array('action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('List Contacts', true), array('controller'=> 'contacts', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New Contact', true), array('controller'=> 'contacts', 'action'=>'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Contacts');?></h3>
	<?php if (!empty($contactCategory['Contact'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Customer Id'); ?></th>
		<th><?php __('Id'); ?></th>
		<th><?php __('First Name'); ?></th>
		<th><?php __('Last Name'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Phone'); ?></th>
		<th><?php __('Fax'); ?></th>
		<th><?php __('Notes'); ?></th>
		<th><?php __('Mobile'); ?></th>
		<th><?php __('Contact Category Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($contactCategory['Contact'] as $contact):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $contact['customer_id'];?></td>
			<td><?php echo $contact['id'];?></td>
			<td><?php echo $contact['first_name'];?></td>
			<td><?php echo $contact['last_name'];?></td>
			<td><?php echo $contact['email'];?></td>
			<td><?php echo $contact['phone'];?></td>
			<td><?php echo $contact['fax'];?></td>
			<td><?php echo $contact['notes'];?></td>
			<td><?php echo $contact['mobile'];?></td>
			<td><?php echo $contact['contact_category_id'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller'=> 'contacts', 'action'=>'view', $contact['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller'=> 'contacts', 'action'=>'edit', $contact['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller'=> 'contacts', 'action'=>'delete', $contact['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $contact['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Contact', true), array('controller'=> 'contacts', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>
