コード例 #1
0
 public function Find()
 {
     if (!parent::Find()) {
         return false;
     }
     if ($this->DailyTaskClass != "WalkingTask") {
         return false;
     }
     $conn = parent::GetConnection();
     $query = $this->SetupQuery(Query::FIND_WALKING_TASK);
     $result = odbc_exec($conn, $query);
     if (!$result) {
         return false;
     }
     $row = array();
     if (!odbc_fetch_into($result, $row)) {
         return false;
     }
     $this->Steps = $row[0];
     return true;
 }
コード例 #2
0
<?php

/*
 * Created on Dec 3, 2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
require_once "../daos/db_include.php";
$t = new DailyTaskDAO();
$t->idDailyTask = $_GET["task"];
$t->Find();
$t->Active = 0;
$t->Update();
$location = "Location: patient_display.php?patient=" . $_GET["patient"];
header($location);