app = $app; $this->parsetarget = $parsetarget; $this->Form(); } public function berichteDelete() { $this->form->Execute("berichte","delete"); $this->berichteList(); } 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("berichte"); $this->form->UseTable("berichte"); $this->form->UseTemplate("berichte.tpl",$this->parsetarget); $field = new HTMLInput("name","text","","80","","","","","","","","0","2",""); $this->form->NewField($field); $this->form->AddMandatory("name","notempty","Pflichtfeld!","MSGNAME"); $field = new HTMLInput("project","text","","80","","","","","","","","0","2",""); $this->form->NewField($field); $field = new HTMLTextarea("beschreibung",5,80,"","","","","0"); $this->form->NewField($field); $field = new HTMLTextarea("variablen",5,80,"","","","","0"); $this->form->NewField($field); $field = new HTMLTextarea("struktur",5,80,"","","","","0"); $this->form->NewField($field); $field = new HTMLInput("spaltennamen","text","","80","","","","","","","","0","2",""); $this->form->NewField($field); $field = new HTMLInput("spaltenbreite","text","","80","","","","","","","","0","2",""); $this->form->NewField($field); $field = new HTMLInput("spaltenausrichtung","text","","80","","","","","","","","0","2",""); $this->form->NewField($field); $field = new HTMLInput("sumcols","text","","80","","","","","","","","0","2",""); $this->form->NewField($field); $field = new HTMLTextarea("internebemerkung",5,80,"","","","","0"); $this->form->NewField($field); $field = new HTMLCheckbox("ftpuebertragung","","","1","0","0"); $this->form->NewField($field); $field = new HTMLCheckbox("ftppassivemode","","","1","0","0"); $this->form->NewField($field); $field = new HTMLSelect("typ",0,"typ","","","0"); $field->AddOption('FTP','ftp'); $field->AddOption('FTP mit SSL','ftpssl'); $field->AddOption('SFTP','sftp'); $this->form->NewField($field); $field = new HTMLInput("ftphost","text","","40","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLInput("ftpport","text","","5","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLInput("ftpuser","text","","40","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLInput("ftppassword","text","","40","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLInput("ftpuhrzeit","text","","40","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLInput("ftpnamealternativ","text","","40","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLCheckbox("emailuebertragung","","","1","0","0"); $this->form->NewField($field); $field = new HTMLInput("emailempfaenger","text","","40","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLInput("emailbetreff","text","","40","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLInput("emailuhrzeit","text","","40","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLInput("emailnamealternativ","text","","40","","","","","","","","0","",""); $this->form->NewField($field); $field = new HTMLCheckbox("doctype_actionmenu","","","1","0","0"); $this->form->NewField($field); $field = new HTMLSelect("doctype",0,"doctype","","","0"); $field->AddOption('Angebot','angebot'); $field->AddOption('Auftrag','auftrag'); $field->AddOption('Rechnung','rechnung'); $field->AddOption('Gutschrift','gutschrift'); $field->AddOption('Lieferschein','lieferschein'); $field->AddOption('Bestellung','bestellung'); $field->AddOption('Produktion','produktion'); $this->form->NewField($field); $field = new HTMLSelect("doctype_actionmenufiletype",0,"doctype_actionmenufiletype","","","0"); $field->AddOption('CSV','csv'); $field->AddOption('PDF','pdf'); $this->form->NewField($field); $field = new HTMLInput("doctype_actionmenuname","text","","40","","","","","","","","0","",""); $this->form->NewField($field); } } ?>