<div id="workerviewpage_schedule"> <table><tr><td> <form method="GET" name="workerviewpage_schedule_form" action="WorkerSchedulePage.php"> <input type="submit" name="schedule" value="View Schedule"/> </form> </td></tr></table> <br /> </div><!-- workerviewpage_schedule --> <?php } ?> <div id="workerviewpage_expohistory"> <h5>Expo History</h5> <?php $expoList = Expo::selectWorker($worker->workerid); // needed for createExpoHTMLList usort($expoList, "ExpoCompare"); createWorkerExpoHTMLList($expoList, $worker, $author->isOrganizer()); ?> </div><!-- workerviewpage_expohistory --> </div><!-- main --> <?php $menuItemArray = array(); if ($author->isOrganizer()) { $menuItemArray[] = MENU_VIEW_SITEADMIN; $menuItemArray[] = MENU_SEND_MESSAGE; $menuItemArray[] = MENU_VIEW_WORKERLIST; } Menu::addMenu($menuItemArray);
/** * Returns back the 'active' Expo (current time or next in future) * NULL if none currently or no future expo */ public static function selectActive($workerId) { $expoList = Expo::selectWorker($workerId); usort($expoList, "ExpoCompare"); $expoList = array_reverse($expoList); foreach ($expoList as $exp) { if (!$exp->isPast()) { return $exp; } } return NULL; }
public function selectExpos() { // go get the expolist; presumably using the Expo object $this->arrayExpo = Expo::selectWorker($this->workerid); }