1 <?php # vim:ts=2:sw=2:et:
2 /* For licensing and copyright terms, see the file named LICENSE */
4 require_once 'MTrackWeb.php';
6 class MTrackWeb_Reports extends MTrackWeb
8 var $template = 'reports.html';
10 var $title = "Reports";
15 require_once 'MTrack/ACL.php';
16 MTrackACL::requireAllRights('Reports', 'read');
22 $q = DB_DataObject::factory('mtrack_report');
23 // DB_DataObject::DebugLevel(1);
24 $this->rows = $q->fetchAll();
25 $this->canCreate = MTrackACL::hasAllRights('Reports', 'create');