File: /home/asjudine/public_html/mod_act_jur_veinte.php
.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Modificar Actuaciones Juridicas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.titulos {font: 16px; color: red; 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;}
.Estilo2 {font-family: Arial; font-size: 16px; color: #990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; width:70px; height:22px;}
body {
background-image: url();
}
.boton1 {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">
<table width="671" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><fieldset><table width="669" border="0" align="center" cellpadding="2" cellspacing="2">
<tr bgcolor="#FFFFCC">
<td class="titulos"><div align="center">MODIFICACION ACTUACIONES DE PROCESOS JURIDICOS</div></td>
</tr>
<tr bgcolor="#ECE9D8">
<td height="22" class="fecha"><div align="center">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr bgcolor="#FFCC99">
<td height="42"><fieldset>
<legend><span class="texto">Ingrese número de identificación:</span></legend>
<table width="509" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="255"><span class="Estilo2">Cédula (Titular-Beneficiario):</span> </td>
<td width="287"><input name="cedula" type="text" class="campo" id="cedula" value="" size="15" maxlength="15"></td>
</tr>
</table>
</fieldset></td></tr>
<tr bgcolor="#FFCC99">
<td> </td>
</tr>
<tr bgcolor="#FFCC99">
<td><div align="center">
<input name="consultar" id="consultar" type="submit" class="boton1" value="Consultar">
<input name="button" type="button" class="boton" onclick="history.back()" value="Atrás">
<input name="button" type="button" class="boton" onclick="window.location.reload()" value="Actualizar">
</div></td>
</tr>
</table>
</fieldset></td>
</tr>
</table>
</form>
</html>
<?php
if(isset($_POST["consultar"]))
{
echo "<form name='form' action='' method='post'>";
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");
$control = mysql_query('SELECT cedula, numero_proceso, tipo_proceso, numero_contrato, tipo_contrato, codigo_sucursal, clase_negocio, despacho_judicial, ciudad_despacho, tipo_afiliado, calidad_juridica_afiliado, tipo_orden, numero_carpeta, ultimo_folio, codigo_abogado, fecha_actuacion, actividad_proceso, estado_proceso FROM procesos WHERE cedula = "' . $_POST[cedula] . '" and tipo_proceso = "JURIDICO" ');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($control)!=0))
{
echo "<TABLE width='2000' border='0' align='center' cellpadding='0' cellspacing='1'>
<TR>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CEDULA</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>PROCESO</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>ABOGADO</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>TIPO DE ORDEN</span></div></TD> <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>TIPO PROCESO</span></div></TD> <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CONTRATO</span></div></TD> <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>TIPO</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>SUCURSAL</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CLASE NEGOCIO</span></div></TD> <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>DESPACHO JUDICIAL</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CIUDAD DESPACHO</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>TIPO DE AFILIADO</span></div></TD> <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CALIDAD JURIDICA</span></div></TD> <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CARPETA</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>ULTIMO FOLIO</span></div></TD> <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>FECHA ACTUACION</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>ACTVIDAD PROCESO</span></div></TD> <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>ESTADO</span></div></TD>";
while(list($cedula, $numero_proceso, $tipo_proceso, $numero_contrato, $tipo_contrato, $codigo_sucursal, $clase_negocio, $despacho_judicial, $ciudad_despacho, $tipo_afiliado, $calidad_juridica_afiliado, $tipo_orden, $numero_carpeta, $ultimo_folio, $codigo_abogado, $fecha_actuacion, $actividad_proceso, $estado_proceso) = mysql_fetch_row($control))
{
if($actividad_proceso == 'A')
{
$actividad_proceso = 'ACTIVO';
}
else $actividad_proceso = 'INACTIVO';
if($estado_proceso == 'V')
{
$estado_proceso = 'VIGENTE';
}
else $estado_proceso = 'HISTORICO';
$sucursal = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "'.$codigo_sucursal.'" ');
if (!$sucursal) {
die('Invalid query: ' . mysql_error());
}
if($sucursal){
list($ns) = mysql_fetch_row($sucursal);
}
$abogado = mysql_query('SELECT nombre_completo FROM asjudinet_abogados WHERE codigo_abogado = "'.$codigo_abogado.'"');
if (!$abogado) {
die('Invalid query: ' . mysql_error());
}
if($abogado){list($nom) = mysql_fetch_row($abogado);}
printf("<tr>
<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$cedula."</a></span></div></td>
<td bgcolor='#ECE9D8'><div align='center' class='lista'><input type='button' value=$numero_proceso name='proceso' class=boton2 onClick =window.open('modificar_actua_pre.php?proceso=$numero_proceso&id=$cedula&cc=$cc','','top=50,left=100,toolbar=no,scrollbars=yes,width=790,height=521,status=yes')></a></span></div></td>
<td bgcolor='#C5D6FC'><div align='left' class='lista'>".$nom."</span></div></td> <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$tipo_orden."</span></div></td> <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$tipo_proceso."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$numero_contrato."</span></div></td> <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$tipo_contrato."</span></div></td> <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$ns."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$clase_negocio."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$despacho_judicial."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$ciudad_despacho."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$tipo_afiliado."</span></div></td> <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$calidad_juridica_afiliado."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$numero_carpeta."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$ultimo_folio."</span></div></td> <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$fecha_actuacion."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$actividad_proceso."</span></div></td>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$estado_proceso."</span></div></td>");
}
echo "</table>";
}
else
{
echo "<script>alert('El número de cédula del afiliado no tiene procesos jurídicos grabados');</script>";
}
}
echo "</form>";
?>