Example #1
0
	<div class="col-md-12">
		<div class="table-responsive">
			<!--tabla-->
		<table class="table">
			<thead>
				<tr>
					<th style="width: 10%">#</th>
					<th style="width: 30%">Empleado</th>
					<th style="width: 20%">Puesto</th>
					<th style="width: 20%">Entrada</th>
					<th style="width: 20%">Salida</th>
				</tr>
			</thead>
		<tbody>
			<?php 
$lasis = $asisten->listaAsistenciasDia($now);
$i = 1;
while ($l = $lasis->fetch()) {
    $act = "";
    if ($l['h_sal'] != '0000-00-00 00:00:00') {
        $act = "color:white;background-color:green;font-weight:bold";
    }
    ?>
			 <tr style="<?php 
    echo $act;
    ?>
">
			 	<td><?php 
    echo $i++;
    ?>
</td>