ver como gerente
This commit is contained in:
parent
91d001f29d
commit
0bafdb106a
@ -8,8 +8,10 @@
|
||||
require_once('../assets/php/includes/user.php');
|
||||
|
||||
if($_SESSION["login"] && $_SESSION["lastRol"] === "admin" && $_SESSION["rol"] === "manager") {
|
||||
$manager = false;
|
||||
$manager = new Manager(null, null, null, null, null);
|
||||
if(isset($_POST['changecinema']))$_SESSION['cinema'] = $_POST['cinema'];
|
||||
if(!is_null($_SESSION['cinema'])) $manager->setIdcinema($_SESSION['cinema']);
|
||||
|
||||
|
||||
|
||||
$state = isset($_GET['state']) ? $_GET['state'] : '';
|
||||
|
@ -40,12 +40,9 @@
|
||||
static function welcomeAdmin($manager) {
|
||||
$cinemaList = new Cinema_DAO('complucine');
|
||||
$cinemas = $cinemaList->allCinemaData();
|
||||
$cinema = 1;
|
||||
$cinema;
|
||||
|
||||
$name = strtoupper($_SESSION["nombre"]);
|
||||
if(isset($_POST['change'])){
|
||||
$manager->setIdcinema($_POST['cinema']);
|
||||
}
|
||||
|
||||
if($manager->getIdcinema() != null) $cinema = strtoupper( $manager->getIdcinema());
|
||||
|
||||
@ -67,7 +64,7 @@
|
||||
";
|
||||
}
|
||||
}
|
||||
$panel .= ' <input type="submit" name="change" value="Cambiar" /><br>
|
||||
$panel .= ' <input type="submit" name="changecinema" value="Cambiar" /><br>
|
||||
</select>
|
||||
</form>
|
||||
</div>';
|
||||
|
Loading…
Reference in New Issue
Block a user