Add files via upload

This commit is contained in:
Markines16
2021-05-13 14:06:07 +02:00
committed by GitHub
parent 2925084c7c
commit d2c4fdd77f
3 changed files with 17 additions and 30 deletions

View File

@ -30,7 +30,6 @@
if($bd ) {
return $bd->getAllSessions($hall, $cinema, $date);
}
return "";
}
public static function create_session($cinema, $hall, $start, $date, $film, $price, $format,$repeat){
@ -59,10 +58,12 @@
$bd = new SessionDAO('complucine');
if($bd ){
if($bd->searchSession($cinema, $or_hall, $or_start, $or_date)){
$origin = array("cinema" => $cinema,"hall" => $or_hall,"start" => $or_start,"date" => $or_date);
$bd->editSession($film, $hall, $cinema, $date,
$start, $price, $format,$origin);
return "Se ha editado la session con exito";
if(!$bd->searchSession($cinema,$hall,$start,$date)){
$origin = array("cinema" => $cinema,"hall" => $or_hall,"start" => $or_start,"date" => $or_date);
$bd->editSession($film, $hall, $cinema, $date, $start, $price, $format,$origin);
return "Se ha editado la session con exito";
}else
return "Ya existe una sesion con los parametros nuevos";
} else
return "Esta session no existe";
@ -87,23 +88,6 @@
if($bd ) {
return $bd->filmTittle($idfilm);
}
return "";
}
public static function getThisSessionId($cinema, $hall, $start, $date){
$bd = new SessionDAO('complucine');
if($bd ) {
return $bd->searchSession($cinema, $hall, $start, $date);
}
return "";
}
public static function getThisSessionFromId($id){
$bd = new SessionDAO('complucine');
if($bd ) {
return $bd->sessionData($id);
}
return "";
}
public function setId($id){ $this->_id = $id; }