getFilterForm(); $this->DBObj->setFilter($filterform->getElementValue('query')); $filterform->setTpl('tpl/Keyword/filter.tpl'); $filterform->exec(); parent::doList(); } function _bindFormFields($form) { $form->addElement('text', 'keyword', 'Keyword'); $form->addElement('text', 'destination', 'Destination'); $form->addRuleRequired(array('keyword', 'destination')); $form->addRuleEx(array('keyword'), ' must contain only one word', 'regex', '/^\S+$/'); $form->setDefaults($this->DBObj->getData()); return $form; } function _doListBind(&$DB_List) { $DB_List->insertColLast('keyword', array('title' => 'Keyword', 'order_by' => 'keyword', 'width' => '120', 'tpl' => DB_LIST_CELL_TEXT, 'params' => array('keyword'))); $DB_List->insertColLast('destination', array('title' => 'Destination', 'order_by' => 'destination', 'width' => '350', 'trauncate_len' => 255, 'tpl' => DB_LIST_CELL_TEXT, 'params' => array('destination'))); $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'))); } } ?>