コード例 #1
0
ファイル: SaveFlower.php プロジェクト: uwillmore/phpsite
if (isset($_GET['Note'])) {
    $LocationCount++;
    $Location->setLocationNote($_GET['Note']);
    $LocationError = false;
}
if ($LocationError) {
    $php_errormsg = $php_errormsg . "Please enter either a note describing the location, GPS Coordinates or Langitude and Latitude.<br>";
}
if (isset($_GET['SoilType']) && $_GET['SoilType'] > 0) {
    $Soil->setSoilType($_GET['SoilType']);
    $Plant->setPlantSoilType($_GET['SoilType']);
} else {
    $php_errormsg = $php_errormsg . "Please select a Soil Type.<br>";
}
if (isset($_GET['SoilConditions'])) {
    $Plant->setPlantSoil($_GET['SoilConditions']);
}
$weatherCount = 0;
if (isset($_GET['ObservationTime'])) {
    $ObservationTime = date("H:i", strtotime($_GET['ObservationTime']));
    $Weather->setTime($ObservationTime);
    $weatherCount++;
}
if (isset($_GET['ObservationDate'])) {
    $ObservationDate = date("m:d:Y", strtotime($_GET['ObservationDate']));
    $Weather->setObservationDate($ObservationDate);
    $weatherCount++;
}
if (isset($_GET['Temperature'])) {
    $Weather->setTemperature($_GET['Temperature']);
    $weatherCount++;