mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
58 lines
1.3 KiB
PHP
58 lines
1.3 KiB
PHP
|
<?php
|
||
|
include ("_gen/widget.gen.kundevorlage.php");
|
||
|
|
||
|
class WidgetKundevorlage extends WidgetGenKundevorlage
|
||
|
{
|
||
|
private $app;
|
||
|
function __construct($app,$parsetarget)
|
||
|
{
|
||
|
$this->app = $app;
|
||
|
$this->parsetarget = $parsetarget;
|
||
|
parent::__construct($app,$parsetarget);
|
||
|
$this->ExtendsForm();
|
||
|
}
|
||
|
|
||
|
function ExtendsForm()
|
||
|
{
|
||
|
$id = $this->app->Secure->GetGET("id");
|
||
|
$versandart = $this->app->erp->GetVersandartAuftrag();
|
||
|
$zahlungsweise = $this->app->erp->GetZahlungsweise('kundevorlage', $id);
|
||
|
|
||
|
//$this->app->erp->GetSelect($versandart,$this->app->
|
||
|
$field = new HTMLSelect("versandart",0);
|
||
|
$field->AddOptionsSimpleArray($versandart);
|
||
|
$this->form->NewField($field);
|
||
|
|
||
|
$field = new HTMLSelect("zahlungsweise",0);
|
||
|
$field->AddOptionsSimpleArray($zahlungsweise);
|
||
|
$this->form->NewField($field);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
function DatumErsetzen($wert)
|
||
|
{
|
||
|
return "neuerwerert";
|
||
|
}
|
||
|
|
||
|
public function Table()
|
||
|
{
|
||
|
//$table = new EasyTable($this->app);
|
||
|
//$table->Query("SELECT nummer, name_de as name,barcode, id FROM kundevorlage order by nummer");
|
||
|
//$table->Display($this->parsetarget);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
public function Search()
|
||
|
{
|
||
|
$this->app->Tpl->Set($this->parsetarget,"suchmaske");
|
||
|
//$this->app->Table(
|
||
|
//$table = new OrderTable("veranstalter");
|
||
|
//$table->Heading(array('Name','Homepage','Telefon'));
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
?>
|