MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/adirectoress/ingreso_informacion_documentos_cinco_ipc.php
<?PHP extract($_POST,EXTR_SKIP);  ?>
<?php

global $dbi;
require_once("../Conectarse.php");

if ($_GET["proceso"]=='2'){
$nomproceso='I.P.C.';
}
$nomproceso='I.P.C.';


////TRAE DATOS DE INFORMACION DOCUMENTOS IPC
$cominfdoc = mysql_query('SELECT cedula,aportados_cedula,aportados_hv,aportados_desprendible,aportados_derecho,
aportados_conciliacion,aportados_proceso,aportados_retiro,aportados_pensionados,aportados_servicios,observaciones FROM informacion_documentos_ipc 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,$apensionados,$aservicios,$observaciones) = mysql_fetch_row($cominfdoc);

//////////////

$controlsp = mysql_query('SELECT celular,carpeta,tipo_proceso,estado FROM control_ipc 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) ;



$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 ($_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);

	////
	$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); 		
	
	
	$businfdoc = mysql_query('SELECT cedula FROM informacion_documentos_ipc 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_ipc (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,resolucion_pensionados,aportados_pensionados,paginas_pensionados,
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['crpensionados']."' ,'".$_POST['pcrpensionados']."' ,'".$_POST['pcrpensionados']."' ,'".$_POST['chservicios']."' ,'".$_POST['pchservicios']."','".$_POST['pchservicios']."','".$_POST['observaciones']."')");
		   
		  
		if (!$csqle1) { 
			die('Invalid query actas : ' . mysql_error());   
		}
		
	  
	  	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'];
		$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_ipc 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_pensionados= '".$aporpensiones."',paginas_pensionados= '".$aporpensiones."',aportados_servicios= '".$aporservicios."',paginas_servicios= '".$aporservicios."',observaciones= '".$_POST['observaciones']."' WHERE cedula = '".$_POST["cedula"]."' " );
     
   		if (!$mssql3) {   
			die('Invalid query update informacion_documentos_ipc: ' . mysql_error()); 
	   	}
	  
	  	echo "<script>alert('Registro Actualizado correctamente');</script>";	
	  	echo "<script languaje='javascript' type='text/javascript'>window.close();</script>";	
  	}

}

?>

<!DOCTYPE HTML>
<html><head>
<title>Ingresar Informacion</title>

<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  
<style type="text/css">
	*{margin: 0;padding: 0;}
    body{background-color:#EAEAEA;font-family:Verdana, Geneva, sans-serif;}
    header {background-color: #B7271F; text-align: center;}
	.cerrarsesion{width: auto;height: 20px;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
    .cerrarsesion:hover{background-color: #ffffff;color: #000;}
    
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
	.subtitulo{width: 100%;text-align: center;background-color: #D4D4D4;color: #0C0C76;padding: 3px 0;font-size: 15px;}
    table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
    .divirmenu{text-align: center;}
    .irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 2px;border-radius: 6px; border:2px solid #C0C0C0;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
	td{border: 0;}
    .tdizq{background-color: #F4F4F4; padding: 1px 10px;color: #454545;font-size: 13px;font-weight: 600; text-align: left;}
    .tdcen{background-color: #F4F4F4; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 600; text-align: center;}
    .tdder{background-color: #F4F4F4; padding: 1px 10px;color: #454545;font-size: 13px;font-weight: 600; text-align: right;}
	.tdi{background-color: #F4F4F4; color: #D20005;font-size: 13px;font-weight: 200; text-align: left;}
    .tdc{background-color: #F4F4F4; color: #D20005;font-size: 13px;font-weight: 200; text-align: center;}
    .tdd{background-color: #F4F4F4; color: #D20005;font-size: 13px;font-weight: 200; text-align: right;}
	.tdroja{background-color: #EEE; color: #BC1216;font-size: 13px;font-weight: 200; text-align: right;}
	.exp{color:#8A0000; font-size:11px;}
	.boton1{width:200px;background-color: #FFF;color: #000; padding: 3px; border:2px solid #7D0000;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
	.direcciona{width:200px; background-color: #B32225;color: #fff; padding: 3px;}
	.direcciona:hover{background-color: #67a0d9; color: #000;}
    input[type=text], select{padding: 1px;}
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 500}
    .tdfull{background-color: #fff; color: #000; padding: 1px; text-align: center; font-size: 12px;}
	textarea{font-weight:200; color:#000;}
	
	.botonnew{width: 90px; background-color: #e3dec0;color: #b20606;padding: 1px;}
    .botonnew:hover{width: 90px; background-color: #cbbd6a;color: #000;padding: 1px;}
	.Estilo7{color:#E0363A;}
</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 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 (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">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">INGRESO INFORMACION DOCUMENTOS I.P.C.</h3>

<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 I.P.C.</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>
	<td height="30" colspan="4" class="fecha"><div align="center">
      <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div></td>
</tr>

<tr>
	<td width="178" class="tdder"><b>Cedula:</b></td>
	<td width="267" class="tdizq"><input name="cedula" type="text" class="Estilo21" value="<?php echo $cedula?>" size="30" maxlength="30" readonly=""></td>
	<td width="201" class="tdder"><b>Nombre:</b></td>
	<td width="231" class="tdizq"><input name="nombre" type="text" class="Estilo21" value="<?php echo $nombre?>" size="45" maxlength="45" readonly=""></td>
</tr>

<tr>
	<td colspan="4" class="subtitulo"><b>INFORMACION CONTROL I.P.C.</b></td>
</tr>
  
<tr>
	<td class="tdcen"><b>Cedula:</b></td>
  	<td class="tdcen"><b>Numero De Carpeta:</b></td>
  	<td class="tdcen"><b>Tipo De Proceso:</b></td>
 	<td class="tdcen"><b>Estado:</b></td>
</tr>

  
<tr>
	<td class="tdcen">
  	<?php echo "<input value='$cedula' type='button' class='botonnew' onClick =window.open('formulario_consultorio_control_sub_ipc_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 class="tdcen"><input name="carpetacs" type="text" class="Estilo21" div align='center'  value=" <?php  echo $carpeta?>" size="3" maxlength="5" readonly=""></td>
 	<td class="tdcen"><input name="procesocs" type="text" class="Estilo21" value="<?php echo $proceso?>" size="30" maxlength="30" readonly=""></td>
  	<td class="tdcen"><input name="estadocs" type="text" class="Estilo21" value="<?php echo $estadocsp?>" size="30" maxlength="30" readonly=""></td>
</tr>
       
       
       
<tr>
	<td colspan = "2" class="tdder"><b>Sucursal Que Recibe:</b></div></td>
	<td colspan = "2" class="tdizq">
		<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>
	<td colspan = "2" class="tdder"><b>Funcionario Que Recibe Documentos:</b></div></td>
  	<td colspan = "2" class="tdizq"><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 >
	<td colspan="4" align="center">|</td>
</tr>
    
<tr>
 	<td colspan="4" class="subtitulo"><b>RELACION DE DOCUMENTOS ENVIADOS :</b></td>
</tr>
  
<tr >
	<td class="tdder"><b>Tipo Proceso:</b></div></td>
	<td class="tdizq"><input name="tipo_proceso" type="text" class="Estilo21" value="<?php echo $nomproceso;?>" size="30" maxlength="30" >

	<td class="tdder"><b>Fecha :</b></div></td>
	<td class="tdizq"><input name="fecha" type="text" class="Estilo21"  aling= "right"  value="<?php echo $fechast;?>" size="10" maxlength="30" readonly></td>
</tr>
  
  
<tr>
	<td class="tdder"><b>Sucursal Destino:</b></td>
	<td class="tdizq">
	<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 class="tdder"><b>Numero Del Formato:</b></td>
	<td class="tdizq"><input name="formato" type="text" class="Estilo21" value="" size="30" maxlength="30"></td>
</tr>
  
  
  
<?php

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>
  	<td colspan="4" class="subtitulo"><b>CONTENIDO DE DOCUMENTOS I.P.C.</b></td>
</tr>
  
<tr>
	<td class="tdder" colspan="2"><b>Fotocopia De La Cedula:</b></td>
   	<td class="tdizq"><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 class="tdc"><b>N° Paginas :</b>
		<input name="pacedula" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
    
   
<tr>
	<td class="tdder" colspan="2" ><b>Extracto De La Hoja De Vida:</b></td>
    <td class="tdizq"><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>
	</td>

	<td class="tdc"><b>N° Paginas :</b>
		<input name="pahv" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
   
   
<tr>
	<td class="tdder" colspan="2" ><b>Ultimo Desprendible De Pago:</b></td>
   	<td class="tdizq"><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>
	</td>
	<td class="tdc"><b>N° Paginas :</b>
		<input name="padesprendible" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
    
<tr>
	<td class="tdder" colspan="2" ><b>Poder Para El Derecho De Peticion</b></td>
    <td class="tdizq"><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 >
	</td>

	<td class="tdc"><b>N° Paginas :</b>
		<input name="ppoderder" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
    
<tr>
	<td class="tdder" colspan="2"><b>Poder Conciliacion Ante Procuraduria:</b></td>
    <td class="tdizq"><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>
	</td>
	<td class="tdc"><b>N° Paginas :</b>
		<input name="paconciliacionpro" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
 
<tr>
	<td class="tdder" colspan="2" ><b>Poder Para El Proceso Judicial:</b></td>
    <td class="tdizq"><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 class="tdc"><b>N° Paginas :</b>
	<input name="pppjudicial" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
 
<tr>
	<td class="tdder" colspan="2" ><b>Copia Resolucion Asignacion De Retiro <span class="Estilo7">Para Pencionados (CASUR)</span>:</b></td>
   	<td class="tdizq"><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 >
	</td>
	<td class="tdc"><b>N° Paginas :</b>
		<input name="prretiro" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
 
 
<tr>
	<td class="tdder" colspan="2" ><b>Copia Resolucion Pensionados Por <span class="Estilo7">Sanidad (TEGEN)</span>:</b></td>
    <td class="tdizq"><strong class="Estilo21">SI</strong>
     	<input   type="checkbox"   id="crpensionados"  name="crpensionados" value="SI">
      	<strong class="Estilo21">APORTADOS</strong>
      	<input name="acrpensionados" type="text" class="Estilo21" value="<?php echo $apensionados?>" size="4" maxlength="4" readonly>
	</td>
	<td class="tdc"><b>N° Paginas :</b>
		<input name="pcrpensionados" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
 
<tr>
	<td class="tdder" colspan="2" ><b>Copia Hoja De Servicios <span class="Estilo7">Pensionados  (CASUR)</span>:</b></td>
    <td class="tdizq"><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>
	</td>
	<td class="tdc"><b>N° Paginas :</b>
		<input name="pchservicios" type="text" class="Estilo21" value="" size="3" maxlength="3" ></td>
</tr>
 

<tr>
	<td class="tdroja"><b>Observaciones:</b></td>
    <td class="tdcen" colspan="4" bgcolor="#EFEFEF"><textarea name="observaciones" cols="100" rows="4"><? echo $observaciones?></textarea> 
</tr>
    
  
<tr >   
	<td colspan="4" ><div align="center">
        <input name="guardar" type="submit" class="direcciona" id="guardar" value="ENVIAR">
        <input name="button" type="button"  class="irmenu" onClick="javascript:window.close()" value="REGRESAR">
	</div></td>
</tr>

</table>

</form>
</body>
</html>