File: /home/asjudine/www/ingresar_registro_bogota_nuevo_entidades.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");
if(isset($_POST["consultar"]))
{
$control = mysql_query('SELECT cedula, codigo_militar, nombre, grado, numerocontrato, tipocontrato , numero_libranza , tipo_afiliado, codigo_sucursal, direccion , telefono, celular, ciudad , email, cuenta, banco, entidad_laboral, unidad_descuento, codigo_descuento, entidad_recaudo, fecha_nacimiento, fecha_afiliacion, valorcontrato, numerocuotas, valorcuota, fecha_inicio_contrato, fecha_termino_contrato, fecha_ultimo_registro, mes_inicio, ano_inicio, mes_termino, ano_termino, saldoanteior, cuotaspendientes, cuotasdescontadas, saldonuevo, vendedor, director, beneficiarios, renovacion, causal_terminacion, fecha_terminacion, estado FROM cartera_serviasjudinet WHERE cedula = "' . $_GET["ced2"] . '" and numerocontrato = "' . $_GET["numcon"] . '" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control);
list($cedu, $codi, $apeno, $grad, $numcont, $plan, $num_lib, $titular, $codigosu, $dire, $tele, $celul, $ciue, $email, $cue, $ban, $enti, $unides, $codides, $entre, $fecna, $fechafil, $valcon, $numcuo, $valcuo, $fechainicio, $fechatermino, $fechaul, $mesini, $anoini, $mesfin, $anofin, $salant, $cupen, $cudesc, $salnue, $ven, $director, $bene, $renova, $causal, $fechater, $esta) = mysql_fetch_row($control);
if ($num == 0)
{
$control = mysql_query('SELECT fecha_credito, nombre, cedula, codigo, grado, direccion, ciudad, telefono , telefono, email, valor_credito FROM creditos_serviasjudinet WHERE cedula = "' . $_POST[ced] . '" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control);
list($fecha, $apeno, $cedu, $codi, $grad, $dire, $ciue, $tele, $celul, $em, $ms) = mysql_fetch_row($control);
}
$control3 = mysql_query('SELECT nombre FROM empresas WHERE codigo = "' ."$el". '" ');
if (!$control3) {
die('Invalid query 3: ' . mysql_error());
}
list($el) = mysql_fetch_row($control3);
$control10 = mysql_query('SELECT plan FROM planes_ventas WHERE codigo = "' ."$tipo_contrato". '" ');
if (!$control10) {
die('Invalid query 6: ' . mysql_error());
}
$num2=mysql_num_rows($control10);
if($num2!=0)
{
list($pln) = mysql_fetch_row($control10);
}else{
$pln=$tipo_contrato;
}
}
?>
<!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>Consulta Ingresar Correspondencia Bogotá</title>
<style type="text/css">
<!--
.Estilo10 { font-size: 14px;
font-weight: bold;
}
.Estilo12 {
font-size: 11px
}
.Estilo15 { font-size: 12px;
color: #000000;
font-weight: bold;
}
.campo1 { background-color: #B7FFFF;
border: thin dashed #B6B6B6;
}
.campo1 { font-family: "Courier New", Courier, monospace;
font-size: 16px;
font-style: normal;
font-weight: bold;
background-color: #E1EFFD;
border: thin doble #009999;
}
.campo1 {
font-family: "Courier New", Courier, monospace;
font-size: 12px;
color: #5151FF;
background-color: #C4E4FD;
border: thin solid #009999;
height: 20px;
width: auto;
}
.datos3 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #FF3300;
background-color: #A6ECD7;
margin: 4px;
padding: 4px;
border: medium groove #CCCCFF;
}
.campo {background-color: #FFFFCC; border:1px solid #990000; font-family:Arial; font-size:11px; height: inherit}
.Estilo50 {color: #CC3333;
font-family: "Arial Narrow";
font-weight: bold;
}
.Estilo1 { color: #FF6633;
font-size: 24px;
font-style: italic;
}
.Estilo2 { color: #FF6633;
font-size: 16px;
}
.Estilo3 { color: #2492FF;
font-weight: bold;
}
.recaudo { font-family: "Courier New", Courier, monospace;
font-size: 12px;
font-style: normal;
font-weight: bold;
font-variant: normal;
color: #000000;
background-color: #B6CBDC;
margin: 4px;
padding: 8px;
width: auto;
border: medium outset #339966;
}
.datos2 {
font-family: "Courier New", Courier, monospace;
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #0033FF;
background-color: #FFE2C6;
margin: 2px;
padding: 3px;
border: medium doble #EEBFEB;
}
.go {
font-family: "Times New Roman", Times, serif;
font-size: 9px;
font-style: normal;
color: #FF6633;
background-color: #FBDCBD;
padding: 1px;
height: auto;
width: auto;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
}
.Estilo8 { font-size: 20px;
font-weight: bold;
}
.Estilo4 { color: #FF1A1A;
font-weight: bold;
}
.datos1 { font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 16px;
font-style: normal;
text-decoration: blink;
background-color: #CCFFCC;
margin: 5px;
padding: 7px;
height: auto;
width: auto;
border: thin solid #0099FF;
}
.datos1 { font-family: Georgia, "Times New Roman", Times, serif;
font-size: 16px;
background-color: #FDE0C1;
margin: 2px;
padding: 3px;
border: medium doble #DBAED7;
}
.datos1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
font-weight: normal;
background-color: #B8F5E8;
margin: 4px;
padding: 5px;
border: thin outset #009999;
}
.Estilo52 {font-size: 16px}
.Estilo54 {font-size: 14px}
-->
</style>
</head>
<body>
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>
<br>
<form id="form1" name="form1" method="post" action="enviar_registro_correspondencia_entidades.php">
<div align="center">
<table width="330" border="3" cellpadding="3" cellspacing="3" class="recaudo">
<caption>
<span class="Estilo1">INGRESAR CORRESPONDENCIA BOGOTÁ</span>
</caption>
<tr>
<th colspan="2" class="campo" scope="col"><label>Digite el Numero de Cedula </label></th>
</tr>
<tr>
<td width="162" class="campo"><div align="center"><span class="Estilo2">CEDULA : </span></div></td>
<td width="135" class="campo"><div align="center">
<input name="cedula" type="text" id="cedula" size="20" maxlength="20" />
</div></td>
</tr>
<tr>
<td colspan="2" class="campo"><div align="center">
<input name="consultar" type="submit" class="Estilo3" id="consultar" value="Consultar" />
</div></td>
</tr>
</table>
</div>
<p align="center">
<input name="menu2" type="button" class="Estilo50" id="menu2" onclick="window.location.href='menu_correspondencias_entidades.php'" value="IR AL MENU" />
<table align="center">
<tr align="center">
<td align="center">
<input name="menu2" type="button" class="Estilo50" id="menu2" onClick="window.location.href='enviar_recibo_correspondencia_nuevo_entidades.php'" value="INGRESAR DATOS DE LA PERSONA">
</td></tr>
</table>
</p>
</form>
</body>
</html>