File: /home/asjudine/www/ingreso_informacion_documentos_cinco_veinte.php
<?PHP extract($_POST,EXTR_SKIP); ?>
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");
/*if ($_GET["id"]=='VEINTE POR CIENTO'){
$nomproceso='VEINTE POR CIENTO';
}*/
$nomproceso='VEINTE POR CIENTO';
////TRAE DATOS DE INFORMACION DOCUMENTOS SUBSIDIO
$cominfdoc = mysql_query('SELECT cedula,aportados_cedula,aportados_hv,aportados_desprendible,aportados_derecho,
aportados_conciliacion,aportados_proceso,aportados_retiro,aportados_servicios,observaciones FROM informacion_documentos_veinte WHERE cedula = "'.$_GET["cedula"].'" ');
if (!$cominfdoc) {
die('Invalid query: ' . mysql_error());
}
$fil = mysql_num_rows($cominfdoc);
list($ceduinf,$aced,$ahv,$adesprendible,$aderecho,$aconciliacion,$aproceso,$aretiro,$aservicios,$observaciones) = mysql_fetch_row($cominfdoc);
//////////////
$controlsp = mysql_query('SELECT celular,carpeta,tipo_proceso,estado FROM control_programa_soldados WHERE cedula = "'.$_GET["cedula"].'"');
if (!$controlsp) {
die('Invalid query 2: ' . mysql_error());
}
list($celular,$carpeta,$proceso,$estadocsp) = mysql_fetch_row($controlsp);
///
if ($estadocsp =="1")
{
$estadocsp='LISTADO ENVIO PODER';
}
if ($estadocsp =="20")
{
$estadocsp='LISTADO DOCUMENTACION COMPLETA';
}
if ($estadocsp =="3")
{
$estadocsp='RADICACION DERECHO DE PETICION';
}
if ($estadocsp =="4")
{
$estadocsp='LISTADO RESPUESTA DERECHO DE PETICION';
}
if ($estadocsp =="5")
{
$estadocsp='ENVIO PODERES CONCILIACION Y DEMANDA';
}
if ($estadocsp =="6")
{
$estadocsp='INGRESAR PODERES RECIBIDOS DEMANDA';
}
if ($estadocsp =="7")
{
$estadocsp='ELABORACION AUDIENCIA DE CONCILIACION';
}
if ($estadocsp =="8")
{
$estadocsp='LISTADO ASIGNACION AUDIENCIA';
}
if ($estadocsp =="11")
{
$estadocsp='LISTADO DOCUMENTACION INCOMPLETA';
}
if ($estadocsp =="15")
{
$estadocsp='DESCARGAR ACTA DE CONCILIACION';
}
if ($estadocsp =="16")
{
$estadocsp='ELABORACION DEMANDA';
}
if ($estadocsp =="17")
{
$estadocsp='DESCARGAR DEMANDA POR ABOGADO';
}
if ($estadocsp =="17")
{
$estadocsp='RADICACION DEMANDA POR ABOGADO';
}
if ($estadocsp =="20")
{
$estadocsp='LISTADO DOCUMENTACION COMPLETA';
}
///
$control = mysql_query('SELECT cedula,nombre,numerocontrato,tipocontrato,estado FROM cartera_serviasjudinet WHERE cedula = "'.$_GET["cedula"].'" || codigo_militar = "'.$_GET["cedula"].'" and numerocontrato= "'.$_GET["contrato"].'" order by nombre ');
if (!$control) {
die('Invalid query 2: ' . mysql_error());
}
list($cedula,$nombre,$numcon,$tipo,$estado) = mysql_fetch_row($control) ;
//TRAE INFORMACION BENEFICIARIOS
if($cedula == 0){
$controlbene = mysql_query('SELECT cedula,nombre,cedula_titular,numero_contrato_titular,tipo_contrato_titular,estado FROM beneficiarios WHERE cedula = "'.$_GET["cedula"].'" and numero_contrato_titular= "'.$_GET["contrato"].'" order by nombre');
if (!$controlbene) {
die('Invalid query 2: ' . mysql_error());
}
list($cedula,$nombre,$numcon,$tipo,$estado) = mysql_fetch_row($controlbene) ;
}
/////////////////////////
$Recordset2 = mysql_query('SELECT * FROM sucursal order by nombre');
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);
$Recordset1 = mysql_query('SELECT * FROM Usuarios order by Nombre_Completo');
if (!$Recordset1)
{
die('Invalid query: ' . mysql_error());
}
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
$sql9 = mysql_query('SELECT nombre FROM tipos_proceso ORDER BY nombre ');
if (!$sql9) {
die('Invalid query: ' . mysql_error());
}
$row_sql9 = mysql_fetch_assoc($sql9);
$totalRows_sql9 = mysql_num_rows($sql9);
$fechast = '20'.date("y").'-'.date("m").'-'.date("d");
if (isset($_POST["guardar"]))
{
$nombre_titular = strtoupper($nombre_titular);
$convocada = strtoupper($convocada);
$asunto = strtoupper($asunto);
$texto = strtoupper($texto);
$archivo = $_FILES["archivito"]["tmp_name"];
$tamanio = $_FILES["archivito"]["size"];
$tipo = $_FILES["archivito"]["type"];
$nombre = $_FILES["archivito"]["name"];
$fechast = date("y").'-'.date("m").'-'.date("d");
$time =time();
$hora=date("H:i:s",$time);
$hora = Time() + (60 *60 * 1);
$hora=date('H:i:s',$hora);
///////////////////////////////////
if($_POST["formato"] =="" || $_POST["formato"] == NULL ){
echo "<script>alert('Ingrese Numero Formato');</script>";
exit();
}
//consulta en consultorio VEINTE
$consultaconsultorioveinte = mysql_query("SELECT cedula FROM consultorio_veinte WHERE cedula = '".$_GET["cedula"]."' ");
$filas = mysql_num_rows($consultaconsultorioveinte);
if($filas == 0)
{
//busqueda Cartera
$afilantiguo = mysql_query("SELECT cedula,codigo_militar,nombre,grado,numerocontrato,tipocontrato,direccion, telefono, celular, ciudad,email,unidad_descuento,estado,tipo_proceso FROM cartera_serviasjudinet WHERE cedula = '".$_GET["cedula"]."' AND numerocontrato = '".$_GET["contrato"]."' " );
if (!$afilantiguo) {
die('Invalid query new act: ' . mysql_error());
}
list($cedulacar,$codcar,$nombrecar,$gradocar,$numcontratocar,$tipocontratocar,$direccioncar,$telefonocar,$celularcar,$ciudadcar,$emailcar,$unidaddescar,$estadocar,$tipo_procesocar)=mysql_fetch_row($afilantiguo);
if($cedulacar != 0)
{
$csql6 = mysql_query("INSERT INTO consultorio_veinte (apellidos,cedula,celular,email ,grado,estado_civil,unidad, direccion_residencia,ciudad_residencia,estado,tipo_proceso) VALUES ('".$nombrecar."','".$cedulacar."','".$celularcar."','".$emailcar."','".$gradocar."','','".$unidaddescar."','".$direccioncar."','".$ciudadcar."','6', '".$nomproceso."')");
if (!$csql6) {
die('Invalid query insertar: ' . mysql_error());
}
/*$mssql45 = mysql_query("UPDATE cartera_serviasjudinet set tipo_proceso= '".$_POST['tipo_proceso']."' WHERE cedula = '".$_POST["cedula"]."' AND numerocontrato='".$_GET["contrato"]."'" );*/
/*$mssql45 = mysql_query("UPDATE cartera_serviasjudinet set tipo_proceso= 'UNIFICADO' WHERE cedula = '".$_POST["cedula"]."' AND numerocontrato='".$_GET["contrato"]."'" );
if (!$mssql45) {
die('Invalid query update cartera_veinte: ' . mysql_error());
}*/
echo "<script>alert('Se añadio afiliado a consultorio');</script>";
}
/*
else
{
$buscaenbeneficiarios = mysql_query("SELECT cedula, nombre, cedula_titular, numero_contrato_titular, tipo_contrato_titular, telefono, celular, direccion, ciudad, email, fecha_afiliacion FROM beneficiarios WHERE cedula = '".$_GET["cedula"]."' AND numero_contrato_titular = '".$_GET["contrato"]."' ");
if (!$buscaenbeneficiarios) {
die('Invalid query new act: ' . mysql_error());
}
list($cedula_bene,$nombre_bene,$cedtitular_bene,$numcontrato_bene,$tipocontrato_bene,$telefono_bene,$celular_bene,$direccion_bene,$ciudad_bene,$email_bene,$email_bene,$fechaafiliacion_bene,$estado_bene)=mysql_fetch_row($buscaenbeneficiarios);
$insertarbeneficiario = mysql_query("INSERT INTO consultorio_veinte (apellidos,cedula,celular,email ,grado,estado_civil,unidad, direccion_residencia,ciudad_residencia,estado,tipo_proceso,beneficiario) VALUES ('".$nombre_bene."','".$cedula_bene."','".$celular_bene."','".$email_bene."','','','','".$direccion_bene."','".$ciudad_bene."','6', '".$nomproceso."','BENEFICIARIO')");
if (!$insertarbeneficiario) {
die('Invalid query insertar beneficiario en consultorio: ' . mysql_error());
}
//actualiza campo de la tabla beneficiarios
$updatebeneficiario = mysql_query("UPDATE beneficiarios set proceso = '".$nomproceso."' WHERE cedula = '".$_POST["cedula"]."' and numero_contrato_titular = '".$_GET["contrato"]."' ");
if (!$updatebeneficiario) {
die('Invalid query actualizar beneficiario en beneficiarios: ' . mysql_error());
}
}*/
}
else
{
$actualizaestado6 = mysql_query("UPDATE consultorio_veinte set estado = '6' WHERE cedula = '".$_POST["cedula"]."' and tipo_proceso = '".$nomproceso."' " );
if (!$actualizaestado6) {
die('Invalid query est6: ' . mysql_error());
}
echo "<script>alert('Este Afiliado Ya Estaba en Consultorio Veinte!');</script>";
}
/////////////////////////////////
$controlusua = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE codigo = "'.$_POST["funcionario"].'" ');
if (!$controlusua) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($controlusua);
list($nombreusuar) = mysql_fetch_row($controlusua);
////
$succ = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' .$_POST[sucursal].'" ');
if (!$succ) {
die('Invalid query succ: ' . mysql_error());
}
list($sucursalrecibe) = mysql_fetch_row($succ);
$suce = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' .$_POST['sucursal_envia'].'" ');
if (!$suce) {
die('Invalid query succ: ' . mysql_error());
}
list($sucursalenvia) = mysql_fetch_row($suce);
// if ( $archivo != "none" )
//{
// $fp = fopen($archivo, "rb");
// $contenido = fread($fp, $tamanio);
// $contenido = addslashes($contenido);
// fclose($fp);
$businfdoc = mysql_query('SELECT cedula FROM informacion_documentos_veinte WHERE cedula = "'.$_POST["cedula"].'" ');
if (!$businfdoc) {
die('Invalid query: ' . mysql_error());
}
$fil = mysql_num_rows($businfdoc);
list($cantipro) = mysql_fetch_row($businfdoc);
if ($fil == 0)
{
$csqle1 = mysql_query("INSERT INTO informacion_documentos_veinte (cedula,nombre,sucursal_recibe,funcionario_recibe,
tipo_proceso,fecha,destino,numero_formato,fotocopia_cedula,aportados_cedula,paginas_cedula,extracto_hv,aportados_hv,
paginas_hv,desprendible_pago,aportados_desprendible,paginas_desprendible,poder_derecho,aportados_derecho,paginas_derecho,poder_conciliacion,aportados_conciliacion,paginas_conciliacion,poder_proceso,aportados_proceso,paginas_proceso,resolucion_retiro,aportados_retiro,paginas_retiro,hoja_servicios,aportados_servicios,paginas_servicios,observaciones) VALUES ('".$_POST['cedula']."','".$_POST['nombre']."','".$sucursalrecibe."','".$nombreusuar."','".$_POST['tipo_proceso']."','".$_POST['fecha']."','".$sucursalenvia."','".$_POST['formato']."','".$_POST['fcedula']."','".$_POST['pacedula']."','".$_POST['pacedula']."','".$_POST['extrahv']."','".$_POST['pahv']."','".$_POST['pahv']."', '".$_POST['desprendible']."','".$_POST['padesprendible']."', '".$_POST['padesprendible']."','".$_POST['poderder']."','".$_POST['ppoderder']."','".$_POST['ppoderder']."','".$_POST['pconciliacionpro']."','".$_POST['paconciliacionpro']."' ,'".$_POST['paconciliacionpro']."' ,'".$_POST['ppjudicial']."' ,'".$_POST['pppjudicial']."','".$_POST['pppjudicial']."','".$_POST['rretiro']."','".$_POST['prretiro']."' ,'".$_POST['prretiro']."' ,'".$_POST['chservicios']."' ,'".$_POST['pchservicios']."','".$_POST['pchservicios']."','".$_POST['observaciones']."')");
if (!$csqle1) {
die('Invalid query actas : ' . mysql_error());
}
//ACTUALIZA CARTERA AL INGRESAR DATOS
/*$mssql45 = mysql_query("UPDATE cartera_serviasjudinet set tipo_proceso= 'UNIFICADO' WHERE cedula = '".$_POST["cedula"]."' AND numerocontrato='".$_GET["contrato"]."'" );*/
echo "<script>alert('Registro guardado correctamente');</script>";
echo "<script languaje='javascript' type='text/javascript'>window.close();</script>";
}
else {
$aporcedula=$_POST['acedula']+ $_POST['pacedula'];
$aporhv=$_POST['ahv']+ $_POST['pahv'];
$apordespren=$_POST['adesprendible']+ $_POST['padesprendible'];
$aporregistro=$_POST['aregistronh']+ $_POST['pregistronh'];
$aporestudios=$_POST['acestudios']+ $_POST['pcestudios'];
$aporactas=$_POST['aregistroma']+ $_POST['pregistroma'];
$aporderechos=$_POST['apoderder']+ $_POST['ppoderder'];
$aporconciliacion=$_POST['apconciliacionpro']+ $_POST['paconciliacionpro'];
$aporproceso=$_POST['appjudicial']+ $_POST['pppjudicial'];
$aporretiro=$_POST['arretiro']+ $_POST['prretiro'];
$aporpensiones=$_POST['acrpensionados']+ $_POST['pcrpensionados'];
$aporservicios=$_POST['achservicios']+ $_POST['pchservicios'];
$mssql3 = mysql_query("UPDATE informacion_documentos_veinte set aportados_cedula= '".$aporcedula."',paginas_cedula= '".$aporcedula."',aportados_hv= '".$aporhv."',paginas_hv= '".$aporhv."',aportados_desprendible= '".$apordespren."',paginas_desprendible= '".$apordespren."',aportados_derecho= '".$aporderechos."',paginas_derecho= '".$aporderechos."',aportados_conciliacion= '".$aporconciliacion."',paginas_conciliacion= '".$aporconciliacion."',aportados_proceso= '".$aporproceso."',paginas_proceso= '".$aporproceso."',aportados_retiro= '".$aporretiro."',paginas_retiro= '".$aporretiro."',aportados_servicios= '".$aporservicios."',paginas_servicios= '".$aporservicios."',observaciones= '".$_POST['observaciones']."' WHERE cedula = '".$_POST["cedula"]."' " );
if (!$mssql3) {
die('Invalid query update informacion_documentos_veinte: ' . mysql_error());
}
//Consultorio Actualiza
$mssql3 = mysql_query("UPDATE consultorio_veinte set tipo_proceso= '".$nomproceso."' WHERE cedula = '".$_POST["cedula"]."' " );
//ACTUALIZA CARTERA AL ACTUALIZAR DATOS
/*$mssql45 = mysql_query("UPDATE cartera_serviasjudinet set tipo_proceso= 'UNIFICADO' WHERE cedula = '".$_POST["cedula"]."' AND numerocontrato='".$_GET["contrato"]."'" );
if (!$mssql45) {
die('Invalid query update cartera_veinte: ' . mysql_error());
} */
echo "<script>alert('-Registro Actualizado correctamente-');</script>";
echo "<script languaje='javascript' type='text/javascript'>window.close();</script>";
}
// }
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title>Ingresar Informacion</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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 type="text/JavaScript">
<!--
function anade() {
/*recep = document.anadir['receptores[]'];
for (i = 0; checkbox = recep[i]; i++) {
if (checkbox.checked ) {
return true;
}
}*/
}
//-->
</script>
<style type="text/css">
<!--
.Estilo1 {
font-family: Arial, Helvetica, sans-serif;
color: #00C;
}
.Estilo2 {
color: #FF0000;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
}
body {
background-image: url(ELEMENTOS/gri06.jpg );
}
.Estilo3 {color: #006633}
.Estilo4 {color: #FFFFFF}
.Estilo5 {
font-size: 12px;
font-style: italic;
color: #09F;
font-weight: bold;
}
.Estilo7 {
color: #FF0000;
font-weight: bold;
}
.Estilo8 {color: #FFFFFF; font-weight: bold; }
-->
</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>")
}
function validar_campos(formulario)
{
if (formulario.sucursal.value == "")
{
alert("Seleccione La Sucursal Que Recibe");
formulario.sucursal.focus();
return (false);
}
if (formulario.sucursal_envia.value == "")
{
alert("Seleccione La Sucursal Que Envia");
formulario.sucursal_envia.focus();
return (false);
}
if (formulario.funcionario.value == "")
{
alert("Seleccione El Funcionario Que Recibe");
formulario.funcionario.focus();
return (false);
}
if (formulario.funcionario_envia.value == "")
{
alert("Seleccione El Funcionario Que Envia");
formulario.funcionario_envia.focus();
return (false);
}
if (formulario.seguimiento.value == "")
{
alert("Describa La Actividad");
formulario.seguimiento.focus();
return (false);
}
if (formulario.tipo_actividad.value == "")
{
alert("Seleccione Tipo Actividad");
formulario.tipo_actividad.focus();
return (false);
}
if (formulario.archivito.value == "")
{
alert("Anexe Un Archivo");
formulario.archivito.focus();
return (false);
}
///////////////////////////////
if (formulario.formato.value == "")
{
alert("ESCRIBA No FORMATO");
formulario.formato.focus();
return (false);
}
if (confirm("Los datos de la consulta son correctos"))
{
return (true);
}
else
{
return (false);
}
return (true);
}
//-->
</script>
</head>
<body onload="document.formulario.numero.focus()" topmargin="0">
<form name="formulario" method="post" action="" enctype="multipart/form-data" onSubmit="return validar_campos(this)">
<br>
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=57% height="91" > </center>
<br><br>
<center>
<h1><span style="width:100%"><font color="#2E7068">INGRESO INFORMACION DOCUMENTOS VEINTE POR CIENTO</font></span></h1>
</center>
</center>
<script>
<!--
var from = 2;
var to = 12;
var delay = 55;
var glowColor = "#0000ff";
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
TexteBat.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
//-->
</script>
<table width="922" border="12" align="center" cellpadding="1" cellspacing="1">
<tr bgcolor="#006633">
<td colspan="4" bgcolor="#2E7068"><div align="center" class="Estilo3"><span class="Estilo4 Estilo2"><span class="Estilo8">INGRESAR INFORMACION</span></span></div></td>
</tr>
<tr bgcolor="#006633">
<td height="30" colspan="4" bgcolor="#FFFFFF"><div align="center">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="178" align="right" bgcolor="#EFEFEF"><b>Cedula:</b></div></td>
<td width="267" bgcolor="#EFEFEF"><input name="cedula" type="text" class="Estilo21" value="<?php echo $cedula?>" size="30" maxlength="30" readonly=""></td>
<td width="201" align="right" bgcolor="#EFEFEF"><b>Nombre:</b></div></td>
<td width="231" bgcolor="#EFEFEF"><input name="nombre" type="text" class="Estilo21" value="<?php echo $nombre?>" size="45" maxlength="45" readonly=""></td>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="4" bgcolor="#2E7068" align="center" class="Estilo8"><b>INFORMACION CONTROL VEINTE POR CIENTO:</b></div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td bgcolor="#FFCC66" align="center"><b>Cedula:</b></div></td>
<td bgcolor="#FFCC66" align="center"><b>Numero De Carpeta:</b></div></td>
<td bgcolor="#FFCC66" align="center"><b>Tipo De Proceso:</b></div></td>
<td bgcolor="#FFCC66" align="center"><b>Estado:</b></div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6" >
<td bgcolor="#EFEFEF" align="left"><center><span class="label2">
<?php echo "<input value='$cedula' type='button' class='polici2' onClick =window.open('formulario_consultorio_control_veinte_consulta.php?celular=$celular&cedula=$cedula&cargue=3','','top=50,left=100,toolbar=no,scrollbars=yes,width=790,height=800,status=yes')></a>"; ?></span></center></td>
<td bgcolor="#EFEFEF" align="center" ><input name="carpetacs" type="text" class="Estilo21" div align='center' value=" <?php echo $carpeta?>" size="3" maxlength="5" readonly=""></td>
<td bgcolor="#EFEFEF"><input name="procesocs" type="text" class="Estilo21" value="<?php echo $proceso?>" size="30" maxlength="30" readonly=""></td>
<td bgcolor="#EFEFEF"><input name="estadocs" type="text" class="Estilo21" value="<?php echo $estadocsp?>" size="30" maxlength="30" readonly=""></td>
</tr>
<tr bgcolor="#ECE9D8">
<td colspan = "2" bgcolor="#EFEFEF" align="right"><b>Sucursal Que Recibe:</b></div></td>
<td colspan = "2" bgcolor="#EFEFEF">
<SELECT NAME="sucursal">
<OPTION value="">--Sucursal--</OPTION>
<?php
do {
?>
<option value="<?php echo $row_Recordset2['codigo']?>"><?php echo $row_Recordset2['nombre']?></option>
<?php
} while ($row_Recordset2 = mysql_fetch_assoc($Recordset2));
$rows = mysql_num_rows($Recordset2);
if($rows > 0) {
mysql_data_seek($Recordset2, 0);
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
}
?>
</SELECT></td>
</tr>
<!--
<tr bgcolor="#ECE9D8">
<td colspan = "2" bgcolor="#EFEFEF" align="right"><b>Sucursal Que Envia:</b></div></td>
<td colspan = "2" bgcolor="#EFEFEF">
<SELECT NAME="sucursal_envia">
<OPTION value="">--Sucursal--</OPTION>
<?php
do {
?>
<option value="<?php echo $row_Recordset2['codigo']?>"><?php echo $row_Recordset2['nombre']?></option>
<?php
} while ($row_Recordset2 = mysql_fetch_assoc($Recordset2));
$rows = mysql_num_rows($Recordset2);
if($rows > 0) {
mysql_data_seek($Recordset2, 0);
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
}
?>
</SELECT></td>
</tr>
-->
<tr bgcolor="#ECE9D8">
<td colspan = "2" bgcolor="#EFEFEF" align="right"><b>Funcionario Que Recibe Documentos:</b></div></td>
<td colspan = "2" bgcolor="#EFEFEF"><SELECT NAME="funcionario">
<OPTION value="">--Nombre Funcionario--</OPTION>
<?php
do {
?>
<option value="<?php echo $row_Recordset1['codigo']?>"><?php echo $row_Recordset1['Nombre_Completo']?></option>
<?php
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
$rows = mysql_num_rows($Recordset1);
if($rows > 0) {
mysql_data_seek($Recordset1, 0);
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
}
?>
</SELECT>
</td>
</tr>
<!--
<tr bgcolor="#ECE9D8">
<td colspan = "2" bgcolor="#EFEFEF" align="right"><b>Funcionario Que Envia:</b></div></td>
<td colspan = "2" bgcolor="#EFEFEF"><SELECT NAME="funcionario_envia">
<OPTION value="">--Nombre Funcionario--</OPTION>
<?php
do {
?>
<option value="<?php echo $row_Recordset1['codigo']?>"><?php echo $row_Recordset1['Nombre_Completo']?></option>
<?php
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
$rows = mysql_num_rows($Recordset1);
if($rows > 0) {
mysql_data_seek($Recordset1, 0);
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
}
?>
</SELECT>
</td>
</tr>
-->
<tr valign="baseline" bgcolor="#F2F2E6">
<td height="28" colspan="4" align="center" bgcolor="#EFEFEF">|</td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="4" bgcolor="#2E7068" align="center" class="Estilo8"><b>RELACION DE DOCUMENTOS ENVIADOS :</b></div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td bgcolor="#EFEFEF" align="right"><b>Tipo Proceso:</b></div></td>
<td bgcolor="#EFEFEF">
<input name="tipo_proceso" type="text" class="Estilo21" value="<?php echo $nomproceso;?>" size="30" maxlength="30" >
<td bgcolor="#EFEFEF" align="right"><b>Fecha :</b></div></td>
<td bgcolor="#EFEFEF"><input name="fecha" type="text" class="Estilo21" aling= "right" value="<?php echo $fechast;?>" size="10" maxlength="30" readonly></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td bgcolor="#EFEFEF" align="right"><b>Sucursal Destino:</b></div></td>
<td bgcolor="#EFEFEF">
<SELECT NAME="sucursal_envia">
<OPTION value="">--Sucursal--</OPTION>
<?php
do {
?>
<option value="<?php echo $row_Recordset2['codigo']?>"><?php echo $row_Recordset2['nombre']?></option>
<?php
} while ($row_Recordset2 = mysql_fetch_assoc($Recordset2));
$rows = mysql_num_rows($Recordset2);
if($rows > 0) {
mysql_data_seek($Recordset2, 0);
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
}
?>
</SELECT></td>
<td bgcolor="#EFEFEF" align="right"><b>Numero Del Formato:</b></div></td>
<td bgcolor="#EFEFEF"><input name="formato" type="text" class="Estilo21" value="" size="30" maxlength="30"></td>
</tr>
<?
if ($_GET["id"] == 'BONIFICACION JUDICIAL')
{
echo "<script language='JavaScript'>";
echo "location = 'ingreso_informacion_documentos_tres.php?cedula=$_GET[cedula]&contrato=$_GET[contrato]&id=$_GET[id];'";
echo "</script>";
}
if ($_GET["id"] == 'I.P.C.')
{
echo "<script language='JavaScript'>";
echo "location = 'ingreso_informacion_documentos_cuatro.php?cedula=$_GET[cedula]&contrato=$_GET[contrato]&id=$_GET[id];'";
echo "</script>";
}
if ($_GET["id"] == 'SUBSIDIO FAMILIAR')
{
echo "<script language='JavaScript'>";
echo "location = 'ingreso_informacion_documentos_cinco.php?cedula=$_GET[cedula]&contrato=$_GET[contrato]&id=$_GET[id];'";
echo "</script>";
}
if ($_GET["id"] == 'VEINTE POR CIENTO.')
{
echo "<script language='JavaScript'>";
echo "location = 'ingreso_informacion_documentos_seis.php?cedula=$_GET[cedula]&contrato=$_GET[contrato]&id=$_GET[id];'";
echo "</script>";
}
?>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="4" bgcolor="#2E7068" align="center" class="Estilo8"><b>CONTENIDO DE DOCUMENTOS VEINTE POR CIENTO:</b></div></td>
</tr>
<tr>
<td colspan="2" align="right" bgcolor="#EFEFEF"><b>Fotocopia De La Cedula:</b></td>
<td bgcolor="#EFEFEF"> <strong class="Estilo21">SI</strong>
<input type="checkbox" id="fcedula" name="fcedula" value="SI">
<strong class="Estilo21">APORTADOS</strong>
<input name="acedula" type="text" class="Estilo21" value="<?php echo $aced?>" size="4" maxlength="4" readonly >
</td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="pacedula" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td colspan="2" align="right" bgcolor="#EFEFEF"><b>Extracto De La Hoja De Vida:</b></td>
<td bgcolor="#EFEFEF"> <strong class="Estilo21">SI</strong>
<input type="checkbox" id="extrahv" name="extrahv" value="SI">
<strong class="Estilo21">APORTADOS</strong>
<input name="ahv" type="text" class="Estilo21" value="<?php echo $ahv?>" size="4" maxlength="4" readonly>
</p></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="pahv" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td colspan="2" align="right" bgcolor="#EFEFEF"><b>Ultimo Desprendible De Pago:</b></td>
<td bgcolor="#EFEFEF"> <strong class="Estilo21">SI</strong>
<input type="checkbox" id="desprendible" name="desprendible" value="SI">
<strong class="Estilo21">APORTADOS</strong>
<input name="adesprendible" type="text" class="Estilo21" value="<?php echo $adesprendible?>" size="4" maxlength="4" readonly>
</p></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="padesprendible" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td colspan="2" align="right" bgcolor="#EFEFEF"><b>Poder Para El Derecho De Peticion</b></td>
<td bgcolor="#EFEFEF"> <strong class="Estilo21">SI</strong>
<input type="checkbox" id="poderder" name="poderder" value="SI">
<strong class="Estilo21">APORTADOS</strong>
<input name="apoderder" type="text" class="Estilo21" value="<?php echo $aderecho?>" size="4" maxlength="4" readonly >
</p></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="ppoderder" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td colspan="2" align="right" bgcolor="#EFEFEF"><b>Poder Conciliacion Ante Procuraduria:</b></td>
<td bgcolor="#EFEFEF"> <strong class="Estilo21">SI</strong>
<input type="checkbox" id="pconciliacionpro" name="pconciliacionpro" value="SI">
<strong class="Estilo21">APORTADOS</strong>
<input name="apconciliacionpro" type="text" class="Estilo21" value="<?php echo $aconciliacion?>" size="4" maxlength="4" readonly>
</p></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="paconciliacionpro" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td colspan="2" align="right" bgcolor="#EFEFEF"><b>Poder Para El Proceso Judicial:</b></td>
<td bgcolor="#EFEFEF"> <strong class="Estilo21">SI</strong>
<input type="checkbox" id="ppjudicial" name="ppjudicial" value="SI">
<strong class="Estilo21">APORTADOS</strong>
<input name="appjudicial" type="text" class="Estilo21" value="<?php echo $aproceso?>" size="4" maxlength="4" readonly >
</td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="pppjudicial" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td colspan="2" align="right" bgcolor="#EFEFEF"><b>Copia Resolucion Asignacion De Retiro <span class="Estilo7">Para Pensionados (CREMIL)</span>:</b></td>
<td bgcolor="#EFEFEF"> <strong class="Estilo21">SI</strong>
<input type="checkbox" id="rretiro" name="rretiro" value="SI">
<strong class="Estilo21">APORTADOS</strong>
<input name="arretiro" type="text" class="Estilo21" value="<?php echo $aretiro?>" size="4" maxlength="4" readonly >
</p></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="prretiro" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td colspan="2" align="right" bgcolor="#EFEFEF"><b>Copia Hoja De Servicios <span class="Estilo7">Pensionados (CREMIL)</span>:</b></td>
<td bgcolor="#EFEFEF"> <strong class="Estilo21">SI</strong>
<input type="checkbox" id="chservicios" name="chservicios" value="SI">
<strong class="Estilo21"> APORTADOS</strong>
<input name="achservicios" type="text" class="Estilo21" value="<?php echo $aservicios?>" size="4" maxlength="4" readonly>
</p></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="pchservicios" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<!--
<tr>
<td align="right" bgcolor="#EFEFEF"><b>Documento 2:</b></td>
<td colspan="2" bgcolor="#EFEFEF"><input name="documento_dos" type="text" class="Estilo21" value="" size="60" maxlength="120" ></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="pagina_dos" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td align="right" bgcolor="#EFEFEF"><b>Documento 3:</b></td>
<td colspan="2" bgcolor="#EFEFEF"><input name="documento_tres" type="text" class="Estilo21" value="" size="60" maxlength="120" ></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="pagina_tres" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td align="right" bgcolor="#EFEFEF"><b>Documento 4:</b></td>
<td colspan="2" bgcolor="#EFEFEF"><input name="documento_cuatro" type="text" class="Estilo21" value="" size="60" maxlength="120" ></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="pagina_cuatro" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
<tr>
<td align="right" bgcolor="#EFEFEF"><b>Documento 5:</b></td>
<td colspan="2" bgcolor="#EFEFEF"><input name="documento_cinco" type="text" class="Estilo21" value="" size="60" maxlength="120" ></td>
<td bgcolor="#EFEFEF" align="letf"><b>N° Paginas :</b>
<input name="pagina_cinco" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
-->
<tr>
<td align="right" bgcolor="#EFEFEF"><b>Observaciones:</b></td>
<td colspan="4" bgcolor="#EFEFEF"><textarea name="observaciones" cols="100" rows="4"><? echo $observaciones?></textarea>
</tr>
<!-- <tr>
<td align="right" bgcolor="#EFEFEF"><b>Tipo Actividad:</b></td>
<td width="230" bgcolor="#EFEFEF"><select name="tipo_actividad" class="sel3">
<option value="" selected>--ACTIVIDAD--</option>
<option value="PRESENCIAL">PRESENCIAL</option>
<option value="AUSENTE">AUSENTE</option>
<option value="LABORAL">LABORAL</option>
<option value="CONTRAVENCIONAL">CONTRAVENCIONAL</option>
</select> </td>
</tr>
-->
<!--
<tr>
<td align="right" bgcolor="#EFEFEF"><b>Adjuntar Imagen Camara:</b>
</td>
<td colspan="3" bgcolor="#EFEFEF"><input name="archivito" type="file" class="Estilo1" size="40" maxlength="40"></td>
</tr>
-->
<tr bgcolor="#FFFFCC">
<td height="30" colspan="4" bgcolor="#EFEFEF"><div align="center">
<input name="guardar" type="submit" class="Estilo1" id="guardar" value="ENVIAR">
<input name="button" type="button" class="Estilo1" onClick="javascript:window.close()" value="REGRESAR">
</div></td>
</tr>
</table>
</form>
</body>
</html>