File: /home/asjudine/www/ingresar_inicio_gestion.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
function Conectarse()
{
if (!($link=@mysql_connect("localhost","asjudine","as2006")))
{
echo "Error conectando con el servidor.";
exit();
}
$dbname = "asjudinet";
if (!@mysql_select_db($dbname,$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
Conectarse();
$dia = date("d");
$mes = date("m");
$ano = date("Y");
$resul = mysql_query('SELECT codigo FROM Usuarios WHERE Cedula = "' . $HTTP_GET_VARS["cf"] . '" ');
if (!$resul) {
die('Invalid query: ' . mysql_error());
}
if($resul){list($codigo_funcionario) = mysql_fetch_row($resul);}
$control = mysql_query('SELECT cedula, nombre, numerocontrato, tipocontrato, tipo_afiliado, codigo_sucursal, direccion, telefono, celular, ciudad FROM cartera_serviasjudinet WHERE cedula = "' . $HTTP_GET_VARS["id"] . '" and numerocontrato = "' . $HTTP_GET_VARS["numcon"] . '" and tipocontrato = "' . $HTTP_GET_VARS["tipo"] . '"');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($control)!=0))
{
list($cedula, $nombre, $contrato, $tipo, $tipo_afi, $cod_s, $dir, $tel, $cel, $ciudad) = mysql_fetch_row($control);
$eldia = $_POST[dia_act];
$elmes = $_POST[mes_act];
$elano = $_POST[ano_act];
$fecha_actuacion = ($_POST[eldia]."-".$_POST[elmes]."-".$_POST[elano]);
$misql2 = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' ."$cod_s". '" ');
if (!$misql2) {
die('Invalid query: ' . mysql_error());
}
if($misql2){list($nombre_s) = mysql_fetch_row($misql2);}
}
else
{
$control = mysql_query('SELECT * FROM beneficiarios WHERE cedula = "' . $HTTP_GET_VARS["id"] . '" order by nombre ');
if (!$control) {
die('Invalid query 2: ' . mysql_error());
}
list($cedula, $nombre , $ceditit, $contrato, $tipo, $afili, $tel , $cel, $dir, $ciudad, $email, $caulsass, $fechacau, $estado) = mysql_fetch_row($control);
if ($cedula != 0)
{
$tipo_afi = "BENEFICIARIO";
}
}
if(isset($_POST["guardar"]))
{
// $mysql = "select * from procesos where cedula = '$cedula' and numero_proceso = '$numero_proceso'";
// $control = mysql_query($mysql, $dbi) or die(mysql_error());
$resu2 = mysql_query('SELECT * FROM procesos WHERE cedula = "' . $_POST[cedula] . '" and numero_proceso = "' . $_POST[numero_proceso] . '" ');
if (!$resu2) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($resu2)==0))
{
$fecha = ($_POST[dia_act]."-".$_POST[mes_act]."-".$_POST[ano_act]);
$eldia = $_POST[dia_act];
$elmes = $_POST[mes_act];
$elano = $_POST[ano_act];
$fecha_actuacion = ($_POST[eldia]."-".$_POST[elmes]."-".$_POST[elano]);
// Aqui se soluciona lo de la fecha
$nuevafecha = $_POST[ano]."-".$_POST[mes]."-".$_POST[dia];
$despacho_judicial = strtoupper($despacho_judicial);
$ciudad_despacho = strtoupper($ciudad_despacho);
//guarda procesos
if ($tipo_proceso == 12 )
{
$tipo_proceso = "PREJURIDICO";
}
else
{
if ($tipo_proceso == 9)
{
$tipo_proceso = "SUSTANCIACION";
}
else
{
if ($tipo_proceso == 13)
{
$tipo_proceso = "GESTIONES JURIDICAS ADMINISTRATIVAS";
}
else
{
$tipo_proceso = "JURIDICO";
}
}
}
$conttr = mysql_query('SELECT cantidad_procesos FROM control_procesos WHERE contrato = "' .$contrato. '" ');
if (!$conttr) {
die('Invalid query proceso bene: ' . mysql_error());
}
list($cantipro) = mysql_fetch_row($conttr);
$cont = mysql_query('SELECT cantidad_sustanciacion FROM control_sustanciacion WHERE contrato = "' .$contrato. '" ');
if (!$cont) {
die('Invalid query proceso bene: ' . mysql_error());
}
list($cantisus) = mysql_fetch_row($cont);
$conttr = mysql_query('SELECT cantidad_procesos , canitdad_sustasiacion FROM planes_contratos WHERE codigo_contrato = "' .$tipo. '" ');
if (!$conttr) {
die('Invalid query proceso bene: ' . mysql_error());
}
list($cantpro, $cantsus) = mysql_fetch_row($conttr);
if ($tipo_proceso == "SUSTANCIACION")
{
$resup = mysql_query('SELECT cantidad_sustanciacion FROM control_sustanciacion WHERE contrato = "' . $_POST[numero_contrato] . '" ');
if (!$resup) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($resup)==0))
{
mysql_query("INSERT INTO control_sustanciacion (contrato, tipo, cantidad_sustanciacion) VALUES ('" . $_POST["numero_contrato"] . "', '" . $_POST["tipo_contrato"] . "', '1')");
}else{
list($susta) = mysql_fetch_row($resup);
$cantidad = $susta + 1 ;
mysql_query("UPDATE control_sustanciacion set cantidad_sustanciacion = '" .$cantidad. "' WHERE contrato = '" . $_POST[numero_contrato] . "' ");
}
}
else
{
$resup = mysql_query('SELECT cantidad_procesos FROM control_procesos WHERE contrato = "' . $_POST[numero_contrato] . '" ');
if (!$resup) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($resup)==0))
{
mysql_query("INSERT INTO control_procesos (contrato, tipo, cantidad_procesos) VALUES ('" . $_POST["numero_contrato"] . "', '" . $_POST["tipo_contrato"] . "', '1')");
}else{
list($susta) = mysql_fetch_row($resup);
$cantidad = $susta + 1 ;
mysql_query("UPDATE control_procesos set cantidad_procesos = '" . $cantidad. "' WHERE contrato = '" . $_POST[numero_contrato] . "' ");
}
}
mysql_query("INSERT INTO procesos (cedula, numero_proceso, tipo_proceso, numero_contrato, tipo_contrato, tipo_afiliado, codigo_sucursal, clase_negocio, despacho_judicial, ciudad_despacho, calidad_juridica_afiliado, tipo_orden, numero_carpeta, ultimo_folio, codigo_abogado, fecha_actuacion, actividad_proceso, estado_proceso, nombre_contraparte, direccion_contraparte, ciudad_contraparte, estado) VALUES ( '" . $_POST["cedula"] . "', '" . $_POST["numero_proceso"] . "', '" ."$tipo_proceso". "', '" . $_POST["numero_contrato"] . "', '" . $_POST["tipo_contrato"] . "', '" . $_POST["tipo_afiliado"] . "', '" . $_POST["codigo_sucursal"] . "', '" . $_POST["clase_negocio"] . "', '" . $_POST["despacho_judicial"] . "', '" . $_POST["ciudad_despacho"] . "', '" . $_POST["calidad_juridica_afiliado"] . "', '" . $_POST["tipo_orden"] . "', '" . $_POST["numero_carpeta"] . "', '" . $_POST["folio1"] . "', '" . $_POST["codigo_abogado"] . "', '$nuevafecha', '" . $_POST["actividad_proceso"] . "', '" . $_POST["estado_proceso"] . "', '" . $_POST["nombrecontra"] . "', '" . $_POST["direcontra"] . "', '" . $_POST["ciucontra"] . "', '0')");
//guardar actuaciones
$res = mysql_query("INSERT INTO actuaciones (id, cedula, numero_proceso, folio1, folio2, actuacion, fecha, tipo_orden, codigo_funcionario) VALUES ('', '" . $_POST["cedula"] . "', '" . $_POST["numero_proceso"] . "', '" . $_POST["folio1"] . "', '" . $_POST["folio2"] . "', '" . $_POST["actuacion"] . "', '$nuevafecha' , '" . $_POST["tipo_orden"] . "', '" . $_POST["codigo_funcionario"] . "')");
if (!$res) {
die('Invalid query res actuaciones: ' . mysql_error());
}
if ($tipo_proceso == "JURIDICO")
{
$calificacion = mysql_query("INSERT INTO calificacion_servicio_juridico (cedula, numero_proceso, numero_contrato, tipo_contrato, fecha_inicio, estado) VALUES ('" . $_POST["cedula"] . "', '" . $_POST["numero_proceso"] . "', '" . $_POST["numero_contrato"] . "', '" . $_POST["tipo_contrato"] . "', '$nuevafecha' , '0')");
if (!$calificacion) {
die('Invalid query res calificacion: ' . mysql_error());
}
}
// mysql_query("update procesos set ultimo_folio = $folio2, fecha_actuacion = '$fecha_actuacion' where cedula = $cedula and numero_proceso = $numero_proceso", $dbi);
mysql_query("UPDATE procesos set ultimo_folio = '" . $_POST[folio2] . "' , fecha_actuacion = '$nuevafecha ' , estado = '0' WHERE cedula = '" . $_POST[cedula] . "' and numero_proceso = '" . $_POST[numero_proceso] . "' ");
echo "<script>alert('Los datos fueron grabados correctamente');</script>";
}
else
{
echo "<script>alert('Ya existe ese inicio con número de cédula y número de proceso');</script>";
}
}
//$canproc = "select count(numero_proceso) as canproceso from procesos where cedula = $cedula";
//$can = mysql_query($canproc, $dbi);
$can = mysql_query('SELECT count(numero_proceso) as canproceso FROM procesos WHERE cedula = "' ."$cedula". '" ');
if (!$can) {
die('Invalid query: ' . mysql_error());
}
$canh = mysql_query('SELECT cedula FROM procesos_historicos WHERE cedula = "' ."$cedula". '" ');
if (!$canh) {
die('Invalid query: ' . mysql_error());
}
while(list($ceduhs) = mysql_fetch_row($canh))
{
$historicos = $historicos + 1;
}
if($can)
{
list($vigentes) = mysql_fetch_row($can);
}
else
{
$vigentes = 0;
}
//$con = "SELECT * FROM asjudinet_abogados where vigentes = '1' order by nombre_completo";
//$misql = mysql_query($con, $dbi) or die(mysql_error());
$misql = mysql_query('SELECT * FROM asjudinet_abogados WHERE vigentes = "1" order by nombre_completo ');
if (!$misql) {
die('Invalid query: ' . mysql_error());
}
$row = mysql_fetch_assoc($misql);
$total = mysql_num_rows($misql);
//$query_sql = "SELECT * FROM sucursal order by nombre";
//$sql = mysql_query($query_sql, $dbi) or die(mysql_error());
$sql = mysql_query('SELECT * FROM sucursal order by nombre ');
if (!$sql) {
die('Invalid query: ' . mysql_error());
}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);
$sql5 = mysql_query('SELECT * FROM clase_negocio WHERE codigo = "13" order by negocio ');
if (!$sql5) {
die('Invalid query: ' . mysql_error());
}
$row_sql5 = mysql_fetch_assoc($sql5);
$totalRows_sql5 = mysql_num_rows($sql5);
?>
<html>
<head>
<title>VENTANA PARA EL INGRESO DE INICIOS</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:150px; border: 4px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 13px; font-family: Arial; color:#0000CC; display: block;}
.fecha {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #000099; width:10px display: block;}
.campo {background-color: #FFFFCC; border:1px solid #990000; font-family:Arial; font-size:11px; height: inherit}
.lista { background-color:#99FFFF; font-family: Arial; font-size: 11px; color: #990000;}
.label {background-color: #00CCFF ; font-size: 14px; font-family: Arial; color:#0000CC; display: block;}
.area {background-color: #CCFFCC; font-size: 13px; width:40px font-family: Arial; color:#0000CC; display: block;}
.variables {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #003333 ; width:10px display: block; border: 2px solid #006633;}
.sel { background-color:#DDFFFF; width:400px; border: 1px solid #0099FF; font-family:Arial; font-style:italic; color:#990000 }
.sel2{ background-color:#DDFFFF; border: 1px solid #0099FF; font-family:Arial; font-style:italic; font-weight:bold; color:#990000 }
.seleccion { background-color: #CCFFCC; width:340px; border: 1px solid #0099FF; font-family:Arial; color:#990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; }
.letras {background-color: #99CCFF; font-size: 10px; font-family: Arial; color:#0000CC; display: block;}
.campo2 {background-color: #99CCCC; border:1px solid #0066FF; font-family:Arial; font-size:10px; height: inherit}
.sel3{ background-color:#DDFFFF; font-family:Arial; font-size:10px; color: #000066 }
body {
background-image: url(fondo_argollado.gif);
}
.Estilo10 {font-size: 11px; font-family: Arial, Helvetica, sans-serif; }
-->
</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 validar()
{
if(formulario.numero_proceso.value == "")
{
alert('FALTA DIGITAR EL NUMERO DE PROCESO');
formulario.numero_proceso.focus();
return (false);
}
if(formulario.tipo_proceso.value == "")
{
alert('FALTA SELECCIONAR TIPO DE PROCESO');
formulario.tipo_proceso.focus();
return (false);
}
if(formulario.clase_negocio.value == "")
{
alert('FALTA SELECCIONAR LA CLASE DE NEGOCIO');
formulario.clase_negocio.focus();
return (false);
}
if(formulario.despacho_judicial.value == "")
{
alert('FALTA DIGITAR EL DESPACHO JUDICAL');
formulario.despacho_judicial.focus();
return (false);
}
if(formulario.ciudad_despacho.value == "")
{
alert('FALTA DIGITAR LA CIUDAD DE DESPACHO');
formulario.ciudad_despacho.focus();
return (false);
}
if(formulario.calidad_juridica_afiliado.value == "")
{
alert('FALTA SELECCIONAR CALIDAD JURIDICA DEL AFILIADO');
formulario.calidad_juridica_afiliado.focus();
return (false);
}
if(formulario.numero_carpeta.value == "")
{
alert('FALTA INGRESAR EL NUMERO DE CARPETA');
formulario.numero_carpeta.focus();
return (false);
}
if(formulario.codigo_abogado.value == "")
{
alert('FALTA SELECCIONAR ABOGADO');
formulario.codigo_abogado.focus();
return (false);
}
if(formulario.codigo_sucursal.value == "")
{
alert('FALTA SELECCIONAR SUCURSAL');
formulario.codigo_sucursal.focus();
return (false);
}
if(formulario.codigo_sucursal.value == "")
{
alert('FALTA SELECCIONAR SUCURSAL');
formulario.codigo_sucursal.focus();
return (false);
}
if(formulario.nombrecontra.value == "")
{
alert('FALTA INGRESAR EL NOMBRE DE LA CONTRAPARTE');
formulario.nombrecontra.focus();
return (false);
}
if(formulario.direcontra.value == "")
{
alert('FALTA INGRESAR LA DIRECCION DE LA CONTRAPARTE');
formulario.direcontra.focus();
return (false);
}
if(formulario.ciucontra.value == "")
{
alert('FALTA INGRESAR LA CIUDAD DE LA CONTRAPARTE');
formulario.ciucontra.focus();
return (false);
}
if(formulario.folio1.value == "")
{
alert('FALTA INGRESAR FOLIO1');
formulario.folio1.focus();
return (false);
}
if(formulario.folio2.value == "")
{
alert('FALTA INGRESAR FOLIO2');
formulario.folio2.focus();
return (false);
}
if (formulario.actuacion.value == "")
{
alert("Falta ingresar la actuación");
formulario.actuacion.focus();
return (false);
}
return (true);
}
//--></script>
<SCRIPT LANGUAGE='JavaScript'>
var default1 = "VENTANA PARA EL INGRESO DE ACTUACIONES"; // only shown once at page load
var text1 = "El primer encabezado muestra en detalle los datos del proceso seleccionado";
var text2 = "la segunda parte muestra el formulario para el ingreso de revistas";
var text3 = "No se le olvide tener en cuenta el número del folio que se entrega en el juzgado";
var changeRate = 3000; // 1000 = 1 second
var messageNumber = 0;
function changeStatus()
{
if (messageNumber == 0) {
window.status=default1;
document.title=default1;
}
else if (messageNumber == 1) {
window.status=text1;
}
else if (messageNumber == 2) {
window.status=text2;
}
else if (messageNumber == 3) {
window.status=text3;
messageNumber = 0;
}
messageNumber++;
setTimeout("changeStatus();",changeRate);
}
changeStatus(); // leave here to run right away
// -->
</SCRIPT>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="document.formulario.folio1.focus()">
<form name="formulario" action="" method="post" onSubmit="return validar(this)">
<input name="codigo_funcionario" type="hidden" value="<?php echo $codigo_funcionario; ?>">
<table width="719" height="444" border="0" align="center" cellpadding="2" cellspacing="2">
<tr bgcolor="#FFFFCC">
<td width="666" class="titulos"><div align="center">VISUALIZACION DE DATOS DEL PROCESO SELECCIONADO </div></td>
</tr>
<tr bgcolor="#ECE9D8">
<td height="8" class="fecha"><div align="center">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr bgcolor="#ECE9D8">
<td height="9"><table width="666" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="549" class="letras"><table width="662" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="62" height="19" class="letras"><div align="right">Cédula:</div></td>
<td width="60"><input name="id" type="text" class="campo2" value="<?php echo $id; ?>" size="15" maxlength="15" readonly=""></td>
<td width="59" class="letras"><div align="right">Nombre:</div></td>
<td width="206"><input name="nombre" type="text" class="campo2" value="<?php echo $nombre; ?>" size="51" maxlength="50" readonly=""></td>
<td width="82" class="letras"><div align="right">Contrato:</div></td>
<td width="60"><input name="numero_contrato" type="text" class="campo2" value="<?php echo $contrato; ?>" size="6" maxlength="7" readonly=""></td>
<td width="62" class="letras"><div align="right">Tipo:</div></td>
<td width="71"><input name="tipo_contrato" type="text" class="campo2" value="<?php echo $tipo; ?>" size="4" maxlength="4" readonly=""></td>
</tr>
</table></td>
</tr>
<tr>
<td class="letras"><div align="right"></div> <div align="right">
<table width="662" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="101" class="letras"><div align="right">Tipo de afiliado: </div></td>
<td width="80"><input name="tipo_afiliado" type="text" class="campo2" value="<?php echo $tipo_afi; ?>" size="20" maxlength="20" readonly=""></td>
<td width="63" class="letras"><div align="right">Sucursal:</div></td>
<td width="138"><input name="sucursal" type="text" class="campo2" id="sucursal" value="<?php echo $nombre_s; ?>" size="30" maxlength="30" readonly=""></td>
<td width="95" class="letras"><div align="right">Dirección:</div></td>
<td width="185"><input name="direccion" type="text" class="campo2" id="direccion" value="<?php echo $dir; ?>" size="40" maxlength="40" readonly=""></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td class="letras"><div align="right"></div> <div align="right">
<table width="662" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="61" class="letras"><div align="right">Ciudad:</div></td>
<td width="120"><input name="ciudad" type="text" class="campo2" id="ciudad2" value="<?php echo $ciudad; ?>" size="30" maxlength="30" readonly=""></td>
<td width="63" class="letras"><div align="right">Teléfono:</div></td>
<td width="80"><input name="telefono" type="text" class="campo2" id="telefono3" value="<?php echo $tel; ?>" size="20" maxlength="20" readonly=""></td>
<td width="112" class="letras"><div align="right">Celular:</div></td>
<td width="226"><input name="celular" type="text" class="campo2" id="celular2" value="<?php echo $cel; ?>" size="20" maxlength="20" readonly=""></td>
</tr>
</table>
</div> <div align="right"></div></td>
</tr>
<tr>
<td><table width="666" border="1" cellspacing="0" cellpadding="0">
<tr class="letras">
<td width="171" class="letras">Procesos Vigentes: </td>
<td width="169"><input name="vigentes" type="text" class="campo2" id="vigentes" value="<?php echo $vigentes; ?>" size="2" maxlength="2" readonly=""></td>
<td width="188" class="letras">Procesos Históricos: </td>
<td width="138"><input name="historicos" type="text" class="campo2" id="tipo3" value="<?php echo $historicos; ?>" size="2" maxlength="2" readonly=""></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFCC99">
<td height="258" bgcolor="#FFFFFF"><fieldset>
<legend><span class="texto">Datos del proceso:</span></legend>
<table width="1200" height="159" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#FFFFFF">
<td width="159"><div align="left"><span class="label">Cédula :</span></div></td>
<td width="153" ><input name="cedula" type="text" class="campo" id="cedula" value="<?php echo $cedula; ?>" size="15" maxlength="15" readonly=""></td>
<td width="133" ><div align="center"><span class="label">Número de Proceso:</span></div></td>
<td width="750" colspan="2"><input name="numero_proceso" type="text" class="campo" size="6" maxlength="6"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="label">Tipo de proceso:</span></td>
<td colspan="2"><select name="tipo_proceso" class="sel3" id="tipo_proceso">
<option value="">-----------SELECCIONE AREA DEL DERECHO---------</option>
<option value="13">GESTIONES JURIDICAS ADMINISTRATIVAS</option>
</select> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="label">Clase de Negocio:</span></td>
<td colspan="5">
<select name="clase_negocio" class="Estilo66">
<option value="">--SELECCIONE NEGOCIO--</option>
<?php
do {
?>
<option value="<?php echo $row_sql5['negocio'];?>"><?php echo $row_sql5['negocio']?></option>
<?php
} while ($row_sql5 = mysql_fetch_assoc($sql5));
$rows5 = mysql_num_rows($sql5);
if($rows5 > 0) {
mysql_data_seek($sql5, 0);
$row_sql5 = mysql_fetch_assoc($sql5);
}
?>
</select> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="label">Despacho judicial:</span></td>
<td colspan="3"><input name="despacho_judicial" type="text" class="campo" id="despacho_judicial" size="50" maxlength="50"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="label">Ciudad del despacho :</span></td>
<td colspan="3"><input name="ciudad_despacho" type="text" class="campo" id="despacho_judicial4" size="50" maxlength="50"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="label">Calidad jurídica afiliado:</span></td>
<td colspan="3"><span class="Estilo10">
<select name="calidad_juridica_afiliado" class="sel3">
<option value="">--CALIDAD JURIDICA AFILIADO--</option>
<option value="SINDICADO">SINDICADO</option>
<option value="PERJUDICADO">PERJUDICADO</option>
<option value="DEMANDADO">DEMANDADO</option>
<option value="DEMANDANTE">DEMANDANTE</option>
</select>
</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="label">Número carpeta:</span></td>
<td><input name="numero_carpeta" type="text" class="campo" id="numero_carpeta" size="6" maxlength="6"></td>
<td width="133"><span class="label">Tipo afiliado :</span></td>
<td><select name="tipo_afiliado" class="sel3" id="tipo_afiliado">
<option value="TITULAR">TITULAR</option>
<option value="BENEFICIARIO">BENEFICIARIO</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="label">Abogado:</span></td>
<td colspan="3"><select name="codigo_abogado" class="campo">
<option value="">--SELECCIONE NOMBRE DEL ABOGADO--</option>
<?php
do {
?>
<option value="<?php echo $row['codigo_abogado'];?>"><?php echo $row['nombre_completo']?></option>
<?php
} while ($row = mysql_fetch_assoc($misql));
$rows = mysql_num_rows($misql);
if($rows > 0) {
mysql_data_seek($misql, 0);
$lineas = mysql_fetch_assoc($misql);
}
?>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="label">Nombre de la sucursal :</span></td>
<td colspan="3"><select name="codigo_sucursal" class="campo">
<option value="">--SELECCIONE SUCURSAL--</option>
<?php
do {
?>
<option value="<?php echo $row_sql['codigo'];?>"><?php echo $row_sql['nombre']?></option>
<?php
} while ($row_sql = mysql_fetch_assoc($sql));
$rows = mysql_num_rows($sql);
if($rows > 0) {
mysql_data_seek($sql, 0);
$row_sql = mysql_fetch_assoc($sql);
}
?> </select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="label">Actividad del proceso:</span></td>
<td><select name="actividad_proceso" class="sel3">
<option value="ACTIVO">ACTIVO</option><option value="INACTIVO">INACTIVO</option></select></td>
<td width="133"><span class="label">Estado del proceso:</span></td>
<td><select name="estado_proceso" class="sel3">
<option value="VIGENTE">VIGENTE</option><option value="HISTORICO">HISTORICO</option></select></tr>
<tr>
<td ><span class="label">Nombre de la Contraparte:</span></td>
<td colspan="2"><input name="nombrecontra" type="text" class="campo" id="nombrecontra" size="50" maxlength="50"></td>
</tr>
<tr>
<td ><span class="label">Direccion Contraparte:</span></td>
<td ><input name="direcontra" type="text" class="campo" id="direcontra" size="30" maxlength="30"></td>
<td ><span class="label">Ciudad Contraparte:</span></td>
<td colspan="2"><input name="ciucontra" type="text" class="campo" id="ciucontra" size="30" maxlength="30"></td>
</tr>
</table>
</fieldset></td>
</tr>
</table>
<table width="670" height="80" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#ECE9D8">
<tr bgcolor="#FFFFCC">
<td colspan="7" class="titulos"><div align="center">INGRESE LOS DATOS DEL INICIO DEL PROCESO </div></td>
</tr>
<tr>
<td width="88" class="lista"><div align="center">FOLIOS</div></td>
<td width="35" class="lista"><div align="center">DEL:</div></td>
<td width="61"><div align="center">
<input name="folio1" type="text" class="area" id="folio1" size="4" maxlength="4">
</div></td>
<td width="35" class="lista"><div align="center">AL:</div></td>
<td width="62"><div align="center">
<input name="folio2" type="text" class="area" id="folio2" size="4" maxlength="4">
</div></td>
<td width="130" class="lista"><div align="center">FECHA ACTUACION: </div></td>
<td width="215" bgcolor="#CCFFFF">
<div align="center">
<input name="dia" type="text" class="variables" id="dia" value="<?php echo $dia ?>" size="2" maxlength="2" readonly="">
<input name="mes" type="text" class="variables" id="mes" value="<?php echo $mes ?>" size="2" maxlength="2" readonly="">
<input name="ano" type="text" class="variables" id="ano" value="<?php echo $ano ?>" size="4" maxlength="4" readonly="">
</div></td>
</tr>
<tr>
<td colspan="6" rowspan="2" bgcolor="#DDFFFF"><textarea name="actuacion" cols="90" rows="3" id="actuacion" class="sel"></textarea></td>
<td class="fecha">Tipo de orden: </td>
</tr>
<tr>
<td><select name="tipo_orden" class="sel2" id="tipo_orden">
<option value="INICIO">INICIO</option>
</select></td>
</tr>
<tr bgcolor="#FFCC99">
<td height="30" colspan="7"><div align="right">
<input name = "guardar" type="submit" class="boton2" value="Guardar datos">
<input name="button" type="reset" class="boton2" onclick="formulario.folio1.focus();" value="Limpiar">
</div></td>
</tr>
</table>
</form>
</body>
</html>