
<table cellpadding="0" cellspacing="0">
    <tr>
	<th><?php echo __('Name');?></th>
	<th><?php echo __('Job Title');?></th>
	<th><?php echo __('email');?></th>
	<th><?php echo __('phone');?></th>
	<th><?php echo __('fax');?></th>
	<th><?php echo __('notes');?></th>
	<th>Primary Contact</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'].' '.$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>
		<?php if($principleContact['PrincipleContact']['primary_contact']) {
		echo "Yes";		
} ?>
	</td>
<td class="actions">
	    <button id="<?=$principleContact['PrincipleContact']['id']?>" class="ViewEditButton">View/Edit</button>

	</td>
    </tr>
    <?php endforeach; ?>
</table>

<span id="userType">principle</span>
