<div class="t"><?php echo $titulo; ?></div>
<table border="0" cellspacing="0" cellpadding="0" class="hovertable" width="100%">
	  <tr>
    <th></th>
	  <th>C&Oacute;DIGO</th>
	  <th>DESCRIPCI&Oacute;N</th>
    <th>CERRAR PLANILLA<br><font color=#B40404>aaaa-mm-dd hh-min</font></th>
    <th>CERRAR RECUPERACI&Oacute;N<br><font color=#B40404>aaaa-mm-dd hh-min</font></th>    	  
    </tr>

           <?php $cantidad=0; ?>
	   <?php foreach ($tsArray as $data): ?>
                                      
               <?php $cantidad++; ?>
	       <tr onmouseover="this.style.backgroundColor='#89F2AC';" onmouseout="this.style.backgroundColor='#BBE9EE';">
               <td align="center"> <img id="elemento2"  class="confirmar" src="imagenes/editar.jpg" onClick="Editar(<?php echo $data['codigo'];?>,<?php echo $inicio; ?>)" height="20" width="20" alt="Editar" title="Editar">  </td>
               <td align="center"><?php echo $data['codigo'];?></td>
               <td><?php echo ($data['descripcion']);?></td>
               <td align="center"><?php echo ($data['fecha_planilla']);?></td>
               <td align="center"><?php echo ($data['fecha_recuperacion']);?></td>               

        </tr>
	   <?php endforeach; ?>

            <?php

            if ($cantidad>=1 && $cantidad<10){

                  for ($i=1; $i<=10-$cantidad; $i++) {  ?>

                     <tr onmouseover="this.style.backgroundColor='#89F2AC';" onmouseout="this.style.backgroundColor='#BBE9EE';">
                     <td align="center"> <img id="elemento1"  class="confirmar" src="imagenes/foto1b.jpg" height="20" width="20" >  </td>
                     <td align="center"> <img id="elemento2"  class="confirmar" src="imagenes/foto1b.jpg" height="20" width="20" >  </td>
                     <td></td><td></td><td></td><td></td>
	                   </tr>

                 <?php }


                  }?>

            </table>

<div id="insertar">

</div>
