SW/panel_admin/panelAdmin.php
Daniel Muñoz Garcia 5a5a99ad80
Complete functionality
Missing elements of design and security
2021-04-13 14:57:25 +02:00

23 lines
727 B
PHP

<?php
class Panel {
public $state;
function __construct($panel){
$this->state = $panel;
}
function showPanel() {
switch($this->state) {
case 'df': require('deleteFilm.php');break;
case 'ef': require('editFilm.php');break;
case 'mc': require('manage_cinemas.php'); break;
case 'mf': require('manage_films.php'); break;
case 'md': require('manage_discounts.php'); break;
case 'mm': require('manage_managers.php'); break;
default: echo "<h1>BIENVENIDO AL PANEL DE ADMINISTRADOR</h1>"; break;
}
}
}
?>