コード例 #1
0
ファイル: mTodoGUI.class.php プロジェクト: nemiah/fheME
 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);
 }