Add files via upload
This commit is contained in:
@ -1,18 +1,22 @@
|
||||
<?php
|
||||
class Panel {
|
||||
public $state;
|
||||
public $login;
|
||||
private $state;
|
||||
private $login;
|
||||
|
||||
function __construct($panel, $login){
|
||||
$this->state = $panel;
|
||||
$this->login= $login;
|
||||
}
|
||||
|
||||
function showPanel() {
|
||||
function showPanel($template) {
|
||||
if($this->login){
|
||||
switch($this->state) {
|
||||
case 'uf': require_once('updateFilm.php');break;
|
||||
case 'uf': require_once('updateFilm.php'); break;
|
||||
case 'mc': /*require_once('manage_cinemas.php')*/;echo"<h1>En construcción</h1>"; break;
|
||||
case 'mf': require_once('manage_films.php'); break;
|
||||
case 'mf': require_once('manage_films.php');
|
||||
addFilm();
|
||||
$template->print_fimls();
|
||||
break;
|
||||
case 'md': /*require_once('manage_discounts.php')*/;echo"<h1>En construcción</h1>"; break;
|
||||
case 'mm': /*require_once('manage_managers.php')*/;echo"<h1>En construcción</h1>"; break;
|
||||
case 'un': echo"<h1>En construcción</h1>"; break;
|
||||
@ -25,6 +29,10 @@
|
||||
echo "<h1>NO TIENES PERMISOS DE ADMINISTRADOR</h1>";
|
||||
}
|
||||
}
|
||||
|
||||
function getTemplate(){
|
||||
return $this->template;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user