dbxapp
4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
dbxapp.de
Portal
Start
Anwender
Entwickler
KI-Bereiche
Loading...
Searching...
No Matches
myLKW_add.class.php
Go to the documentation of this file.
1
<?php
2
namespace
dbx\myLKW;
3
4
class
myLKW_add
{
5
6
7
public
function
run
() {
8
dbx
()->debug(
"myLKWD_add"
);
9
$oDB=
dbx
()->get_system_obj(
'dbxDB'
);
10
$dd
=
'lkw'
;
11
$rid= 0;
12
13
$data=$oDB->empty_record(
$dd
);
14
15
$oForm=
dbx
()->get_system_obj(
'dbxForm'
);
16
$oForm->init(
'form-add'
);
17
$oForm->_action=
'?dbx_modul=myLKW&dbx_run1=add_lkw'
;
18
$oForm->_data=$data;
19
$oForm->add_module_bar(
'Añadir vehículo'
,
'bi-truck'
);
20
21
$oForm->add_fld(
'TIPO'
,
'text-label'
,rules:
'alphanum|min=1'
,label:
'TIPO'
,errormsg:
'Fahrzeug Art'
);
//#+
22
$oForm->add_fld(
'TRACTOR'
,
'text-label'
,rules:
'alphanum|min=1'
,label:
'TRACTOR'
,errormsg:
'Fahrzeug Traktor'
);
//#+
23
$oForm->add_fld(
'REMOLQUE'
,
'text-label'
,rules:
'alphanum'
,label:
'REMOLQUE'
,errormsg:
'Fahrzeug REMOLQUE'
);
//#+
24
25
26
$oForm->_msg_info =
"Crear nuevo vehículo"
;
27
$oForm->_msg_error =
"Introduzca una fecha válida"
;
28
$oForm->_msg_success =
"Vehículo creado correctamente"
;
29
30
if
($oForm->submit()) {
31
//dbx_debug("Login-Submit",$oForm->_errors,$oForm->_warnings);
32
if
(!$oForm->errors()) {
// submit && no errors
33
$oForm->save_post(
$dd
, $rid);
34
35
}
36
37
}
// submit()
38
$content
= $oForm->run();
39
return
$content
;
40
}
41
42
}
dbx\myLKW\myLKW_add
Definition
myLKW_add.class.php:4
dbx\myLKW\myLKW_add\run
run()
Definition
myLKW_add.class.php:7
$content
$content
Definition
dbxForm_try_count_test.php:72
$dd
$dd
Definition
dbxMediaUsageLanguage_contract_test.php:10
dbx
DBX schema administration.
dbx
modules
myLKW
include
myLKW_add.class.php
Generated by
1.17.0