protected function build_personendaten($personen, rsContainer $Container) { $Table = $Container->subordinate('table'); $Table->subordinate('tr')->subordinate('td', array('class' => 'label'), 'Nachname:')->append('td', $_POST['name'])->subordinate('input', array('type' => 'hidden', 'name' => 'name', 'value' => $_POST['name'])); if (count($personen) == 1) { $Container->add_attribute('action', '?i=' . $this->docid . '&u=' . $personen[0][2]); $Table->subordinate('tr')->subordinate('td', array('class' => 'label'), 'Vorname:')->append('td', $personen[0][1]); } $this->build_klassenauswahl($personen, $Table); $Geb = $Table->subordinate('tr')->subordinate('td', array('class' => 'label'), 'Geburtsdatum:')->parent_subordinate('td'); $this->build_geburtsdatumwahl($Geb); $Table->subordinate('tr')->subordinate('td', array('class' => 'label'), 'eMail-Adresse:')->parent_subordinate('td')->subordinate('input', array('type' => 'text', 'name' => 'email')); $Table->subordinate('tr')->subordinate('td', array('class' => 'label'), 'Passwort:')->parent_subordinate('td')->subordinate('input', array('type' => 'password', 'name' => 'pw')); $Table->subordinate('tr')->subordinate('td', array('class' => 'label'), 'Passwort wiederholen:')->parent_subordinate('td')->subordinate('input', array('type' => 'password', 'name' => 'pw2')); $Container->subordinate('p')->subordinate('input', array('type' => 'submit', 'value' => 'Fertig')); }
protected function build_searchform(rsContainer $Container) { $Container->add_attribute('id', 'searchform'); if (isset($_GET['suche'])) { $Container->add_attribute('class', 'active'); } $Container->subordinate('form', array('method' => 'get'))->subordinate('input', array('type' => 'hidden', 'name' => 'i', 'value' => 159))->subordinate('input', array('type' => 'search', 'name' => 'suche', 'value' => $_GET['suche'], 'placeholder' => 'Suche', 'results' => 10, 'autosave' => 'clara-online')); }
public function select_item(rsContainer $Container, $docid) { $Container->add_attribute('class', 'active'); $this->active_menu_element = intval($docid); }
protected function build_wall(rsContainer $Container) { if ($this->is_logged_in()) { $Container->add_attribute('class', 'meinclara'); } return parent::build_wall($Container); }