OpenXE/www/widgets/widget.vorlage.php

47 lines
1.1 KiB
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?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);
}
}
?>