if ($_GET["error"] == 101) { ?> <table class="error" bgcolor="red"> <tr> <td size=>User was not updated.</td> </tr> </table> <?php } ?> <?php $p = new PatientDAO(); $p->Username = $_GET["patient"]; //$p->Find(); $dailytaskArray = $p->ListDailyTasks(); ?> <p> <?php echo "Click a Column Heading to sort by that Field."; ?> </p> <table class="sortable" border="1"> <tr> <th>Date</th> <th>Steps</th> </tr> <?php foreach ($dailytaskArray as $task) { ?>
print_r($w); print "<br/>\n"; //Insert a patient $d = new PatientDAO; $d->Username = "******"; $d->Height = 105; $d->ClinicianId = 1; $d->Gender = "male"; $d->UserClass = "Patient"; print "Patient Insert: " . $d->Insert() . "<br/>\n"; //Update a patient $f = new PatientDAO; $f->Username = "******"; $f->Gender = "female"; print "Patient Update: " . $f->Update() . "<br/>\n";; */ //THIS SECTION IS TO TEST THE STATISTICS DAOS! ///////////////////////////////////////// $pat = new PatientDAO(); $pat->Username = "******"; $dt_list = $pat->ListDailyTasks(); print "Patient List Obtained\n"; $st = $dt_list[0]->GetStatistics("2009-10-31 22:00"); print_r($st); $st_list = $dt_list[1]->ListStatistics("2008-11-01 12:00", "2010-11-01 12:00", "2008-11-01 12:00", "2010-11-01 12:00"); print_r($st_list);
?> Medical Conditions: <?php echo $p->MedicalConditions . "<br /><br />"; ?> <a href="update_patient.php?patient=<?php echo $p->Username; ?> ">Update Patient Information</a> </div> <div id="content2"> <h3>Daily Tasks</h3> <?php $i = 1; $tasks = $p->ListDailyTasks(); foreach ($tasks as $item) { if ($item->Active) { if ($item->DailyTaskClass == "WalkingTask") { echo $i . ". " . $item->Date . " Walk " . $item->Steps . " steps. "; ?> <a href="edit_task.php?task=<?php echo $item->idDailyTask; ?> &patient=<?php echo $_GET["patient"]; ?> ">Edit</a> <a href="remove_task.php?task=<?php echo $item->idDailyTask; ?>