| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- $table = new NTKTable("table", 2, 4, False);
- $name_label = new NTKLabel("", "Bezeichner:");
- $table->add($name_label, 0, 0);
- $name_entry = new NTKEntry("name", $data[0][1]);
- $table->add($name_entry, 0, 1);
- $assistant_id_label = new NTKLabel("", "Mitarbeiter:");
- $table->add($assistant_id_label, 0, 2);
- $assistant_id_entry = new NTKComboBox("assistant_id", $assistant->get(), $data[0][2]);
- $table->add($assistant_id_entry, 0, 3);
- $delete_button = new NTKButton("delete", "Löschen", "if(confirm('Wirklich loeschen?')) location.href = 'tour.php?db_action=delete&tour_id=".$data[0][0]."';");
- $table->add($delete_button, 1, 1);
- $cancel_button = new NTKButton("cancel", "Abbrechen", "location.href = 'tour.php';");
- $table->add($cancel_button, 1, 2);
- $submit_button = new NTKButton("submit", "Speichern", "document.forms['tour'].submit();");
- $table->add($submit_button, 1, 3);
- $form = new NTKForm("tour", "tour.php", $table);
- $form->addAttribute("db_action", "edit");
- $form->addAttribute("tour_id", $data[0][0]);
- $main_box->add($form, False, True, "background-color: #dfe7f3; vertical-align: middle; align: center;");
- ?>
|