Пример #1
0
 public function get_element_list()
 {
     if (defined('__FORM_ROOT__') == FALSE) {
         define('__FORM_ROOT__', dirname(__FILE__));
     }
     require_once __FORM_ROOT__ . '/class.address_data_part.php';
     require_once __FORM_ROOT__ . '/class.fbox_text_element.php';
     require_once __FORM_ROOT__ . '/class.fbox_wrap_element.php';
     require_once __FORM_ROOT__ . '/class.fbox_sex_select_element.php';
     $school_address = new address_data_part();
     $school_address->set_language($this->language);
     $school_address->set_address($this->get_empty_address());
     $forname = new fbox_text_element();
     $forname->set_label($this->language['C3_forname']);
     $forname->set_name("forname");
     $name = new fbox_text_element();
     $name->set_label($this->language['C3_name']);
     $name->set_name("name");
     $wrap_element = new fbox_wrap_element();
     $mail = new fbox_text_element();
     $mail->set_label($this->language['C3_mail']);
     $mail->set_name("mail");
     $wrap_element->add_item($mail);
     $sex_select = new fbox_sex_select_element();
     $sex_select->set_language($this->language);
     $sex_select->set_label($this->language['C3_gender']);
     $sex_select->set_name("gender");
     $wrap_element->add_item($sex_select);
     return $school_address->get_element_list() . $forname->get_name_element() . $name->get_name_element() . $wrap_element->get_element();
 }
Пример #2
0
 /**
  *
  * @access public
  * @author Bernd Schröder
  * @version 1.0
  */
 public function get_element_list()
 {
     $forname_element = new fbox_text_element();
     $forname_element->set_label($this->language['C3_forname']);
     $forname_element->set_name("forname");
     $forname_element->set_value($this->forname_value);
     $wrap_element = new fbox_wrap_element();
     $mail_element = new fbox_text_element();
     $mail_element->set_label($this->language['C3_mail']);
     $mail_element->set_name("mail");
     $mail_element->set_value($this->mail_value);
     $wrap_element->add_item($mail_element);
     $sex_select_element = new fbox_sex_select_element();
     $sex_select_element->set_language($this->language);
     $sex_select_element->set_label($this->language['C3_gender']);
     $sex_select_element->set_name("gender");
     $sex_select_element->set_value($this->gender);
     $wrap_element->add_item($sex_select_element);
     return $forname_element->get_element() . $this->get_name_element() . $wrap_element->get_element() . $this->date_data_part->get_element_list() . $this->address_data_part->get_element_list() . $this->private_data_part->get_element_list() . $this->link_data_part->get_element_list();
 }