<?php	

if ($index == 0){ ?>
	<thead> 
		<tr>
			<th>ID</th>
			<th>Username ID</th>
			<th>Status</th>
			<th>Type</th>
			<th>Date Added</th>
			<th>Date Updated</th>
			<th>Action</th>
		</tr>
	</thead>
	<tbody>
<?php } ?>
	<tr>
		<td><?php echo $data->id; ?></td>
		<td class="data-username"><?php echo $data->username ?></td>
		<td><?php echo Account::getStatusLabel($data->status); ?></td>
		<td><?php echo Account::getTypeLabel($data->account_type); ?></td>
		<td><?php echo ZCommon::formatDate($data->date_created); ?></td>
		<td><?php echo ZCommon::formatDate($data->date_updated); ?></td>
		<td>
			<div class="table-actions">
				<?php echo CHtml::link('<span class="glyphicon glyphicon-pencil"></span>', '#', array('title' => 'Edit Record', 'class' => 'btn-edit-client', 'data-toggle' => 'modal','data-target' => '.modal-form',
					'data-id' => $data->id, 
					'data-status' => $data->status, 
					'data-type' => $data->account_type, 
				));  
				?>
			</div>
		</td>
	</tr>
<?php	if ($index == 0){ ?>
	</tbody>
<?php } ?>
