<a href="stats.php">Stats Tables</a><br /> <a href="logout.php">Logout</a> </div> </div> <div id="columnwrapper"> <div id="breadcrumbs"> </div> <div id="content_container"> <h2 class="welcome">Edit Task</h2> <div id="content1"> <?php $t = new DailyTaskDAO(); $t->idDailyTask = $_GET["task"]; $t->Find(); $p = new PatientDAO(); $p->Username = $_GET["patient"]; $p->Find(); if ($t->DailyTaskClass == "WalkingTask") { $t1 = new WalkingTaskDAO(); $t1->idDailyTask = $_GET["task"]; $t1->Find(); ?> <h3 class="welcome">Walking Task</h3> <form name="edit_task" action="edit_task_script.php?patient=<?php echo $_GET["patient"]; ?> &task=<?php
<?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);
public function Remove() { $conn = parent::GetConnection(); $query = $this->SetupQuery(Query::REMOVE_WALKING_TASK); if (!odbc_exec($conn, $query)) { return false; } return parent::Remove(); }