Datos

Horario

'; if($film){ if($data['option'] == "new_session") $htmlform .= '

'; if($data['option'] == "edit_session"){ if(!$_SESSION["or_hall"]) $_SESSION["or_hall"] = $hall; if(!$_SESSION["or_date"]) $_SESSION["or_date"] = $date; if(!$_SESSION["or_start"])$_SESSION["or_start"] = $start; $htmlform .= '

'; } } $htmlform .= "
"; if($film["tittle"]){ $htmlform .= "
".$film["tittle"]."

".str_replace('_', ' ',$film["tittle"])."


".$film["description"]."

Duración: ".$film["duration"]." minutos

"; } $htmlform .= '
'; return $htmlform; } //Methods: //Process form: public static function processesForm($data){ if($data["option"] == "new_session"){ $_SESSION['msg'] = Session::create_session($data); header( "Location: ../?state=success" ); }else if($data["option"] == "edit_session"){ $_SESSION['msg'] = Session::edit_session($data); header( "Location: ../?state=success" ); } else if($data["option"] == "delete_session") { $_SESSION['msg'] = Session::delete_session($data); header( "Location: ../?state=success" ); } } } ?>