<?php	
	
$rowColor = '';
if ( $data->status == $data::STATUS_INACTIVE )
	$rowColor = 'danger';

if ($index == 0){ ?>
	<thead> 
		<tr>
			<!--<th><input type="checkbox" class="table-checkbox-header" name="checkboxHeader" /></th>-->
			<th>Category Name</th>
			<th>Date Created</th>
			<th>Action</th>
		</tr>
	</thead>
	<tbody>
<?php } ?>
	<tr class="<?php echo $rowColor; ?>">
		<!--<td><input type="checkbox" name="ids[]" value="<?php //echo $data->id; ?>" class="table-checkbox" /></td>-->
		<td><?php echo $data->name; ?></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-category', 'data-toggle' => 'modal','data-target' => '.modal-form',
					'data-id' => $data->id, 
					'data-name' => $data->name, 
					'data-status' => $data->status, 
				));  
				?>
			</div>
		</td>
	</tr>
<?php	if ($index == 0){ ?>
	</tbody>
<?php } ?>
