File: /home/asjudine/public_html/asignacion_subsidio.php
<?php
require_once("mainfile.php");
include ("config.php");
require_once("Conectarse.php");
$nombri=$_GET[nom];
$sucursal=$_GET[sucu];
if ($_GET[tipopro] == 1){$tipopro= "JURIDICO"; }
if ($_GET[tipopro] == 2){$tipopro= "PREJURIDICO"; }
if ($_GET[tipopro] == 3){$tipopro= "DISCIPLINARIO"; }
if ($_GET[tipopro] == 4){$tipopro= "MEDICINA LABORAL"; }
if ($_GET[tipopro] == 5){$tipopro= "TRABAJOS SUSTANCIACION"; }
if ($_GET[tipopro] == 6){$tipopro= "RESOLUCION CONTRATO"; }
if ($_GET[tipopro] == 7){$tipopro= "GESTION ADMINISTRATIVA"; }
$control = mysql_query('SELECT nombre FROM cartera_serviasjudinet WHERE cedula = "' . $_GET["id"] . '" and numerocontrato = "' . $_GET["numcon"] . '" and tipocontrato = "' . $_GET["tipo"] . '" ');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($control)==0))
{
$control = mysql_query('SELECT nombre FROM beneficiarios WHERE cedula_titular = "' . $_GET["id"] . '" and numero_contrato_titular = "' . $_GET["numcon"] . '" and tipo_contrato_titular = "' . $_GET["tipo"] . '" ');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
}
list($nombre) = mysql_fetch_row($control);
/* $godr = mysql_query('SELECT MAX(id) FROM INICIOS_PROCESOS_JURIDICOS WHERE sucursal = "'.$sucursal. '" group by sucursal');
if (!$godr) {
die('Error de godr: ' . mysql_error());
}
list($id) = mysql_fetch_row($godr);
$jata = mysql_query('SELECT orden_de_trabajo FROM INICIOS_PROCESOS_JURIDICOS WHERE id = "'.$id. '" ');
if (!$jata) {
die('Error de godr: ' . mysql_error());
}
list($procesog) = mysql_fetch_row($jata);
$proceso = $procesog + 1;
$contt = mysql_query('SELECT nombre FROM sucursal WHERE nombre= "' . $sucursal. '" ');
if (!$contt) {
die('Invalid query 42: ' . mysql_error());
}
list($sucursal) = mysql_fetch_row($contt);
if ($sucursal == "BOGOTA" and $procesog == "10000")
{
$proceso = 10011;
}
if ($sucursal == "CALI" and $procesog == "20000")
{
$proceso = 20111;
}
if ($sucursal == "CARTAGENA" and $procesog == "30000")
{
$proceso = 30001;
}
if ($sucursal == "CUCUTA" and $procesog == "40000")
{
$proceso = 40001;
}
if ($sucursal == "IBAGUE" and $procesog == "50000")
{
$proceso = 50001;
}
if ($sucursal == "PEREIRA" and $procesog == "60000")
{
$proceso = 60001;
}
if ($sucursal == "MEDELLIN" and $procesog == "70000")
{
$proceso = 70001;
}
if ($sucursal == "BARRANQUILLA" and $procesog == "80000")
{
$proceso = 80001;
}
if ($sucursal == "BUCARAMANGA" and $procesog == "90000")
{
$proceso = 90001;
}
if ($sucursal == "MELGAR" and $procesog == "1000")
{
$proceso = 1001;
}
if ($sucursal == "MOCOA" and $procesog == "2000")
{
$proceso = 2001;
}
if ($sucursal == "MONTERIA" and $procesog == "3000")
{
$proceso = 3001;
}
if ($sucursal == "NEIVA" and $procesog == "4000")
{
$proceso = 4001;
}
if ($sucursal == "FLORENCIA" and $procesog == "5000")
{
$proceso = 5001;
}
if ($sucursal == "TUNJA" and $procesog == "6000")
{
$proceso = 6001;
}
if ($sucursal == "PASTO" and $procesog == "7000")
{
$proceso = 7001;
}
if ($sucursal == "VALLEDUPAR" and $procesog == "8000")
{
$proceso = 8001;
}
if ($sucursal == "VILLAVICENCIO" and $procesog == "9000")
{
$proceso = 9001;
}
//$query_sql = "SELECT * FROM sucursal order by nombre";
//$sql = mysql_query($query_sql, $dbi) or die(mysql_error());
$sql = mysql_query('SELECT * FROM sucursal order by nombre');
if (!$sql) {
die('Invalid query: ' . mysql_error());
}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);
if ($sucu == "MOCOA")
{
$sql2 = mysql_query('SELECT * FROM asjudinet_abogados WHERE sucursal = "NEIVA" and vigentes = "1" order by Nombre_Completo ');
if (!$sql2) {
die('Invalid query: ' . mysql_error());
}
$row_sql2 = mysql_fetch_assoc($sql2);
}else
{
*/
$sql2 = mysql_query('SELECT * FROM asjudinet_abogados WHERE sucursal = "' . $_GET["sucu"] . '"and vigentes = "1" order by Nombre_Completo ');
if (!$sql2) {
die('Invalid query: ' . mysql_error());
}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);
// }
$cedulafun = $cedu;
?>
<html>
<head>
<title>Verificacion Solicitud Cita</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo1 {font-family: "Arial Narrow"}
.Estilo2 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo20 {color: #990000}
.Estilo21 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; color: #990000; }
.Estilo13 {font-size: 12px; font-weight: bold; }
.Estilo41 {font-family: "Times New Roman", Times, serif}
.Estilo42 {color: #009933}
.Estilo45 {
color: #0066FF;
font-size: 16px;
}
-->
</style>
<script Language="JavaScript">
<!--
//--></script>
<SCRIPT LANGUAGE='JavaScript'>
var default1 = "VENTANA PARA EL INGRESO DE ACTUACIONES"; // only shown once at page load
var text1 = "El primer encabezado muestra en detalle los datos del proceso seleccionado";
var text2 = "la segunda parte muestra el formulario para el ingreso de revistas";
var text3 = "No se le olvide tener en cuenta el número del folio que se entrega en el juzgado";
var changeRate = 3000; // 1000 = 1 second
var messageNumber = 0;
function changeStatus()
{
if (messageNumber == 0) {
window.status=default1;
document.title=default1;
}
else if (messageNumber == 1) {
window.status=text1;
}
else if (messageNumber == 2) {
window.status=text2;
}
else if (messageNumber == 3) {
window.status=text3;
messageNumber = 0;
}
messageNumber++;
setTimeout("changeStatus();",changeRate);
}
changeStatus(); // leave here to run right away
// -->
</SCRIPT>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<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 Valida_Fecha(formulario)
{
if (formulario.orden_t.value == "")
{
alert("Falta Ingresar Orden De Trabajo");
formulario.orden_t.focus();
return (false);
}
if (formulario.tipopro.value == "")
{
alert("Falta Ingresar Tipo De Proceso");
formulario.tipopro.focus();
return (false);
}
if (formulario.numero_carpeta.value == "")
{
alert("Falta Ingresar número carpeta-");
formulario.numero_carpeta.focus();
return (false);
}
if (formulario.clase_negocio.value == "")
{
alert("Falta Ingresar Clase De Negocio");
formulario.clase_negocio.focus();
return (false);
}
if (formulario.podfec.value == "")
{
alert("Falta Ingresar Fecha Autenticacion");
formulario.podfec.focus();
return (false);
}
if (formulario.sucursal.value == "")
{
alert("Falta Ingresar Sucursal");
formulario.sucursal.focus();
return (false);
}
if (formulario.calidad_afiliado.value == "")
{
alert("Falta Ingresar Calidad Afiliado");
formulario.calidad_afiliado.focus();
return (false);
}
if (formulario.calidad_afiliado.value == "")
{
alert("Falta Ingresar Calidad Afiliado");
formulario.calidad_afiliado.focus();
return (false);
}
if (formulario.codigo_abogado.value == "")
{
alert("Falta Seleccionar Abogado");
formulario.codigo_abogado.focus();
return (false);
}
return (true);
}
var timerID = null;
var timerRunning = false;
var id,pause=0,position=0;
function stopclock ()
{
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime ()
{
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " pm" : " am"
document.formulario.Hora_Envio.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock ()
{
stopclock ();
showtime ();
}
//--></script>
<script language="JavaScript">
function update(envio)
{
envio.identificacion.value = formulario.Cedula.value
envio.contador.value = formulario.Contador.value
envio.hora_envio.value = formulario.Hora_Envio.value;
}
</script>
</SCRIPT>
<link href="file:///C|/Documents%20and%20Settings/web%20master/Mis%20documentos/job9.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo59 {color: #CC0000}
.Estilo60 {color: #006600}
.Estilo61 {font-size: 16px}
.Estilo62 {
color: #000033;
font-weight: bold;
font-size: 16px;
}
.Estilo63 {color: #003399}
-->
</style>
</head>
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
$espacio = ' ';
$linea = '-';
$ot;
require_once("Conectarse.php");
$control = mysql_query('SELECT cedula, codigo_militar, nombre, grado, numerocontrato, tipocontrato , numero_libranza , tipo_afiliado, codigo_sucursal, direccion , telefono, celular, ciudad , email, cuenta, banco, entidad_laboral, unidad_descuento, codigo_descuento, entidad_recaudo, fecha_nacimiento, fecha_afiliacion, fecha_validacion, valorcontrato, numerocuotas, valorcuota, fecha_inicio_contrato, fecha_termino_contrato, fecha_ultimo_registro, mes_inicio, ano_inicio, mes_termino, ano_termino, saldoanteior, cuotaspendientes, cuotasdescontadas, saldonuevo, vendedor, director, beneficiarios, renovacion, causal_terminacion, fecha_terminacion, estado FROM cartera_serviasjudinet WHERE cedula = "' . $_GET["ced2"] . '" and numerocontrato = "' . $_GET["numcon"] . '" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control);
list($cedula, $codi, $apes, $grad, $numcont, $plan, $num_lib, $titular, $codigosu, $dire, $tele, $celul, $ciud, $email, $cue, $ban, $enti, $unides, $codides, $entre, $fecna, $fechafil, $fechaval, $valcon, $numcuo, $valcuo, $fechainicio, $fechatermino, $fechaul, $mesini, $anoini, $mesfin, $anofin, $salant, $cupen, $cudesc, $salnue, $ven, $director, $benet, $renova, $causal, $fechater, $esta) = mysql_fetch_row($control);
$inipag = $anoini.'-'.$mesini;
$control99 = mysql_query('SELECT cedula, numero_proceso, tipo_proceso, numero_contrato, tipo_contrato, codigo_sucursal, clase_negocio, despacho_judicial, ciudad_despacho, tipo_afiliado, calidad_juridica_afiliado, tipo_orden, numero_carpeta, ultimo_folio, codigo_abogado, fecha_actuacion, actividad_proceso, estado_proceso FROM procesos_historicos
WHERE cedula = "' . $_GET["ced2"] . '" and numero_contrato = "' . $_GET["numcon"] . '" ');
if (!$control99) {
die('Invalid query: ' . mysql_error());
}
while(list($cedu, $numero_proceso, $tipo_proceso, $numero_contrato, $tipo_contrato, $codigo_sucursal, $clase_negocio, $despacho_judicial, $ciudad_despacho, $tipo_afiliado, $calidad_juridica_afiliado, $tipo_orden, $numero_carpeta, $ultimo_folio, $codigo_abogado, $fecha_actuacion, $actividad_proceso, $estado_proceso) = mysql_fetch_row($control99))
{
$numprohis = $numprohis + 1 ;
}
$cont = mysql_query('SELECT cedula, cedula_titular FROM beneficiarios WHERE cedula_titular = "' . $_GET["ced2"] . '" and numero_contrato_titular = "' . $_GET["numcon"] . '" ');
if (!$cont) {
die('Invalid query: ' . mysql_error());
}
while(list($ceduc, $cedtiu ) = mysql_fetch_row($cont))
{
$bene = $bene + 1;
}
$controlgg = mysql_query('SELECT cedula, cedula_titular FROM beneficiarios WHERE cedula_titular = "' . $_GET["ced2"] . '" and numero_contrato_titular = "' . $_GET["numcon"] . '"');
if (!$controlgg) {
die('Invalid query: ' . mysql_error());
}
while(list($ceduc, $cedtiu ) = mysql_fetch_row($controlgg))
{
$control88 = mysql_query('SELECT cedula, numero_proceso, tipo_proceso, numero_contrato, tipo_contrato, codigo_sucursal, clase_negocio, despacho_judicial, ciudad_despacho, tipo_afiliado, calidad_juridica_afiliado, tipo_orden, numero_carpeta, ultimo_folio, codigo_abogado, fecha_actuacion, actividad_proceso, estado_proceso FROM procesos WHERE cedula = "' .$ceduc. '" and numero_contrato = "' . $_GET["numcon"] . '" ');
if (!$control88) {
die('Invalid query: ' . mysql_error());
}
while(list($cedu, $numero_proceso, $tipo_proceso, $numero_contrato, $tipo_contrato, $codigo_sucursal, $clase_negocio, $despacho_judicial, $ciudad_despacho, $tipo_afiliado, $calidad_juridica_afiliado, $tipo_orden, $numero_carpeta, $ultimo_folio, $codigo_abogado, $fecha_actuacion, $actividad_proceso, $estado_proceso) = mysql_fetch_row($control88))
{
$numben = $numben + 1 ;
}
$control = mysql_query('SELECT cedula, numero_proceso, tipo_proceso, numero_contrato, tipo_contrato, codigo_sucursal, clase_negocio, despacho_judicial, ciudad_despacho, tipo_afiliado, calidad_juridica_afiliado, tipo_orden, numero_carpeta, ultimo_folio, codigo_abogado, fecha_actuacion, actividad_proceso, estado_proceso FROM procesos_historicos
WHERE cedula = "' .$ceduc. '" and numero_contrato = "' . $_GET["apes"] . '" ');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
while(list($cedu, $numero_proceso, $tipo_proceso, $numero_contrato, $tipo_contrato, $codigo_sucursal, $clase_negocio, $despacho_judicial, $ciudad_despacho, $tipo_afiliado, $calidad_juridica_afiliado, $tipo_orden, $numero_carpeta, $ultimo_folio, $codigo_abogado, $fecha_actuacion, $actividad_proceso, $estado_proceso) = mysql_fetch_row($control))
{
$numbenhis = $numbenhis + 1 ;
}
}
//AQUI ACABA LA CONSUTA DE PROCESOS JURIDICOS
$control = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' . "$codigosu". '" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
list($codigosu) = mysql_fetch_row($control);
$cont10 = mysql_query('SELECT nombre FROM entidad_laboral WHERE codigo = "' . "$enti". '"');
if (!$cont10) {
die('Invalid query 2: ' . mysql_error());
}
list($enti) = mysql_fetch_row($cont10);
$cont10 = mysql_query('SELECT nombre FROM director_ventas WHERE codigo = "' . "$director". '"');
if (!$cont10) {
die('Invalid query 3: ' . mysql_error());
}
list($director) = mysql_fetch_row($cont10);
$cont10 = mysql_query('SELECT concepto FROM descuentos WHERE id = "' . "$entre". '"');
if (!$cont10) {
die('Invalid query 11: ' . mysql_error());
}
list($entre) = mysql_fetch_row($cont10);
if ($plan > 0)
{
$cont10 = mysql_query('SELECT codigo_contrato FROM planes_contratos WHERE codigo = "' . "$plan". '" ');
if (!$cont10) {
die('Invalid query 42: ' . mysql_error());
}
list($plan) = mysql_fetch_row($cont10);
}
if(isset($_POST["guardar"]))
{
$fecha_asignac = date("Y")."-".date("m")."-".date("d");
$sql5 = mysql_query('SELECT clase FROM clase_negocio WHERE codigo = "' . $_GET["busque"] . '"');
if (!$sql5) {
die('Invalid query sql5: ' . mysql_error());
}
list($clase) = mysql_fetch_row($sql5);
$sql26 = mysql_query('SELECT codigo_abogado FROM asjudinet_abogados WHERE nombre_completo = "' . $_POST["codigo_abogado"] . '"');
if (!$sql26) {
die('Invalid query sql5: ' . mysql_error());
}
list($nombreabogad) = mysql_fetch_row($sql26);
$csql = mysql_query("INSERT INTO INICIOS_PROCESOS_JURIDICOS (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, estado) VALUES ('" . $_POST["orden_t"] . "', '" . $_POST["codig"] . "', '" . $_POST["contra"] . "', '" . $_POST["tipe"] . "', '" . $_POST["apenom"] . "', '" . $_POST["tipopro"] . "', '" . "$clase". "', '" . $_POST["numero_carpeta"] . "', '" . $_POST["clase_negocio"] . "', '" . $_POST["podfec"] . "','" . $_POST["sucursal"] . "', '" . "$fecha_asignac" . "', '" . $_POST["calidad_afiliado"] . "', '" ."$nombreabogad ". "', '" . $_POST["doc1"] . "', '" . $_POST["doc2"] . "', '" . $_POST["doc3"] . "', '" . $_POST["doc4"] . "', '" . $_POST["doc5"] . "', '" . $_POST["clastitu"] . "','" . $_POST["valcuo"] . "', '" . $_POST["fecha3"] . "', '" . $_POST["fecha4"] . "', '" . $_POST["valintcaus"] . "','" . $_POST["valclap"] . "','" . $_POST["nomdeu"] . "','" . $_POST["dirdeu"] . "','" . $_POST["ciud"] . "', '" . $_POST["tele"] . "', '" . $_POST["telecel"] . "', '" . $_POST["bienea"] . "', '" . $_POST["clastitu2"] . "', '" . $_POST["valo2"] . "', '" . $_POST["fecha5"] . "', '" . $_POST["fecha6"] . "', '" . $_POST["intere"] . "', '" . $_POST["valclau"] . "', '" . $_POST["nomdeu2"] . "', '" . $_POST["dir2"] . "', '" . $_POST["ciu2"] . "', '" . $_POST["tele2"] . "','" . $_POST["biene2"] . "', '0' )");
if (!$csql) { // esto es para que aparescan los errores
die('Invalid query csql: ' . mysql_error());
}
echo "<script>alert('Los datos fueron grabados correctamente');</script>";
echo "<script languaje='javascript' type='text/javascript'>window.close();</script>";
}
$misql = mysql_query('SELECT * FROM asjudinet_abogados WHERE vigentes = "1" order by nombre_completo ');
if (!$misql) {
die('Invalid query: ' . mysql_error());
}
$row = mysql_fetch_assoc($misql);
$total = mysql_num_rows($misql);
$sql2 = mysql_query('SELECT * FROM sucursal order by nombre ');
if (!$sql2) {
die('Invalid query hhh: ' . mysql_error());
}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);
$sql5 = mysql_query('SELECT * FROM clase_negocio WHERE codigo = "'.$_GET["busque"].'" AND negocio = "RECLAMACION SUBSIDIO FAMILIAR"' );
if (!$sql5) {
die('Invalid query: ' . mysql_error());
}
$row_sql5 = mysql_fetch_assoc($sql5);
$totalRows_sql5 = mysql_num_rows($sql5);
$dia = date("d");
$mes = date("m");
$ano = date("Y");
$resul = mysql_query('SELECT codigo FROM Usuarios WHERE Cedula = "' . $_GET["cf"] . '" ');
if (!$resul) {
die('Invalid query: ' . mysql_error());
}
if($resul){list($codigo_funcionario) = mysql_fetch_row($resul);}
$control = mysql_query('SELECT cedula, nombre, numerocontrato, tipocontrato, tipo_afiliado, codigo_sucursal, direccion, telefono, celular, ciudad FROM cartera_serviasjudinet WHERE cedula = "' . $_GET["id"] . '" and numerocontrato = "' . $_GET["numcon"] . '" and tipocontrato = "' . $_GET["tipo"] . '" ');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($control)!=0))
{
list($cedula, $nombre, $contrato, $tipo, $tipo_afi, $cod_s, $dir, $tel, $cel, $ciudad) = mysql_fetch_row($control);
$eldia = $_POST[dia_act];
$elmes = $_POST[mes_act];
$elano = $_POST[ano_act];
$fecha_actuacion = ($_POST[eldia]."-".$_POST[elmes]."-".$_POST[elano]);
$misql2 = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' ."$cod_s". '" ');
if (!$misql2) {
die('Invalid query: ' . mysql_error());
}
if($misql2){list($nombre_s) = mysql_fetch_row($misql2);}
}
else
{
$control = mysql_query('SELECT * FROM beneficiarios WHERE cedula = "' . $_GET["id"] . '" order by nombre ');
if (!$control) {
die('Invalid query 2: ' . mysql_error());
}
list($cedula, $nombre , $ceditit, $contrato, $tipo, $afili, $tel , $cel, $dir, $ciudad, $email, $caulsass, $fechacau, $estado) = mysql_fetch_row($control);
if ($cedula != 0)
{
$tipo_afi = "BENEFICIARIO";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<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;
text-align: left;
}
.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;
}
.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;
}
body form table tr td {
text-align: center;
}
-->
</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(){
//valido LOS APELLIDOS
if (document.form1.ape.value.length==0){
alert("Tiene que escribir la orden de trabajo")
document.form1.ape.focus()
return (false);
}
//valido el nombre
if (document.form1.noms.value.length==0){
alert("Tiene que escribir sus nombres")
document.form1.noms.focus()
return (false);
}
//valido la cedula
if (document.form1.ced.value.length==0){
alert("Tiene que escribir el numero de cedula")
document.form1.ced.focus()
return (false);
}
return (true);
}
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" name="formulario" onSubmit="return Valida_Fecha(this)">
<div class="Estilo1"align="center">ASIGNACION PROCESOS</div>
<br />
<table border="1" >
<tr>
<td colspan="3" align="center" bgcolor="#E8FFF7"><strong>Area del derecho :</strong><select name="tipo_procesos" "Estilo66" id="tipo_procesos" onchange="MM_jumpMenu('parent',this,0)">
<option value="">-----------SELECCIONE AREA DEL DERECHO---------</option>
<option value="../asignacion_subsidio.php?busque=6&id=<?php echo $_GET["id"] ; ?>&tipopro=<?php echo $_GET[tipopro] ?>&numcon=<?php echo $_GET["numcon"] ; ?>&sucu=<?php echo $_GET["sucu"] ; ?>&tipo=<?php echo $_GET["tipo"] ; ?>&nombre=<?php echo $_GET["nombre"] ; ?>">DERECHO CONTENCIOSO ADMINISTRATIVOS</option>
</select>
<input name="tipo_proceso" type="text" class="Estilo66" size="2" maxlength="2" value="<?php echo $_GET["busque"]; ?>" readonly="readonly" />
</td>
<td width="348" bgcolor="#E8FFF7" align="left" > <strong>Orden De Trabajo :</strong>
<input name="orden_t" type="text" class="Estilo66" id="orden_t" value="" size="10" maxlength="10" />
</td>
</tr>
<tr>
<td colspan="3" align="center" bgcolor="#E8FFF7"><strong>Apellidos y Nombres:</strong>
<input name="apenom" type="text" class="Estilo66" id="apenom" value="<?php echo "$nombre" ?>" size="60" maxlength="65" readonly=""/></td>
<td width="348" bgcolor="#E8FFF7"><strong>Tipo Proceso :</strong><input name="tipopro" type="text" class="Estilo50" id="tipopro" value="<?php echo $tipopro ?>" size="27" maxlength="27"readonly="" /> </td>
</tr>
<tr>
<td align="center" bgcolor="#E8FFF7" > <strong>Cédula / Código:</strong>
<input name="codig" type="text" class="Estilo66" id="codig" value="<?php echo $_GET["id"] ?>" size="10" maxlength="10"readonly="" />
<td align="center" bgcolor="#E8FFF7"><strong>Numero de Carpeta :</strong> <input name="numero_carpeta" type="text" class="campo" id="numero_carpeta" size="6" maxlength="6" value="">
</td>
<td colspan="2" bgcolor="#E8FFF7" >
<strong>Contrato N° :</strong>
<input name="contra" type="text" class="Estilo66" id="contra" value="<?php echo $_GET["numcon"] ?>" size="20" maxlength="20" readonly="" /><strong>Tipo :</strong> <input name="tipe" type="text" class="Estilo66" id="tipe" value="<?php echo $_GET["tipo"] ?>" size="4" maxlength="4"readonly="" />
</td>
</tr>
<td align="center" colspan="4" bgcolor="#E8FFF7"><strong>Clase De Negocio:</strong><select name="clase_negocio" class="Estilo66">
<option value="">--SELECCIONE NEGOCIO--</option>
<?php
do {
?>
<option value="<?php echo $row_sql5['negocio'];?>"><?php echo $row_sql5['negocio']?></option>
<?php
} while ($row_sql5 = mysql_fetch_assoc($sql5));
$rows5 = mysql_num_rows($sql5);
if($rows5 > 0) {
mysql_data_seek($sql5, 0);
$row_sql5 = mysql_fetch_assoc($sql5);
}
?>
</select></td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8FFF7" ><strong> Poder Fecha Autenticacion</strong>
<input name="podfec" type="text" class="Estilo66" id="podfec" value="0000-00-00" size="12" maxlength="10"/>
</td>
<td width="392" align="center" bgcolor="#E8FFF7"><strong>Sucursal :</strong>
<select name="sucursal">
<option value="">--SELECCIONE SUCURSAL--</option>
<option value="ARAUCA">ARAUCA</option>
<option value="BARRANQUILLA">BARRANQUILLA</option>
<option value="BOGOTA">BOGOTA</option>
<option value="BUCARAMANGA">BUCARAMANGA</option>
<option value="CALI">CALI</option>
<option value="CARTAGENA">CARTAGENA</option>
<option value="COMERCIALIZADORA">COMERCIALIZADORA</option>
<option value="CUCUTA">CUCUTA</option>
<option value="FLORENCIA">FLORENCIA</option>
<option value="IBAGUE">IBAGUE</option>
<option value="MANIZALES">MANIZALES</option>
<option value="MEDELLIN">MEDELLIN</option>
<option value="MELGAR">MELGAR</option>
<option value="MOCOA">MOCOA</option>
<option value="MONTERIA">MONTERIA</option>
<option value="NEIVA">NEIVA</option>
<option value="PASTO">PASTO</option>
<option value="PEREIRA">PEREIRA</option>
<option value="PITALITO">PITALITO</option>
<option value="POPAYAN">POPAYAN</option>
<option value="PROMOCION ESCUELAS">PROMOCION ESCUELAS</option>
<option value="QUIBDO">QUIBDO</option>
<option value="RIOACHA">RIOACHA</option>
<option value="SAN_ANDRES">SAN_ANDRES</option>
<option value="SANTA_MARTA">SANTA_MARTA</option>
<option value="TUNJA">TUNJA</option>
<option value="VALLEDUPAR">VALLEDUPAR</option>
<option value="VILLAVICENCIO">VILLAVICENCIO</option>
</select></td>
<td bgcolor="#E8FFF7"><strong> Fecha Asignacion</strong>
<input name="dia" type="text" id="dia2" value="<?php echo date("d"); ?>" size="2" maxlength="2" readonly="readonly" >
<input name="mes" type="text" id="mes2" value="<?php echo date("m"); ?>" size="2" maxlength="2" readonly="readonly">
<input name="ano" type="text" id="ano2" value="<?php echo date("Y"); ?>" size="4" maxlength="4" readonly="readonly">
</td></tr>
<tr>
<td colspan="2" align="center" bgcolor="#E8FFF7"><strong>Calidad Afiliado :</strong><select name="calidad_afiliado">
<option value="">--SELECCIONE --</option>
<option value="SINDICADO">SINDICADO</option>
<OPTION value="PERJUDICADO">PERJUDICADO</OPTION>
<option value="DEMANDADO">DEMANDADO</option>
<option value="DEMANDANTE">DEMANDANTE</option>
</select></td>
<td colspan="2" align="center" bgcolor="#E8FFF7" ><strong>Nombre Abogado:</strong>
<select name="codigo_abogado" class="Estilo55">
<option value="">--SELECCIONE NOMBRE DEL ABOGADO--</option>
<?php
do {
?>
<option value="<?php echo $row['nombre_completo'];?>"><?php echo $row['nombre_completo']?></option>
<?php
} while ($row = mysql_fetch_assoc($misql));
$rows = mysql_num_rows($misql);
if($rows > 0) {
mysql_data_seek($misql, 0);
$lineas = mysql_fetch_assoc($misql);
}
?>
</select>
</div></td>
</tr>
<td colspan="2"bgcolor="#E8FFF7"><strong>Documentos Entregados 1:</strong>
<input name="doc1" type="text" class="Estilo66" id="doc1" value="" size="35" maxlength="70"/>
</td>
<td width="392" align="right" bgcolor="#E8FFF7"><strong>Documento 2 :</strong>
<input name="doc2" type="text" class="Estilo66" id="doc2" value="" size="35" maxlength="70"/>
</div></td>
<td bgcolor="#E8FFF7"><strong>Documento 3:</strong>:
<input name="doc3" type="text" class="Estilo66" id="doc3" value="" size="35" maxlength="70"/>
</td></tr>
<tr>
<td colspan="2" bgcolor="#E8FFF7"><strong>Documento 4:</strong>
<input name="doc4" type="text" class="Estilo66" id="doc4" value="" size="35" maxlength="70" />
</td>
<td bgcolor="#E8FFF7"><strong>Documento 5:</strong>
<input name="doc5" type="text" class="Estilo66" id="doc5" value="" size="35" maxlength="70"/>
</td>
<td bgcolor="#E8FFF7"><strong>Clase De Titulo Uno:</strong>
<input name="clastitu" type="text" class="Estilo66" id="clastitu" value="" size="45" maxlength="45" />
</td>
</tr>
<tr>
<td width="255" align="right" bgcolor="#E8FFF7"><strong>Valor:</strong><input name="valcuo" type="text" class="Estilo66" id="valcuo" value="" size="12" maxlength="12" /></td>
<td width="313" height="8" bgcolor="#E8FFF7"><strong>Fecha de Expedicion Del Titulo Uno: </strong>
<input name="fecha3" type="text" class="Estilo66" id="fecha3" value="0000-00-00" size="12" maxlength="10"/>
</td>
<td bgcolor="#E8FFF7"><strong>Fecha Vencimiento Titulo Valor:</strong>
<input name="fecha4" type="text" id="fecha4" value="0000-00-00" size="10" maxlength="10" />
</td>
<td bgcolor="#E8FFF7"><strong>Valor Intereses Causados:</strong></div>
<input name="valintcaus" type="text" class="Estilo66" id="valintcaus" value="" size="12" maxlength="12"/>
</td></tr>
<tr>
<td height="34" bgcolor="#E8FFF7"><div align="right"><strong>Valor Clausula Penal:</strong>
<input name="valclap" type="text" class="Estilo66" id="valclap" value="" size="30" maxlength="30" />
</td>
<td height="34" colspan="2" bgcolor="#E8FFF7"><strong>Nombre del Deudor:</strong>
<input name="nomdeu" type="text" class="Estilo66" id="nomdeu" value="" size="40" maxlength="40" />
</td>
<td bgcolor="#E8FFF7"><strong>Direccion Del Deudor:</strong>
<input name="dirdeu" type="text" class="Estilo66" id="dirdeu" value="" size="25" maxlength="25" /></td></tr>
<td colspan="2" bgcolor="#E8FFF7"><strong>Ciudad</strong>
<input name="ciud" type="text" class="Estilo66" id="ciud" value="" size="30" maxlength="30"/>
</td>
<td bgcolor="#E8FFF7"><strong>Telefono Deudor:</strong>
<input name="tele" type="text" class="Estilo66" id="tele" value="" size="12" maxlength="14"/>
</td>
<td bgcolor="#E8FFF7" align="right"><strong>Telefono Celular:</strong>
<input name="telecel" type="text" class="Estilo66" id="telecel" value="" size="15" maxlength="15"/>
</td></tr>
<tr>
<td bgcolor="#E8FFF7"><strong>Bienes A embargar</strong></td>
<td colspan="3" align="left" bgcolor="#E8FFF7">
<textarea name="bienea" cols="90" rows="3" id="bienea" class="sel"></textarea>
</td></tr>
<tr>
<td colspan="2" bgcolor="#E8FFF7"><strong>Clase De Titulo Dos:
<input name="clastitu2" type="text" class="Estilo66" id="clastitu2"size="45" maxlength="45" />
</strong></td>
<td colspan="0" bgcolor="#E8FFF7"><div align="center"> <span class="dani"> <strong>Valor Dos: </strong><input name="valo2" type="text" class="Estilo66" id="valo2" size="40" maxlength="30"/></td>
<td bgcolor="#E8FFF7"><strong>Fecha de Expedicion Del Titulo Dos:</strong>
<input name="fecha5" type="text" id="fecha5" value="0000-00-00" size="10" maxlength="10" /></td></tr>
<tr>
<td colspan="2" bgcolor="#E8FFF7"><strong>Fecha Vencimiento Titulo Valor Dos:</strong><input name="fecha6" type="text" id="fecha6" value="0000-00-00" size="10" maxlength="10" /></td>
<td bgcolor="#E8FFF7">
<strong>Valor Intereses Causados Dos</strong><input name="intere" type="text" class="Estilo66" id="intere"size="20" maxlength="20"/> </td>
<td bgcolor="#E8FFF7" ><strong>Valor Clausula Penal Dos</strong><input name="valclau" type="text" class="Estilo66" id="valclau" size="20" maxlength="20"/></td></tr>
<tr>
<td bgcolor="#E8FFF7">
<strong>Nombre del Deudor Dos:</strong>
</td>
<td align="left" bgcolor="#E8FFF7"><input name="nomdeu2" type="text" class="Estilo66" id="nomdeu2" value="" size="50" maxlength="50" /></td>
<td bgcolor="#E8FFF7" align="right" ><strong>Direccion Del Deudor Dos:</strong></td>
<td align="left" bgcolor="#E8FFF7"><input name="dir2" type="text" class="Estilo66" id="dir2" value="" size="20" maxlength="20" /></td>
</tr>
<tr>
<td align="right" bgcolor="#E8FFF7" ><strong>Telefono Dos</strong></td>
<td align="left" bgcolor="#E8FFF7"><input name="tele2" type="text" class="Estilo66" id="tele2" value="" size="30" maxlength="30"/></td>
<td bgcolor="#E8FFF7" ><div align="center">
<div align="right"><strong>Ciudad Dos</strong></div>
</div></td>
<td align="left" bgcolor="#E8FFF7"><input name="ciu2" type="text" class="Estilo66" id="ciu2" value="" size="20" maxlength="20" /></td>
</tr>
<td bgcolor="#E8FFF7" >
<strong>Bienes A embargar</strong></td>
<td colspan="5" align="left" bgcolor="#E8FFF7">
<textarea name="biene2" cols="90" rows="3" id="biene2" class="sel"></textarea>
</td>
</tr>
</table>
<p align="center">
<input name="guardar" type="submit" class="Estilo53" id="guardar" value="ASIGNAR" />
</p>
</form>
</body>
</html>