state = $panel; $this->login= $login; } function showPanel($template) { if($this->login){ switch($this->state) { case 'mc': require_once('manage_cinemas.php'); if(isset($_POST['edit_cinema'])) { editCinema(); } else if(isset($_POST['delete_cinema'])) { deleteCinema(); } else if(isset($_POST['add_cinema'])) { confirmAdd(); } else if(isset($_POST['confirm_delete_cinema'])) { confirmDelete(); } else if(isset($_POST['confirm_edit_cinema'])) { confirmEdit(); } else { addCinema(); $template->print_cinemas(); }; break; case 'mf': require_once('manage_films.php'); if(isset($_POST['edit_film'])) { editFilm(); } else if(isset($_POST['delete_film'])) { deleteFilm(); } else if(isset($_POST['add_film'])) { confirmAdd(); } else if(isset($_POST['confirm_delete_film'])) { confirmDelete(); } else if(isset($_POST['confirm_edit_film'])) { confirmEdit(); } else { addFilm(); $template->print_fimls(); }; break; case 'md': /*require_once('manage_discounts.php')*/;echo"

En construcción

"; break; case 'mm': /*require_once('manage_managers.php')*/;echo"

En construcción

"; break; case 'un': echo"

En construcción

"; break; case 'ur': echo"

En construcción

";; break; case 'ag': echo"

En construcción

";; break; default: echo "

BIENVENIDO AL PANEL DE ADMINISTRADOR

"; break; } } else { echo "

NO TIENES PERMISOS DE ADMINISTRADOR

"; } } function getTemplate(){ return $this->template; } } ?>