我有桌子。我需要使用3个按钮作为开始,暂停和停止。当用户在特定行上单击“开始”时,该行应以红色突出显示。当用户单击停止时,该特定行应以黄色突出显示,并且最后用户单击暂停按钮,该特定记录应以另一种颜色突出显示。我已经附上了我的代码。有人可以帮帮我吗?
<table class="table table-lg">
<thead >
<tr class="filters">
<th ><input type="text" class="form-control" placeholder="Project" disabled></th>
<th><input type="text" class="form-control" placeholder="Client " disabled></th>
<th><input type="text" class="form-control" placeholder="Project Start On" disabled></th>
<th><input type="text" class="form-control" placeholder="End On" disabled></th>
<th><input type="text" class="form-control" placeholder="Task" disabled></th>
<th><input type="text" class="form-control" placeholder="Description" disabled></th>
<th><input type="text" class="form-control" placeholder="Commission" disabled></th>
<th><input type="text" class="form-control" placeholder="Task Start On" disabled></th>
<th><input type="text" class="form-control" placeholder="Due On" disabled></th>
</tr>
</thead>
<tbody>
<?php
if(isset($view_data) && is_array($view_data) && count($view_data)): $i=1;
foreach ($view_data as $key => $data) {
?>
<tr <?php if($i%2==0){echo 'class="even"';}else{echo'class="odd"';}?>>
<td><?php echo $data['projectname']; ?></td>
<td><?php echo $data['ClientName']; ?></td>
<td><?php echo $data['datetimepicker20']; ?></td>
<td><?php echo $data['datetimepicker21']; ?></td>
<td><?php echo $data['task']; ?></td>
<td><?php echo $data['Description']; ?></td>
<td><?php echo $data['Commission']; ?></td>
<td><?php echo $data['datetimepicker21']; ?></td>
<td><?php echo $data['datetimepicker22']; ?></td>
</tr>
<?php
$i++;
}
else:
?>
<tr>
<td colspan="7" align="center" >No Records Found..</td>
</tr>
<?php
endif;
?>
</tbody>
</table>