<?php
//initialize the session
}
?>
<?php
require_once('localhost1.php');
if($localhost)
{
{
$conectado=true;
}
}
$sql="select * from TABULAR where folio='".$_SESSION['MM_Username']."'";
?>
<?php
if($localhost)
{
{
$conectado=true;
}
}
$nombres= explode (" ", $_SESSION['MM_Username']); $sql="select * from tabular where folio='".$_SESSION['MM_Username']."'";
$_SESSION['folio']=$row1[0];
$_SESSION['cve_ent']=$row1[1];
$_SESSION['cve_mun']=$row1[2];
$_SESSION['cve_loc']=$row1[3];
$_SESSION['cve_ageb']=$row1[4];
$_SESSION['mza']=$row1[5];
$_SESSION['num_cap']=$row1[6];
$_SESSION['nombre']=$row1[7];
?>
<!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>
<script type="text/javascript">
function tabular(evt, obj, tam) {
tecla=(document.all) ? evt.keyCode : evt.which;
if(tecla==8) return; // para la tecla de retroceso
var frm=obj.form;
var largo = obj.value.length;
if (largo == tam) {
for(i=0;i<frm.elements.length;i++)
if(frm.elements[i]==obj) {
if (i==frm.elements.length-1) i=-1;
break }
frm.elements[i+1].focus();
return false;
}
}
</script>
<script language="JavaScript" type="text/javascript">
function activaEstado(iden) //funcion para activar los campos
{
var elhtml2 = document.getElementById(iden);
var elhtml = iden;
if(elhtml2.style.display == 'none'){
elhtml2.style.display = 'block';}
else {elhtml2.style.display = 'block';}
}
</script>
<script language="JavaScript" type="text/javascript">
function desactivaEstado(iden) //funcion para desactivar los campos
{
var elhtml2 = document.getElementById(iden);
var elhtml = iden;
elhtml2.style.display = 'none';
elhtml2.value="";
}
</script>
<script type="text/javascript">
//funcion para consultar el folio
function creaAjax(){
var objetoAjax=false;
try {
/*Para navegadores distintos a internet explorer*/
objetoAjax = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
/*Para explorer*/
objetoAjax = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (E) {
objetoAjax = false;
}
}
if (!objetoAjax && typeof XMLHttpRequest!='undefined') {
objetoAjax = new XMLHttpRequest();
}
return objetoAjax;
}
function FAjax (valores)
{
var ajax=creaAjax();
var capaContenedora = document.getElementById('elDiv');
/*Creamos y ejecutamos la instancia si el metodo elegido es POST*/
ajax.open ('POST','consulta.php', true);
ajax.onreadystatechange = function() {
if (ajax.readyState==1) {
capaContenedora.innerHTML="Cargando.......";
}
else if (ajax.readyState==4){
if(ajax.status==200)
{
capaContenedora.innerHTML=ajax.responseText;
}
else if(ajax.status==404)
{
capaContenedora.innerHTML = "La direccion no existe";
}
else
{
capaContenedora.innerHTML = "Error: ".ajax.status;
}
}
}
ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
ajax.send('FOLIO_01='+valores);
return;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<style type="text/css">
style1 {
color: #0000FF;
font-weight: bold;
}
style2 {color: #0000FF}
-->
</style>
<style type="text/css">
<!--
.Estilo1 {color: #999999}
-->
</style>
</head>
<body bgcolor="#CCFF00">
<form name="formulario" id="formulario" action="ECHO.PHP" method="post" >
<h1><center>
<strong>Esto es una prueba para insertar el nombre y clave de capturista y recaptura</strong>
</center>
</h1>
<table width="950" align="center">
<tr>
<td style="border-bottom:1px dashed #A60C00"><strong>2. FOLIOS</strong></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">FOLIO DE LA VIVIENDA</div></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="FOLIO" type="text" id="FOLIO" maxlength="9" value="<? echo $_SESSION['folio'];?>" /><input name="FOLIO" type="hidden" id="FOLIO" maxlength="9" />
</div></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right" id="elDiv">?????</div></td>
</tr>
</table>
<table width="950" align="center">
<tr>
<td colspan="3" style="border-bottom:1px dashed #A60C00"><strong>1. IDENTIFICACION GEOGRAFICA</strong></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">ENTIDAD FEDERATIVA</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="CVE_ENT" type="text" id="CVE_ENT" size="2" maxlength="2" value="<? echo $_SESSION['cve_ent'];?>" />
</div></td>
<td style="border-bottom:1px dashed #A60C00"><input name="CVE_ENT" type="hidden" id="CVE_ENT" size="2" maxlength="2" /></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">MUNICIPIO O DELEGACION</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="CVE_MUN" type="text" id="CVE_MUN" size="3" maxlength="3" value="<? echo $_SESSION['cve_mun'];?>" />
</div></td>
<td style="border-bottom:1px dashed #A60C00"><input name="CVE_MUN" type="hidden" id="CVE_MUN" size="3" maxlength="3" /></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">LOCALIDAD</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="CVE_LOC" type="text" id="CVE_LOC" size="4" maxlength="4" value="<? echo $_SESSION['cve_loc'];?>" />
</div></td>
<td style="border-bottom:1px dashed #A60C00"><input name="CVE_LOC" type="hidden" id="CVE_LOC" size="4" maxlength="4" /></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">CLAVE DE AGEB</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="CVE_AGEB" type="text" id="CVE_AGEB" size="4" maxlength="4" value="<? echo $_SESSION['cve_ageb'];?>" />
</div></td>
<td style="border-bottom:1px dashed #A60C00"><input name="CVE_AGEB" type="hidden" id="CVE_AGEB" size="4" maxlength="4" /></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">MANZANA</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="MZA" type="text" id="MZA" size="3" maxlength="3" value="<? echo $_SESSION['mza'];?>" />
</div></td>
<td style="border-bottom:1px dashed #A60C00"><input name="MZA" type="hidden" id="MZA" size="3" maxlength="3" /></td>
</tr>
<tr bgcolor="#0000FF">
<td style="border-bottom:1px dashed #A60C00"><div align="right" class="Estilo1">CLAVE DE CAPTURISTA</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="num_cap" type="text" id="num_cap" size="2" maxlength="2" readonly="true" style="background:none" value="<? echo $_SESSION['num_cap'];?>" />
</div></td>
<td style="border-bottom:1px dashed #A60C00"> </td>
</tr>
<tr bgcolor="#0000FF">
<td style="border-bottom:1px dashed #A60C00"><div align="right" class="Estilo1">NOMBRE DE CAPTURISTA</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="nombre" type="text" id="nombre" size="30" maxlength="50" readonly="true" style="background:none" value="<? echo $_SESSION['nombre'];?>" />
</div></td>
<td style="border-bottom:1px dashed #A60C00"> </td>
</tr>
<tr>
<td colspan="3" style="border-bottom:1px dashed #A60C00"><div align="center">
<input type="submit" name="Guardar" value="Guardar" />
</div></td>
</tr>
</table>
</form>
</body>
</html>