| | |
| | | * Function called on page submit |
| | | */ |
| | | |
| | | |
| | | function onSubmit() { |
| | | global $app, $conf; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on data update |
| | | */ |
| | | |
| | | function onUpdate() { |
| | | global $app, $conf; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Function called on data insert |
| | | */ |
| | | |
| | | function onInsert() { |
| | | global $app, $conf; |
| | | |
| | |
| | | /** |
| | | * Function called on data insert or update error |
| | | */ |
| | | |
| | | function onError() { |
| | | global $app, $conf; |
| | | |
| | |
| | | $this->onShow(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on data delete |
| | | */ |
| | | |
| | | function onDelete() { |
| | | global $app, $conf,$list_def_file,$tform_def_file; |
| | | |
| | | include_once($list_def_file); |
| | | include_once $list_def_file; |
| | | |
| | | // Loading tform framework |
| | | if(!is_object($app->tform)) $app->uses('tform'); |
| | |
| | | global $app, $conf; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Function to print the form content |
| | | */ |
| | | |
| | | function onPrintForm() { |
| | | global $app, $conf; |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Function to print the form content |
| | | */ |
| | | |
| | | function onMailSendForm() { |
| | | global $app, $conf; |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on page show |
| | | */ |
| | | |
| | | function onShow() { |
| | | global $app, $conf; |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on new record |
| | | */ |
| | | |
| | | function onShowNew() { |
| | | global $app, $conf; |
| | | |
| | |
| | | $app->tpl->setVar($record); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on edit record |
| | | */ |
| | | |
| | | function onShowEdit() { |
| | | global $app, $conf; |
| | | |