<?php
session_start();

if(isset($_COOKIE['persistID']))
{
    $userid = $_COOKIE['persistID'];
   $_SESSION['user'] = $userid;
}

if($_GET['logout'] == 1){
	$_SESSION['user'] = NULL;
    $_SESSION['rol'] = NULL;
}

if($userid != ''){
	//header("Location: dashboard");
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>ADMINISTRADOR DE CONTENIDO</title>
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <meta content="" name="keywords">
  <meta content="" name="description">

  <!-- Favicons -->
  <link href="view-source:https://trafikatest.com/indeval/assets/img/favicon.ico" rel="icon">
  <link href="view-source:https://trafikatest.com/indeval/assets/img/favicon.ico" rel="apple-touch-icon">

  <!-- Google Fonts -->
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;500;700&display=swap" rel="stylesheet">
  <link href="vendor/css/fontawesome/css/all.css" rel="stylesheet"> <!--load all styles -->

  <!-- Bootstrap CSS File -->
  <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

  <!-- Vendor CSS Files -->
  <link href="vendor/icofont/icofont.min.css" rel="stylesheet">
  <link href="vendor/line-awesome/css/line-awesome.min.css" rel="stylesheet">
  <link href="vendor/aos/aos.css" rel="stylesheet">
  <link href="vendor/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="https://www.jerrylow.com/basictable/demo/css/style.css" />
  <link rel="stylesheet" type="text/css" href="https://www.jerrylow.com/basictable/basictable.css" />
  <link rel="stylesheet" type="text/css" href="vendor/css/balloon.css" />
  <link rel="stylesheet" href="vendor/time/theme/jquery.timeselector.css">

  <!-- Main CSS File -->
  <link href="vendor/css/style.css" rel="stylesheet">

  <style>
  table th {
    /* background: #fd9827; */
    color: #ffffff;
    text-transform: uppercase;
    background: linear-gradient(-45deg, #fd9827, #ffc56b);
  }
.hero-section {
	background: linear-gradient(to right, rgba(0,0, 0,.5) 0%, rgba(0, 0, 0, 0.9) 100%), url(https://indeval-webdocs-publico-01122020.s3.amazonaws.com/img/inicio/bmv.jpg);
	position: relative;
  background-size:cover;
}
h1 {
  text-transform: none;
}
.hero-section.inner-page {
	min-height: 250px !important;
}
.hero-section.inner-page {
	height: 250px;
	min-height: 0;
}
table.two-axis tr td:first-of-type {
	background: #d5e0cf;
}
table tr td {
	background: #fff6dc;
	color: #222;
}
body {
	background: #fff;
  font-family: "Montserrat", sans-serif;
}
h1, h2, h3, h4, h5, h6, .font-heading {
	color: #000;
	font-family: "Montserrat", sans-serif;
}
.hero-section.inner-page {
	height: auto;
	min-height: 0;
}



.site-section {
	padding: 2rem 0;
}
.ui-datepicker .ui-datepicker-header {
	position: relative;
	padding: .2em 0;
	background:  #fd9827;
	color: #fff;
}
#ui-datepicker-div{
	font-size: 100%;
	font-family: inherit;
	opacity:.98;
}
.containertable {
	width: 100%;
	max-width: 100%;
	padding: 0 5%;
}
.imgbarc {
	width: 100%;
	cursor: pointer;
	padding: 10px;
	max-width: 50px;
	display: inline-block;
}
#btndates, #btnexcel {
	/* border-radius: 5px; */
	height: 45px;
	max-width: 45px;
	float: left;
	margin-bottom: 0;
	margin-top: 0px;
	margin-right: 25px;
	font-size: 20px;
	padding: 7.5px !important;
	border-radius: 50%;
}
table tr, table th, table td {
	font-family: inherit;
	text-align: center;
	font-size: 85%;
}
.sinresultados {
	text-align: center;
	width: 100%;
}
.sinresultados img {
	max-width: 150px;
}

table .fas, table .far {
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 20px;
	color: #fd9827;
	cursor: pointer;
	transition: .35s all ease;
	margin: 0 10px;
}
table .fas:hover, table .far:hover {
	transition: .35s all ease;
	transform: scale(1.1);
}
.imglogout {
	vertical-align: middle;
	width: 30px;
	margin-right: 10px;
  filter: invert(48%) sepia(79%) saturate(0%) hue-rotate(86deg) brightness(200%) contrast(119%);
  transition:.35s all ease;
}
#loadpopAbono, #popUpStatus {
	padding-bottom: 40px;
}
#loadpopAbono p {
	font-size: 15px;
}
header .container {
	max-width: 90%;
}
.mb-0.site-logo img {
	height: 50px;
	padding: 0;
	margin-top: -12.5px;
}
.site-navbar .site-logo {
	min-height: 70px;
}
.site-logo {
  opacity: 0;
  transition:.35s all ease;
}
.sticky-wrapper.is-sticky .imglogout{
  filter:none;
  transition:.35s all ease;
}
.sticky-wrapper.is-sticky .site-navbar.shrink .site-logo {
  opacity: 1;
  transition:.35s all ease;
}
.php-email-form .mensajeurl {
	display: none;
	color: #222;
	background: #fff;
	text-align: center;
	padding: 15px;
	font-weight: 400;
	border: 2px solid #18d26e;
	margin-top: 10px;
	font-size: 14px;
}
.php-email-form .mensajeurl span {
	margin-top: 10px;
	display: inline-block;
	color: #1d6d96;
	font-weight: 600;
	cursor: pointer;
}
#copiado {
	display: none;
	font-size: 13px;
	padding: 10px;
	color: #289a5d;
}
.far.fa-clock {
	color: #b3b3b3;
}
.tipo {
	color: #fd9827;
	font-weight: bold;
	font-size: 12px;
}
.rol {
	font-size: 11px;
	color: #222;
}
.items img {
	max-width: 50px;
	vertical-align: middle;
	padding-right: 5px;
}
.popUp, .popUpAbono, .popUpDate, .popUpExcel, .popUpStatus, .popUpEdit, .popUpHorarios, .popUpOpciones {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	z-index: 999;
	background: rgba(0,0,0,.65);
	display: none;
	text-align: center;
	overflow:auto;
}
.pocont {
	display: inline-block;
	background: #fff;
	width: 95%;
	height: auto;
	position: relative;
	margin: 1% auto;
	padding: 20px;
	border-radius: 20px;
	max-width: 800px;
}
.closepop {
	width: 22px;
	height: 22px;
	background: url(img/multiply.svg);
	background-size: 100%;
	float: right;
	cursor: pointer;
	margin: 0px;
}
.printpop {
	width: 26px;
	height: 26px;
	background: url(printer.png);
	background-size: 100%;
	float: left;
	cursor: pointer;
	margin: 10px;
	position: absolute;
	right: 5px;
	top: 50px;
}
.pocont p {
	margin: 0 !important;
	padding: 3px;
	font-size: 11px;
}
.popUpExcel h2 {
    font-size: 17.5px;
    padding: 10px;
}
#fecha1, #fecha2 {
	background-image: url(/img/navidad/calendario.svg);
	background-size: 20px;
	background-repeat: no-repeat;
	background-position: 95% 50%;
	margin: 10px;
	border: 2px solid #f18007;
	min-height: 40px;
	padding: 10px;
}
* {
	box-sizing: border-box;
}
#eventodiv p {
	margin: 6px 0;
}
#totalabonado {
	height: 40px;
	width: 60%;
	padding: 5px 10px;
}
.popUpDate .pocont, .popUpExcel .pocont {
	padding-bottom: 50px;
}
.btnabono, .filtrarfecha {
	display: inline-block;
	width: 60%;
  background: #fd9827;
  background:linear-gradient(-45deg, #fd9827, #ffc56b);
	padding: 7.5px;
	margin-top: 10px;
	color: #fff !important;
	cursor: pointer;
	border-radius: 4px;
}
.btn.btn-primary {
  background: #fd9827;
  background:linear-gradient(-45deg, #fd9827, #ffc56b);
}
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
  background: #fd9827;
  background:linear-gradient(-45deg, #fd9827, #ffc56b);
  border-color: #b33a2d;
}
.marked-text {
    background: #ffec02;
    padding: 1px 2px;
}
.imgabono {
	width: 25px;
  margin-left: 10px;
  cursor:pointer;
}
#respuestaabono {
	padding: 10px 0;
	font-size: 14px;
	font-weight: bold;
}
#respuestastatus {
	font-weight: bold;
	color: #535353;
}

.statusenespera {
	color: #26a1de;
	font-weight: bold;
	background: url(img/hourglass.svg);
	background-size: 20px;
	background-repeat: no-repeat;
	background-position: left center;
	min-height: 30px;
	display: inline-block;
	text-align: left;
	line-height: 1.1;
	padding: 10px;
	padding-left: 30px;
}
.statusentregado {
	color: #05AD00;
	font-weight: bold;
	padding: 10px;
	padding-left: 30px;
	background: url(img/check.svg);
	background-size: 20px;
	background-repeat: no-repeat;
	background-position: left;
	min-height: 30px;
	display: inline-block;
	text-align: left;
	line-height: 1.1;
}
.statuscancelado {
	color: #f40000;
	font-weight: bold;
	padding: 10px;
	padding-left: 30px;
	background: url(img/prohibition.svg);
	background-size: 20px;
	background-repeat: no-repeat;
	background-position: left;
	min-height: 30px;
	display: inline-block;
	text-align: left;
	line-height: 1.1;
}
.pocont h3 {
	font-weight: bold;
}
.statusicon {
	width: 46%;
	float: left;
	background: #f4f4f4;
	border-radius: 10px;
	margin: 1.6666%;
	padding: 20px;
	/* border: 1px solid #ccc; */
	box-shadow: 1px 2px 10px #e1e1e1;
  cursor:pointer;
}

.formprod {
	width: 100%;
	float: none;
	max-width: 400px;
	margin: 0 auto;
}
.formprod input, .formprod textarea {
	width: 100%;
	float: left;
	margin: 0 0 15px;
	min-height: 50px;
	border-radius: 0;
	border: 0;
	font-size: 15px;
	padding: 5px 5px 0;
	background: rgba(255, 255, 255, 0.95);
	color: #111;
	font-weight: 500;
	border-bottom: 2px solid #fff;
}
.imgprod {
	width: 130px;
	padding-top:15px;
}

#guardarprod, #guardarhorarios, #guardarmod {
	/* background: #94b300; */
	color: #fff;
	float: none;
	width: 100%;
	padding: 10px;
	border-radius: 10px;
	margin: 10px 0;
	font-weight: bold;
	max-width: 100%;
	display: inline-block;
	cursor: pointer;
	transition: .35s all ease;
	background: linear-gradient(-45deg, #2b4365, #3AF83A);
}
#guardarprod:hover {
	background: #333;
    transition:.35s all ease;
	color: #fff;
}
.imagendiv {
	float: none;
	width: 190px;
	position: relative;
	padding: 0 5%;
	margin-bottom: 2.5px;
	margin-top: 10px;
}
.image-upload>input {
  display: none;
}
.image-upload {
	width: auto;
	display: inline-block;
	position: absolute;
	left: 120px;
	top: -10px;
}
#descprod {
	height: 100px;
}
.image-upload img {
	width: 30px;
	cursor: pointer;
	transition: .35s all ease;
}
.image-upload img:hover {
	transition:.35s all ease;
    transform: scale(1.1);
}

.formgroup {
	width: 100%;
	float: left;
	text-align: left;
	font-weight: 500;
	color: #222;
	font-size: 12px;
	padding: 5px;
}
.formgroup.peq {
	width: 100%;
	float: right;
}
.formprod select {
	height: 40px;
	font-size: 13px;
	border-radius: 8px;
	border: 1px solid #ccc;
}
.formgroup.imgcont label {
	width: auto;
	position: relative;
	z-index: 1;
}
.addnew {
	float: right;
	margin-top: 20px;
	text-align: left;
	font-size: 14px;
	background: #72af00;
    background: linear-gradient(-45deg, #72af00, #72af00);
	border-radius: 10px;
	color: #fff;
	line-height: 1.2;
	padding-top: 0;
	cursor: pointer;
	padding: 0 20px 15px 10px;
    transition:.35s all ease;
}
.addnew:hover {
	background: linear-gradient(-45deg, #fd9827, #ffc56b);
    transition:.35s all ease;
}
#btneadd {
	padding: 10px;
	height: 30px;
	display: inline-block;
	font-size: 20px;
}
.formgroup.imgcont {
	padding: 5px 10px;
}
p.discimg {
	font-size: 9px;
	text-align: left;
	color: #ccc;
	padding: 0 !important;
	width: 100%;
	float: left;
	margin: 0 !important;
}
.imagendiv .image-upload label {
	background: #dae6ea;
	border-radius: 50%;
	padding: 10px;
	box-shadow: 1px 3px 10px #ccc;
	border: 3px solid #00b594;
}
.waiterror {
	color: red;
	font-weight: bold;
}
.formprod .inputerror {
	border: 2px solid #fd9797;
	border-radius: 8px;
}
#formhorarios .formgroup h4 {
	margin: 0;
	padding: 0;
	font-weight: bold;
	font-size: 15px;
	padding-top: 10px;
	text-align: left;
	width: 50%;
	padding-left: 10px;
	float: left;
}
.inicio, .fin {
	width: 50%;
	float: left;
	padding: 0 7.55px 20px;
}
#formhorarios .formgroup {
	width: 30%;
	float: left;
	text-align: left;
	font-weight: 500;
	color: #222;
	font-size: 12px;
	padding: 5px;
	border-radius: 16px;
	background: #eaeaea;
	margin: 1.33%;
}
.switch_box {
	display: inline-block;
	max-width: 50px;
	min-width: 50px;
	height: auto;
	float: none;
	display: inline-block;
}
/* Switch 1 Specific Styles Start */

.disableday {
	background: #f5e0e0 !important;
}
.disableday .inicio, .disableday .fin {
	pointer-events: none;
	opacity: .6;
}

input[type="checkbox"].switch_1 {
	font-size: 22px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 50px;
	height: 25px;
	background: #ddd;
	border-radius: 20px;
	position: relative;
	cursor: pointer;
	outline: none;
	-webkit-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
	min-height: 20px;
}
  input[type="checkbox"].switch_1:checked{
	background: #72ac42;
  }
  input[type="checkbox"].switch_1::after {
	position: absolute;
	content: "";
	width: 33px;
	height: 33px;
	border-radius: 50%;
	background: #fff;
	-webkit-box-shadow: 0 0 .25em rgba(0,0,0,.3);
	box-shadow: 0 0 .25em rgba(0,0,0,.3);
	-webkit-transform: scale(.7);
	transform: scale(.7);
	left: -4.5px;
	-webkit-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
	top: -5px;
}
input[type="checkbox"].switch_1:checked::after {
	left: 20px;
}
	
/* Switch 1 Specific Style End */


.switch {
	width: 50%;
	float: left;
	padding-top: 10px;
	text-align: right;
	padding-right: 10px;
	font-weight: 500;
	font-size: 11px;
}
.switch p {
	font-weight: 500;
	font-size: 11px;
	width: auto;
	float: none;
	/* text-align: right; */
	display: inline-block;
	padding: 5px;
	padding-right: 10px;
	transform: translateY(-7.5px);
}
.popUpHorarios .pocont {
	max-width: 1200px;
}
.fullcont {
	width: 100%;
	float: left;
	padding: 10px;
}
.fullcont #guardarprod {
	max-width: 500px;
}
.timeselector {
	width: 120px;
}
.timeselector-item {
	width: 53.50px;
}
.timeselector-button {
	background: #fff;
	padding: 7px 7px;
}
#respuestadelete {
	width: 100%;
	position: fixed;
	bottom: -250px;
	left: 0;
	text-align: center;
	background: rgba(4, 64, 61, 0.9);
	padding: 20px 20px 10px;
	z-index: 9999;
	box-shadow: 1px 3px 14px #ccc;
	transition: 1s all ease;
}
#respuestadelete.openresp {
	bottom: 0px;
    transition:1s all ease;
}
#listamods {
	width: 100%;
	float: left;
	padding: 15px;
	border-radius: 16px;
	background: #f8f8f8;
	margin-top: 20px;
}
#listamods .platillo {
	width: 22%;
	float: left;
	border-radius: 8px;
	background: #e3e3e3;
	margin: 0 1.5% 30px;
	padding: 10px 10px 15px;
	color: #000;
	font-weight: bold;
	font-size: 15px;
	box-shadow: 1px 2px 8px #d2d2d2;
	border: 1px solid #e2e2e2;
}
.borrabtn {
	cursor: pointer;
}
#listamods .platillo p {
	font-weight: 500;
	font-size: 12px;
	padding: 10px;
	margin: 0;
	padding-top: 0;
    padding: 10px;
}
#addmodcont {
	width: 100%;
	float: left;
	padding: 10px;
	color: #222;
	font-weight: 500;
}
#listamods .borrabtn {
	position: absolute;
	right: 0;
	background: #fff;
	padding: 2.5px;
	border-radius: 50%;
	box-shadow: 1px 2px 6px #ccc;
	bottom: -8px;
	width: 30px;
	height: 30px;
}
#listamods .platillo {
	position: relative;
}
/*RESPONSIVE */

@media (max-width:780px){
  .col-md-6.aos-init.aos-animate {
    text-align: center;
    padding: 10px;
  }
  #btnnofiltrar {
    float: none !important;
  }
  table tr, table th, table td {
	text-align: left;
}
table.bt tbody td::before {
	width: 40%;
}
table.bt tbody td .bt-content {
	line-height: 1.5;
}
.bt-content p {
	margin-bottom: 0;
}
}

.imgproducto{
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid #fea439;
    object-fit: cover;
}
.formprod label {
	width: auto;
	margin: 0;
	margin-top: 5px;
	transform: translateY(10px);
	background: #fff;
	font-size: 10px;
	padding: 2.5px;
	border-radius: 8px;
	/* border-bottom: 1px solid #f0f0f0; */
	float: left;
	color:#2b4365;
	font-weight: bold;
	display:none;
}
#respuestauser, #respuestapass {
	width:100%;
    float:left;
}
#respuestauser p, #respuestapass p, #respuestacaptcha p {
	color: #fa5555;
	font-size: 11px;
	font-weight: 500;
}
#respuesta p {
	font-size: 12px;
	padding: 10px;
}
@media (max-width:600px){
  .imgbarc {
        width: 50px;
        padding: 0 10px;
        object-position: 10%;
    }
    .statusicon {
        width: 100%;
        margin-bottom: 10px;
    }
    .formgroup {
        width: 100%;
    }
    .formgroup.imgcont label {
        width: 100%;
        padding-bottom: 10px;
        /* text-align: center; */
    }
    .formprod label {
        margin: 0;
        margin-top: 0;
    }
}

table.two-axis tr td:first-of-type, table.two-axis tr:nth-of-type(2n+2) td:first-of-type, table.two-axis tr td:first-of-type::before {
	background: #fd9827;
	color: #ffffff;
	background: linear-gradient(-45deg, #fd9827, #ffc56b);
}
table.bt tbody td::before {
    background: #fd9827;
}

.openpaylogohead{
  width:100px;
  padding:0 5px;
}
h4 {
	padding: 20px;
	width: 100%;
	text-align: center;
	font-size: 17.5px;
}
.popUpExcel .pocont {
    max-width: 500px;
    padding: 40px;
}
.popUpExcel .btn {
    margin: 15px 0;
}
i.fas.fa-file-download {
    position: absolute;
    left: 25px;
    font-size: 20px;
}
a.btn.btn-primary.w-100 {
    position: relative;
}
.logoadmin {
    padding: 30px;
    max-width: 300px;
    filter: brightness(11);
}
#resendcode {
	color: #fff;
	border: 1px solid #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
}
  </style>
</head>

<body>
    
  <div class="site-wrap">

    <div class="site-mobile-menu site-navbar-target">
      <div class="site-mobile-menu-header">
        <div class="site-mobile-menu-close mt-3">
          <span class="icon-close2 js-menu-toggle"></span>
        </div>
      </div>
      <div class="site-mobile-menu-body"></div>
    </div>


    <main id="main">
      <div class="hero-section inner-page">
        <div class="wave">
          
          <svg width="1920px" height="265px" viewBox="0 0 1920 265" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
              <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                  <g id="Apple-TV" transform="translate(0.000000, -402.000000)" fill="#FFFFFF">
                      <path d="M0,439.134243 C175.04074,464.89273 327.944386,477.771974 458.710937,477.771974 C654.860765,477.771974 870.645295,442.632362 1205.9828,410.192501 C1429.54114,388.565926 1667.54687,411.092417 1920,477.771974 L1920,667 L1017.15166,667 L0,667 L0,439.134243 Z" id="Path"></path>
                  </g>
              </g>
          </svg>

        </div>

        <div class="container">
          <div class="row align-items-center">
            <div class="col-12">
              <div class="row justify-content-center">
                <div class="col-md-12 text-center hero-text">
					<img class="logoadmin" src="https://trafikatest.com/indeval/assets/img/indeval_logo.svg">
                  
                  <p>Ingrese el código de acceso enviado al correo</p>
                  <p style="padding:10px; font-size:10px;">Si no encuentra el mensaje en su bandeja de entrada, verifique la bandeja de SPAM</p>

                  <form class="formprod" id="formmod" enctype='multipart/form-data' autocomplete="off">
            <input name="idprodmod" id="idprodmod" type="hidden" value="<?php echo $id; ?>">
            
            <div class="formgroup">
                <input name="user" type="text" id="user" placeholder="6 caracteres">
                <div id="respuestauser"></div>
            </div>

            <a id="guardarmod" onclick="login();">Entrar</a>

            <div id="respuesta"></div>

        </form> 

                </div>
              </div>
            </div>
          </div>
        </div>
        
      </div>
    </div>


    </main>
  </div> <!-- .site-wrap -->

  
  </div>

  

  <!-- Vendor JS Files -->
  <script src="vendor/jquery/jquery.min.js"></script>
  <script src="vendor/jquery/jquery-migrate.min.js"></script>
  <script src="vendor/bootstrap/js/bootstrap.min.js"></script>
  <script src="vendor/easing/easing.min.js"></script>
  <script src="vendor/sticky/sticky.js"></script>
  <script src="vendor/aos/aos.js"></script>
  <script src="vendor/owlcarousel/owl.carousel.min.js"></script>
  
  <link rel="stylesheet" href="https://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" />
  <script src="https://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>
  <!-- Main JS File -->
  <script src="vendor/js/main.js"></script>


  <script>
  
  function login(){
        $('#respuesta').html("");
        $("#respuestauser").html("");
        $("#user").css("border-color", "#fff");
        $("#guardarmod").css("opacity", ".5");
        $("#guardarmod").css("pointer-events", "none");
        var code =$("#user").val();
        var  errores = false;
        if(code.length<6){
            $("#respuestauser").html("<p class='errormsg'>El código no es válido");
            $("#user").css("border-color", "#fa5555");
            setTimeout(() => {
                        $("#guardarmod").css("opacity", "1");
                        $("#guardarmod").css("pointer-events", "inherit");
                    }, 2000);
            errores = true;
        }

        if(errores == false){
            $.ajax({
                url : "doble-factor.php",
                type: "POST",
                data : "code="+code,
                success:function(data){
                    $('#respuesta').html(data);

                    setTimeout(() => {
                        $("#guardarmod").css("opacity", "1");
                        $("#guardarmod").css("pointer-events", "inherit");
                    }, 2000);
                }
            })
        }
        
    }
		
    function loginSuccess(){
        window.location.href = '/admin/paginas';
    }
    
    function resendCode(){
        $('#resendcoderespuesta').html("");
        $("#resendcode").css("opacity", ".5");
        $("#resendcode").css("pointer-events", "none");
        $.ajax({
            url : "reenviar-codigo.php",
            type: "POST",
            data : "user=<?php echo $userid;?>",
            success:function(data){
                $('#resendcoderespuesta').html(data);
            }
        })
    }
  </script>

  </body>
</html>
