SW/panel_admin/panelAdmin.php

22 lines
668 B
PHP
Raw Normal View History

2021-03-26 15:08:47 +01:00
<?php
class Panel {
public $state;
function __construct($panel){
$this->state = $panel;
}
function showPanel() {
switch($this->state) {
2021-04-13 22:29:25 +02:00
case 'uf': require('updateFilm.php');break;
2021-03-26 15:08:47 +01:00
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;
}
}
}
?>