<div id="consul"style="overflow-y:auto; width:700px; height:500px;" align="center">
<link href="css/midiv.css" rel="stylesheet" type="text/css" />
<table width="754" height="52" align="center" style="border:1px solid #FFF; color:#000099; width:750px;" >
<tr style="background:#A4BEFB;" align="center">
<td width="36" style="font-size:12px;">Código</td>
<td width="201" style="font-size:12px;">Título</td>
<td width="77" style="font-size:12px;">Autor</td>
<td width="88" style="font-size:12px;">Editorial</td>
<td width="46" style="font-size:12px;">Paginas</td>
<td width="46" style="font-size:12px;">Tomo</td>
<td width="105" style="font-size:12px;">Disponibilidad</td>
<td width="115" style="font-size:12px;">Días Max de Préstamo</td>
<td width="115" style="font-size:12px;">Estado</td>
</tr>
<?php
$codigo=$_POST["codigo"];
$descripcion=$_POST["descripcion"];
$autor=$_POST["autor"];
$tema=$_POST["tema"];
$subtema=$_POST["subtema"];
$objLibro = new cLibro;
$consulta=$objLibro->consultaGeneral();
if (!empty($subtema))
$consulta=$objLibro->consultaSubtema($subtema);
if (!empty($tema))
$consulta=$objLibro->consultaTema($tema);
if (!empty($autor))
$consulta=$objLibro->consultaAutor1($autor);
if (!empty($descripcion))
$consulta=$objLibro->consultaLike($descripcion);
if (!empty($codigo))
$consulta=$objLibro->consultarId($codigo);
while($row=mysqli_fetch_array($consulta)){
if($row['codLibro']=='00'){
}else{
echo '<tr align="left">';
echo "<td style='font-size:12px; text-align:left;'>".htmlentities(utf8_decode($row['codLibro']))."</td>";
echo "<td style='font-size:12px; text-align:left;'>".htmlentities(utf8_decode($row['lbr_titulo']))."</td>";
echo "<td style='font-size:12px; text-align:left;'>".htmlentities(utf8_decode($row['lbr_autor']))."</td>";
echo "<td style='font-size:12px; text-align:left;'>".htmlentities(utf8_decode($row['lbr_editorial']))."</td>";
echo "<td style='font-size:12px; text-align:left;'>".htmlentities($row['lbr_paginas'])."</td>";
echo "<td style='font-size:12px; text-align:left;'>".htmlentities($row['lbr_tomo'])."</td>";
echo "<td style='font-size:12px; text-align:left;'>".htmlentities($row['lbr_dispon'])."</td>";
if($row['lbr_diasPrestamo']==00){
echo "<td style='font-size:12px; text-align:left;'>".htmlentities($row['lbr_diamax'])."</td>";
}else{
echo "<td style='font-size:12px; text-align:left;'>".htmlentities($row['lbr_diasPrestamo'])."</td>";
}
echo "<td style='font-size:12px; text-align:left;'>".htmlentities($row['lbr_estado'])."</td>";
echo "</tr>";
}
} //fin del while
?>
</table>