Initial xentral_oss_20.3.c9ffacf
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
include ("_gen/widget.gen.vorlage.php");
|
||||
|
||||
class WidgetVorlage extends WidgetGenVorlage
|
||||
{
|
||||
private $app;
|
||||
function __construct(&$app,$parsetarget)
|
||||
{
|
||||
$this->app = &$app;
|
||||
$this->parsetarget = $parsetarget;
|
||||
parent::__construct($app,$parsetarget);
|
||||
$this->ExtendsForm();
|
||||
}
|
||||
|
||||
function ExtendsForm()
|
||||
{
|
||||
|
||||
$this->app->YUI->AutoComplete("adresse","mitarbeiter");
|
||||
$this->app->YUI->DatePicker("datum");
|
||||
$this->app->YUI->AutoComplete("projekt","projektname",1);
|
||||
$this->app->YUI->CkEditor("bemerkung","internal");
|
||||
|
||||
$this->form->ReplaceFunction("datum",$this,"ReplaceDatum");
|
||||
$this->form->ReplaceFunction("projekt",$this,"ReplaceProjekt");
|
||||
$this->form->ReplaceFunction("adresse",$this,"ReplaceMitarbeiter");
|
||||
}
|
||||
|
||||
function ReplaceProjekt($db,$value,$fromform)
|
||||
{
|
||||
return $this->app->erp->ReplaceProjekt($db,$value,$fromform);
|
||||
}
|
||||
|
||||
function ReplaceMitarbeiter($db,$value,$fromform)
|
||||
{
|
||||
return $this->app->erp->ReplaceMitarbeiter($db,$value,$fromform);
|
||||
}
|
||||
|
||||
function ReplaceDatum($db,$value,$fromform)
|
||||
{
|
||||
return $this->app->erp->ReplaceDatum($db,$value,$fromform);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user