ver como gerente

This commit is contained in:
OscarRui
2021-06-01 12:30:28 +02:00
committed by GitHub
parent 91d001f29d
commit 0bafdb106a
2 changed files with 5 additions and 6 deletions

View File

@ -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>';