DB_Grid($Doc, $DBObj); $this->actions['brokeragereport'] = 'doBrokerageReport'; $this->actions['bytypereport'] = 'doByTypeReport'; $this->actions['noethicsreport'] = 'doNoEthicsReport'; $this->actions['allattendeereport'] = 'doAllAttendeeReport'; $this->actions['docCourseRenewalReportExport'] = '_doDocCourseRenewalReportExport'; } function _getBaseForm($method = 'post') { require_once 'class/Form/Form.class.php'; $form = new Form( $this->Doc, 'form_' . strtolower(get_class($this->DBObj)), $method, 'admin/event/eventreportshow', '_blank', array('class' => 'form form_' . strtolower(get_class($this->DBObj))) ); $form->setSubmitTitle('Get Report'); $form->setCancelType('none'); $form->setTpl('tpl/Event/Report/form.tpl'); return $form; } function doList() { $fBrokerage = $this->_getBaseForm(); $fBrokerage->setTitle('Brokerage Year Report'); $fBrokerage->addElement('select', 'year', 'Year', $this->DBObj->getEventsYears(3)); $fBrokerage->addElement('hidden', 'action', 'brokeragereport'); $fBrokerage->exec(); $fByType = $this->_getBaseForm(); $fByType->setTitle('List of all members who did and didn\'t attend programs within the selected 2 years.'); $fByType->addElement('select', 'id_type', 'Select Event Type', $this->DBObj->getTypes()); $fByType->addElement('select', 'year', 'Years', $this->DBObj->getEventsYears(null, true)); $fByType->addElement('hidden', 'action', 'bytypereport'); $fByType->exec(); $fNoEthicsYear = 2004 + floor((date('Y') - 2006) / 3); $fNoEthics = $this->_getBaseForm(); $fNoEthics->setTitle('List of members who have not completed ethics training since December 31, ' . $fNoEthicsYear); $fNoEthics->addElement('static', '', '', 'People who have completed the training include: