コード例 #1
0
ファイル: GWF_User.php プロジェクト: sinfocol/gwf3
 public function getGenderSelect($name = 'gender')
 {
     return GWF_Gender::select($name, Common::getPostString($name, $this->getVar('user_gender')));
 }
コード例 #2
0
ファイル: SearchAdv.php プロジェクト: sinfocol/gwf3
 private function formSearch()
 {
     $data = array('username' => array(GWF_Form::STRING, '', $this->module->lang('th_user_name')), 'minlevel' => array(GWF_Form::INT, 0, $this->module->lang('th_user_level')), 'email' => array(GWF_Form::STRING, '', $this->module->lang('th_user_email')), 'country' => array(GWF_Form::SELECT, GWF_CountrySelect::single('country', Common::getPost('country')), $this->module->lang('th_country')), 'language' => array(GWF_Form::SELECT, GWF_LangSelect::single(0, 'language', Common::getPost('language')), $this->module->lang('th_language')), 'gender' => array(GWF_Form::SELECT, GWF_Gender::select('gender', Common::getPost('gender')), $this->module->lang('th_gender')), 'hasmail' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_hasmail')), 'haswww' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_haswww')), 'icq' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_icq')), 'msn' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_msn')), 'jabber' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_jabber')), 'skype' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_skype')), 'yahoo' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_yahoo')), 'aim' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_aim')), 'search' => array(GWF_Form::SUBMIT, $this->module->lang('btn_search')));
     return new GWF_Form($this, $data);
 }