state = $panel;
$this->login = $log;
}
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(){
$data = array("option" => "new_hall", "cols" => $_POST["cols"], "rows" => $_POST["rows"]);
$panel = 'Crear una sala.
'. FormHall::generaCampoFormulario($data, null);
return $panel;
}
static function edit_hall(){
$panel = '
Editar una sala.
En desarrollo...
'."\n";
return $panel;
}
/*
static function manage_sessions(){
//Base filtering values
$date = isset($_POST['date']) ? $_POST['date'] : date("Y-m-d");
$hall = isset($_POST['hall']) ? $_POST['hall'] : "1";
//Session filter
$panel='
';
//Session list
$panel .='';
$sessions = Session::getListSessions($hall,$_SESSION["cinema"],$date);
if($sessions) {
$panel .='
';
} else {
$panel.='
No hay ninguna sesion
';
}
$panel.='
';
return $panel;
}
static function new_session(){
$data = array("option" => "new_session","hall" => $_POST['hall'],"cinema" => $_SESSION["cinema"],"date" => $_POST['date']);
$panel = 'Crear una sesión.
'.FormSession::generaCampoFormulario($data, null);
return $panel;
}
static function edit_session(){
/*$data = array("option" => "edit_session","hall" => $_POST["hall"],"cinema" => $_SESSION["cinema"],"date" => $_POST['date'],"film" => $_POST['film'],"start" => $_POST['start'],"price" => $_POST['price'],"format" => $_POST['format']);
$panel = 'Editar una sesión.
'.FormSession::generaCampoFormulario($data, null);
return $panel;
}*/
}
?>