I have this code:
<?php
foreach ($controller->Lista() as $objProg) {
?>
<tr>
<td><?php echo $objProg->getplaca(); ?></td>
<td><?php echo $objProg->getmot(); ?></td>
<td><?php echo $objProg->getsaida(); ?></td>
<td><?php echo $objProg->getorig(); ?></td>
<td><?php echo $objProg->getdest(); ?></td>
<td><?php echo $objProg->getprev(); ?></td>
<td><?php echo $objProg->getcarga(); ?></td>
<td><?php echo $objProg->getadfin(); ?></td>
<td><?php echo $objProg->getagen(); ?></td>
<td><?php echo $objProg->getmal(); ?></td>
<td class="t1" ><div><?php echo $objProg->getobs(); ?></div></td>
<td><a href="edita.php?id=<?php echo $objProg->getid();?>"><p>Alterar</p></a></td>
</tr>
<?php
}
?>
I need to, when the echo $objProg->getdest();
is SP , paint the entire table row of a color. Any suggestions on how to do this? Do I need javascript anyway or is there any other method?