예제 #1
0
 /**
  * This method gets called EVERY time the object is
  * created.  It is used to build all of the 
  * FormElement objects used in this Form.
  *
  */
 function form_init_elements()
 {
     $this->add_hidden_element("swimmeetid");
     //  This is used to remember the action
     //  which originated from the GUIDataList.
     $this->add_hidden_element("_action");
     //  Org Code field
     $orgcode = new FEListBox("Organization", true, "150px");
     $orgcode->set_list_data(SDIFCodeTableMappings::GetOrgCodes());
     $this->add_element($orgcode);
     //  Meet Name field
     $meetname = new FEText("Meet Name", true, "300px");
     $this->add_element($meetname);
     //  Meet Address 1 field
     $meetaddress1 = new FEText("Meet Address 1", false, "300px");
     $this->add_element($meetaddress1);
     //  Meet Address 2 field
     $meetaddress2 = new FEText("Meet Address 2", false, "300px");
     $this->add_element($meetaddress2);
     //  Meet State
     $meetstate = new FEUnitedStates("Meet State", FT_US_ONLY, "150px");
     $this->add_element($meetstate);
     //  Meet Postal Code field
     $meetpostalcode = new FEText("Meet Postal Code", false, "200px");
     $this->add_element($meetpostalcode);
     //  Meet Country
     $meetcountry = new FEListBox("Meet Country", true, "250px");
     $meetcountry->set_list_data(SDIFCodeTableMappings::GetCountryCodes());
     $meetcountry->set_readonly(FT_US_ONLY);
     $this->add_element($meetcountry);
     //  Meet Code field
     $meetcode = new FEListBox("Meet Code", true, "150px");
     $meetcode->set_list_data(SDIFCodeTableMappings::GetMeetCodes());
     $this->add_element($meetcode);
     //  Meet Start Field
     $meetstart = new FEDate("Meet Start", true, null, null, "Fdy", date("Y") - 3, date("Y") + 7);
     $this->add_element($meetstart);
     //  Meet End Field
     $meetend = new FEDate("Meet End", true, null, null, "Fdy", date("Y") - 3, date("Y") + 7);
     $this->add_element($meetend);
     //  Pool Altitude field
     $poolaltitude = new FENumber("Pool Altitude", true, "150px");
     $this->add_element($poolaltitude);
     //  Course Code field
     $coursecode = new FEListBox("Course Code", true, "150px");
     $coursecode->set_list_data(SDIFCodeTableMappings::GetCourseCodes());
     $this->add_element($coursecode);
 }
예제 #2
0
 /**
  * This method gets called EVERY time the object is
  * created.  It is used to build all of the 
  * FormElement objects used in this Form.
  *
  */
 function form_init_elements()
 {
     $this->add_hidden_element("swimteamid");
     //  This is used to remember the action
     //  which originated from the GUIDataList.
     $this->add_hidden_element("_action");
     //  Org Code field
     $orgcode = new FEListBox("Organization", true, "150px");
     $orgcode->set_list_data(SDIFCodeTableMappings::GetOrgCodes());
     $this->add_element($orgcode);
     //  Team Code field
     $teamcode = new FEText("Team Code", true, "100px");
     $this->add_element($teamcode);
     //  Team Name field
     $teamname = new FEText("Team Name", true, "300px");
     $this->add_element($teamname);
     //  Team Name Abbreviation field
     $teamnameabrv = new FEText("Team Name Abbreviation", true, "200px");
     $this->add_element($teamnameabrv);
     //  Team Address 1 field
     $teamaddress1 = new FEText("Team Address 1", false, "300px");
     $this->add_element($teamaddress1);
     //  Team Address 2 field
     $teamaddress2 = new FEText("Team Address 2", false, "300px");
     $this->add_element($teamaddress2);
     //  Team City
     $teamcity = new FEText("Team City", false, "300px");
     $this->add_element($teamcity);
     //  Team State
     $teamstate = new FEUnitedStates("Team State", FT_US_ONLY, "150px");
     $this->add_element($teamstate);
     //  Team Postal Code field
     $teampostalcode = new FEText("Team Postal Code", false, "200px");
     $this->add_element($teampostalcode);
     //  Team Country
     $teamcountry = new FEListBox("Team Country", true, "250px");
     $teamcountry->set_list_data(SDIFCodeTableMappings::GetCountryCodes());
     $teamcountry->set_readonly(FT_US_ONLY);
     $this->add_element($teamcountry);
     //  Team Code field
     $regioncode = new FEListBox("Region", true, "150px");
     $regioncode->set_list_data(SDIFCodeTableMappings::GetRegionCodes());
     $this->add_element($regioncode);
     //  Team Code 5th Character
     $teamcode5 = new FENumber("Team Code 5th Character", false, "50px");
     $this->add_element($teamcode5);
 }