Doc, 'form_'.strtolower(get_class($this->DBObj)), 'get', BASE_URL . '/admin/search', '_self', array('class'=>'form form_'.strtolower(get_class($this->DBObj)))); $form->addElement('hidden', 'search[no_keywords]', 'y'); $form->addElement('text', 'search[str]', 'Search string', array('class' => 'search_str')); $form->addRuleRequired(array('search[str]')); $form->addElement('advcheckbox', 'search[pages]', null, null, null, array('n', 'y')); $form->addElement('advcheckbox', 'search[announcements]', null, null, null, array('n', 'y')); $form->addElement('advcheckbox', 'search[emails]', null, null, null, array('n', 'y')); $form->setCancelType(null); $form->setSubmitTitle('Search'); $form->setRendType(FORM_RENDERER_ARRAY_SMARTY); $form->setReturnForm(true); $form->setTpl(BASE_PATH . '/tpl/Search/admin_form.tpl'); return $form; } }