| | |
| | | $app->tpl->newTemplate("tabbed_form.tpl.htm"); |
| | | |
| | | // Load table definition from file |
| | | $app->tform->loadFormDef($tform_def_file); |
| | | $app->tform->loadFormDef($tform_def_file, (isset($_SESSION['s']['module']['name']) ? $_SESSION['s']['module']['name'] : '')); |
| | | |
| | | // Importing ID |
| | | $this->id = (isset($_REQUEST["id"]))?$app->functions->intval($_REQUEST["id"]):0; |
| | |
| | | $app->load($plugin_class); |
| | | $this->plugins[$plugin_name] = new $plugin_class; |
| | | $this->plugins[$plugin_name]->setOptions($plugin_name, $plugin_settings['options']); |
| | | // Make the data of the form easily accessible for the plugib |
| | | // Make the data of the form easily accessible for the plugin |
| | | $this->plugins[$plugin_name]->form = $this; |
| | | $this->plugins[$plugin_name]->onLoad(); |
| | | } |