File: /home/asjudine/www/ingresar_queja_reclamo.php
<?php
//require_once("mainfile.php");
include ("config.php");
global $dbi;
$espacio = ' ';
$linea = '-';
require_once("Conectarse.php");
$contrato=$_GET["numcon"];
$tipo=$_GET["tipo"];
$control = mysql_query('SELECT cedula,nombre,numerocontrato,tipocontrato,tipo_afiliado,direccion,telefono, celular,ciudad,email FROM cartera_serviasjudinet WHERE cedula = "'.$_GET["ced2"].'" and numerocontrato = "'.$_GET["numcon"].'" and tipocontrato = "'. $_GET["tipo"].'" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control);
list($cedula, $nom, $numcon, $plan,$titular,$dire, $tele, $celul, $ciud, $email) = mysql_fetch_row($control);
if(isset($_POST["guardar"]))
{
$mss = mysql_query("INSERT INTO quejas_reclamos (cedula, nombres, direccion, telefono, celular, ciudad, email,generada_por, registro, estado) VALUES ('" . $_POST["cedulac"] . "', '" . $_POST["nombrec"] . "', '" . $_POST["direccionc"] . "', '" . $_POST["telefonoc"] . "', '" . $_POST["celularc"] . "', '" . $_POST["ciudadc"] . "', '" . $_POST["emailc"] . "','" . $_POST["nombrec"] . "', '" . $_POST["registro"] . "' , '0' )");
if (!$mss) {
die('Invalid query contactos_afiliados insertar: ' . mysql_error());
}
echo "<script>alert('Su Reporte Ha Sido Enviado');</script>";
}
?>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>VENTANA PARA MODIFICAR DATOS DEL USUARIO</title>
<style type="text/css">
<!--
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
.boton { background-color: #FFCCCC; color:#FFFFFF; width:150px; border: 4px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 13px; font-family: Arial; color:#0000CC; display: block;}
.fecha {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #000099; width:10px display: block;}
.campo {background-color: #FFFFCC; border:1px solid #990000; font-family:Arial; font-size:11px; height: inherit}
.lista { background-color:#99FFFF; font-family: Arial; font-size: 11px; color: #990000;}
.label {background-color: #00CCFF ; font-size: 14px; font-family: Arial; color:#0000CC; display: block;}
.area {background-color: #CCFFCC; font-size: 13px; width:40px font-family: Arial; color:#0000CC; display: block;}
.variables {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #003333 ; width:10px display: block; border: 2px solid #006633;}
.sel { background-color:#DDFFFF; width:400px; border: 1px solid #0099FF; font-family:Arial; font-style:italic; color:#990000 }
.sel2{ background-color:#DDFFFF; border: 1px solid #0099FF; font-family:Arial; font-style:italic; font-weight:bold; color:#990000 }
.seleccion { background-color: #CCFFCC; width:340px; border: 1px solid #0099FF; font-family:Arial; color:#990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; }
.letras {background-color: #99CCFF; font-size: 10px; font-family: Arial; color:#0000CC; display: block;}
.campo2 {background-color: #99CCCC; border:1px solid #0066FF; font-family:Arial; font-size:10px; height: inherit}
.sel3{ background-color:#DDFFFF; font-family:Arial; font-size:10px; color: #000066 }
body {
background-image: url(ELEMENTOS/beig.jpg);
}
.Estilo10 {font-size: 11px; font-family: Arial, Helvetica, sans-serif; }
.Estilo11 {
font-size: 14px;
color: #0066FF;
font-weight: bold;
font-family: "Times New Roman", Times, serif;
}
.Estilo12 {
font-size: 14px;
color: red;
font-weight: bold;
font-family: "Times New Roman", Times, serif;
}
-->
</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()
{
if (formulario.folio2.value == "")
{
alert("Falta ingresar el Folio2");
formulario.folio2.focus();
return (false);
}
if(formulario.folio2.value < pf)
{
alert('El folio2 no debe ser menor que el folio1');
formulario.folio2.focus();
return (false);
}
if (formulario.actuacion.value == "")
{
alert("Falta ingresar la actuación");
formulario.actuacion.focus();
return (false);
}
if (formulario.codigo_funcionario.value == "")
{
alert("Falta seleccionar el nombre del funcionario");
formulario.codigo_funcionario.focus();
return (false);
}
return (true);
}
//--></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>
<!--
var from = 5;
var to = 11;
var delay = 55;
var glowColor = "red";
var glowColor2 = "orange";
var glowColor3 = "yellow";
var glowColor4 = "lime";
var glowColor5 = "blue";
var glowColor6 = "magenta";
//no more editing
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor2 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
}
function textPulseUp2()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor3 + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
}
function textPulseDown2()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor4 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
}
function textPulseUp3()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor5 + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
}
function textPulseDown3()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor6 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}
//-->
</script></font></h3></span>
<BR></BR>
<center>
<span id="TexteBat" style="width:100%">
<h1><font color="#ffffff">FORMULARIO DE QUEJAS Y RECLAMOS</font></h1>
</span>
</center>
</center>
<script>
<!--
var from = 2;
var to = 12;
var delay = 55;
var glowColor = "#0000ff";
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
TexteBat.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
TexteBat.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="document.formulario.folio1.focus()">
<form name="formulario" action="" method="post" onSubmit="return validar(this)">
<input name="codigo_funcionario" type="hidden" value="<?php echo $codigo_funcionario; ?>">
<table width="712" border="5" align="center" cellpadding="2" cellspacing="2">
<tr bgcolor="#ECE9D8">
<td width="733" height="3" bgcolor="#ECE9D8" class="titulos"><div align="center" class="Estilo10">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr bgcolor="#FFCC99">
<td height="20" bgcolor="#FFFFFF"><fieldset>
<p>
<legend><span #ECE9D8>Datos Del Cliente:</span></legend>
</p>
<table width="680" border="10" align="center" cellpadding="2" cellspacing="4" bordercolor="silver">
<tr bgcolor="#FFFFFF">
<td width="125"><span class="Estilo11">Cédula (Titular-Beneficiario):</span></td>
<td colspan="2"><input name="cedulac" type="text" class="Estilo10" id="cedulac" value="<?php echo $cedula; ?>" size="15" maxlength="15" readonly>
<input name="projuridico" type="hidden" class="campo" id="projuridico" value="<?php echo $np ?>" size="6" maxlength="6"></td>
<td width="126"><span class="Estilo11">Nombre:</span></td>
<td width="299"><input name="nombrec" type="text" class="Estilo10" id="nombrec" value="<?php echo $nom ?>" size="50" maxlength="50" readonly> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="Estilo11">Direccion:</span></td>
<td colspan="4"><input name="direccionc" type="text" class="Estilo10" id="direccionc" value="<?php echo $dire?>" size="50" maxlength="50" >
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="Estilo11">Telefono:</span></td>
<td colspan="4"><input name="telefonoc" type="text" class="Estilo10" id="telefonoc" value="<?php echo $tele?>" size="10" maxlength="10"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="Estilo11">Celular:</span></td>
<td colspan="4"><input name="celularc" type="text" class="Estilo10" id="celularc" value="<?php echo $celul?>" size="13" maxlength="13"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="Estilo11">Ciudad:</span></td>
<td colspan="4"><input name="ciudadc" type="text" class="Estilo10" id="ciudadc" value="<?php echo $ciud?>" size="18" maxlength="18"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="Estilo11">E-mail:</span></td>
<td colspan="4"><span class="Estilo10">
<input name="emailc" type="text" class="Estilo10" id="emailc" value="<?php echo $email ?>" size="40" maxlength="40" >
</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="Estilo11">Queja Redactada Por:</span></td>
<td colspan="4"><span class="Estilo10">
<p>
<input type="radio" name="afiliado" value="1">TITULAR
<input type="radio" name="afiliado" value="2" checked>BENEFICIARIO
<input type="radio" onClick="window.location.href='ingresar_queja_reclamos.php?cedula=<?php echo $cedula;?>&numcon=<?php echo $contrato;?>
&proceso=<?php echo $numero_proceso;?>&tipo=<?php echo $tipo;?>'">EMPLEADO SERVIASJUDINET
</span></td>
</tr>
<tr>
<th width="125" align="left" nowrap class="Estilo11">Presente o Narre Su Queja ó Reclamo:</th>
<td colspan="4"><textarea name="registro" cols="60" rows="5"></textarea></td>
</tr>
</table>
</fieldset></td>
</tr>
</table>
<p align="center" class="Estilo12"> </p>
<p align="center" >
<input name="guardar" type="submit" class="Estilo50" value ="Registrar" >
</p>
</form>
</body>
</html>