<?php
if(!isset($_SESSION)) {
  session_start();
}

date_default_timezone_set ( 'America/Santiago' );

require_once($_SERVER['DOCUMENT_ROOT'].'/varios/varios.php');
$descSistema   = _SYSTEM_NAME;
$nombreEmpresa = _SYSTEM_OWNER;

require_once($_SERVER['DOCUMENT_ROOT'].'/clases/Varios.Class.php');
$cadena = Varios::codifica('SILSCliente_recuperar__'._TOKEN);
$token 	= Varios::codifica(Varios::generaToken($cadena));
?>

<!DOCTYPE html>
<html>
  <head><meta charset="UTF-8">
    <title><?php echo "{$descSistema} - {$nombreEmpresa}"; ?></title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta charset="utf-8">
    <meta content="ie=edge" http-equiv="x-ua-compatible">
    <meta content="Sils Santiago Chile Sistema Software" name="keywords">
    <meta content="Amo mi negocio" name="author">
    <meta content="Sistema de gestión de Agendamiento para Clientes" name="description">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <link rel="icon" type="image/png" href="../favicon.png">
    <link href="https://fonts.googleapis.com/css?family=Rubik:300,400,500" rel="stylesheet" type="text/css">
    <link href="/assets/css/main.css?<?php //echo $random;?>" rel="stylesheet">
  </head>
  <body class="auth-wrapper">
    <div class="all-wrapper menu-side with-pattern">
      <div class="auth-box-w">
        <div class="logo-w">
          <img alt="" src="/assets/images/<?php echo _SYSTEM_Logo;?>" style="width: 110px;">
          <br>
          <h6><?php echo 'Sistema de Clientes';?></h6>
        </div>
        <h4 class="auth-header">
          Recuperar contrase&ntilde;a
        </h4>
        <input type="hidden" id="txt_captcha" value="<?php echo _CS1;?>" />
        <form name="frm_login" id="frm_login" method="post">
          <input type="hidden" id="txt_token" name="txt_token" value="<?php echo $token;?>" />
          <div class="form-group" style="text-align: justify;">
            <label for="">Para recuperar su contraseña de acceso, ingrese el nombre de usuario asociado a su cuenta:</label>
          </div>
          <div class="form-group">
            <label for="">Usuario</label>
            <input class="form-control" placeholder="Ingresa nombre de usuario" type="text" name="txt_usuario" id="txt_usuario">
            <div class="pre-icon os-icon os-icon-user-male-circle"></div>
          </div>
          <div class="buttons-w">
            <button class="btn btn-primary">Recuperar</button>&nbsp&nbsp&nbsp
            <button type="button" class="btn btn-primary" onclick="redireccionar('index.php');">&nbsp&nbsp&nbsp&nbspVolver&nbsp&nbsp&nbsp&nbsp</button><br><br><br>
          </div>
          <div id="div_captcha_ingreso" data-size="invisible"></div>
        </form>
      </div>
    </div>
  </body>
  <script type="text/javascript" src="/js/varios/jquery.js"></script>
   <script type="text/javascript" src="/js/varios/jquery.validate.js"></script>
   <script type="text/javascript" src="/js/varios/jbootstrap.min.js"></script>
   <script type="text/javascript" src="/js/varios/jfunciones_comunes.js"></script>
   <script type="text/javascript" src="/js/varios/jquery.blockUI.js"></script>
   <script type="text/javascript" src="/js/login/cuentaRecuperar.js?p=<?php echo _Version;?>"></script>
   <script src='https://www.google.com/recaptcha/api.js?onload=onLoad&render=explicit" async defer'></script>
</html><?php
require_once($_SERVER['DOCUMENT_ROOT'].'/varios/modal/modal_mensaje.php');
?>