diff --git a/panel_admin/index.php b/panel_admin/index.php index 91ecd82..3ad1eea 100644 --- a/panel_admin/index.php +++ b/panel_admin/index.php @@ -1,12 +1,20 @@ -
- - +
+
+ showPanel(); + ?> +
+
+
- print_footer(); ?> - diff --git a/panel_admin/panelAdmin.php b/panel_admin/panelAdmin.php new file mode 100644 index 0000000..c23ee65 --- /dev/null +++ b/panel_admin/panelAdmin.php @@ -0,0 +1,20 @@ +state = $panel; + } + + function showPanel() { + switch($this->state) { + 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 "

BIENVENIDO AL PANEL DE ADMINISTRADOR

"; break; + } + } + } +?> +