dbXapp 2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Loading...
Searching...
No Matches
withdrawal.fd.php
Go to the documentation of this file.
1<?php
2$addField = function($name, $type, $label, $rules, $tpl, $extra = array()) use (&$fields) {
3 $field=array();
4 $field['name']=$name;
5 $field['type']=$type;
6 $field['index']='';
7 $field['length']=$extra['length'] ?? '';
8 $field['default']=$extra['default'] ?? '';
9 $field['label']=$label;
10 $field['rules']=$rules;
11 $field['tooltip']=$extra['tooltip'] ?? '';
12 $field['errormsg']=$extra['errormsg'] ?? '';
13 $field['placeholder']=$extra['placeholder'] ?? '';
14 $field['convert']='';
15 $field['protect']='0';
16 $field['mask']='';
17 $field['data']=$extra['data'] ?? '';
18 $field['options']=$extra['options'] ?? '';
19 $field['tpl']=$tpl;
21};
22
23$addField('order_no','varchar','Bestellnummer','parameter|max=40','text-label',array('placeholder'=>'S20260710123456-1234'));
24$addField('customer_name','varchar','Name','*|min=2|max=180','text-label',array('placeholder'=>'Ihr Name'));
25$addField('customer_email','varchar','E-Mail','email|max=180','text-label',array('placeholder'=>'name@example.org'));
26$addField('customer_address','mediumtext','Adresse','*|min=8|max=2000','textarea-label',array('data'=>'rows=4','placeholder'=>"Name\nStrasse und Hausnummer\nPLZ Ort\nLand"));
27$addField('reason','mediumtext','Nachricht','*|max=3000','textarea-label',array('data'=>'rows=5','placeholder'=>'Hiermit widerrufe ich meine Bestellung. Optional: betroffene Artikel oder Rueckfrage.'));
28?>
$fields[]
Definition config.dd.php:16
$field
Definition config.dd.php:4
$addField