Esempio n. 1
0
 private function getForm()
 {
     $buttons = array('edit_board' => $this->module->lang('btn_edit_board'), 'delete_board' => $this->module->lang('btn_rem_board'));
     $data = array('groupid' => array(GWF_Form::SELECT, $this->module->getGroupSelect($this->board->getGroupID()), $this->module->lang('th_groupid')), 'title' => array(GWF_Form::STRING, $this->board->display('board_title'), $this->module->lang('th_title')), 'descr' => array(GWF_Form::STRING, $this->board->display('board_descr'), $this->module->lang('th_descr')), 'allow_threads' => array(GWF_Form::CHECKBOX, $this->board->isThreadAllowed(), $this->module->lang('th_thread_allowed')), 'guest_view' => array(GWF_Form::CHECKBOX, $this->board->isGuestView(), $this->module->lang('th_guest_view')), 'is_locked' => array(GWF_Form::CHECKBOX, $this->board->isLocked(), $this->module->lang('th_locked')), 'guests' => array(GWF_Form::CHECKBOX, $this->board->isGuestPostAllowed(), $this->module->lang('th_guests')), 'invisible' => array(GWF_Form::CHECKBOX, $this->board->isInvisible(), $this->module->lang('th_invisible')));
     //		if (!$this->board->isRoot()) {
     //			$data['moveboard'] = array(GWF_Form::SELECT, $this->board->getBoardSelect(), $this->module->lang('th_move_board'), 0, 'GWF_ForumBoard');
     //		}
     $data['submit'] = array(GWF_Form::SUBMITS, $buttons, '');
     return new GWF_Form($this, $data);
 }
Esempio n. 2
0
 private function getForm()
 {
     $parent = $this->module->getCurrentBoard();
     $data = array('parentid' => array(GWF_Form::HIDDEN, $parent->getID()), 'groupid' => array(GWF_Form::SELECT, $this->module->getGroupSelect($this->board->getGroupID()), $this->module->lang('th_groupid')), 'title' => array(GWF_Form::STRING, '', $this->module->lang('th_board_title')), 'descr' => array(GWF_Form::STRING, '', $this->module->lang('th_board_descr')), 'allow_threads' => array(GWF_Form::CHECKBOX, true, $this->module->lang('th_thread_allowed')), 'is_locked' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_locked')), 'guest_view' => array(GWF_Form::CHECKBOX, $parent->isGuestView(), $this->module->lang('th_guest_view')), 'guests' => array(GWF_Form::CHECKBOX, $this->board->isGuestPostAllowed(), $this->module->lang('th_guests')), 'add_board' => array(GWF_Form::SUBMIT, $this->module->lang('btn_add_board')));
     return new GWF_Form($this, $data);
 }