$observations = $observationsManager->getUserObs($email, $obstype); include '../views/obs_list_view.php'; break; case 'delete_observation': $observationsManager = new ObservationsManager(); $observationsManager->delete($target); header('Location: observation.php'); break; case 'add_observation': $obs = new plantObservation(); $_SESSION['obstype'] = PLANT; include '../views/obs_add_view.php'; break; case 'edit_observation': $observationsManager = new ObservationsManager(); $obs = $observationsManager->getObs($target); include '../views/obs_edit_view.php'; break; case 'save_observation': $arr = array(); $arr["oid"] = isset($_GET["oid"]) ? $_GET["oid"] : ''; $arr["observerName"] = isset($_GET["observerName"]) ? $_GET["observerName"] : ''; $arr["email"] = isset($_GET["email"]) ? $_GET["email"] : ''; $arr["observationDateTime"] = isset($_GET["obsDateTime"]) ? $_GET["obsDateTime"] : ''; $arr["weatherDesc"] = isset($_GET["weatherDesc"]) ? $_GET["weatherDesc"] : ''; $arr["currentTemp"] = isset($_GET["currentTemp"]) ? $_GET["currentTemp"] : ''; $arr["highTemp"] = isset($_GET["highTemp"]) ? $_GET["highTemp"] : ''; $arr["lowTemp"] = isset($_GET["lowTemp"]) ? $_GET["lowTemp"] : ''; $arr["locationDesc"] = isset($_GET["locationDesc"]) ? $_GET["locationDesc"] : ''; $arr["latitude"] = isset($_GET["latitude"]) ? $_GET["latitude"] : ''; $arr["longitude"] = isset($_GET["longitude"]) ? $_GET["longitude"] : '';