private function listByView($errMessage = '') { $dataGridProperties = DataGrid::getRecentParamaters("joborders:JobOrdersListByViewDataGrid"); /* If this is the first time we visited the datagrid this session, the recent paramaters will * be empty. Fill in some default values. */ if ($dataGridProperties == array()) { $dataGridProperties = array('rangeStart' => 0, 'maxResults' => 50, 'filter' => 'Status==Active / OnHold / Full', 'filterVisible' => false); } $dataGrid = DataGrid::get("joborders:JobOrdersListByViewDataGrid", $dataGridProperties); $this->_template->assign('active', $this); $this->_template->assign('dataGrid', $dataGrid); $this->_template->assign('userID', $_SESSION['CATS']->getUserID()); $this->_template->assign('errMessage', $errMessage); if (!eval(Hooks::get('JO_LIST_BY_VIEW'))) { return; } $jl = new JobOrders($this->_siteID); $this->_template->assign('totalJobOrders', $jl->getCount()); $this->_template->display('./modules/joborders/JobOrders.tpl'); }