This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tabla; | |
//Función que se ejecuta al inicio | |
function init(){ | |
mostrarform(false); | |
listar(); | |
$("#formulario").on("submit",function(e) | |
{ | |
guardaryeditar(e); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Activamos el almacenamiento en el buffer | |
ob_start(); | |
session_start(); | |
if (!isset($_SESSION["nombre"])) | |
{ | |
header("Location: login.html"); | |
} | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Incluímos inicialmente la conexión a la base de datos | |
require "../config/Conexion.php"; | |
Class Articulo | |
{ | |
//Implementamos nuestro constructor | |
public function __construct() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ob_start(); | |
if (strlen(session_id()) < 1){ | |
session_start();//Validamos si existe o no la sesión | |
} | |
if (!isset($_SESSION["nombre"])) | |
{ | |
header("Location: ../vistas/login.html");//Validamos el acceso solo a los usuarios logueados al sistema. | |
} | |
else |