| 123456789101112131415161718192021222324252627282930 |
- <?php
- $table = new NTKTable("table", 2, 4, False);
- $name_label = new NTKLabel("", "Bezeichner:");
- $table->add($name_label, 0, 0);
- $name_entry = new NTKEntry("name");
- $table->add($name_entry, 0, 1);
- $onload .= "document.getElementById('name').focus();";
- $assistant_id_label = new NTKLabel("", "Mitarbeiter:");
- $table->add($assistant_id_label, 0, 2);
- $assistant_id_entry = new NTKComboBox("assistant_id", $assistant->get());
- $table->add($assistant_id_entry, 0, 3);
- $cancel_button = new NTKButton("cancel", "Abbrechen", "location.href = 'tour.php';");
- $table->add($cancel_button, 1, 2);
- $submit_button = new NTKButton("submit", "Tour erstellen", "document.forms['tour'].submit();");
- $table->add($submit_button, 1, 3);
- $form = new NTKForm("tour", "tour.php", $table);
- $form->addAttribute("db_action", "new");
- $form->addAttribute("tour_id", "");
- $main_box->add($form, False, True, "background-color: #dfe7f3; vertical-align: middle; align: center;");
- ?>
|