-
".$film["tittle"]."
+
".str_replace('_', ' ',$film["tittle"])."
".$film["description"]."
@@ -80,7 +82,7 @@ class FormSession extends Form {
";
}
- $htmlform .= '
Seleccionar una Pelicula
+ $htmlform .= '
';
return $htmlform;
diff --git a/panel_manager/includes/processForm.php b/panel_manager/includes/processForm.php
index 157457c..f818d41 100644
--- a/panel_manager/includes/processForm.php
+++ b/panel_manager/includes/processForm.php
@@ -44,11 +44,15 @@
,"price" => $_POST["price"],"format" => $_POST["format"],"repeat" => $_POST["repeat"], "cinema" => $_SESSION["cinema"]);
FormSession::processesForm($data);
}
-
+
if(isset($_POST['edit_session'])){
$data = array("option" => "edit_session","film" => $_POST["film"],"hall" => $_POST["hall"],"date" => $_POST["date"],"start" => $_POST["start"]
,"price" => $_POST["price"],"format" => $_POST["format"],"repeat" => $_POST["repeat"], "cinema" => $_SESSION["cinema"]
- , "origin_hall"=> $_POST["origin_hall"],"origin_date"=> $_POST["origin_date"],"origin_start"=> $_POST["origin_start"]);
+ , "origin_hall"=>$_SESSION["or_hall"],"origin_date"=> $_SESSION["or_date"],"origin_start"=> $_SESSION["or_start"]);
+
+ $_SESSION["or_hall"] = "";
+ $_SESSION["or_date"] = "";
+ $_SESSION["or_start"] = "";
FormSession::processesForm($data);
}
diff --git a/panel_manager/index.php b/panel_manager/index.php
index f2e217b..c9de885 100644
--- a/panel_manager/index.php
+++ b/panel_manager/index.php
@@ -5,9 +5,15 @@
require_once('../assets/php/config.php');
//Controller file:
include_once('panel_manager.php');
+ //Manager data:
+ include_once('../assets/php/common/manager.php');
+ include_once('../assets/php/common/user.php');
if($_SESSION["login"] && $_SESSION["rol"] === "manager"){
- $_SESSION["cinema"] = "1";
+
+ if(!$_SESSION["cinema"])
+ $_SESSION["cinema"] = Manager::getManager(unserialize($_SESSION['user'])->getId())->getIdcinema();
+
switch($_GET["state"]){
case "view_ruser":
case "view_user":
@@ -65,7 +71,7 @@
CompluCine - FDI-cines
-->
-
+
print_head();
diff --git a/panel_manager/panel_manager.php b/panel_manager/panel_manager.php
index f49790d..a5cf736 100644
--- a/panel_manager/panel_manager.php
+++ b/panel_manager/panel_manager.php
@@ -11,11 +11,13 @@
static function welcome(){
$name = strtoupper($_SESSION['nombre']);
+ $cinema = strtoupper($_SESSION['cinema']);
$panel = '
Bienvenido '.$name.' a tu Panel de Manager.
Usuario: '.$name.'
+
Cine: '.$cinema.'
Espero que estes pasando un buen dia
'."\n";
@@ -138,7 +140,6 @@
'. str_replace('_', ' ', Session::getThisSessionFilm($session->getIdfilm())["tittle"]) .' |
'.$session->getFormat().' |
'.$session->getSeatPrice().' |
-
|