app = $app; $this->parsetarget = $parsetarget; $this->Form(); } public function geschaeftsfallDelete() { $this->form->Execute("geschaeftsfall","delete"); $this->geschaeftsfallList(); } function Edit() { $this->form->Edit(); } function Copy() { $this->form->Copy(); } public function Create() { $this->form->Create(); } public function Search() { $this->app->Tpl->Set($this->parsetarget,"SUUUCHEEE"); } public function Summary() { $this->app->Tpl->Set($this->parsetarget,"grosse Tabelle"); } function Form() { $this->form = $this->app->FormHandler->CreateNew("geschaeftsfall"); $this->form->UseTable("geschaeftsfall"); $this->form->UseTemplate("geschaeftsfall.tpl",$this->parsetarget); $field = new HTMLInput("vorgang","text","","40"); $this->form->NewField($field); $field = new HTMLCheckbox("erledigt","","",""); $this->form->NewField($field); $field = new HTMLCheckbox("automatischerversand","","",""); $this->form->NewField($field); $field = new HTMLInput("datum","text","","40"); $this->form->NewField($field); $field = new HTMLInput("projekt","text","","40"); $this->form->NewField($field); $field = new HTMLInput("projekt","text","","40"); $this->form->NewField($field); $field = new HTMLSelect("dokument",0); $field->AddOption('Angebot AN','angebot an'); $field->AddOption('Aufrtragsbestätigung AB','aufrtragsbestätigung ab'); $field->AddOption('Aufrtragsbestätigung Stornierung ABS','aufrtragsbestätigung stornierung abs'); $field->AddOption('Lieferschein LS','lieferschein ls'); $field->AddOption('Rechnung RE','rechnung re'); $field->AddOption('Gutschrift GS','gutschrift gs'); $field->AddOption('Service SE','service se'); $this->form->NewField($field); $field = new HTMLInput("kunde","text","","40"); $this->form->NewField($field); $field = new HTMLInput("empfaenger","text","","40"); $this->form->NewField($field); $field = new HTMLSelect("zahlungsweise",0); $field->AddOption('Rechnung','rechnung'); $field->AddOption('Vorkasse','vorkasse'); $field->AddOption('Paypal','paypal'); $field->AddOption('Kreditkarte','kreditkarte'); $field->AddOption('Nachnahme','nachnahme'); $field->AddOption('Barzahlung','barzahlung'); $this->form->NewField($field); $field = new HTMLSelect("versand",0); $field->AddOption('Versand','versand'); $field->AddOption('Selbstabholer','selbstabholer'); $this->form->NewField($field); $field = new HTMLSelect("weiterfuehren",0); $field->AddOption('Angebot AN','angebot an'); $field->AddOption('Aufrtragsbestätigung AB','aufrtragsbestätigung ab'); $field->AddOption('Aufrtragsbestätigung Stornierung ABS','aufrtragsbestätigung stornierung abs'); $field->AddOption('Lieferschein LS','lieferschein ls'); $field->AddOption('Rechnung RE','rechnung re'); $field->AddOption('Gutschrift GS','gutschrift gs'); $field->AddOption('Service SE','service se'); $this->form->NewField($field); } } ?>