function setUserSistema() { $filescripts = array(); $usuariosModel = new usuariosModel(); $result = $usuariosModel->setUserSistema($_POST['txtNombre'], $_POST['txtContrasenna'], $_POST['txtContrasennaAdmin'], $_POST['txtCorreo']); include_once 'view/head.php'; echo '<div class="page-content-wrapper"><div class="page-content">'; if ($result) { echo "<div class='alert alert-success'><i class='fa fa-thumbs-o-up'></i>DATOS GUARDADOS CON ÉXITO</div>\n\t\t\t\t<div class='alert alert-info'><i class='fa fa-spinner fa-spin'></i>Redireccionando</div>"; echo "<script> window.setTimeout(function(){window.location.assign('" . PATH_SITE . "admin/board')},2000); </script>"; } else { echo "<div class='alert alert-danger'><i class='fa fa-thumbs-o-down'></i>ERROR AL GUARDAR DATOS</div>\n\t\t\t\t<div class='alert alert-info'><i class='fa fa-spinner fa-spin'></i>Redireccionando</div>"; echo "<script> window.setTimeout(function(){window.location.assign('" . PATH_SITE . "admin/NuevoUsuario')},2000); </script>"; } echo "</div></div>"; include_once 'view/footer.php'; }