app = $app; $this->parsetarget = $parsetarget; parent::__construct($app,$parsetarget); $this->ExtendsForm(); } function ExtendsForm() { $this->app->YUI->AutoComplete("projekt","projektname",1); $this->form->ReplaceFunction("projekt",$this,"ReplaceProjekt"); $this->app->YUI->AutoComplete("adresse","adresse"); $this->form->ReplaceFunction("adresse",$this,"ReplaceAdresse"); $this->app->Secure->POST["firma"]=$this->app->User->GetFirma(); $field = new HTMLInput("firma","hidden",$this->app->User->GetFirma()); $this->form->NewField($field); } public function Table() { $table = new EasyTable($this->app); $table->Query("SELECT bezeichnung, id FROM lager"); //$table->Display($this->parsetarget); $table->DisplayNew($this->parsetarget, "Bearbeiten Regaletiketten"); } public function Search() { //$this->app->Tpl->Set($this->parsetarget,"suchmaske"); //$this->app->Table( //$table = new OrderTable("veranstalter"); //$table->Heading(array('Name','Homepage','Telefon')); } function ReplaceAdresse($db,$value,$fromform) { return $this->app->erp->ReplaceAdresse($db,$value,$fromform); } function ReplaceProjekt($db,$value,$fromform) { return $this->app->erp->ReplaceProjekt($db,$value,$fromform); } } ?>