| Server IP : 52.9.100.119 / Your IP : 216.73.216.135 Web Server : Apache/2.4.61 (Amazon) OpenSSL/1.0.2k-fips PHP/7.3.30 Phusion_Passenger/5.1.5 System : Linux ip-172-31-9-35 4.14.355-196.618.amzn1.x86_64 #1 SMP Mon Apr 7 17:09:50 UTC 2025 x86_64 User : root ( 0) PHP Version : 7.3.30 Disable Function : exec,passthru,shell_exec,system,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /data/html/garlans_live/ |
Upload File : |
<?php
require_once(__DIR__ . '/private/constants.php');
require_once(__DIR__ . '/private/classes/debug/logger.php');
//require_once(__DIR__ . '/private/classes/clients/client_application.php');
//require_once(__DIR__ . '/private/classes/clients/client_login.php');
//require_once(__DIR__ . '/private/classes/clients/special_users.php');
$logger = QuattroDC\Debug\Logger::getInstance();
?>
<!DOCTYPE html>
<html>
<head>
<!--<link rel="stylesheet" type="text/css" href="assets/css/cuestionariogarlans.css?val=<?php //echo time();?>">-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Garlan's</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/fonts/ionicons.min.css">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-1.10.2.js"></script>
<link rel="stylesheet" href="assets/css/File-Input---Beautiful-Input--Button-Approach-Jasny-Bootstrap1.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/popup.css">
<link rel="stylesheet" href="assets/css/footer.css">
<script src="assets/js/File-Input---Beautiful-Input--Button-Approach-Jasny-Bootstrap.js"></script>
<script src="assets/js/custom_validations.js"></script>
<script src="assets/js/autoNumeric.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Open+Sans:wght@400;600;700&display=swap" rel="stylesheet">
</head>
<body>
<?php include(__DIR__ . '/private/ui_helpers/ui_helpers.php');?>
<div class="navbar-home">
<img src="assets/images/img_logo_black.svg" class="logo-garlans">
</div>
<h1 class="title1 text-center">SOLICITA TU CRÉDITO</h1>
<p class="title2 text-center">HOY MISMO</p>
<div class="container-fluid">
<form class="form-inline row" id="main_container" method="post" action="private/helpers/application_submit.php" enctype= "multipart/form-data">
<div class="col-sm-12 col-xs-12">
<label for="email">Correo electrónico</label>
<input class="form-control w-100 required" id="email" type="email" onkeyup="c_validation(this, 'email');" onclick="c_validation(this, 'email');" onchange="c_validation(this, 'email');" tabindex="1" name="applicant_email">
<div class="title-wrapper">
<p class="text-center">Datos personales</p>
</div>
</div>
<div class="row" id="info_solicitante">
<div class="col-md-4 col-xs-12">
<input type="hidden" id="has_co_applicant" value="0" name="has_co_applicant">
<input type="hidden" id="has_billing_address" value="0" name="has_billing_address">
<label for="email">Nombre(s)*</label>
<input class="form-control w-100 required" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" type="text" tabindex="2" name="applicant_name">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Apellido Paterno*</label>
<input class="form-control required w-100" type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" tabindex="3" id="sol-app1" name="applicant_first_lastname">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Apellido Materno*</label>
<input class="form-control required w-100" type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" tabindex="4" id="sol-apm1" name="applicant_second_lastname">
</div>
<div class="col-md-4 col-xs-12">
<label class="" for="fech">Fecha de nacimiento*</label>
<input class="form-control required w-100" type="text" placeholder="MM / DD / AAAA" id="datepicker" name="applicant_birthday_full_date" onchange="c_validation(this, 'name')" tabindex="5" onkeyup="c_validation(this, 'name');" type="text" data-calendar="true">
</div>
<div class="col-md-4 col-xs-12">
<label id="lbl-ec" class="" for="estado_civil">Estado Civil*</label>
<select class="form-control w-100" tabindex="6" id="estado_civil" name="applicant_civil_state">
<optgroup label="Estado Civil">
<option value="0" selected="">Soltero(a)*</option>
<option value="1">Casado(a)*</option>
</optgroup>
</select>
</div>
</div>
<div class="row" id="domicilio_res">
<div class="col-md-12 col-xs-12" name="calleaplicantes">
<div class="title-wrapper">
<p class="text-center">Domicilio</p>
</div>
</div>
<div class="col-md-12 col-xs-12">
<label for="email">Dirección Residencial*</label>
<input class="form-control w-100 required" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" type="text" tabindex="7" id="sol-calle" name="address_street">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Colonia*</label>
<input class="form-control w-100" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" type="text" tabindex="8" id="sol-calle" name="address_neighbour">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Ciudad*</label>
<input class="form-control required w-100" type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" tabindex="9" id="sol-cd" name="address_city">
</div>
<div class="col-md-4 col-xs-12">
<label class="" for="">Estado*</label>
<input class="form-control required w-100" type="text" tabindex="10" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" id="sol-estado" name="address_state">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Código Postal</label>
<input class="form-control no-error-field w-100 numeric_less" type="text" tabindex="11" id="sol-cp" name="address_zip_code" onkeypress='return event.charCode >= 48 && event.charCode <= 57'>
</div>
<div class="col-md-4 col-xs-12">
<label id="lbl-ec" class="" for="estado_civil">Casa propia*</label>
<select class="form-control required w-100" id="coestado_civil" tabindex="12" name="home_ownership">
<optgroup >
<option value="propia" >Casa propia*</option>
<option value="rento">Rento*</option>
<option value="con mis padres">Con mis padres*</option>
</optgroup>
</select>
</div>
<div class="col-md-4 col-xs-12">
<label for="">Teléfono Celular*</label>
<input class="form-control no-error-field w-100 numeric_less" onkeypress='return event.charCode >= 48 && event.charCode <= 57' type="text" tabindex="14" name="applicant_phonemobile" onkeypress='return event.charCode >= 48 && event.charCode <= 57' maxlength="10">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Teléfono Casa</label>
<input class="form-control no-error-field w-100 numeric_less" type="text" onkeypress='return event.charCode >= 48 && event.charCode <= 57' maxlength="10" type="text" tabindex="15" name="applicant_phonehome">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Pago mensual (renta o hipoteca)</label>
<input class="form-control w-100 numeric no-error-field" tabindex="15" onkeypress='return event.charCode >= 48 && event.charCode <= 57' type="text" name="rent">
</div>
<div class="col-md-4 col-xs-12 radio-wrapper">
<!-- <select class="form-control currecy w-100 " name="currency" tabindex="16" >
<option value="pesos" selected="">Pesos</option>
<option value="dolares">Dólares</option>
</select> -->
<input class="radio-btn" type="radio" id="currency2" name="currency" value="dolares">
<label for="currency2">Dlls</label><br>
<input class="radio-btn" type="radio" id="currency1" name="currency" value="pesos">
<label for="currency1">Mxn</label><br>
</div>
</div>
<div class="row" id="domicilio_postal">
<div class="col-xs-12" name="zip_address">
<label for="">Dirección Postal</label>
<input class="form-control w-100" type="text" onchange="c_validation(this, 'name')" tabindex="17" onkeyup="c_validation(this, 'name');" type="text" name="billing_address_info">
<input class="form-control pull-right w-100-sm w-47" style="display:none;" type="text" onchange="c_validation(this, 'name')" tabindex="18" onkeyup="c_validation(this, 'name');" value=" " type="text" placeholder=" Colonia" name="billing_address_neighbour">
<input class="form-control pull-left w-100-sm w-47" type="text" onchange="c_validation(this, 'name')" tabindex="19" onkeyup="c_validation(this, 'name');" value=" " type="text" style="display:none;" placeholder=" Ciudad" name="billing_address_city">
<input class="form-control pull-right w-100-sm w-47" value=" " type="text" onchange="c_validation(this, 'name')" tabindex="20" onkeyup="c_validation(this, 'name');" type="text" style="display:none;" placeholder=" Estado" name="billing_address_state">
<input class="form-control pull-left w-100-sm w-47" value=" " style="display:none;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' tabindex="22" type="text" placeholder=" CP" name="billing_address_zip_code">
</div>
</div>
<div class="col-md-12 pull-right" id="check_co">
<label id="lbl_toggle">¿Agregar Dirección Postal?</label>
<button class="btn btn-primary btn-xs" type="button" id="postal_check" >Agregar / Ocultar</button>
</div>
<div class="row" id="info_empleo">
<div class="col-md-12 col-xs-12" name="calleaplicantes">
<div class="title-wrapper">
<p class="text-center">Datos de empleo</p>
</div>
</div>
<div class="col-md-4 col-xs-12">
<label for="">Lugar de empleo*</label>
<input class="form-control required w-100" type="text" type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" tabindex="23" name="applicant_work_place">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Puesto*</label>
<input class="form-control required w-100" type="text" onchange="c_validation(this, 'name')" tabindex="23" onkeyup="c_validation(this, 'name');" name="applicant_work_position">
</div>
<div class="col-md-4 col-xs-12 flex-wrapper">
<div class="w-60">
<label for="">Salario mensual*</label>
<input class="form-control required w-100 numeric" onkeypress='return event.charCode >= 48 && event.charCode <= 57'type="text" onkeyup="c_validation(this, 'number', 3);" onchange="c_validation(this, 'number', 3);" tabindex="24" name="applicant_work_monthly_income">
</div>
<!-- <select class="form-control w-100 currecy" name="applicant_work_currency" tabindex="25">
<option value="0">Pesos</option>
<option value="1">Dólares</option>
</select> -->
<div class="w-40 radio-wrapper">
<input class="radio-btn" type="radio" id="applicant_work_currency2" name="applicant_work_currency" value="1">
<label for="applicant_work_currency2">Dlls</label><br>
<input class="radio-btn" type="radio" id="applicant_work_currency1" name="applicant_work_currency" value="0">
<label for="applicant_work_currency1">Mxn</label><br>
</div>
</div>
<div class="col-md-4 col-xs-12">
<label for="">Antigüedad laboral*</label>
<input class="form-control required w-100" type="text" onchange="c_validation(this, 'name')" tabindex="26" onkeyup="c_validation(this, 'name');" name="applicant_work_since_full_date">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Teléfono de empleo*</label>
<input class="form-control numeric_less w-100" onkeypress='return event.charCode >= 48 && event.charCode <= 57' type="text" tabindex="27" name="applicant_work_phone" onkeyup="c_validation(this, 'number', 10);" onchange="c_validation(this, 'number', 10);" onkeypress='return event.charCode >= 48 && event.charCode <= 57' maxlength="10">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Ext.</label>
<input class="form-control w-100 no-error-field numeric_less" type="text" onkeypress='return event.charCode >= 48 && event.charCode <= 57' type="text" tabindex="28" name="phone_ext">
</div>
</div>
<div class="row" id="ref_credito">
<div class="col-md-12">
<h4 class="text-center">REFERENCIAS DE CRÉDITO </h4>
<h6 class="text-center">Si cuentas con créditos bancarios o en alguna tienda departamental (Préstamos bancarios, Visa, Coppel, Sears, etc), ingresa el nombre de las compañías y podrías obtener una línea de crédito más amplia. </h6></div>
<div class="col-md-6">
<label for="">Compañía</label>
<input class="form-control w-100 no-error-field" type="text" tabindex="29" name="credit_reference_0">
</div>
<div class="col-md-6">
<label for="">Compañía</label>
<input class="form-control w-100 no-error-field" type="text" tabindex="30" name="credit_reference_1">
</div>
</div>
<div class="col-md-12 pull-right" id="credit_ref_check">
<label id="lbl_toggle">¿Quieres aumentar tu línea de crédito?</label>
<button class="btn btn-primary btn-xs" type="button" id="credit_ref_check" >Agregar / Ocultar</button>
</div>
<div class="row" id="ref_personal">
<div class="col-md-12 col-xs-12" name="calleaplicantes">
<div class="title-wrapper">
<p class="text-center">referencias familiares</p>
</div>
</div>
<div class="col-md-4 col-xs-12">
<label for="email">Nombre</label>
<input class="form-control required w-100" type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" tabindex="31" name="personal_reference_0_name">
</div>
<div class="col-md-4 col-xs-12">
<label for="email">Teléfono</label>
<input class="form-control required w-100 numeric" onkeypress='return event.charCode >= 48 && event.charCode <= 57'type="text" onkeyup="c_validation(this, 'number', 10);" onchange="c_validation(this, 'number', 10);" tabindex="32" name="personal_reference_0_phone" maxlength="10">
</div>
<div class="col-md-4 col-xs-12">
<label for="email">Relación</label>
<input class="form-control required w-100 " type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" tabindex="33" name="personal_reference_0_relation">
</div>
<div class="col-md-4 col-xs-12">
<label for="email">Nombre</label>
<input class="form-control required w-100" type="text" onchange="c_validation(this, 'name')" tabindex="34" onkeyup="c_validation(this, 'name');" type="text" name="personal_reference_1_name">
</div>
<div class="col-md-4 col-xs-12">
<label for="email">Teléfono</label>
<input class="form-control required w-100 " onkeypress='return event.charCode >= 48 && event.charCode <= 57' type="text" tabindex="35" onkeyup="c_validation(this, 'number', 5);" onchange="c_validation(this, 'number', 10);" name="personal_reference_1_phone" maxlength="10">
</div>
<div class="col-md-4 col-xs-12">
<label for="email">Relación</label>
<input class="form-control required w-100 " type="text" tabindex="36" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" name="personal_reference_1_relation">
</div>
<div class="col-md-4 col-xs-12">
<label for="email">Nombre</label>
<input class="form-control required w-100" type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" tabindex="37" name="personal_reference_2_name">
</div>
<div class="col-md-4 col-xs-12">
<label for="email">Teléfono</label>
<input class="form-control required w-100 numeric" onkeypress='return event.charCode >= 48 && event.charCode <= 57'type="text" tabindex="38" onkeyup="c_validation(this, 'number', 5);" onchange="c_validation(this, 'number', 10);" name="personal_reference_2_phone" maxlength="10">
</div>
<div class="col-md-4 col-xs-12">
<label for="email">Relación</label>
<input class="form-control required w-100 " type="text" onchange="c_validation(this, 'name')" tabindex="39" onkeyup="c_validation(this, 'name');" type="text" name="personal_reference_2_relation">
</div>
</div>
<div id="co-sol">
<div class="row" id="co_solicitante">
<div class="col-xs-12">
<h4 class="text-center" id="info-cosol">INFORMACIÓN DEL CO-SOLICITANTE </h4>
</div>
<div class="col-md-4 col-xs-12">
<label for="">Nombre(s)</label>
<input class="form-control w-100" tabindex="40" type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" name="co_applicant_name">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Apellido Paterno</label>
<input class="form-control w-100" type="text" onchange="c_validation(this, 'name')" tabindex="41" onkeyup="c_validation(this, 'name');" type="text" name="co_applicant_first_lastname">
</div>
<div class="col-md-4 col-xs-12">
<label for="">Apellido Materno</label>
<input class="form-control w-100" type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" tabindex="42" name="co_applicant_second_lastname">
</div>
<div class="col-md-4 col-xs-12">
<label id="" class="" for="codatepicker">Fecha de nacimiento </label>
<input class="form-control w-100" type="text" placeholder="MM / DD / AAAA" tabindex="43" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" id="codatepicker" name="co_applicant_birthday_full_date" data-calendar="true">
</div>
<div class="col-xs-12 col-md-4">
<label id="lbl-ec" class="" for="relacion">Relación</label>
<select class="form-control w-100" tabindex="44" id="coestado_civil" name="co_applicant_relation">
<optgroup label="Relación">
<option value="0" selected="">Esposo(a)</option>
<option value="1">Familiar</option>
<option value="2">Amigo(a)</option>
</optgroup>
</select>
</div>
</div>
<div class="row" id="coinfo_empleo">
<div class="col-xs-12">
<h4 class="text-center" id="info-cosol">INFORMACIÓN DE EMPLEO DEL CO-SOLICITANTE </h4>
</div>
<div class="col-xs-12 col-md-4">
<label for="">Lugar de empleo*</label>
<input class="form-control w-100 " type="text" onchange="c_validation(this, 'name')" tabindex="45" onkeyup="c_validation(this, 'name');" type="text" name="co_applicant_work_place">
</div>
<div class="col-xs-12 col-md-4">
<label for="">Puesto*</label>
<input class="form-control w-100 " type="text" onchange="c_validation(this, 'name')" tabindex="46" onkeyup="c_validation(this, 'name');" type="text" name="co_applicant_work_position">
</div>
<div class="col-xs-12 col-md-4 flex-wrapper">
<div class="w-60">
<label for="">Salario mensual</label>
<input class="form-control w-100 numeric" onkeypress='return event.charCode >= 48 && event.charCode <= 57' onkeyup="c_validation(this, 'number', 3);" onchange="c_validation(this, 'number', 3);" tabindex="48" type="text" name="co_applicant_work_monthly_income">
</div>
<div class="w-40 radio-wrapper">
<input class="radio-btn" type="radio" id="co_applicant_work_currency1" name="co_applicant_work_currency" value="1">
<label for="co_applicant_work_currency1">Dlls</label><br>
<input class="radio-btn" type="radio" id="co_applicant_work_currency2" name="co_applicant_work_currency" value="0">
<label for="co_applicant_work_currency2">Mxn</label><br>
</div>
<!-- <select class="form-control currecy" name="co_applicant_work_currency" tabindex="49" >
<option value="0" selected="">Pesos</option>
<option value="1">Dólares</option>
</select> -->
</div>
<div class="col-xs-12 col-md-4">
<label for="">Teléfono de empleo</label>
<input class="form-control w-100 numeric" tabindex="50" type="text" onchange="c_validation(this, 'name')" onkeyup="c_validation(this, 'name');" type="text" name="co_applicant_work_phone" maxlength="10">
</div>
<div class="col-xs-12 col-md-4">
<label for="">Antigüedad laboral</label>
<input class="form-control w-100" type="text" onchange="c_validation(this, 'name')" tabindex="47" onkeyup="c_validation(this, 'name');" type="text" name="co_applicant_work_since_full_date">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 pull-right" id="check_co">
<label id="lbl_toggle">¿Co-Solicitante?</label>
<button class="btn btn-primary btn-xs" type="button" id="check">Agregar / Ocultar</button>
</div>
<div class="col-md-12 col-xs-12" name="calleaplicantes">
<div class="title-wrapper">
<p class="text-center">adjunta tus comprobantes y ¡listo!</p>
<span class="text-center">También los puedes presentar en tienda si así lo deseas</span>
</div>
</div>
<div class="col-sm-12 col-xs-12 no-error-field" id="Documents">
<p>Identificación Oficial <span>(Credencial de elector o licencia)</span></p>
<div class="fileinput no-error-field fileinput-new input-group" data-provides="fileinput">
<div class="form-control file-input" data-trigger="fileinput"><i class="glyphicon glyphicon-file fileinput-exists"></i> <span class="fileinput-filename"></span></div>
<span class="input-group-addon no-error-field btn btn-default btn-file"><span class="fileinput-new">Elegir Archivo</span><span class="fileinput-exists">Cambiar</span><input type="file" class="no-error-field document" id="file_upload_id" name="file_upload_id"></span>
<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remover</a>
</div>
</div>
<div class="col-sm-12 no-error-field col-xs-12" id="Documents">
<p>Comprobante de Domicilio <span> (Recibo de luz, agua o teléfono)</span></p>
<div class="fileinput no-error-field fileinput-new input-group" data-provides="fileinput">
<div class="form-control file-input" data-trigger="fileinput"><i class="glyphicon glyphicon-file fileinput-exists"></i> <span class="fileinput-filename"></span></div>
<span class="input-group-addon no-error-field btn btn-default btn-file"><span class="fileinput-new">Elegir Archivo</span><span class="fileinput-exists">Cambiar</span><input class="no-error-field document" type="file" id="file_upload_address" name="file_upload_address"></span>
<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remover</a>
</div>
</div>
<div class="col-sm-12 no-error-field col-xs-12" id="Documents">
<p>Comprobante de Ingresos <span>(Talón de cheque, carta de trabajo, nómina o declaración de impuestos reciente)</span> </p>
<div class=" no-error-field fileinput fileinput-new input-group" data-provides="fileinput">
<div class="form-control file-input" data-trigger="fileinput"><i class="glyphicon glyphicon-file fileinput-exists"></i> <span class="fileinput-filename"></span></div>
<span class="input-group-addon no-error-field btn btn-default btn-file"><span class="fileinput-new ">Elegir Archivo</span><span class="fileinput-exists">Cambiar</span><input type="file" class="no-error-field document" id="file_upload_money" name="file_upload_money"></span>
<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remover</a>
</div>
<div class="col-xs-12">
<div class="btn-group" role="group">
<!-- <div class="btn-group" role="group"><a class="btn btn-primary btn-lg pull-left" role="button" href="#t1"><i class="icon ion-android-arrow-dropup-circle"></i> Regresar </a> -->
<button class="btn btn-primary btn-lg w-100 btn-continue" type="button" id="continue_button">Continuar</button>
</div>
</div>
<div style="display:block; width: 100%;margin:auto; height:auto; text-align:center;">
<!-- <a href="#" onclick="window.open('https://www.sitelock.com/verify.php?site=credit.garlans.com','SiteLock','width=600,height=600,left=160,top=170');" ><img class="img-responsive" alt="SiteLock" title="SiteLock" src="//shield.sitelock.com/shield/credit.garlans.com" /></a> -->
<a href="#" style="display:inline-block; " onclick="window.open('https://www.sitelock.com/verify.php?site=www.garlans.com','SiteLock','width=100,height=100,left=160,top=0');" ><img class="img-responsive" alt="SiteLock" title="SiteLock" src="//shield.sitelock.com/shield/www.garlans.com" /></a>
<!-- <iframe width="200" height="100" frameborder="0" scrolling="no" id='godaddyplaceholder' style="position:relative; display:inline-block; top:10px;">
</iframe>
<script type="text/javascript">
$(function () {
$("#godaddyplaceholder").attr("src", "/godaddysiteseal.html");
});
</script> -->
</div>
</div>
</form>
</div>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
<script src="https://malsup.github.io/jquery.form.js"></script>
<script src="assets/js/main.js"></script>
<script>
var Garlans = {};
$(document).ready(function(){
$(".screen_overlay").hide();
$(".popup").hide();
Garlans.subtitle = 'Se esta enviando la información de su solicitud.';
$(".close_button, #cancel_register").on("touchstart click", function(e) {
$(this).parent(".popup_message").hide();
$(".screen_overlay").hide();
var x = 0;
$("input").each(function(value, index){
if($(this).hasClass('error')&& x === 0){
$(this).focus();
x=1;
}
});
if(Garlans.invalidElement) {
$(Garlans.invalidElement).focus();
}
Garlans.invalidElement = null;
});
$("#continue_button").on("touchstart click", function(e){
e.preventDefault();
Garlans.invalid = validateForm();
if(Garlans.invalid){
$(".popup_message h1").text('ERROR');
$(".popup_message h4").text('Debe llenar los campos obligatorios.');
$(".popup_message").show();
$(".screen_overlay").show();
return;
}else{
$(".popup_message h1").text('ENVIANDO INFORMACIÓN');
$(".popup_message h4").text(Garlans.subtitle);
$(".popup_message").find(".close_button").hide();
$(".popup_message").show();
$(".screen_overlay").show();
}
var options = {
success: function( data ) {
var json = JSON.parse(data);
console.log(json,'respuestajson');
var response = json.<?php echo JSON_RESPONSE_RESPONSE_FIELD;?>;
console.log(response,'respuesta');
var pop = <?php echo OK_UPLOAD_FILES;?>;
console.log(pop,'pop');
var responsetext = json.<?php echo JSON_RESPONSE_DATA_FIELD;?>;
console.log(responsetext);
if(response != pop){
$(".popup_message h1").text('ERROR');
$(".popup_message h4").text('Verifique sus datos e intente de nuevo, por favor.');
$(".popup_message").find(".close_button").show();
} else {
$(".close_button").trigger("click");
document.location.href = "thanks.php";
}
},
error: function () {
$(".popup_message h1").text('ERROR');
$(".popup_message h4").text('Intente de nuevo, por favor.');
$(".popup_message").find(".close_button").show();
console.log('flag3');
},
type: 'post',
uploadProgress: progress
};
$("#main_container").ajaxSubmit(options);
// $("#main_container").on("submit", function(e){
// e.preventDefault();
// this.submit();
// validateInputs();
//});
function validateForm(){
var invalid = null;
$("#main_container div").children('.required').each(function(i, val) {
if(val.value == "") {
invalid = val;
return false;
} else if($(val).hasClass("numeric")) {
if(!/^[0-9]+$/.test(val.value)) {
invalid = val;
return false;
} else if($(val).hasClass("telephone") && val.value.length < 10) {
invalid = val;
return false;
}
}
});
return invalid;
}
function progress(event, position, total, percentComplete) {
if(percentComplete < 100) {
$(".popup_message h4").text(Garlans.subtitle + '\nSubiendo archivos: ' + percentComplete + '% completado.');
} else {
$(".popup_message h4").text(Garlans.subtitle + '\nEnviando correo. Espere un momento ...');
}
}
});
$("#customer_service").on("click", function(e) {
window.open('https://www.messenger.com/t/garlans/', '_blank');
});
});
function openContact() {
window.open("<?php echo MAIN_URL;?>contacto_garlans.html", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");
}
function openPrivacy() {
window.open("<?php echo MAIN_URL;?>privacidad_garlans.html", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");
}
function openFrecuentes() {
window.open("<?php echo MAIN_URL;?>frecuentes_garlans.html", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");
}
</script>
<script>
<?php if(DEV_ENV == PROD) {?>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61905148-2', 'auto');
ga('send', 'pageview');
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '533786653484009');
fbq('track', "PageView");</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=533786653484009&ev=PageView&noscript=1"
/></noscript>
<?php } ?>
</body>
<footer>
<p>@ 2016 Derechos Reservados</p>
<span class="separator">|</span>
<p><a href="<?php echo MAIN_URL;?>privacidad_garlans.html" id="privacy" target="_blank">Aviso de Privacidad</a></p>
<span class="separator">|</span>
<p><a href="<?php echo MAIN_URL;?>contacto_garlans.html" id="contactus" target="_blank">Contáctanos</a></p>
<span class="separator">|</span>
<p><a href="<?php echo MAIN_URL;?>frecuentes_garlans.html" id="contactus" target="_blank">Preguntas Frecuentes</a></p>
<div id="social_media">
<a href="https://www.facebook.com/Garlans/" target="_blank"><img src="assets/images/icn_facebook_black.svg"></a>
<a href="https://www.twitter.com" target="_blank"><img src="assets/images/icn_twitter_black.svg"></a>
</div>
</footer>
</html>