owl_fs_root/presentation/Html.inc"); /** * $Id$ * * Dashboard page html UI building functions. * * Licensed under the GNU GPL. For full terms see the file COPYING. * * @version $Revision$ * @author Michael Joseph , Jam Warehouse (Pty) Ltd, South Africa * @package presentation */ /** * just a tmp document forging class */ class tmpDocument { var $title; var $id; var $status; var $days; var $statuses = array("good", "bad", "indifferent"); /** * generate random attribute data on instantiation */ function tmpDocument() { // initialise the random number generator srand ((float) microtime() * 10000000); // generate a random document title $number = rand(0,500); $this->title = "document title $number"; $this->id = $number; // generate a random status $this->status = $this->statuses[array_rand($this->statuses, 1)]; // random days $this->days = rand(0,25); } function getTitleLink() { return "id . "\">" . $this->title . ""; } function getStatus() { return $this->status; } function getDays() { return $this->days; } } function getPendingDocuments() { // generate random document objects and return return array(new tmpDocument(), new tmpDocument(), new tmpDocument()); } function getCheckedoutDocuments() { // generate random document objects and return return array(new tmpDocument(), new tmpDocument(), new tmpDocument()); } function getSubscriptionDocuments() { // you know the drill return array(new tmpDocument(), new tmpDocument(), new tmpDocument()); } function pendingDocumentsHeaders() { return " Title Status Days "; } function checkedOutDocumentsHeaders() { return " Title Days "; } function subscriptionDocumentsHeaders() { return " Title Status Days "; }