print_cinemas()); }; break; case 'mf': if(isset($_POST['edit_film'])) { $reply=AdminPanel::editFilm(); } else if(isset($_POST['delete_film'])) { $reply=AdminPanel::deleteFilm(); } else { $reply=AdminPanel::addFilm(); $reply.= $template->print_fimls(); }; break; case 'mp': if(isset($_POST['edit_promotion'])) { $reply=AdminPanel::editPromotion(); } else if(isset($_POST['delete_promotion'])) { $reply=AdminPanel::deletePromotion(); } else { $reply=AdminPanel::addPromotion(); $reply.=AdminPanel::print_promotions(); }; break; case 'mg': if(isset($_POST['edit_manager'])) { $reply=AdminPanel::editManager(); } else if(isset($_POST['delete_manager'])) { $reply=AdminPanel::deleteManager(); } else if(isset($_POST['add_manager'])) { $reply=AdminPanel::addManager(); } else { $reply=AdminPanel::showAddBotton(); $reply.=AdminPanel::print_managers(); }; break; case 'un': $_SESSION["lastRol"] = $_SESSION["rol"]; //unset($_SESSION["rol"]); $_SESSION["rol"] = null; //header("Location: {$_SERVER['PHP_SELF']}"); $_SESSION['message'] = "
"; break; case 'ur': $_SESSION["lastRol"] = $_SESSION["rol"]; $_SESSION["rol"] = "user"; //header("Location: {$_SERVER['PHP_SELF']}"); $_SESSION['message'] = " "; break; case 'ag': $_SESSION["lastRol"] = $_SESSION["rol"]; $_SESSION["rol"] = "manager"; //header("Location: {$_SERVER['PHP_SELF']}"); $_SESSION['message'] = " "; break; default: $reply=AdminPanel:: panel(); break; } } else{ $reply =' '."\n"; } $section = '