예제 #1
0
 /**
  *
  * @access public
  * @author firstname and lastname of author, <*****@*****.**>
  * @param  model
  */
 public function load($model)
 {
     $list = "";
     $count = $model->get_item_count();
     for ($n = 0; $n < $count; $n++) {
         $member = $model->get_item($n);
         $check_element = new fbox_check_element();
         $check_element->set_label($member->get_forename());
         $check_element->set_name("pupils[]");
         $check_element->set_value($member->get_id());
         $list .= $check_element->get_element();
     }
     return $list;
 }
예제 #2
0
 public function get_element_list()
 {
     if (defined('__FORM_ROOT__') == FALSE) {
         define('__FORM_ROOT__', dirname(__FILE__));
     }
     require_once __FORM_ROOT__ . '/class.fbox_text_element.php';
     require_once __FORM_ROOT__ . '/class.fbox_wrap_element.php';
     require_once __FORM_ROOT__ . '/class.fbox_select_salutation_element.php';
     require_once __FORM_ROOT__ . '/class.fbox_school_select_size.php';
     require_once __FORM_ROOT__ . '/class.fbox_check_element.php';
     require_once __FORM_ROOT__ . '/class.fbox_req_text_element.php';
     $wrap_element = new fbox_wrap_element();
     $salutation = new fbox_select_salutation_element();
     $salutation->set_language($this->language);
     $salutation->set_label($this->language['C3_salution']);
     $salutation->set_name("salution");
     $wrap_element->add_item($salutation);
     //     $forname = new fbox_text_element();
     $forname = new fbox_req_text_element();
     $forname->set_label($this->language['C3_forname']);
     $forname->set_name("forname");
     $forname->set_value($this->forname);
     $wrap_element->add_item($forname);
     $surename = new fbox_text_element();
     $surename->set_label($this->language['C3_surename']);
     $surename->set_name("surename");
     $surename->set_value($this->surename);
     $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);
     $school_size = new fbox_school_select_size();
     $school_size->set_language($this->language);
     $school_size->set_label($this->language['C3_schoolsize']);
     $school_size->set_name("schoolsize");
     $school_size->set_value($this->schoolsize);
     $check_AGB = new fbox_check_element();
     $check_AGB->set_label($this->language['C3_accept_AGB']);
     $check_AGB->set_name("accept_AGB");
     $check_nutzung = new fbox_check_element();
     $check_nutzung->set_label($this->language['C3_accept_Nutzungsbedingungen']);
     $check_nutzung->set_name("accept_Nutzungsbedingungen");
     return $this->get_name_element() . $school_size->get_element() . $this->address_data_part->get_element_list() . "<hr>" . "<h6 class=\"ym-fbox-heading\">" . $this->language['C3_contact'] . "</h6>" . $wrap_element->get_element() . $surename->get_element() . $mail_element->get_element() . "<hr>" . $this->private_data_part->get_element_list() . $check_AGB->get_element() . $check_nutzung->get_element();
 }