File: /home/asjudine/public_html/financiera_actualizar_correspondencia.php
<html>
<head>
<title>Consulta Cartera por cedula y Nombre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.titulos {
font: 16px;
color: #FFF;
font-family:Arial;
font-weight:bold
}
.boton {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 11px; font-family: Arial; color:#0000CC; display: block;}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.campo {background-color:#FFFFAA; width: 100px; border:2px solid #990000;}
.lista {font-family: Arial; font-size: 11px; color: #990000;}
.lista2 {font-family: Arial; font-size: 16px; color: #FF6600;}
.boton2 {
font-family: Verdana;
font-size: 8 pt;
color: #000080;
background-color: #C0C0C0;
border-style: solid;
width:90px;
height:22px;
}
body {
background-image: url(ELEMENTOS/beig.jpg );
}
.Estilo50 {color: #CC3333;
font-family: "Arial Narrow";
font-weight: bold;
}
.Estilo51 {
color: #000;
font-weight: bold;
}
.boton1 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.boton11 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
-->
</style>
<script languaje="JavaScript">
function Mostrar_Fecha()
{
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}
</script>
<script language="javascript">
function AbreGral()
{
var menu;
menu=window.open("mostrar_ingreso.php","","toolbar=no,scrollbars=no,width=800,height=500,status=yes");
menu.focus();
var ventana = window.self;
ventana.opener = window.self;
ventana.close();
}
</script>
</head>
<body onLoad="document.formulario.cedula.focus()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="formulario" action="" method="post">
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=57% height="91" > </center>
<br><br>
<table width="671" border="3" cellspacing="2" cellpadding="2" align="center" bgcolor="gray">
<tr>
<td><fieldset><table width="669" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#330066">
<tr bgcolor="#FFFFCC">
<td colspan="2" bgcolor="#0066FF" class="titulos"><div align="center"> MODIFICAR NUMERO DE CEDULA</div></td>
</tr>
<tr bgcolor="#ECE9D8">
<td height="22" colspan="2" bgcolor="#FFFFFF" class="fecha"><div align="center">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr bgcolor="#FFCC99">
<td align="center" bgcolor="#CCCCCC" >
<p><span class="Estilo51">Cédula o Codigo:</span></p>
</td>
<td bgcolor="#CCCCCC">
<input name="cedula2" type="text" class="campo1" id="cedula2" value="" size="15" maxlength="15">
</td>
</tr>
<tr bgcolor="#FFCC99">
<td colspan="2" bgcolor="#CCCCCC"><div align="center"><span class="Estilo51">
<input name="consultar" id="consultar" type="submit" class="Estilo51" value="Consultar Por Cedula">
</span></div></td>
</tr>
<tr bgcolor="#FFCC99">
<td colspan="2" bgcolor="#CCCCCC"><div align="center" class="Estilo51">
</div></td>
</tr>
</table>
</fieldset></td>
</tr>
</table>
</form>
</body>
</html>
<?php
if(isset($_POST["consultar"]))
{
require_once("Conectarse.php");
echo "<form name='form' action='' method='post'>";
require_once("mainfile.php");
include ("config.php");
global $dbi;
$resulta = mysql_query('SELECT Identificacion,numradica, Nombre_Completo FROM correspondencias WHERE Identificacion = "' . $_POST["cedula2"] . '" and estado!= "0" and estado!= "5" ');
if (!$resulta) {
die('Invalid query: ' . mysql_error());
}
?>
<TABLE width="809" border="0" align="center" cellpadding="0" cellspacing="4">
<TR>
<TD bgcolor="#FFFFCC"><div align='center'><span class="Estilo11">ID</span></div></TD>
<TD bgcolor="#FFFFCC"><div align='center'><span class="Estilo11">NOMBRE</span></div></TD>
<TD bgcolor="#FFFFCC"><div align='center'><span class="Estilo11"># RADICACIÓN</span></div></TD>
</TR>
<?php
if($resulta != "0")
{
while(list($Identificacion,$numradica, $Nombre) = mysql_fetch_row($resulta)){
printf("<tr>
<td bgcolor='#ECE9D8'><div align='center' class='lista'><input type='button' value='$Identificacion' name='cedu' class=Estilo51 onClick =window.open('modificar_correspondencia.php?id=".$Identificacion."&rad=".$numradica."','','top=50,left=100,toolbar=no,scrollbars=yes,width=850,height=550,status=yes')></a></span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='Estilo8'>".$Nombre."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='Estilo8'>".$numradica."</span></div></td>
</tr>");
}
}
}
?>