-   
- <html>  
- <head>  
- <title>Ingreso Solicitud</title>  
- </head>  
- <body> 
- <p> </p> 
- <?php include("formato.php"); ?> 
- <?php CabeceraPagina(); ?>  
- <h3>Ingreso de Solicitudes </h3> 
- <FORM ACTION="graba_db.php">  
- <TABLE>  
- <TR>  
-    <TD width="129">Nombre Solicitante:</TD>  
-    <TD width="428"><INPUT NAME="nombre" TYPE="text" id="nombre" SIZE="50" MAXLENGTH="100"></TD>  
- </TR> 
- <TR> 
-   <TD>Area:</TD> 
-   <TD><?php 
-   $link=mysql_connect("localhost","root", ""); 
-   $link1=mysql_select_db("db_soporte",$link); 
-   $result=mysql_query("select * from tbl_area ORDER BY `id_area` ASC ");  
-   echo '<select name="area">'; 
-   //Generamos el menu desplegable 
-   while ($row=mysql_fetch_array($result)) 
-   {echo '<option>'.$row["des_area"];} 
-   echo "</select>"; 
-   mysql_free_result($result);  
-   ?></TD> 
- </TR> 
- <TR> 
-   <TD>Dirección: </TD> 
-   <TD><?php 
-   $link=mysql_connect("localhost","root", ""); 
-   $link1=mysql_select_db("db_soporte",$link); 
-   $result=mysql_query("select * from tbl_direcciones ORDER BY `id_direccion` ASC ");  
-   echo '<select name="direccion">'; 
-   //Generamos el menu desplegable 
-   while ($row=mysql_fetch_array($result)) 
-   {echo '<option>'.$row["des_direccion"];} 
-   echo "</select>"; 
-   mysql_free_result($result);  
-   ?></TD> 
- </TR> 
- <TR> 
-   <TD>Unidad / Depto.:</TD> 
-   <TD><?php 
-   $link=mysql_connect("localhost","root", ""); 
-   $link1=mysql_select_db("db_soporte",$link); 
-   $result=mysql_query("select * from tbl_unidades ORDER BY `id_unidad` ASC ");  
-   echo '<select name="unidad">'; 
-   //Generamos el menu desplegable 
-   while ($row=mysql_fetch_array($result)) 
-   {echo '<option>'.$row["des_unidad"];} 
-   echo "</select>"; 
-   mysql_free_result($result);  
-   ?></TD> 
- </TR> 
- <TR> 
-   <TD>Edificio:</TD> 
-   <TD> 
-     <?php 
-   $link=mysql_connect("localhost","root", ""); 
-   $link1=mysql_select_db("db_soporte",$link); 
-   $result=mysql_query("select * from tbl_edificio ORDER BY `id_edificio` ASC ");  
-   echo '<select name="edificio">'; 
-   //Generamos el menu desplegable 
-   while ($row=mysql_fetch_array($result)) 
-   {echo '<option>'.$row["des_edificio"];} 
-   echo "</select>"; 
-   mysql_free_result($result);  
-   ?></TD> 
- </TR> 
- <TR> 
-   <TD>Piso:</TD> 
-   <TD><?php 
-   $link=mysql_connect("localhost","root", ""); 
-   $link1=mysql_select_db("db_soporte",$link); 
-   $result=mysql_query("select * from tbl_pisos ORDER BY `id_piso` ASC ");  
-   echo '<select name="piso">'; 
-   //Generamos el menu desplegable 
-   while ($row=mysql_fetch_array($result)) 
-   {echo '<option>'.$row["des_piso"];} 
-   echo "</select>"; 
-   mysql_free_result($result);  
-   ?></TD> 
- </TR> 
- <TR> 
-   <TD>Correo Electronico: </TD> 
-   <TD><input name="correo" type="text" id="correo" size="20"></TD> 
- </TR> 
- <TR> 
-   <TD>Tipo Requerimiento :</TD> 
-   <TD><?php 
-   $link=mysql_connect("localhost","root", ""); 
-   $link1=mysql_select_db("db_soporte",$link); 
-   $result=mysql_query("select * from tbl_fallas ORDER BY `id_falla` ASC ");  
-   echo '<select name="requerimiento">'; 
-   //Generamos el menu desplegable 
-   while ($row=mysql_fetch_array($result)) 
-   {echo '<option>'.$row["desc_falla"];} 
-   echo "</select>"; 
-   mysql_free_result($result);  
-   ?></TD> 
- </TR> 
- <TR> 
-   <TD>Fono / Anexo: </TD> 
-   <TD><input name="fono" type="text" id="fono" size="10"></TD> 
- </TR> 
- <TR> 
-   <TD>Fecha Solicitud: </TD> 
-   <TD><input name="fecha" type="text" disabled id="fecha" value="<?php echo date("d/m/Y")?>"></TD> 
- </TR> 
- <TR> 
-   <TD>Hora Solicitud </TD> 
-   <TD><input name="hora" type="text" disabled id="hora" value="<?php echo date("H:i:s")?>"></TD> 
- </TR> 
- </TABLE>  
- <input type="submit" name="save" value="Grabar"> 
- </FORM>  
- <hr>  
- <?php  
-    include("conex.php");  
-    include("myfunc.php"); 
-    $link=Conectarse();  
-    $result=mysql_query("select * from tbl_maestra ORDER BY `folio` DESC",$link);  
- ?>  
-    <TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1>  
-       <TR> 
-         <TD> Nº Solicitud  </TD> 
-         <TD> Fecha Solicitud  </TD> 
-         <TD> Hora Solicitud  </TD> 
-         <TD> Nombre Solicitante </TD> 
-         <TD> Unid.Depto. </TD> 
-         <TD> Fono/Anexo </TD> 
-     <TD> Requerimiento Solicitado </TD> 
-     <TD> Tecnico Asignado </TD> 
-     <TD> Estado Atencion </TD> 
-       </TR>  
- <?php        
-    while($row = mysql_fetch_array($result)) {  
-       printf("<tr><td> %s</td> 
-     <td> %s</td> 
-     <td> %s</td> 
-     <td> %s</td> 
-     <td> %s</td> 
-     <td> %s</td> 
-     <td> %s</td> 
-     <td> %s</td> 
-     <td> %s</td> 
-     </tr>", $row["folio"],$row["fecha_solicitud"],$row["hora_solicitud"],$row["nombre_usuario"],$row["depto_usuario"],$row["fono_anexo"],$row["tipo_requerimiento"],$row["tecnico_asignado"],$row["estado_atencion"]);   
-    }  
-    mysql_free_result($result);  
-    mysql_close($link);     
- ?>  
- </table>  
- <?php PiePagina(); ?> 
- </body>  
- </html>  
-   
-