File: /home/asjudine/public_html/adirectoress/ingresar_informacion_anulacion_contratos_directores.php
<?php
require_once("../Conectarse.php");
global $dbi;
$time =time();
$hora=date("H:i:s",$time);
$control = mysql_query('SELECT cedula,nombre,direccion,telefono,celular,ciudad,email FROM cartera_serviasjudinet WHERE cedula = "'.$_GET["ced2"].'" order by nombre');
if (!$control) {
die('Invalid query 2: ' . mysql_error());
}
list($cedula,$nombres,$direccion,$telefono,$celular,$ciudad,$email) = mysql_fetch_row($control);
?>
<html>
<head>
<title>Ingresar Informacion Anulacion Contratos</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:#FFFFFF;font-family:Verdana, Geneva, sans-serif;}
header {background-color: #B7271F; text-align: center;}
.cerrarsesion{width: auto;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;}
.subtitulos{width: 100%;text-align: left;color: #b20606;padding: 2px 0;font-size: 13px;}
table{margin: 0 auto;border: 1px solid #bebebe; text-align: center; }
/*-webkit-box-shadow: 10px 10px 10px -4px rgba(0,0,0,0.75);
-moz-box-shadow: 10px 10px 10px -4px rgba(0,0,0,0.75);
box-shadow: 10px 10px 10px -4px rgba(0,0,0,0.75);}*/
.irmenu{width: 180px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
.irmenu:hover{background-color: #67a0d9; color: #000;}
.fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
td{border: #D7D7D7 solid 0.2px; height: 24px;}
.tdizq{background-color: #EEE; color: #C70000;font-size: 14px;font-weight: 200; text-align: left;}
.tdcen{background-color: #EEE; color: #00135F;font-size: 14px;font-weight: 200; text-align: center;}
.tdder{background-color: #EEE; color: #630000;font-size: 14px;font-weight: 200; text-align: right;}
.tdroja{background-color: #EEE; color: #CC0005;font-size: 14px;font-weight: 400; text-align: right;}
.tdi{background-color: #E3DCB0; color: #00135F;font-size: 13px;font-weight: 200; text-align: left;}
.tdc{background-color: #E3DCB0; color: #00135F;font-size: 13px;font-weight: 200; text-align: center;}
.tdd{background-color: #E3DCB0; color: #00135F;font-size: 13px;font-weight: 200; text-align: right;}
.exp{color:#8A0000; font-size:14px;}
.boton1{background-color: #ffffff;color: #000;padding: 5px;border:1px solid #580000;border-radius:2px;}
.boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
.direcciona{width: 180px; background-color: #8F0E11;color: #fff; padding: 5px;border-radius: 3px;}
.direcciona:hover{background-color: #67a0d9; color: #000;}
input[type=text],select{font-size: 13px; padding:3px;}
/*select{border:solid #191919 0.5px; border-radius: 3px; padding: 1px;background-color: #FFFFFF; font-weight:600px; }*/
textarea{border:1px solid #5C5C5C;}
.texto{font-size:14px; text-transform:uppercase; text-align:justify; padding: 8px; color:#4D4D4D;}
.estilo30{color:#BB0B0F; font-size:13px; }
.info{background-color:#FFF; color:#B3171C; text-align:justify; font-style:italic; padding:2px 8px; font-size:12px;}
.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 14px; font-weight: bold}
.tdfull{background-color: #fff; color: #000; padding: 5px; text-align: center; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
.tdjustify{background-color: #fff; color: #000; padding: 5px; text-align: justify; font-size: 12px;}
.botonnew{background-color: #C0292E;color: #FFFFFF;padding: 1px;border-radius:5px;}
.botonnew:hover{background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
</style>
<script languaje="JavaScript">
function Mostrar_Fecha()
{
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}
</script>
<script Language="JavaScript"><!--
function validar(formulario)
{
if (formulario.ciudad.value == "")
{
alert("Ingrese el nombre de la ciudad");
formulario.ciudad.focus();
return (false);
}
if (formulario.cedula.value == "")
{
alert("Ingrese el número de la cédula");
formulario.cedula.focus();
return (false);
}
if (formulario.nombre_completo.value == "")
{
alert("Ingrese apellidos y nombres");
formulario.nombre_completo.focus();
return (false);
}
/* if (formulario.expedicion_cedula.value == "")
{
alert("Ingrese la ciudad donde expidió su cédula");
formulario.expedicion_cedula.focus();
return (false);
}
*/
if (formulario.ciudad.value == "")
{
alert("Ingrese el nombre de la ciudad");
formulario.ciudad.focus();
return (false);
}
if (formulario.residente_en.value == "")
{
alert("Ingrese la dirección de residencia");
formulario.residente_en.focus();
return (false);
}
if (formulario.ciudad_reside.value == "")
{
alert("Ingrese la ciudad donde reside");
formulario.ciudad_reside.focus();
return (false);
}
if (formulario.telefono_fijo.value == "")
{
alert("Ingrese el su número de teléfono fijo");
formulario.telefono_fijo.focus();
return (false);
}
if (formulario.celular.value == "")
{
alert("Ingrese el número de su celular");
formulario.celular.focus();
return (false);
}
if (formulario.cargo.value == "")
{
alert("Ingrese su cargo actual");
formulario.cargo.focus();
return (false);
}
if (formulario.hechos.value == "")
{
alert("Redacte los hechos por el cual se le imputan los cargos");
formulario.hechos.focus();
return (false);
}
if (formulario.nom_funcionario.value == "")
{
alert("Escriba el nombre del funcionario investigador");
formulario.nom_funcionario.focus();
return (false);
}
if (formulario.cargo_funcionario.value == "")
{
alert("Escriba el cargo del funcionario investigador");
formulario.cargo_funcionario.focus();
return (false);
}
if (formulario.dia_noti.value == "")
{
alert("Escriba el día de la notificación");
formulario.dia_noti.focus();
return (false);
}
if (formulario.mes_noti.value == "")
{
alert("Escriba el mes de la notificación");
formulario.mes_noti.focus();
return (false);
}
return (true);
}
//--></script>
<script Language="JavaScript"><!--
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) ? " p.m." : " a.m."
document.formulario.hora.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock ()
{
stopclock ();
showtime ();
}
//--></script>
</head>
<body onLoad="document.formulario.cedula.focus()">
<header>
<img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">SOLICITUD ANULACION DE CONTRATOS CON OTRAS EMPRESAS</h3>
<form name="formulario" method="post" action="" enctype="multipart/form-data" onSubmit="return validar(this)">
<table width="950" border="3" align="center" cellpadding="3" cellspacing="3">
<!--<tr valign="baseline" bgcolor="#0099FF">
<td colspan="6" align="right" nowrap><div align="center"><span class="Estilo2">SOLICITUD ANULACION DE CONTRATOS CON OTRAS EMPRESAS</span></div></td>
</tr>-->
<tr>
<td colspan="6" class="fecha"><div align="center" class="Estilo2">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr>
<td colspan="6" class="texto">
SEÑOR AFILIADO DILIGENCIE TODOS LOS CAMPOS Y SUMINISTRE TODA LA INFORMACON NECESARIA PARA PODER INICIAR EL PROCESO DE TERMINACION DE CONTRATO Y LA SUSPENCION DE LOS DESCUENTOS QUE SE LE VIENEN EFECTUANDO A TRAVEZ DE SU NOMINA, EN VIRTUD DE LO ESTIPULADO EN EL ESTATUTO DEL CONSUMIDOR LEY 1480. IGUALMENTE USTED DEBERA COMUNICARSE CON NUESTRO ESPECIALISTA AL CELULAR <span class="exp">3166921428 Y/O 3222492493</span> O AL TELEFONO FIJO <span class="exp">091-2438820</span> EN LA CIUDAD DE BOGOTA UBICADA EN LA CLL 19 NO 6-68 PISO 9 EDIFICIO ANGEL Y ALLEGUE LOS SIGUIENTES DOCUMENTOS: </p>
<br>
<p class="Estilo30">1. Copia del contrato suscrito con la entidad a reclamar.</p>
<p class="Estilo30">2. Copia del desprendible de pago en donde se establezca el descuento.</p>
<p class="Estilo30">3. Cualquier otro documento que indique la existensia de la obligacion o descuento que se le viene efectuando.</p>
</td>
</tr>
<tr>
<td colspan="6">
<table width="950">
<tr>
<td class="tdtitulo" width="265">Ciudad:<input name="ciudad" type="text" id="cedula4" value="" size="30" maxlength="30" ></td>
<td class="tdtitulo" width="289">Fecha dd-mm/aaaa:
<input name="dia" type="text" id="dia2" value="<?php echo date("d"); ?>" size="2" maxlength="2" readonly="">
<input name="mes" type="text" id="mes2" value="<?php echo date("m"); ?>" size="2" maxlength="2" readonly="">
<input name="ano" type="text" id="ano2" value="<?php echo date("Y"); ?>" size="4" maxlength="4" readonly="">
</td>
<td class="tdtitulo" width="282">Hora:</span><input name="hora" type="text" value=" <?php echo $hora; ?> " size="11" maxlength="11" readonly=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tdcen" colspan="6">
<div align="left"></div>
</td>
</tr>
<tr>
<td class="tdder">Apellidos y Nombres: </td>
<td class="tdizq" colspan="5"><input name="nombre_completo" type="text" value="<?php echo $nombres ?>" size="50" maxlength="50" ></td>
</tr>
<tr>
<td class="tdder" width="267">Cédula:</td>
<td class="tdizq"><input name="cedula" type="text" value="<?php echo $_GET["ced2"]?>" size="15" maxlength="15" ></td>
<td class="tdder">Expedida en:</td>
<td class="tdizq"><input name="expedicion_cedula" type="text" value="" size="25" maxlength="25" ></td>
</tr>
<tr>
<td class="tdder">Dirección de residencia: </td>
<td class="tdizq"><input name="residente_en" type="text" value="<?php echo $direccion?>" size="60" maxlength="60" ></td>
<td class="tdder">Ciudad:</td>
<td class="tdizq" colspan="3"><input name="ciudad_reside" type="text" value="<?php echo $ciudad?>" size="30" maxlength="30" ></td>
</tr>
<tr>
<td class="tdder">Teléfono fijo: </td>
<td class="tdizq"><input name="telefono_fijo" type="text" id="telefono_fijo2" value="<?php echo $telefono?>" size="15" maxlength="15" ></td>
<td class="tdder">Celular: </td>
<td class="tdizq"><input name="celular" type="text" id="celular" value="<?php echo $celular ?>" size="11" maxlength="11" ></td>
</tr>
<tr>
<td class="tdder">Email:</td>
<td class="tdizq" colspan="5"><input name="email" type="text" id="email" value="<?php echo $email ?>" size="50" maxlength="50"></td>
</tr>
<tr>
<td class="tdder">HECHOS</td>
<td class="tdcen" colspan="5">
<table>
<tr>
<td class="tdder">
<p align="center" class="info">Relacione de manera clara y detallada, indicando fechas y demás aspectos de la manera como usted suscribio el contrato. </p>
</div></td>
</tr>
</table>
<table>
<tr>
<td width="508">
<textarea name="hechos" cols="100" rows="4" id="hechos"></textarea>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tdder">EMPRESA CON CONTRATO VIGENTE</td>
<td class="tdcen" colspan="5">
<table>
<tr>
<td class="info">Indique el nombre de la empresa con quien tiene suscrito el contrato y que indujo a la suscripcion del contrato. </td>
</tr>
</table>
<table width="508" align="center">
<tr>
<td width="500"><textarea name="testimonios_recibidos" cols="90" rows="4" id="textarea7">NOMBRE EMPRESA QUE HACE EL DESCUENTO:
DIRECCION:
TELEFONOS:
</textarea>
</td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td class="tdder">PRETENSIONES A SOLICITAR </td>
<td class="tdizq" colspan="5" ><div align="center">
<table>
<tr>
<td class="info"><div align="justify" >Relacione las pretensiones o la justificacion por la cual usted considera que se debe solicitar la anulacion del contrato y las demas presuntas anomalias que considere importantes para demostrar que el descuento que se le viene efectuando a travez de la nomina es ilegal.</span></div></td>
</tr>
</table>
<table width="508" align="center">
<tr>
<td class="tdizq"><div align="justify" class="Estilo23">
<div align="center"><span class="Estilo20">
<textarea name="pruebas_solicitar" cols="100" rows="4" id="textarea9">LISTA DE CONSIDERACIONES:
</textarea>
</span></div>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td class="tdd" colspan="2"><b>Seleccione El Archivo Del Contrato :</b></td>
<td class="tdi" colspan='2'><input name="archivito" type="file" size="40" maxlength="40"></td>
</tr>
<tr>
<td class="tdd" colspan="2"><b>Seleccione El Desprendible De Pago:</b></td>
<td class="tdi" colspan='2'><input name="archivito2" type="file" size="40" maxlength="40"></td>
</tr>
<tr>
<td colspan="6">
<input name="guardar" type="submit" class="direcciona" id="guardar" value="GUARDAR"/>
<input name="button" type="button" class="irmenu" onClick="window.location.href='consulta_ced_info_anulacion_directores.php'" value="REGRESAR">
</td>
</tr>
</table>
<div align="center">
<input type="hidden" name="MM_insert" value="formulario">
</div>
</form>
</body>
</html>
<?php
if(isset($_POST["guardar"]))
{
$archivo = $_FILES["archivito"]["tmp_name"];
$tamanio = $_FILES["archivito"]["size"];
$tipo = $_FILES["archivito"]["type"];
$nombre = $_FILES["archivito"]["name"];
$archivo2 = $_FILES["archivito2"]["tmp_name"];
$tamanio2 = $_FILES["archivito2"]["size"];
$tipo2 = $_FILES["archivito2"]["type"];
$nombre2 = $_FILES["archivito2"]["name"];
$dia = date("d");
$mes = date("m");
$ano = date("Y");
$fecha = $ano."-".$mes."-".$dia;
$fp = fopen($archivo, "rb");
$contenido = fread($fp, $tamanio);
$contenido = addslashes($contenido);
fclose($fp);
$fp2 = fopen($archivo2, "rb");
$contenido2 = fread($fp2, $tamanio2);
$contenido2 = addslashes($contenido2);
fclose($fp2);
$control = mysql_query("INSERT INTO anulacion_contratos (ciudad,fecha_actual,hora,cedula,nombre_completo,
expedicion_cedula,residente_en,ciudad_reside,telefono_fijo,celular,email,hechos,testimonios_recibidos,pruebas_solicitar,informacion_recibida,nombre,contenido,tipo,nombre2,contenido2,tipo2, estado) VALUES ('".$_POST["ciudad"]."','$fecha','".$_POST["hora"]."','".$_POST["cedula"]."', '". $_POST["nombre_completo"]."','".$_POST["expedicion_cedula"]."','".$_POST["residente_en"]."','".$_POST["ciudad_reside"]."','".$_POST["telefono_fijo"]."','".$_POST["celular"]."','".$_POST["email"]."','".$_POST["hechos"]."','".$_POST["testimonios_recibidos"]."','".$_POST["pruebas_solicitar"]."','".$_POST["informacion_recibida"]."','".$nombre."','".$contenido."','".$tipo."','".$nombre2."','".$contenido2."','".$tipo2."','0')");
if (!$control) {
die('Invalid query cargos_disciplinarios: ' . mysql_error());
}
echo "<script>alert('La información se ha enviado correctamente a nuestro funcionario especializado. favor comunicarse al celular 3166921428 Bogotá');</script>";
echo "<SCRIPT LANGUAGE='javascript'>window.location.href='solicitud_suspencion%20_descuentos.php?cedula=$_GET[cedula]&nom=$_GET[nom]'</SCRIPT>";
}
?>