File: /home/asjudine/www/callcenter/respuesta_telecreditos_formulario_legalizacion_prueba2.php
<?php
$ced = $_GET["ced"];
$nom = $_GET["nom"];
$atencion = $_GET["atencion"];
$funcionario_usuario = $_GET["funcionario"];
require_once('../Conectarse.php');
//Recorrer el menu llevado y trayendo informacion del usuario que realiza las gestiones
$usuario = mysql_query('SELECT cedula, Nombre_Completo, codigo, cargo, cargo_callcenter FROM Usuarios WHERE cedula = "'.$funcionario_usuario.'"');
list($cedula_usuario, $nombre_usuario, $codigo_usuario, $cargo_usuario, $cargo_callcenter_usuario) = mysql_fetch_row($usuario);
if(!$cedula_usuario){
echo "<script>alert('Error');</script>";
die();
}
//INFORMACIONCION DE SOLICITUD_CITAS_JURIDICAS
$consulta = mysql_query('SELECT numerocontrato, fecha_auto, hora_auto, sucursal_enviada, programa, cod_funcionario_llamada, funcionario_llamada, funcionario, asesoria_solicitada, instrucciones_impartidas, documentos_requeridos, acciones_cumplir, informacion_inicio, respuesta_funcionario, accion_supervisor, atencion, accion_control_interno, respuesta_control_interno, respuesta_telecreditos FROM solicitud_citas_juridicas WHERE cedula = "'.$_GET["cedulita"].'" and atencion = "'.$_GET["atencion"].'" ');
list($numcon, $fecha_llamada, $hora_llamada, $sucursal_enviada, $programa, $cod_funcionario_llamada, $funcionario_llamada, $funcionario, $asesoria_solicitada, $instrucciones_impartidas, $documentos_requeridos, $acciones_cumplir, $informacion_inicio, $respuesta_funcionario, $accion_supervisor, $atencion, $accion_control_interno, $respuesta_control_interno, $respuesta_telecreditos)=mysql_fetch_row($consulta);
//consulta nombre de funcionario
$consulta_funcionario = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE codigo = "'.$funcionario.'" ');
list($nombre_funcionario) = mysql_fetch_row($consulta_funcionario);
//
$consulta_funcionario_atendio_llamada = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE codigo = "'.$cod_funcionario_llamada.'" ');
list($nombre_funcionario_atendio_llamada) = mysql_fetch_row($consulta_funcionario_atendio_llamada);
//
$consulta_sucursal_enviada = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "'.$sucursal_enviada.'" ');
list($nombre_sucursal_enviada) = mysql_fetch_row($consulta_sucursal_enviada);
$control = mysql_query('SELECT cedula, nombre, direccion, telefono, celular, ciudad, email FROM cartera_serviasjudinet WHERE cedula = "' . $_GET["cedulita"] . '" ');
if (!$control) {
die('Error de consulta: ' . mysql_error());
}
list($cedula_c,$nombre_completo, $direccion, $telefono, $celular, $ciudad, $email) = mysql_fetch_row($control);
$fil = mysql_num_rows($control);
if ($fil == '0')
{
$control = mysql_query('SELECT cedula, nombre, direccion, telefono, celular, ciudad, email FROM beneficiarios WHERE cedula = "' . $_GET["cedulita"] . '" ');
if (!$control) {
die('Error de consulta: ' . mysql_error());
}
list($cedula_c,$nombre_completo, $direccion, $telefono, $celular, $ciudad, $email) = mysql_fetch_row($control);
$fil = mysql_num_rows($control);
if ($fil == '0')
{
$control = mysql_query('SELECT cedula, nombres,apellidos, direccion_empresa , telefono_empresa, celular, email FROM consultorio_juridico WHERE cedula = "' . $_GET["cedulita"] . '" ');
if (!$control) {
die('Error de consulta: ' . mysql_error());
}
list($cedula_c,$nombre,$apellido, $direccion, $telefono, $celular, $email) = mysql_fetch_row($control);
$nombre_completo = $apellido.' '.$nombre ;
}
/////////////*****
if ($fil == '0')
{
$control = mysql_query('SELECT cedula, nombre,ciudad, direccion , telefono, celular, email,grado FROM solicitud_credito WHERE cedula = "' . $_GET["cedulita"] . '" ');
if (!$control) {
die('Error de consulta: ' . mysql_error());
}
list($cedula_c,$nombre_completo, $ciudad,$direccion, $telefono, $celular, $email,$grado) = mysql_fetch_row($control);
}
}
//$query_sql = "SELECT * FROM sucursal order by nombre";
//$sql = mysql_query($query_sql, $dbi) or die(mysql_error());
$sql = mysql_query('SELECT * FROM sucursal WHERE (codigo != "20" and codigo != "28" and codigo != "41" and codigo != "42" and codigo != "45" and codigo != "46" and codigo != "47" and codigo != "48" and codigo != "49") order by nombre');
if (!$sql) {
die('Invalid query: ' . mysql_error());
}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);
$sql2 = mysql_query('SELECT * FROM asjudinet_abogados WHERE 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);
$sql3 = mysql_query('SELECT * FROM Usuarios WHERE Cargo != "ABOGADO" ORDER BY Nombre_Completo');
if (!$sql3) {
die('Invalid query: ' . mysql_error());
}
$row_sql3 = mysql_fetch_assoc($sql3);
$totalRows_sql3 = mysql_num_rows($sql3);
$cedulafun = $cedu;
//2020
$solo_estado = mysql_query('SELECT nuevo_ventas, atencion FROM solicitud_citas_juridicas WHERE atencion = "'.$_GET["atencion"].'" ');
list($nuevo_ventas, $atencion) = mysql_fetch_row($solo_estado);
if($nuevo_ventas == "SI"){
$consulta = mysql_query('SELECT cedula, nombre, direccion, celular, telefono, ciudad, email FROM solicitud_citas_juridicas WHERE atencion = "'.$_GET["atencion"].'" ');
if (!$consulta) {
die('Error de consulta: ' . mysql_error());
}
list($cedula_c, $nombre_completo, $direccion, $celular, $telefono, $ciudad, $email)=mysql_fetch_row($consulta);
}
?>
<html>
<head>
<title>Ingresar Solicitud Cita</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/estilos.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<style>
.row1{
border: .5px solid gray;
}
.solo_linea{
border: 0;
outline: 0;
border-bottom: 2px solid blue;
text-align: center;
}
input[type="checkbox"]:before{
background-color: red;
}
body {
font-family: "Open Sans";
}
.logo img{
display:block;
margin: 25px auto 50px auto;
}
.main-test {
max-width:90%;
padding-top: 25px;
margin: 0 auto;
}
.test-pregunta {
transition: all 300ms;
opacity: 0;
}
.test-pregunta.animated {
opacity: 1;
}
.test-pregunta ul {
list-style:none;
color: white;
padding: 0;
font-weight: 700;
font-size: 18px;
width: 100%;
text-align: center;
}
.counter {
display:block;
text-align:center;
font-size:20px;
}
.timer {
display:block;
text-align:center;
font-size:20px;
}
ul.test-lista li {
display:inline-block;
width: 100%;
margin: 7px 5px;
padding: 10px 8px;
background-color: #76ba16;
border-radius: 10px;
}
ul.test-lista li:hover {
transition: all 450ms;
transform: scale(.95) ;
}
.option {
color: white;
}
.option:hover {
color: white;
text-decoration: none;
cursor: pointer;
}
.start {
display: block;
max-width: 60%;
margin: 25px auto;
padding: 20px 0;
background-color: #76ba16;
color: white;
font-weight: 700;
font-size: 25px;
border-radius: 10px;
text-align: center;
}
.boton {
display: block;
max-width: 95%;
padding: 2px 5px;
margin: 12px auto;
border-radius: 50px;
background-color: #76ba16;
color: white;
font-weight: 700;
font-size: 18px;
text-align: center;
cursor: pointer;
}
.start:hover {
text-decoration: none;
color: white;
transition: all 300ms;
transform: scale(.9) ;
}
.puntos {
text-align: center;
}
ul {
display:inline-block;
font-size: 18px;
font-weight: 600;
text-align: initial;
}
.test-pregunta-pregunta {
font-size:22px;
}
.test-pregunta-pregunta img {
display:block;
width:200px;
margin: 0 auto;
}
.score img {
width: 50px;
height: auto;
}
ul li {
padding: 5px;
}
.highlight {
color: #76ba16;
font-weight: 700;
}
p {
font-weight: 600;
}
.hidden {
display: none;
}
.fadeOutLeft {
-webkit-animation-name: slideOutLeft;
animation-name: slideOutLeft;
-webkit-animation-duration: 500ms;
animation-duration: 500ms;
-webkit-animation-timing-function: ease-in-out; /* Safari 4.0 - 8.0 */
animation-timing-function: ease-in-out;
}
.crimson {
color: crimson;
}
.green {
color: #76ba16;
}
.lista-incorrectas {
}
ul.score {
margin-top: 25px;
color: black;
font-size:14px;
}
ul.score li {
border-bottom: 1px solid #ddd;
padding-bottom:5px;
text-align:left;
}
.footer {
text-align:center;
display: block;
margin: 25px auto 0 auto;
}
.footer ul {
max-width: 100%;
padding: 0;
margin: 0 auto;
list-style: none;
}
.footer img {
display:block;
width:70px;
margin: 0 auto;
height:auto;
}
h1{
font-weight:400;
padding-top:0;
margin-top:0;
font-family: 'Roboto Slab', serif;
}
#svg_form_time {
height: 15px;
max-width: 80%;
margin: 40px auto 20px;
display: block;
}
#svg_form_time circle,
#svg_form_time rect {
fill: white;
}
.button {
background: rgb(192, 57, 43);
border-radius: 5px;
padding: 15px 25px;
display: inline-block;
margin: 10px;
font-weight: bold;
color: white;
cursor: pointer;
box-shadow:0px 2px 5px rgb(0,0,0,0.5);
}
.disabled {
display:none;
}
</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.respuesta_financiera.value == "")
{
alert("Falta Escribir La Actuacion");
formulario.respuesta_financiera.focus();
return (false);
}
if (formulario.archivito.value == "")
{
alert("Seleccione Un Archivo");
formulario.archivito.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>
<link href="file:///C|/Documents%20and%20Settings/web%20master/Mis%20documentos/job9.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="document.formulario.ciudad.focus();startclock()">
<table width="300" border="2" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="180" bgcolor="#FFFFCC">
<table width="987" border="2" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">
<tr valign="baseline" bgcolor="#FF6600">
<td colspan="8" align="right" nowrap bgcolor="#CCFFFF"><div align="center"><span class="Estilo2 Estilo59">RESPUESTA</span></div></td>
</tr>
<tr valign="baseline" bgcolor="#FAFAF5">
<td colspan="8" align="right" nowrap bgcolor="#CCFFFF"><div align="center" class="Estilo2">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td colspan="8" bgcolor="#CCFFFF"><table width="900">
<tr>
<td width="265"><div align="center"></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="265"><div align="center"></div></td>
</tr>
</table></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
<div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Numero de Cedula:</span></strong></div>
</div></td>
<td width="198" bgcolor="#CCFFFF"><input name="ced3" type="text" value="<?php echo $cedula_c ?>" size="30" maxlength="30" ></td>
<td width="174" bgcolor="#CCFFFF"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Nombre:</span></strong></td>
<td width="359" bgcolor="#CCFFFF"><input name="name_full" type="text" id="name_full" value="<?php echo $nombre_completo ?>" size="50" maxlength="50" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
<div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Direccion:</span></strong></div>
</div></td>
<td bgcolor="#CCFFFF"><input name="dir" type="text" id="dir" value="<?php echo $direccion ?>" size="45" maxlength="45" ></td>
<td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
<div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Telefono:</span></strong></div>
</div>
<td bgcolor="#CCFFFF"><input name="tel" type="text" id="tel" value="<?php echo $telefono ?>" size="30" maxlength="30" ></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
<div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Numero Celular:</span></strong></div>
</div></td>
<td bgcolor="#CCFFFF"><input name="celular" type="text" id="celular" value="<?php echo $celular ?>" size="30" maxlength="30" ></td>
<td bgcolor="#CCFFFF"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Ciudad:</span></strong></td>
<td bgcolor="#CCFFFF"><input name="ciu" type="text" id="ciu" value="<?php echo $ciudad ?>" size="30" maxlength="30"></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Email:</span></strong></div></td>
<td colspan="2" bgcolor="#CCFFFF"><input name="mail" type="text" id="mail" value="<?php echo $email ?>" size="50" maxlength="50" ></td>
<td>TICKET <span class="roja"><?php echo $atencion ?></td>
</tr>
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Funcionario Atendio Llamada:</span></strong></div></td>
<td colspan="2" bgcolor="#CCFFFF"><input name="nombre_funcionario_atendio_llamada" type="text" id="nombre_funcionario_atendio_llamada" value="<?php echo $nombre_funcionario_atendio_llamada ?>" readonly size="50" maxlength="50" ></td>
<?php if($nombre_sucursal_enviada != ""){ ?>
<td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Sucursal Enviada:</span></strong>
<input name="nombre_sucursal_enviada" type="text" id="mail" value="<?php echo $nombre_sucursal_enviada ?>" readonly size="20" maxlength="20" ></div></td>
<?php } ?>
<?php if($programa != ""){ ?>
<td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Programa Enviado:</span></strong>
<input name="programa_enviado" type="text" id="mail" value="<?php echo $programa ?>" readonly size="20" maxlength="20" ></div></td>
<?php } ?>
</tr>
<?php if($funcionario != ""){ ?>
<tr valign="baseline" bgcolor="#F2F2E6">
<td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Asignado A:</span></strong></div></td>
<td colspan="2" bgcolor="#CCFFFF"><input name="nombre_funcionario" type="text" id="nombre_funcionario" value="<?php echo $nombre_funcionario ?>" readonly size="50" maxlength="50" ></td>
</tr>
<?php } ?>
</table>
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
<div align="center"><span class="Estilo48">SERVICIOS SOLICITADOS</span></div>
</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="asesoria_solicitada" cols="120" rows="4" id="solicitud" readonly><?php echo $asesoria_solicitada; ?></textarea>
</span></div></div>
</td>
</tr>
</table>
<?php if($instrucciones_impartidas) { ?>
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo23">
<p align="center" class="Estilo48">INSTRUCCIONES IMPARTIDAS POR EL DIRECTOR JURIDICO</p>
</div>
</td>
</tr>
</table>
<table width="587" align="center">
<tr>
<td width="579"><div align="justify" class="Estilo23">
<div align="center"><span class="Estilo20">
<textarea name="instrucciones_impartidas" cols="120" rows="4" id="instrucciones_impartidas" readonly><?php echo $instrucciones_impartidas;?></textarea>
</span></div></div>
</td>
</tr>
</table>
<?php } ?>
<?php if($documentos_requeridos) { ?>
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
<div align="center"><span class="Estilo48">DOCUMENTOS REQUERIDOS POR EL DIRECTOR JURIDICO</span></div>
</div>
</td>
</tr>
</table>
<table width="508" align="center">
<tr>
<td width="500"><div align="justify" class="Estilo23">
<div align="center">
<blockquote>
<p id="documentos_requeridos" name="documentos_requeridos" cols="120" rows="4" readonly><span class="Estilo20">
<textarea name="documentos_requeridos" cols="120" rows="4" id="documentos_requeridos" readonly><?php echo $documentos_requeridos;?></textarea>
</span></p>
</blockquote>
</div>
</div>
</td>
</tr>
</table>
<?php } ?>
<!--
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
<div align="center"><span class="Estilo48">ACCIONES A CUMPLIR</span></div>
</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="acciones_cumplir" cols="120" rows="4" id="acciones_cumplir" readonly><?php echo $acciones_cumplir; ?></textarea>
</span></div></div>
</td>
</tr>
</table>
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
<div align="center"><span class="Estilo48">INFORMACION PARA REPORTE DE INICIO DE PROCESO</span></div>
</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="informacion_inicio" cols="120" rows="4" id="informacion_inicio" readonly><?php echo $informacion_inicio; ?></textarea>
</span></div></div>
</td>
</tr>
</table>
-->
<table width="508" align="center">
<tr>
<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
<div align="center"><span class="Estilo48">RESPUESTA TELECREDITOS</span></div>
</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="respuesta_telecreditos" cols="120" rows="4" id="respuesta_telecreditos"><?php echo $respuesta_telecreditos; ?></textarea>
</span></div></div>
</td>
</tr>
</table>
<br>
<table width="508" align="center">
<tr>
<td align="center">
<!--<input name="guardar" type="submit" class="Estilo49" id="guardar" value="GUARDAR">-->
</td>
</tr>
</table>
<!--<table>
<tr valign="baseline" bgcolor="#009999">
<td height="32" colspan="8" align="right" nowrap bgcolor="#CCFFFF"><div align="center" class="Estilo20">
<p>
<input name="guardar" type="submit" class="Estilo48" id="guardar" value="ENVIAR">
</p>
</div>
</td>
</tr>
</table>-->
</td>
</tr>
</table>
<br/>
<div id="svg_wrap"></div>
<h1>PROCESO DE LEGALIZACION</h1>
<section>
<p>1 - ¿ME CONFIRMA NUMERO DE CEDULA ?</p>
Numero de cedula : <input type="text" placeholder="Firstname" name="val_cedula" id="val_cedula"/>
</section>
<section>
<p>Address</p>
<input type="text" placeholder="Street, nbr" />
<input type="text" placeholder="City" />
<input type="text" placeholder="Postcode" />
<input type="text" placeholder="Country" />
</section>
<section>
<p>Contact information</p>
<input type="text" placeholder="Email address" />
<input type="text" placeholder="Phone" />
<input type="text" placeholder="Mobile" />
</section>
<section>
<p>Application</p>
<input type="text" placeholder="Preferred entrance date" />
<input type="text" placeholder="Number of people" />
</section>
<section>
<p>General condtitions</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</section>
<div class="button" id="prev">← Previous</div>
<div class="button" id="next">Next →</div>
<div class="button" id="submit">Agree and send application</div>
<br /><br />
<div align="center">
<input type="hidden" name="MM_insert" value="formulario">
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>
$( document ).ready(function() {
var base_color = "rgb(230,230,230)";
var active_color = "rgb(192, 57, 43)";
var child = 1;
var length = $("section").length - 1;
$("#prev").addClass("disabled");
$("#submit").addClass("disabled");
$("section").not("section:nth-of-type(1)").hide();
$("section").not("section:nth-of-type(1)").css('transform','translateX(100px)');
var svgWidth = length * 200 + 24;
$("#svg_wrap").html(
'<svg version="1.1" id="svg_form_time" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 ' +
svgWidth +
' 24" xml:space="preserve"></svg>'
);
function makeSVG(tag, attrs) {
var el = document.createElementNS("http://www.w3.org/2000/svg", tag);
for (var k in attrs) el.setAttribute(k, attrs[k]);
return el;
}
for (i = 0; i < length; i++) {
var positionX = 12 + i * 200;
var rect = makeSVG("rect", { x: positionX, y: 9, width: 200, height: 6 });
document.getElementById("svg_form_time").appendChild(rect);
// <g><rect x="12" y="9" width="200" height="6"></rect></g>'
var circle = makeSVG("circle", {
cx: positionX,
cy: 12,
r: 12,
width: positionX,
height: 6
});
document.getElementById("svg_form_time").appendChild(circle);
}
var circle = makeSVG("circle", {
cx: positionX + 200,
cy: 12,
r: 12,
width: positionX,
height: 6
});
document.getElementById("svg_form_time").appendChild(circle);
$('#svg_form_time rect').css('fill',base_color);
$('#svg_form_time circle').css('fill',base_color);
$("circle:nth-of-type(1)").css("fill", active_color);
$(".button").click(function () {
$("#svg_form_time rect").css("fill", active_color);
$("#svg_form_time circle").css("fill", active_color);
var id = $(this).attr("id");
if (id == "next") {
$("#prev").removeClass("disabled");
if (child >= length) {
$(this).addClass("disabled");
$('#submit').removeClass("disabled");
}
if (child <= length) {
child++;
}
} else if (id == "prev") {
$("#next").removeClass("disabled");
$('#submit').addClass("disabled");
if (child <= 2) {
$(this).addClass("disabled");
}
if (child > 1) {
child--;
}
}
var circle_child = child + 1;
$("#svg_form_time rect:nth-of-type(n + " + child + ")").css(
"fill",
base_color
);
$("#svg_form_time circle:nth-of-type(n + " + circle_child + ")").css(
"fill",
base_color
);
var currentSection = $("section:nth-of-type(" + child + ")");
currentSection.fadeIn();
currentSection.css('transform','translateX(0)');
currentSection.prevAll('section').css('transform','translateX(-100px)');
currentSection.nextAll('section').css('transform','translateX(100px)');
$('section').not(currentSection).hide();
});
});
</script>
</body>
</html>
<?php
$fecha_auto = date("Y-m-d");
$time =time();
ini_set('date.timezone','America/Bogota');
$hora_auto=date("H:i:s",$time);
$hora = $_POST["horas"].''.$_POST["hor"];
$fechast = $_POST["anoss"].'-'.$_POST["mess"].'-'.$_POST["diass"];
$tiposer=$_POST['tipo_ser'];
$dependencia = "RESPUESTA TELECREDITOS";
$respuesta_usuario = strtoupper($_POST["respuesta_telecreditos"]);
if(isset($_POST["guardar"]))
{
$archivo = $_FILES["archivito"]["tmp_name"];
$tamanio = $_FILES["archivito"]["size"];
$tipo = $_FILES["archivito"]["type"];
$nombre = $_FILES["archivito"]["name"];
$fp = fopen($archivo, "rb");
$contenido = fread($fp, $tamanio);
$contenido = addslashes($contenido);
fclose($fp);
if($archivo == ""){
echo "<script>alert('Falta Adjuntar Archivo');</script>";
die();
}
$consulta_control = mysql_query("SELECT cedula FROM legalizaciones WHERE cedula = '".$_GET["cedulita"]."' ");
$nums_row = mysql_num_rows($consulta_control);
if($nums_row == 0){
/*$control = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE Cedula = "' .$_POST["ced_funcionario"]. '" ');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
list($nombre_funcio) = mysql_fetch_row($control);
$archivo = $_FILES["archivito"]["tmp_name"];
$tamanio = $_FILES["archivito"]["size"];
$tipo = $_FILES["archivito"]["type"];
$nombre = $_FILES["archivito"]["name"];
$fp = fopen($archivo, "rb");
$contenido = fread($fp, $tamanio);
$contenido = addslashes($contenido);
fclose($fp);
if($archivo == ""){
//echo "<script>alert('NO SE INSERTAN ARCHIVOS');</script>";
}else{
$inserta_archivos = mysql_query('INSERT INTO archivos_callcenter(nombre,contenido,tipo,Identificacion,atencion, funcionario, codigo_funcionario, fecha,hora) VALUES ("'.$nombre.'", "'.$contenido.'", "'.$tipo.'", "'.$cedula_c.'", "'.$atencion.'", "'.$nombre_usuario.'", "'.$codigo_usuario.'", "'.$fecha_auto.'", "'.$hora_auto.'" )');
if (!$inserta_archivos) {
die('Invalid query insert archivo: ' . mysql_error());
}
}
*/
/*
$mss = mysql_query("UPDATE solicitud_citas_juridicas SET fecha_ejecucion = '".$fecha_auto."', respuesta_telecreditos = '".$_POST["respuesta_telecreditos"]."', estado = 20, fecha_cumplimiento = '".$fecha_auto."' WHERE cedula = '".$_GET["cedulita"]."' and atencion = '".$_GET["atencion"]."' ");
if (!$mss) {
die('Invalid query update 4747: ' . mysql_error());
}
$ms_ins_actuacion = mysql_query("INSERT INTO actuaciones_callcenter(cedula, dependencia, cargo, actuaciones, fecha, funcionario, codigo_funcionario, hora, ticket) VALUES('".$_POST["ced3"]."', '".$dependencia."', '".$cargo_callcenter_usuario."', '".$respuesta_usuario."', '".$fecha_auto."', '".$nombre_usuario."', '".$codigo_usuario."', '".$hora_auto."', '".$atencion."')");
if (!$ms_ins_actuacion) {
die('Invalid query actuaciones: ' . mysql_error());
}
*/
//Actualiza Datos
$apellidos_sin_espacio = trim($_POST["apellidos"]);
$nombre_sin_espacio = trim($_POST["nombre"]);
//$nombre_completo_sin_espacio = $apellidos_sin_espacio." ".$nombre_sin_espacio;
$nombre_completo_sin_espacio = trim($_POST["name_full"]);
$ms_actualiza_datos = mysql_query("UPDATE solicitud_citas_juridicas SET cedula = '".$_POST["ced3"]."', nombre='".$nombre_completo_sin_espacio."', direccion = '".$_POST["dir"]."', celular = '".$_POST["celular"]."', telefono = '".$_POST["tel"]."', ciudad = '".$_POST["ciu"]."', email = '".$_POST["mail"]."' WHERE cedula = '".$_GET["cedulita"]."' and atencion = '".$_GET["atencion"]."' ");
if (!$ms_actualiza_datos) {
die('Invalid query actuaciones datos: ' . mysql_error());
}
/*$ms_actualiza_actuacion = mysql_query("UPDATE actuaciones_callcenter SET cedula = '".$_POST["ced3"]."' WHERE cedula = '".$_GET["cedulita"]."' and ticket = '".$_GET["atencion"]."' ");
if (!$ms_actualiza_actuacion) {
die('Invalid query actualizacion actuacion: ' . mysql_error());
}*/
if (isset($_POST['val_cedula']) && $_POST['val_cedula'] == '1'){
$pregunta1 = "SI";
}else{
$pregunta1 = "NO";
}
if (isset($_POST['val_nombres']) && $_POST['val_nombres'] == '1'){
$pregunta2 = "SI";
}else{
$pregunta2 = "NO";
}
if (isset($_POST['val_monto']) && $_POST['val_monto'] == '1'){
$pregunta3 = "SI";
}else{
$pregunta3 = "NO";
}
if (isset($_POST['val_numero_cuotas']) && $_POST['val_numero_cuotas'] == '1'){
$pregunta4 = "SI";
}else{
$pregunta4 = "NO";
}
if (isset($_POST['val_valor_cuota']) && $_POST['val_valor_cuota'] == '1'){
$pregunta5 = "SI";
}else{
$pregunta5 = "NO";
}
if (isset($_POST['val_valor_desembolsar']) && $_POST['val_valor_desembolsar'] == '1'){
$pregunta6 = "SI";
}else{
$pregunta6 = "NO";
}
if (isset($_POST['val_valor_interes_muerto']) && $_POST['val_valor_interes_muerto'] == '1'){
$pregunta7 = "SI";
}else{
$pregunta7 = "NO";
}
if (isset($_POST['val_medio_desembolso']) && $_POST['val_medio_desembolso'] == '1'){
$pregunta8 = "SI";
}else{
$pregunta8 = "NO";
}
if (isset($_POST['val_informacion_servicio']) && $_POST['val_informacion_servicio'] == '1'){
$pregunta9 = "SI";
}else{
$pregunta9 = "NO";
}
if (isset($_POST['val_valor_mensual']) && $_POST['val_valor_mensual'] == '1'){
$pregunta10 = "SI";
}else{
$pregunta10 = "NO";
}
if (isset($_POST['val_beneficios_juridicos']) && $_POST['val_beneficios_juridicos'] == '1'){
$pregunta11 = "SI";
}else{
$pregunta11 = "NO";
}
if (isset($_POST['val_autoriza_escanear']) && $_POST['val_autoriza_escanear'] == '1'){
$pregunta12 = "SI";
}else{
$pregunta12 = "NO";
}
if (isset($_POST['val_envia_fotocopia_cedula']) && $_POST['val_envia_fotocopia_cedula'] == '1'){
$pregunta13 = "SI";
}else{
$pregunta13 = "NO";
}
if (isset($_POST['val_articulo']) && $_POST['val_articulo'] == '1'){
$pregunta14 = "SI";
}else{
$pregunta14 = "NO";
}
if (isset($_POST['val_retractar']) && $_POST['val_retractar'] == '1'){
$pregunta15 = "SI";
}else{
$pregunta15 = "NO";
}
$medio_desembolso = $_POST["pregunta8z"];
if($_POST["ingresa_cuenta"] != ""){
$dato_desembolso = $_POST["ingresa_cuenta"];
}
if($_POST["ingresa_giro"]!= ""){
$dato_desembolso = $_POST["ingresa_giro"];
}
if($_POST["ingresa_quien_entrega"]!= ""){
$dato_desembolso = $_POST["ingresa_quien_entrega"];
}
if($_POST["servicio_juridico"]!= ""){
$servicio_juridico = $_POST["servicio_juridico"];
}
if($_POST["envia_fotocopia_cedula"]!= ""){
$envia_fotocopia_cedula = $_POST["envia_fotocopia_cedula"];
}
$ingreso_direccion = $_POST["ingreso_direccion"];
$ingreso_barrio = $_POST["ingreso_barrio"];
$ingreso_ciudad = $_POST["ingreso_ciudad"];
$ingreso_departamento = $_POST["ingreso_departamento"];
$insertar_legaliacion = mysql_query("INSERT INTO legalizaciones(cedula, ticket, val_cedula, val_nombres, val_monto, val_numero_cuotas, val_valor_cuota, val_valor_desembolsar, val_valor_interes_muerto, val_medio_desembolso, medio_desembolso, dato_desembolso, val_informacion_servicio, servicio_juridico, val_valor_mensual, val_beneficios_juridicos, val_autoriza_escanear, val_envia_fotocopia_cedula, envia_fotocopia_cedula, val_articulo, val_retractar, direccion, barrio, ciudad, departamento, nombre, contenido, tipo) VALUES ('".$_POST["ced3"]."', '".$atencion."', '".$pregunta1."', '".$pregunta2."', '".$pregunta3."', '".$pregunta4."', '".$pregunta5."', '".$pregunta6."', '".$pregunta7."', '".$pregunta8."', '".$medio_desembolso."', '".$dato_desembolso."', '".$pregunta9."', '".$servicio_juridico."', '".$pregunta10."', '".$pregunta11."', '".$pregunta12."', '".$pregunta13."', '".$envia_fotocopia_cedula."', '".$pregunta14."', '".$pregunta15."', '".$ingreso_direccion."', '".$ingreso_barrio."', '".$ingreso_ciudad."', '".$ingreso_departamento."', '".$nombre."', '".$contenido."', '".$tipo."')");
if (!$insertar_legaliacion) {
die('Invalid query: ' . mysql_error());
}
echo "<script>alert('La información se ha enviado correctamente ');</script>";
echo "<script languaje='javascript'>window.close();</script>";
}
else{
echo "<script>alert('Ya esta registrado');</script>";
}
}
?>
<?php
include("includes/actuaciones.php");
?>