diff --git a/panel_admin/index.php b/panel_admin/index.php index 7d813d1..1da8328 100644 --- a/panel_admin/index.php +++ b/panel_admin/index.php @@ -16,8 +16,19 @@ $reply=AdminPanel::deleteCinema(); } else { - $reply=AdminPanel::addCinema(); - $reply.= ($template->print_cinemas()); + if(isset($_GET["cinema"])){ + // $reply = AdminPanel::showHalls($_GET["cinema"]); + /* if(isset($_GET["number"])) { + $reply = AdminPanel::showHalls($_GET["cinema"], $_GET["number"]); + } + else { */ + $reply = AdminPanel::showHalls($_GET["cinema"]); + //} + } + else { + $reply=AdminPanel::addCinema(); + $reply.= ($template->print_cinemas()); + } }; break; case 'mf': if(isset($_POST['edit_film'])) { diff --git a/panel_admin/panelAdmin.php b/panel_admin/panelAdmin.php index 7e63596..ce44cdb 100644 --- a/panel_admin/panelAdmin.php +++ b/panel_admin/panelAdmin.php @@ -86,6 +86,102 @@ '."\n"; } + static function showHalls($idCinema) { + include_once('../assets/php/includes/hall.php'); + include_once('../assets/php/includes/hall_dao.php'); + $panel = '
+