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/ingresar_proceso_3.php
<?php

require_once("Conectarse.php");


//CALL CENTER 2019-12-18
$atencion = $_GET["atencion"]; //importante
$fecha_auto = date("Y-m-d");

$sql_callcenter = mysql_query('SELECT accion_supervisor FROM solicitud_citas_juridicas WHERE atencion = 
"'.$atencion.'" ');
if (!$sql_callcenter) {
	die('Invalid query 1: ' . mysql_error());
}
list($accion) = mysql_fetch_row($sql_callcenter);

if($atencion != ""){
	$datos_personas = mysql_query('SELECT director_juridico, tipo_director, supervisor_juridico , tipo_supervisor, rama_derecho FROM INICIOS_PROCESOS_JURIDICOS WHERE codigo = "'.$_GET["cedula"].'" and atencion = "'.$_GET["atencion"].'" ');
	if (!$datos_personas) {
		die('Invalid query 1: ' . mysql_error());
	}
	list($director_juridico, $tipo_director, $supervisor_juridico, $tipo_supervisor, $rama_derecho ) = mysql_fetch_row($datos_personas);
}
else{
	if(!isset($_GET["atencion"])){
		$busca_atencion_por_datos = mysql_query("SELECT atencion FROM INICIOS_PROCESOS_JURIDICOS WHERE codigo = '".$_GET["cedula"]."' and orden_de_trabajo = '".$_GET["proceso"]."' ");
		if (!$busca_atencion_por_datos) {
			die('Invalid query 1: ' . mysql_error());
		}
		list($atencion) = mysql_fetch_row($busca_atencion_por_datos);
	}
}


//

$dia = date("d");
$mes = date("m"); 
$ano = date("Y");

$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"];

$ordentrabajito=$_GET["cedula"];


$control = mysql_query('SELECT orden_de_trabajo, codigo, contrato, tipo, apellidos_y_nombres, tipo_proceso, area_derecho,carpeta, clase_de_negocio, fecha_autenticacion, sucursal, fecha_asignacion, calidad_afiliado, nombre_abogado, documento_1, documento_2, documento_3, documento_4, documento_5, clase_de_titulo_uno, valor_titulo,   fecha_expedicion_titulo_uno,fecha_vencimiento_titulo_valor, valor_intereses_causados, valor_clausula_penal, nombre_del_deudor, direccion_del_deudor, ciudad_deudor, telefono_deudor, telefono_cel, bienes_a_embargar, clase_de_titulo_dos, valor_titulo_dos,fecha_expedicion_titulo_dos, fecha_vencimiento_titulo_dos, valor_intereses_causados_dos, valor_clausula_penal_dos, nombre_deudor_dos, direccion_deudor_dos , ciudad_dos, telefono_dos, bienes_a_embargar_dos, director_juridico, tipo_director, supervisor_juridico , tipo_supervisor, rama_derecho FROM INICIOS_PROCESOS_JURIDICOS WHERE  estado= "0" and orden_de_trabajo =  "' . $_GET["proceso"] . '"  and id =  "' . $_GET["id"] . '"');
if (!$control) {
	die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control); 
list($ot, $codi, $contra, $tipo, $ape, $tipce, $arde, $car, $clasne, $fechaut, $sucu, $fechaasig, $calafi, $nombabog, $doc1, $doc2, $doc3, $doc4, $doc5, $clasti, $valti, $fechaexp, $fechavenci, $valintcau, $valclaupe, $nomdeu, $dirdeu, $ciuddeu, $teldeu, $telcel, $bienembar, $clasti2, $val2, $fechexpe2, $fechaven2, $valinca, $vclau2, $nomdeu2, $dirdeu2, $ciud2, $tel2, $bienembar2, $director_juridico, $tipo_director, $supervisor_juridico, $tipo_supervisor, $rama_derecho, $esta) = mysql_fetch_row($control);
$inipag = $anoini.'-'.$mesini; 


$otrotipo= $tipo;



$control2 = mysql_query('SELECT nombre_completo FROM asjudinet_abogados  WHERE  vigentes= "1" and codigo_abogado  =  "' . $nombabog . '"  ');
if (!$control2) {
	die('Invalid query 1: ' . mysql_error());
}
	
list($codabog) = mysql_fetch_row($control2);




$control3 = mysql_query('SELECT codigo FROM sucursal  WHERE  nombre  =  "' . $sucu. '"  ');
if (!$control3) {
	die('Invalid query 1: ' . mysql_error());
}
$numan=mysql_num_rows($control3); 
list($codsucu) = mysql_fetch_row($control3);







if(isset($_POST["guardar"]))
{	
$dia = date("d");
$mes = date("m"); 
$ano = date("Y");
$nuevafecha = $_POST["ano"]."-".$_POST["mes"]."-".$_POST["dia"];

$numeroProcesos =  str_replace(" ", "-", $_POST["radproc"]);
// Aqui se soluciona lo de la fecha
	
$control4 = mysql_query('SELECT cedula FROM cartera_serviasjudinet   WHERE  cedula  =  "'.$_POST["codig"].'" ');
if (!$control4) {
	die('Invalid query 1: ' . mysql_error());
}
	

if ((mysql_num_rows($control4)!=0)) 
{
	$tiposuar="TITULAR";
}
else{
	$tiposuar="BENEFICIARIO"; 
}


$sucrusal = mysql_query('SELECT codigo FROM sucursal WHERE nombre = "'.$_POST["sucu"].'"  ');
if (!$sucrusal) {
	die('Invalid query 1: ' . mysql_error());
}
list($codisucu) = mysql_fetch_row($sucrusal);

$control2 = mysql_query('SELECT codigo_abogado FROM asjudinet_abogados  WHERE  vigentes= "1" and nombre_completo  =  "' . $codabog . '"  ');
if (!$control2) {
	die('Invalid query 1: ' . mysql_error());
}   
list($codabog1) = mysql_fetch_row($control2);


////////////////////////////
// CALL CENTER 2019-12-18 //
////////////////////////////
$update_callcenter = mysql_query('UPDATE solicitud_citas_juridicas SET fecha_inicio = "'.$fecha_auto.'" WHERE cedula = "'.$_GET["cedula"].'" and atencion = "'.$_GET["atencion"].'" ');
////////////////////////////
	
	

$insertar =	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, status_del_proceso,fecha_inicio, director_juridico, tipo_director, supervisor_juridico, tipo_supervisor, rama_derecho, atencion) VALUES ( '" .  $_POST["codig"] . "', '" . $numeroProcesos . "', '" .  $_POST["tipce"] . "',  '" . $_POST["contra"]  . "', '" . $_POST["tipo"]  . "', '" . $tiposuar . "', '" . $codisucu. "', '" . $_POST["clasne"] . "', '" . $_POST["despajudi"] . "', '" . $_POST["ciudespajudi"]. "', '" .$calafi . "','INICIO', '" . $_POST["numero_carpeta"]. "', '" . $_POST["folio2"] . "', '" . $codabog1. "', '$nuevafecha', 'A', 'V',  '" . $_POST["nomcontr"]. "', '". $_POST["dircontra"]. "', '". $_POST["ciucontra"].  "','1','NORMAL','".$nuevafecha."' , '".$director_juridico."', '".$tipo_director."', '".$supervisor_juridico."', '".$tipo_supervisor."', '".$rama_derecho."', '".$atencion."' )");	    
	      
if (!$insertar) {
	die('Invalid query procesos : ' . mysql_error());
}	
						       
$actuacion = strtoupper ($_POST["actuacion"]);
			
$res = mysql_query("INSERT INTO actuaciones (id, cedula, numero_proceso, folio1, folio2, actuacion, fecha, tipo_orden, codigo_funcionario, codigo_abogado) VALUES  ('','" . $_POST["codig"]  . "', '" .$numeroProcesos. "', '" . $_POST["folio1"] . "', '" . $_POST["folio2"] . "', '" ."$actuacion". "', '$nuevafecha' , 'INICIO', '" . $codabog1. "', '" . $codabog1 . "')");
if (!$res) {
	die('Invalid query res actuaciones 1111: ' . mysql_error());
}  
			
	
$resup = mysql_query('SELECT cantidad_procesos, cantida_prejuridicos, cantidad_disciplinarios, cantidad_medicina_laboral, cantidad_trabajos_sustanciacion, cantidad_resolucion_contratos, cantidad_gestion_administrativa FROM control_procesos  WHERE  contrato = "' . $_POST["contra"] . '" and tipo = "' . $_POST["tipo"] . '" ');
if (!$resup) {
	die('Invalid query: ' . mysql_error());
}
			
list($juridico, $prejuridico, $disciplina, $medicina, $sustanciacion, $resolucion , $gestion) = mysql_fetch_row($resup);
			
if ($_POST["tipce"] == "JURIDICO"){$juridico= $juridico + 1;}   
if ($_POST["tipce"] == "PREJURIDICO"){$prejuridico= $prejuridico + 1;}
if ($_POST["tipce"] == "DISPLINARIO"){$disciplina= $disciplina + 1;}	
if ($_POST["tipce"] == "MEDICINA LABORAL"){$medicina= $medicina + 1;}
if ($_POST["tipce"] == "TRABAJOS SUSTANCIACION"){$sustanciacion= $sustanciacion + 1;}	
if ($_POST["tipce"] == "RESOLUCION CONTRATO"){$resolucion= $resolucion + 1;}
if ($_POST["tipce"] == "GESTION ADMINISTRATIVA"){$gestion= $gestion + 1;}
if ($_POST["tipce"] == "SUBSIDIO FAMILIAR"){$gestion= $gestion + 1;}
if ($_POST["tipce"] == "I.P.C."){$gestion= $gestion + 1;}
if ($_POST["tipce"] == "VEINTE POR CIENTO"){$gestion= $gestion + 1;}
if ($_POST["tipce"] == "BONIFICACION JUDICIAL"){$gestion= $gestion + 1;}
if ($_POST["tipce"] == "UNIFICADO"){$gestion= $gestion + 1;}
if ($_POST["tipce"] == "RELIQUIDACION PENSION"){$gestion= $gestion + 1;}
if ($_POST["tipce"] == "CESANTIAS RETROACTIVAS"){$gestion= $gestion + 1;}
if ($_POST["tipce"] == "SIN PENSION 15-20"){$gestion= $gestion + 1;}
			

if ((mysql_num_rows($resup)==0)) 
{
	$insert =	mysql_query("INSERT INTO control_procesos (contrato, tipo, cantidad_procesos,cantida_prejuridicos, cantidad_disciplinarios, cantidad_medicina_laboral, cantidad_trabajos_sustanciacion, cantidad_resolucion_contratos, cantidad_gestion_administrativa) VALUES ('" . $_POST["contra"] . "', '" . $_POST["tipo"] . "', '" . $juridico . "', '" . $prejuridico . "', '" . $disciplina . "', '" . $medicina . "', '" . $sustanciacion . "', '" . $resolucion . "', '" . $gestion . "')");
	if (!$insert) {
		die('Invalid insert: ' . mysql_error());
	}
		
}
else
{
	$teree =	mysql_query("UPDATE control_procesos  set cantidad_procesos = '" . $juridico. "' , cantida_prejuridicos = '" . $prejuridico. "', cantidad_disciplinarios = '" . $disciplina. "', cantidad_medicina_laboral = '" . $medicina. "', cantidad_trabajos_sustanciacion = '" . $sustanciacion. "', cantidad_resolucion_contratos = '" . $resolucion. "', cantidad_gestion_administrativa = '" . $gestion. "'  WHERE contrato = '" . $_POST["contra"] . "' and tipo = '" . $_POST["tipo"] . "'");
	if (!$teree) {
		die('Invalid teree: ' . mysql_error());
	}
}
	
		
$teree =mysql_query("UPDATE INICIOS_PROCESOS_JURIDICOS set estado = '1',fecha_inicio= '".$nuevafecha."', numero_proceso='" . $numeroProcesos . "'  WHERE contrato = '".$_POST["contra"]."' and tipo = '" . $_POST["tipo"] . "' and id =  '" . $_GET["id"] . "' ");

if (!$teree) {
	die('Invalid teree: ' . mysql_error());
}
		
echo "<script>alert('Los datos fueron grabados correctamente');</script>";	 	
echo "<script> window.close() </script>";	 
	 

}
			

?>


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<!---->

<title>INGRESAR ASIGNACION PROCESO</title>




<style type="text/css">
<!--
.est_cont5 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	font-style: normal;
	font-weight: normal;
	background-color: #EDFAF4;
	margin: 2px;
	padding: 2px;
	height: auto;
	width: auto;
	border: thin groove #E9AAF0;
	color: #C72350;
}
.color_fondo_sc {
	background-color: #DCE0E4;
}
.Estilo1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: bold;
	background-color: #D6ECFE;
	margin: 2px;
	padding: 2px;
	height: auto;
	width: auto;
	border: thin groove #E9AAF0;
	color: #C72350;
}
.Estilo2 {
	font-size: 14px;
	font-weight: bold;
}
.est_cont2 {
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #2B39EC;
	background-color: #F0F5CF;
	height: 18px;
	width: auto;
	border: thin solid #FABF85;
}
.est_cont6 {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 11px;
	font-style: normal;
	font-weight: normal;
	color: #006262;
	background-color: #EDFED3;
	margin: 1px;
	padding: 1px;
	height: auto;
	width: auto;
	border: thin solid #D9B6F8;
}
.sol_cre1 {
	font-family: "Times New Roman", Times, serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #0B3495;
	background-color: #E6FAFF;
	margin: 1px;
	padding: 1px;
	height: 18px;
	width: auto;
	border: thin outset #56AD95;
}
.col_cre2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
	color: #F92F0B;
	background-color: #B3D9F0;
	height: auto;
	width: auto;
	border: medium groove #FC9227;
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
.recaudo {font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
	font-variant: normal;
	color: #000000;
	background-color: #B6CBDC;
	margin: 4px;
	padding: 8px;
	width: auto;
	border: medium outset #339966;
}
.campo1 {background-color: #B7FFFF;
	border: thin dashed #B6B6B6;
}
.campo1 {font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	font-style: normal;
	font-weight: bold;
	background-color: #E1EFFD;
	border: thin doble #009999;
}
.campo1 {	font-family: "Courier New", Courier, monospace;
	font-size: 11px;
	color: #5151FF;
	background-color: #C4E4FD;

	border: thin solid #009999;
	height: 18px;
	width: auto;
}
.Estilo51 {color: #006600;
	font-family: "Arial Narrow";
	font-weight: bold;
}
.datos1 {font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-style: normal;
	text-decoration: blink;
	background-color: #CCFFCC;
	margin: 5px;
	padding: 7px;
	height: auto;
	width: auto;
	border: thin solid #0099FF;
}
.datos1 {font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 16px;
	background-color: #FDE0C1;
	margin: 2px;
	padding: 3px;
	border: medium doble #DBAED7;
}
.datos1 {	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 11px;
	font-weight: normal;
	background-color: #B8F5E8;
	margin: 4px;
	padding: 5px;
	border: thin outset #009999;
}
.datos2 {	font-family: "Courier New", Courier, monospace;
	font-size: 10px;
	font-style: normal;
	font-weight: normal;
	color: #0033FF;
	background-color: #FFE2C6;
	margin: 2px;
	padding: 3px;
	border: medium doble #EEBFEB;
}
.datos3 {	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: normal;
	color: #FF3300;
	background-color: #A6ECD7;
	margin: 4px;
	padding: 4px;
	border: medium groove #CCCCFF;
}
.go {	font-family: "Times New Roman", Times, serif;
	font-size: 9px;
	font-style: normal;
	color: #FF6633;
	background-color: #FBDCBD;
	padding: 1px;
	height: auto;
	width: auto;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
}
.Estilo64 {
	font-size: 8px;
	font-weight: bold;
	color: #000000;
}
.Estilo66 {
	font-size: 12px;
	font-weight: bold;
}
.label {background-color: #FFFFCC; font-size: 12px; font-family: Arial; color:#0000CC; display: block;}
.Estilo67 {color: #FF0000}
#form1 div .sol_cre1 tr td div .sol_cre1 tr td .Estilo55 div {
	color: #F00;
}
.dfr {
	color: #F00;
}
#form1 div .sol_cre1 tr td div .sol_cre1 tr td div .dfr strong {
	color: #F00;
}
.asd {
	color: #F00;
}
.asd {
	color: #F00;
}
.asd {
	color: #F00;
}
.dan {
	color: #F00;
}
.dan strong {
	color: #F00;
}
#form1 div .sol_cre1 tr td div .sol_cre1 tr td div .dan strong {
	color: #F00;
}
.da {
	color: #F00;
}
sasasasa {
	color: #000;
}
sasasa {
	color: #F00;
}
aSASDASDA {
	color: #F00;
}
.asa {
	color: #F00;
}
a:active {
	color: #F00;
}
Aasasa {
	color: #F00;
}
.qaasa {
	color: #F00;
}
sasasa {
	color: #F00;
}
.estilo {
	color: #F00;
}
.dani {
	color: #F00;
}
.oto {
	color: #060;
}
-->
</style>










<script Language="JavaScript">
function validarEntero(valor){ 
      //intento convertir a entero. 
     //si era un entero no le afecta, si no lo era lo intenta convertir 
     valor = parseInt(valor) 

      //Compruebo si es un valor numérico 
      if (isNaN(valor)) { 
            //entonces (no es numero) devuelvo el valor cadena vacia 
            return "" 
      }else{ 
            //En caso contrario (Si era un número) devuelvo el valor 
            return valor 
      } 
} 
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 valida_envia()


{
	
	//LA RADICACION
	if (document.form1.radproc.value.length==0){
		alert("Escriba La Radicacion Del Proceso")
		document.form1.radproc.focus()
		return (false);
	}
	
	
			//valido EL DESPACHO JUDICIAL
	if (document.form1.despajudi.value.length==0){
		alert("Escriba El Despacho Judicial")
		document.form1.despajudi.focus()
		return (false);
	}

		//valido LA CIUDAD DEL DESPACHO
	if (document.form1.ciudespajudi.value.length==0){
		alert("Tiene que escribir La Ciudad Del Despacho")
		document.form1.ciudespajudi.focus()
		return (false);
	}
	
	//valido El Folio 1
	if (document.form1.folio1.value.length==0){
		alert("Escriba El Folio 1")
		document.form1.folio1.focus()
		return (false);
	}
	
	
	//valido El Folio 2
	if (document.form1.folio2.value.length==0){
		alert("Escriba El Folio 2")
		document.form1.folio2.focus()
		return (false);
	}
	
	
	//valido ACTUACION
	if (document.form1.actuacion.value.length==0){
		alert("Escriba La Actuacion")
		document.form1.actuacion.focus()
		return (false);
	}
	

	
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
</script>

</head>
<body>

<form action=""  method="post" onsubmit="return valida_envia()" enctype="multipart/form-data" name="form1"  id="form1">
  <div align="center">
  <div align="center" class="Estilo1">INICIO PROCESOS</div>

        <table width="790" border="2" cellpadding="1" cellspacing="1" class="sol_cre1">
        <caption>
        <div align="center"><br />
          <span class="Estilo2"> DATOS TITULAR</span><br />
        </div>
        </caption>
        <tr>


          <td colspan="2" scope="col"> <strong>Orden De Trabajo :</strong>
          <input name="orden_t" type="text" class="Estilo66" id="orden_t" value="<? echo $ot ?>" size="20" maxlength="20" readonly="" /></td>

          <th colspan="2"  scope="col" align="right"> <strong>CEDULA/CODIGO:</strong>
            <input name="codig" type="text" class="Estilo66" id="codig" value="<?php echo $codi?>" size="10" maxlength="10"readonly="" /> 
            <strong>Contrato N&deg; :</strong></th>
          <th colspan="2" scope="col"><div align="left">
            <input name="contra" type="text" class="Estilo66" id="contra" value="<?php echo $contra?>" size="20" maxlength="20" readonly="" />
            <strong>Tipo :</strong>  
            <input name="tipo" type="text" class="Estilo66" id="tipo" value="<?php echo  $otrotipo ?>" size="4" maxlength="4"readonly="" />
          </div>
      
      
        <tr>
          <td width="140"  align="right"><strong>Apellidos y Nombres:</strong></td>
          <td colspan="2" align="left"><input name="apenom" type="text" class="Estilo66" id="apenom" value="<?php echo $ape?>" size="50" maxlength="50"  readonly=""/></td>
    <td width="180"align="right"><strong>Tipo Proceso :</strong></td>
  <td colspan="2" align="left"><input name="tipce" type="text" class="Estilo66" id="tipce" value="<?php echo $tipce?>" size="30" maxlength="30"  readonly=""/></td>
        </tr>
      <tr>
        
        <td width="140" align="right"><strong>Area del derecho :</strong></td>
         <td colspan="3" align="left"><input name="apenom" type="text" class="Estilo66" id="apenom" value="<?php echo $arde ?>" size="60" maxlength="65"  readonly=""/></td>
         <td colspan="2"  align="center"><strong>Numero de Carpeta :</strong><input name="numero_carpeta" type="text" class="campo" id="numero_carpeta"  value="<?php echo $car  ?>" size="4" maxlength="4"readonly="" />
    </td>

         
          </tr>  
             
             
          <tr>
          
          <td colspan="6"  align="center"><strong>Clase De Negocio:</strong>
           <textarea name="clasne" cols="60" rows="2" id="bienea" class="clasne" readonly="readonly"><?php echo $clasne ?></textarea>
         </td></tr>
  
          
          <tr>
         <td class="Estilo66" ><div align="right"><strong> Poder Fecha Autenticacion</strong></div></td>
          <td><div align="left">
            <input name="podfec" type="text" class="Estilo66" id="podfec" value="<?php echo $fechaut?>" size="12" maxlength="10"readonly=""/>
          </div></td>
         
          <td width="167" align="right"><strong>Sucursal :</strong></td>
            
        <td class="Estilo66" align="left" ><input name="sucu" type="text" class="Estilo66" id="sucu" value="<?php echo  $sucu  ?>" size="15" maxlength="15"  readonly=""/>
    
          <td width="168"><div align="right"><strong> Fecha Asignacion</strong></div></td>
        <td class="Estilo66"align="left"><input name="fechaasig" type="text" class="Estilo66" id="fechaasig" value="<?php echo  $fechaasig ?>" size="10" maxlength="15"  readonly=""/>
          </td></tr>
          
          
           
            <td align="center" colspan="3"><strong>Calidad Afiliado :</strong><input name="apenom" type="text" class="Estilo66" id="apenom" value="<?php echo  $calafi  ?>" size="60" maxlength="65"  readonly=""/> 
          <td colspan="3" align="left"><strong>Nombre Abogado:</strong><input name="nombabog" type="text" class="Estilo66" id="nombabog" value="<?php echo $codabog  ?>" size="60" maxlength="65"  readonly=""/></td>
   
          </tr>
          <tr>
          <td colspan="3" align="left"><strong>Documentos Entregados 1:</strong>
            <input name="doc1" type="text" class="Estilo66" id="doc1" value="<?php echo $doc1 ?> " size="40" maxlength="55"readonly=""/>
       </td>
         <td colspan="3" align="left"><strong>Documento 2 :</strong>
            <input name="doc2" type="text" class="Estilo66" id="doc2" value="<?php echo $doc2 ?> " size="40" maxlength="55"readonly=""/>
      </td>
      </tr>
      <tr>
          <td colspan="3" align="center"><strong>Documento 3:</strong>
            <input name="doc3" type="text" class="Estilo66" id="doc3"  value="<?php echo $doc3 ?> " size="40" maxlength="55"readonly=""/>
     </td>
          <td colspan="3" align="left"><strong>Documento 4:</strong>
            <input name="doc4" type="text" class="Estilo66" id="doc4" value="<?php echo $doc4 ?> " size="40" maxlength="55" readonly=""/>
      </td></tr>
      <tr>    
          <td><div align="right"><strong>Documento 5:</strong></div></td>
          <td><div align="left">
            <input name="doc5" type="text" class="Estilo66" id="doc5"  value="<?php echo $doc5 ?> " size="40" maxlength="55"readonly=""/>
          </div></td> 
        
          
          <td><div align="right">
            <div align="right"><strong>Clase De Titulo Uno:</strong></div>
          </div></td>
          <td ><div align="left">
            <input name="clastitu" type="text" class="Estilo66" id="clastitu" value="<?php echo $clasti ?>" size="40" maxlength="55" readonly=""/>
          </div></td>
          <td align="right"><strong>Valor:</strong></td>
       <td align="left"><input name="valcuo" type="text" class="Estilo66" id="valcuo" value="<?php echo $valti ?>" size="12" maxlength="12"readonly=""/></td></tr>
          
          <tr>
          <td  colspan="2"><strong>Fecha de Expedicion  Del Titulo Uno: </strong>
            <input name="fecha3" type="text" class="Estilo66" id="fecha3" value="<?php echo $fechaexp ?>" size="12" maxlength="10"readonly=""/>       
         
       
         
          <td colspan="2"><strong>Fecha Vencimiento Titulo Valor:</strong>
            <input name="fecha4" type="text" id="fecha4" value="<?php echo $fechavenci ?> " size="10" maxlength="10" readonly=""/></td>

          <td><div align="right"><strong>Valor Intereses Causados:</strong></div></td>
          <td ><div align="left">
            <input name="valintcaus" type="text" class="Estilo66" id="valintcaus" value="<?php echo $valintcau ?> " size="12" maxlength="12"readonly=""/>
          </div></td></tr>
          
          <td align="right"><strong>Valor Clausula Penal:</strong></td>
          <td><div align="left">
          <input name="valclap" type="text" class="Estilo66" id="valclap" value="<?php echo $valintcau?>" size="30" maxlength="30"readonly=""/>
          </div></td>
            
          <td  align="center" colspan="2"><strong>Nombre del Deudor:</strong>
            <input name="nomdeu" type="text" class="Estilo66" id="nomdeu" value="<?php echo $nomdeu  ?>" size="40" maxlength="40" readonly=""/></td>

          <td height="34"><div align="right"><strong>Direccion Del Deudor:</strong></div></td>
          <td align="left"><input name="dirdeu" type="text" class="Estilo66" id="dirdeu" value="<?php echo $dirdeu?>" size="25" maxlength="30"readonly=""/></td></tr>

          
          
          <td height="34"><div align="right"><strong>Ciudad</strong></div></td>
          <td><div align="left">
          <input name="ciud" type="text" class="Estilo66" id="ciud" value="<?php echo $ciuddeu ?>" size="30" maxlength="30"readonly=""/>
          </div></td>
         
          <td><div align="right"><strong>Telefono Deudor:</strong></div></td>
          <td ><div align="left">
            <input name="tele" type="text" class="Estilo66" id="tele" value="<?php echo $teldeu ?>" size="12" maxlength="14"readonly=""/>
          </div></td>

          <td><div align="right"><strong>Telefono Celular:</strong></div></td>
          <td ><div align="left">
            <input name="telecel" type="text" class="Estilo66" id="telecel" value="<?php echo $telcel ?>" size="15" maxlength="15"readonly=""/>
          </div></td></tr>
   
         <td><div align="center" class="Estilo56">
         <div align="right" class="Estilo12"><strong>Bienes A embargar</strong></div>
          </div></td>
          <td colspan="3" align="left">
         <textarea name="bienea" cols="60" rows="2" id="bienea" class="sel"><?php echo $bienembar ?></textarea></td>
    
         <td height="31" class="Estilo23"><div align="center" class="Estilo12">

            <div align="right"><span class="dani"><strong>Clase De Titulo Dos:</strong></span></div>
          </div></td>
          <td align="left"><input name="clastitu2"class="Estilo66" id="clastitu2" value="<?php echo $clasti2 ?>" size="12" maxlength="12"readonly=""/></td></tr>
          <td  colspan="2" align="center"> <strong>Valor Dos: </strong><input name="valo2" type="text" class="Estilo66" id="valo2" value="<?php echo $val2 ?>"size="40" maxlength="30"readonly=""/></td>

   <td colspan="2"><strong>Fecha de Expedicion  Del Titulo Dos:</strong><input name="fecha5" type="text" id="fecha5" value="<?php echo $fechexpe2 ?>" size="10" maxlength="10"readonly=""/></td>
    

 <td colspan="0"><div align="right"><span class="estilo"><strong>Fecha Vencimiento Titulo Valor Dos:</strong></span></div></td>
 <td align="left" colspan="0" ><input name="fecha6" type="text" id="fecha6" value="<?php echo $fechaven2 ?>" size="10" maxlength="10" readonly=""/></td>
 </tr>
 
 <td><div align="right"><span class="dfr"><strong>Valor Intereses Causados Dos</strong></span><strong> <span class="asd">
 <td align="left" ><input name="intere" type="text" class="Estilo66" id="intere" value="<?php echo $valinca?>"size="20" maxlength="20"readonly=""/> </td>
 <td ><div align="center" class="Estilo55 ">
 
          <div align="right"><span class="qaasa"><strong>Valor Clausula Penal Dos</strong></div>
          </div></td>
          <td  align="left"><input name="valclau" type="text" class="Estilo66" id="valclau" value="<?php echo $vclau2?>"size="20" maxlength="20"readonly=""/></td>
          <td  ><div align="center" class="Estilo55 ">
          <div align="right"><span class="qaasa"><strong>Nombre del Deudor Dos:</strong></div>
          </div></td>
 <td  align="left"><input name="nomdeu2" type="text" class="Estilo66" id="nomdeu2" value="<?php echo $nomdeu2?>" size="25" maxlength="25" readonly=""/></td></tr>


<td  ><div align="center" class="Estilo55 ">      
          <div align="right"><span class="qaasa"><strong>Direccion Del Deudor Dos:</strong></div>
          </div></td>
  <td colspan="2" align="left"><input name="dir2" type="text" class="Estilo66" id="dir2" value="<?php echo $dirdeu2?>" size="50" maxlength="20"readonly=""/></td>
<td  ><strong>Ciudad Dos</strong><input name="ciu2" type="text" class="Estilo66" id="ciu2" value="<?php echo $ciud2?>" size="30" maxlength="30" readonly=""/></td>
 
 
 <td  ><div align="center" class="Estilo55 ">
           <div align="right"><span class="qaasa"><strong>Telefono Dos</strong></div>
                </div></td>
 <td  align="left"><input name="tele2" type="text" class="Estilo66" id="tele2" value="<?php echo $tel2?>" size="15" maxlength="15"readonly=""/>
 </tr>
       

 
 <tr>
 <td ><strong>Bienes A embargar</strong>
      </td>
<td colspan="5" align="left">
<textarea name="biene2" cols="60" rows="2" id="biene2" class="sel"><?php echo $bienembar2 ?></textarea>
</td>
</tr>
	 
<?php if($accion != "") { ?>
 <tr>
 <td ><strong>Accion</strong>
      </td>
<td colspan="5" align="left">
<textarea name="accion" cols="60" rows="2" id="biene2" class="sel"><?php echo $accion ?></textarea>
</td>
</tr>
<?php } ?>

<td  ><div align="center" class="Estilo55 ">
           <div align="right"><span class="oto"><strong>Radicacion Proceso</strong></div>
      </div></td>
 <td  align="left"><input name="radproc" type="text" class="Estilo66" id="radproc" value="" size="30" maxlength="30"/>
 
 <td  ><div align="center" class="Estilo55 ">
           <div align="right"><span class="oto"><strong>Despacho Judicial</strong></div>
                </div></td>
                
 <td  align="left"><input name="despajudi" type="text" class="Estilo66" id="despajudic" value="" size="30" maxlength="30"/>
  <td  ><div align="center" class="Estilo55 ">   
      <div align="right"><span class="oto"><strong>Ciudad Del Despacho</strong></div>
                </div></td>
<td  align="left"><input name="ciudespajudi" type="text" class="Estilo66" id="ciudespajudi" value="" size="25" maxlength="30"/></td></tr>
 

            <td align="right"><span class="oto"><strong>Status del Proceso :</strong></td>
           <td width="186" colspan="1" align="left"><input name="stapro" type="text" class="Estilo66" id="stapro" value="<?php echo NORMAL?>" size="10" maxlength="10"  readonly=""/></td>
       
       
    
         
                  <td align="right"><span class="oto"><strong>Actividad Del Proceso :</strong></td>
       <td width="180" colspan="1" align="left"><input name="actapro" type="text" class="Estilo66" id="actapro" value="<?php echo ACTIVO?>" size="10" maxlength="10"  readonly=""/></td>
       
    
         
                <td align="right"><span class="oto"><strong>Estado Del Proceso :</strong></td>
      <td width="152" colspan="1" align="left"><input name="estapro" type="text" class="Estilo66" id="estapro" value="<?php echo VIGENTE?>" size="10" maxlength="10"  readonly=""/></td>
     
    </tr>
 
 <td colspan="2" align="center"><strong>Nombre Contraparte :</strong><input name="nomcontr" type="text" class="Estilo66" id="nomcontr" value="" size="50" maxlength="50"  />
   
  
         
      <td colspan="2" align="center"><strong>Direccion Contraparte :</strong><input name="dircontra" type="text" class="Estilo66" id="dircontra" value="" size="50" maxlength="50" /></td>
       
       
         
         
                <td aling="right"><span class="oto"><strong>Ciudad Contraparte :</strong></td>
      <td width="152" colspan="1" align="left"><input name="ciucontra" type="text" class="Estilo66" id="ciucontra" value="" size="25" maxlength="20" /></td>
   
 </td></tr>

  </tr>
  
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  
    </table>
    
   <br> <br/>
    
    
  <table width="937" height="80" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#ECE9D8">
  <tr bgcolor="#FFFFCC">
    <td colspan="7" bgcolor="#FFFFCC" class="titulos"><div align="center">INGRESE LOS DATOS DEL INICIO DEL PROCESO </div></td>
  </tr>
  <tr>
    <td width="102" bgcolor="#E8FFF7" class="lista"><div align="center">FOLIOS</div></td>
    <td width="61" bgcolor="#E8FFF7" class="lista"><div align="center">DEL:</div></td>
    <td width="103" bgcolor="#E8FFF7"><div align="center">
      <input name="folio1" type="text" class="area" id="folio1" size="4" maxlength="4">
    </div></td>
    <td width="61" bgcolor="#E8FFF7" class="lista"><div align="center">AL:</div></td>
    <td width="104" bgcolor="#E8FFF7"><div align="center">
      <input name="folio2" type="text" class="area" id="folio2" size="4" maxlength="4">
    </div></td>
    <td width="220" bgcolor="#E8FFF7" class="lista"><div align="center">FECHA ACTUACION: </div></td>
    <td width="242" bgcolor="#E8FFF7">
	  <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="#red"><textarea name="actuacion" cols="90" rows="3" id="actuacion" class="sel" value=""></textarea></td>
    <td bgcolor="#E8FFF7" class="fecha">Tipo de orden: </td>
  </tr>
  <tr>
    <td bgcolor="#E8FFF7"><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" bgcolor="#FFFFCC"><div align="center">
   
     <input name="menu2" type="button" class="Estilo50" id="menu2" onClick="window.location.href='modificar_ingresar_proceso_3.php?cedula=<?php echo $ot; ?>&proceso=<?php echo $tipce; ?>'" value="DESEA MODIFICAR DATOS">
     <input name = "guardar" type="submit" class="Estilo50" value="ESTA SEGURO DE GUARDAR DATOS"> 
</div></td>
    </tr>
</table>
</form>
<?php 
if($atencion != ""){
	echo "Con el ticket ". $atencion;
}
 ?>
</body>
</html>