getFilterForm(); $this->DBObj->setFilter($filterform->getElementValue('query')); $filterform->setTpl('tpl/Term/filter.tpl'); $filterform->exec(); parent::doList(); } function _bindFormFields($form) { $form->addElement('select', 'category', 'Category', $this->DBObj->aTermCategory); $form->addElement('text', 'term', 'Term'); $form->addElement('html_editor', 'definition', 'Definition'); $form->addRuleRequired(array('category','term')); $form->addRule('definition','Definition is Required','required'); $form->setDefaults($this->DBObj->getData()); return $form; } function _doListBind(&$DB_List) { $DB_List->insertColLast('title', array('title' => 'Category', 'order_by' => 'title', 'width' => '120', 'tpl' => DB_LIST_CELL_TEXT, 'params' => array('title'))); $DB_List->insertColLast('term', array('title' => 'Term', 'order_by' => 'term', 'width' => '120', 'tpl' => 'Term/List/term.tpl', 'params' => array('term'))); $DB_List->insertColLast('definition', array('title' => 'Definition', 'order_by' => 'definition', 'width' => '560', 'tpl' => 'Term/List/definition.tpl', 'params' => array('definition'))); $DB_List->insertColLast('options', array('title' => 'Options', 'width' => '100', 'tpl' => DB_LIST_CELL_EDIT_DEL, 'edit_link' => Constant::get('BASE_URL') . '/' . CURR_PAGE . '?action=edit&id=', 'del_link' => Constant::get('BASE_URL') . '/' . CURR_PAGE . '?action=del&id=', 'params' => array('id'))); } } ?>