Exemple #1
1
 private function getInput($v)
 {
     if (!isset($this->types[$v]) or $this->types[$v] != "parser") {
         if (isset($this->types[$v]) and ($this->types[$v] == "tinyMCE" or $this->types[$v] == "TextEditor" or $this->types[$v] == "nicEdit")) {
             $options = array($this->id, $v);
             if (isset($this->options[$v])) {
                 foreach ($this->options[$v] as $ov) {
                     $options[] = $ov;
                 }
             }
             $this->options[$v] = $options;
         }
         $Input = new HTMLInput($v, isset($this->types[$v]) ? $this->types[$v] : "text", isset($this->values[$v]) ? $this->values[$v] : null, isset($this->options[$v]) ? $this->options[$v] : null);
         if (isset($this->onChange[$v])) {
             $Input->onchange($this->onChange[$v]);
         }
         if (isset($this->onBlur[$v])) {
             $Input->onblur($this->onBlur[$v]);
         }
         if (isset($this->onFocus[$v])) {
             $Input->onfocus($this->onFocus[$v]);
         }
         if (isset($this->onKeyup[$v])) {
             $Input->onkeyup($this->onKeyup[$v]);
         }
         if (isset($this->inputStyle[$v])) {
             $Input->style($this->inputStyle[$v]);
         }
         if (isset($this->autocomplete[$v])) {
             $Input->autocomplete($this->autocomplete[$v][0], $this->autocomplete[$v][1], false, $this->autocomplete[$v][2]);
         }
         if (isset($this->placeholders[$v])) {
             $Input->placeholder($this->placeholders[$v]);
         }
         $Input->isDisplayMode(!$this->editable);
     } else {
         $method = explode("::", $this->options[$v][0]);
         $Input = Util::invokeStaticMethod($method[0], $method[1], array(isset($this->values[$v]) ? $this->values[$v] : null, "", isset($this->options[$v][1]) ? $this->options[$v][1] : null));
     }
     return $Input;
 }
Exemple #2
0
 public static function parserKunde($w, $l, $E)
 {
     $I = new HTMLInput("TodoClassID", "hidden", $w);
     $T = "";
     if ($E->A("TodoClass") == "WAdresse" and $E->A("TodoClassID") > 0) {
         $A = new WAdresseGUI($E->A("TodoClassID"));
         $T = $A->getShortAddress();
     }
     $IK = new HTMLInput("TodoKunde", "text", $T);
     $IK->autocomplete("mWAdresse", "function(selection){ \$('editTodoGUI').TodoClass.value = 'WAdresse'; \$('editTodoGUI').TodoClassID.value = selection.value; \$('editTodoGUI').TodoKunde.value = selection.label; /*if(\$('editTodoGUI').TodoName) contentManager.toggleFormFields('hide', ['TodoName'], 'editTodoGUI');*/ return false; }");
     return $I . $IK;
 }
Exemple #3
0
 public function newInput($number)
 {
     $htmlTable = new HTMLTable(2);
     $input = new HTMLInput("adress_" . ++$number, "text");
     $input->autocomplete("mTodo", "function(selection) { (typeof selection.email != 'undefined')? \$j('input[name=adress_" . $number . "]').val(selection.email) : \$j('input[name=adress_" . $number . "]').val(selection.value); return false; }");
     $input->onfocus(OnEvent::rme($this, "newInput", $number, "function(transport) {\$j('input[name=adress_" . $number . "]').closest('tr').after(transport.responseText); \$j('input[name=adress_" . $number . "]').attr('onfocus', ''); }"));
     $htmlTable->addLV("Teilnehmer " . ($number + 1) . ":", $input);
     echo $htmlTable->getHTMLForUpdate(true);
 }