File: /home/asjudine/public_html/ingresar_informacion_anulacion_contratos_directores.php
<?php
require_once("mainfile.php");
require_once("Conectarse.php");
include ("config.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="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;
}
.Estilo10 {font-weight: bold}
.Estilo17 {font-size: 14}
.Estilo18 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; }
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo20 {color: #990000}
.Estilo21 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; color: #990000; }
.Estilo22 {font-family: "Arial Narrow"; font-weight: bold; color: #990000; }
.Estilo23 {color: #990000; font-family: "Arial Narrow";}
.Estilo13 {font-size: 12px; font-weight: bold; }
.Estilo25 {font-family: "Arial Narrow"; font-size: 12px; }
.Estilo26 {font-size: 14; color: #990000; font-family: "Arial Narrow";}
.Estilo27 {font-size: 12px}
.Estilo30 {font-family: "Arial Narrow"; font-weight: bold; color: #FF0000; }
.Estilo31 {color: #FF0000}
.Estilo33 {
font-family: "Arial Narrow";
font-size: 16px;
color: #FF0000;
}
.Estilo35 {
font-family: "Arial Narrow";
color: #FFFFF;
font-size: 13px;
}
.Estilo37 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14px; color: #990000; }
.Estilo38 {font-size: 14px}
.Estilo39 {
font-size: 16px;
font-weight: bold;
}
.Estilo41 {font-size: 14px; 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>")
}
</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()">
<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" bgcolor="#FAFAF5">
<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 valign="baseline" bgcolor="#FAFAF5">
<td colspan="6" align="right" nowrap><div align="center" class="Estilo2">
<script languaje="JavaScript">Mostrar_Fecha()</script></div></td>
</tr>
<tr valign="baseline" bgcolor="#FFFFCC">
<td colspan="6"><div align="justify">
<p class="Estilo39">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="Estilo39">3166921428 Y/O 3222492493</span> O AL TELEFONO FIJO <span class="Estilo41">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>
<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>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="6"><table width="852">
<tr>
<td width="265"><div align="center"><span class="Estilo19" Estilo20>Ciudad:</span><span class="Estilo21"><strong>
<input name="ciudad" type="text" id="cedula4" value="" size="30" maxlength="30" >
</strong></span></div></td>
<td width="289"><div align="center"><span class="Estilo19 Estilo20">Fecha dd-mm/aaaa:</span><span class="Estilo21"> <span class="Estilo13">
<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="">
</span></span></div></td>
<td width="282"><div align="center"><span class="Estilo21">Hora:</span>
<input name="hora" type="text" value=" <?php echo $hora; ?> " size="11" maxlength="11" readonly="">
</div></td>
</tr>
</table></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="6"><div align="right" class="Estilo19 Estilo20">
<div align="left"></div>
</div>
</td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="179" align="right" nowrap><span class="Estilo21">Apellidos y Nombres: </span></td>
<td colspan="5"><input name="nombre_completo" type="text" value="<?php echo $nombres ?>" size="50" maxlength="50" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td><div align="right" class="Estilo20"><strong><span class="Estilo5 Estilo1">Cédula:</span></strong></div></td>
<td width="298"><input name="cedula" type="text" value="<?php echo $_GET["ced2"]?>" size="15" maxlength="15" ></td>
<td width="172"><div align="right"><span class="Estilo20"><strong><span class="Estilo5 Estilo1">Expedida en: </span></strong></span></div></td>
<td width="165"><input name="expedicion_cedula" type="text" value="" size="25" maxlength="25" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="left" class="Estilo4 Estilo17 Estilo1 Estilo10 Estilo20">
<div align="right"><span class="Estilo5">Dirección de residencia: </span></div>
</div></td>
<td><span class="Estilo20">
<input name="residente_en" type="text" value="<?php echo $direccion?>" size="60" maxlength="60" >
</span> <div align="right" class="Estilo21"></div> </td>
<td><div align="right"><span class="Estilo20"><strong><span class="Estilo5 Estilo1">Ciudad: </span></strong></span></div></td>
<td colspan="3"><input name="ciudad_reside" type="text" value="<?php echo $ciudad?>" size="30" maxlength="30" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo21">Teléfono fijo: </span></td>
<td><input name="telefono_fijo" type="text" id="telefono_fijo2" value="<?php echo $telefono?>" size="15" maxlength="15" ></td>
<td><div align="right"><span class="Estilo20"><strong><span class="Estilo5 Estilo1">Celular: </span></strong></span></div></td>
<td><input name="celular" type="text" id="celular" value="<?php echo $celular ?>" size="11" maxlength="11" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo18"><span class="Estilo5 Estilo20">Email:</span></span></td>
<td colspan="5"><input name="email" type="text" id="email" value="<?php echo $email ?>" size="50" maxlength="50"></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="center"><span class="Estilo18"><span class="Estilo20"><span class="Estilo5">HECHOS</span></span></span></div></td>
<td colspan="5" align="right" nowrap><div align="center">
<table width="584" align="center">
<tr>
<td width="576" bgcolor="#CCCCCC"><div align="justify" class="Estilo23">
<p>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 width="508" align="center">
<tr>
<td width="500"><div align="justify" class="Estilo23">
<div align="center"><span class="Estilo20">
<textarea name="hechos" cols="100" rows="4" id="hechos"></textarea>
</span></div>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><span class="Estilo20"><span class="Estilo18">EMPRESA CON CONTRATO VIGENTE</span></span></td>
<td colspan="5" align="right" nowrap><div align="center">
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#CCCCCC"><div align="justify" class="Estilo23">Indique el nombre de la empresa con quien tiene suscrito el contrato y que indujo a la suscripcion del contrato. </div></td>
</tr>
</table>
<table width="508" align="center">
<tr>
<td width="500"><div align="justify" class="Estilo23">
<div align="center"><span class="Estilo20">
<textarea name="testimonios_recibidos" cols="90" rows="4" id="textarea7">NOMBRE EMPRESA QUE HACE EL DESCUENTO:
DIRECCION:
TELEFONOS:
</textarea>
</span></div>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="right" nowrap><div align="center"><span class="Estilo20"><span class="Estilo18">PRETENSIONES A SOLICITAR </span></span></div></td>
<td colspan="5" align="right" nowrap><div align="center">
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#CCCCCC"><div align="justify" class="Estilo23"><span class="Estilo1">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 width="500"><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 valign="baseline" bgcolor="#F2F2E6">
<td align="left"><b>Seleccione El Archivo Del Contrato :</b></td>
<td colspan='4' bgcolor="#F2F2E6"><input name="archivito" type="file" size="40" maxlength="40"></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td align="left"><b>Seleccione El Desprendible De Pago:</b></td>
<td colspan='4' bgcolor="#F2F2E6"><input name="archivito2" type="file" size="40" maxlength="40"></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="6" align="right" nowrap><div align="center" class="Estilo20">
<input name="guardar" type="submit" class="polici2" id="guardar" value="GUARDAR"/>
<input name="button" type="button" style="font-family: Verdana; font-size: 8 pt; background-color: #C0C0C0; border-style: solid" onClick="window.location.href='consulta_ced_info_anulacion_directores.php'" value="REGRESAR">
</div></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>";
}
?>