diff --git a/panel_manager/index.php b/panel_manager/index.php
index 1b705cf..49d2e4d 100644
--- a/panel_manager/index.php
+++ b/panel_manager/index.php
@@ -1,13 +1,56 @@
+
+
+
Esta vista aun no esta implementada.
+
+
+ '."\n";
+ break;
+ case "manage_halls":
+ $panel = Manager_panel::manage_halls();
+ break;
+ case "new_hall":
+ $panel = Manager_panel::new_hall();
+ break;
+ case "edit_hall":
+ $panel = Manager_panel::edit_hall();
+ break;
+ case "manage_sessions":
+ $panel = Manager_panel::manage_sessions();
+ break;
+ case "success":
+ $panel = Manager_panel::success();
+ break;
+ default:
+ $panel = Manager_panel::welcome();
+ break;
+ }
+ }
+ else{
+ $panel = '
+
+
+
Debes iniciar sesión para ver el Panel de Manager.
+
Inicia Sesión en una cuenta con permisos.
+
+
+
+ '."\n";
+ }
?>
- showPanel(); ?>
+
diff --git a/panel_manager/panel_manager.php b/panel_manager/panel_manager.php
index c48f3b1..e393efb 100644
--- a/panel_manager/panel_manager.php
+++ b/panel_manager/panel_manager.php
@@ -1,7 +1,10 @@
state = $panel;
@@ -9,21 +12,91 @@
}
- function showPanel() {
- if($this->login){
- switch($this->state) {
- case 'us_u': echo " Esta vista no esta implementada
"; break;
- case 'us_r': echo " Esta vista no esta implementada
"; break;
- case 'rooms': require_once('manage_halls.php'); break;
- case 'sessions': require_once('manage_sessions.php'); break;
- case 'edit_session': require_once('edit_sessions.php'); break;
- case 'edit_hall': require_once('edit_halls.php'); break;
- default: require('hello_panel.php'); break;
- }
- }
- else{
- echo " Error no tienes los permisos necesarios de gerente
";
- }
+ static function welcome(){
+ $name = strtoupper($_SESSION['nombre']);
+
+ $panel = '
+
Bienvenido '.$name.' a tu Panel de Manager.
+
+
Usuario: '.$name.'
+
Espero que estes pasando un buen dia
+
'."\n";
+
+ return $panel;
+ }
+
+ static function success(){
+ $panel = '
+
Operacion completada.
+
+
'.$_SESSION['msg'].'
+
'."\n";
+ $_SESSION['msg'] = "";
+
+ return $panel;
+ }
+
+ static function manage_halls(){
+ $panel = '';
+ return $panel;
+ }
+ static function new_hall(){
+ $panel = '
+
+
Crear una sala.
+ '.
+ FormHall::generaCampoFormulario(null, null, "new");
+ '.
+
+ '."\n";
+
+ return $panel;
+ }
+
+ static function edit_hall(){
+ $panel = '
+
+
Editar una sala.
+
+ '."\n";
+
+ return $panel;
+ }
+
+ static function manage_sessions(){
+ $name = strtoupper($_SESSION['nombre']);
+
+ $panel = '
+
Bienvenido '.$name.' a tu Panel de Manager.
+
+
Usuario: '.$name.'
+
Espero que estes pasando un buen dia
+
'."\n";
+
+ return $panel;
}
}
?>
\ No newline at end of file