<?php
error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);
session_start();
require_once("conexion_mantenimiento.php");
$obj=new Mantenimiento();
$datos=$obj->listar_fichas($correo);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<style type="text/css">
#principal{ width:800px; height:100%; text-align: center }
#header{ width:800px; height:100px; background-color:#365f00; color:#FFFFFF; text-align: center}
#menu{ width:800px; height:25px; float:left; text-align: center}
.boton{ width:100px; height:25px; float:left; background-color:#FF0000; color:#FFFFFF}
.buscador{ width:300px; height:25px; float:left}
#main{ width:800px; height:100%; text-align: center}
.ajustar{text-align: justify}
</style>
</head>
<body>
<form action="pide_mantenimiento.php" method='get'>
<tr>
<td align='right' style="font:bold">Escriba su Correo:</td>
<td><input type="mail" name="correo" required size="20" maxlength="20" align="right" title="Escriba su Correo"/></td>
</tr>
<tr>
<table>
<tr>
<td>
<div id="content">
<div id="contenedor">
<div id="main">
<table align="center" width="800">
<tr>
<td valign="top" align="center" width="500" colspan="4">
<h3>Resultados de su búsqueda</h3>
</td>
</tr>
<tr style="background-color:#666666; color:#FFFFFF; font-weight:bold">
<td valign="top" align="center" width="300" bgcolor="365f00">
Modulo
</td>
<td valign="top" align="center" width="300" bgcolor="365f00">
Ficha
</td>
<td valign="top" align="center" width="300" bgcolor="365f00">
Fecha
</td>
<td valign="top" align="center" width="300" bgcolor="365f00">
Observacion
</td>
</tr>
<?php
// if (isset($_GET["pos"]))
// {
// $correo=$_GET["pos"];
// }
// else
// {
// $correo=0;
// }
$datos=$obj->listar_fichas($correo);
if(count($datos)==0)
{
?>
<tr>
<td valign="top" align="center" width="500" colspan="3" style="background-color:#f0f0f0">
No hay registros para ese criterio de búsqueda
</td>
</tr>
<?php
}else
{
$impresos=0;
$datos=$obj->listar_fichas($correo);
for ($i=0;$i<count($datos);$i++)
{
// $impresos++;
?>
<tr style="background-color:#f0f0f0">
<td valign="top" align="center" width="100" bgcolor="595f00">
<?php echo $datos[$i]["modulo"];?>
</td>
<td valign="top" align="center" width="100" bgcolor="595f00">
<?php echo $datos[$i]["ficha"];?>
</td>
<td valign="top" align="center" width="100" bgcolor="595f00">
<?php echo $datos[$i]["fecha"];?>
</td>
<td valign="top" align="center" width="100" bgcolor="595f00">
<?php echo $datos[$i]["observacion"];?>
</td>
</tr>
<?php
}
}
?>
<tr>
<td valign="top" align="center" width="500" colspan="4">
<hr>
<!--*************************************-->
<?php
?>
<!--*************************************-->
</td>
</tr>
</table>
</div>
</div>
</div>
<input class="color1" type="submit" name="action" align="left" value="Enviar"/>
</td>
</tr>
</table>
</form>
</body>
</html>
<?php
//}
?>