Beispiel #1
0
 public function consultaN()
 {
     $obtenerpizza = new acceso();
     $obtener = $obtenerpizza->obtenerDatos("select * from notificacion");
     if ($obtener) {
         $this->datospizza = $obtenerpizza->getMostrarDatos();
         return true;
     } else {
         $this->setError($obtenerpizza->getError());
         return false;
     }
 }
Beispiel #2
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Sistema de Gestión</title>
<link href="../css/administracion.css" rel="stylesheet" type="text/css" />
</head>
<?php 
if ($_POST['ingresar']) {
    include_once "../controller/class_login.php";
    $login = new acceso();
    if ($login->valida_usuario($_POST['usuario'], $_POST['clave'])) {
        echo "<script>window.open('administracion.php','_self')</script>";
    } else {
        echo "<script>window.open('index.php?error=login','_self')</script>";
    }
}
if ($_GET['error'] == 'login') {
    $error_login = "******";
}
?>
<body onload="document.form1.usuario.focus()">
<form id="form1" name="form1" method="post" action="">
  <div align="center">
    <span class="texto_adm_negrita">Acceso a Sistema de Gestion Otic</span><br />
    <br />
	<?php 
include_once "properties/propiedades.php";
echo $LOGO_APP;
?>
    <table width="28%" border="0" cellspacing="2" cellpadding="2">
Beispiel #3
0
<?php

require_once "model/loginModel.php";
$objeto_login = new acceso();
if (isset($_POST["login"])) {
    $login = $objeto_login->login();
}
require_once "view/login.phtml";