To make it easier for you there are two functions that help you to generate your option page. To use these function you have to include /m23/inc/packages.php
- PKG_OptionPageHeader($title): For starting the page. It generates all necessary HTML code (colors, styles, tables, form) and expects a title for your option page. This title is shown in the window label of your webbrowser and in the window itself. It returnes an associative array with all parameters of the selected package. These values are used to initalise the OptionPage if it is opened for the first time.
- PKG_OptionPageTail($layout): Renderes the layout of the page, adds a save button and closes the HTML page.
- PKG_OptionPageGetValue($variable,$params): gets a value from the $_GET array or falls back to the params values. This is used if there havn't been entered values in the OptionPage.
Your OptionPage needs to have the following elements:
include ('/m23/inc/packages.php');
$params = PKG_OptionPageHeader("My OptionPage title");
$layout[0]...
PKG_OptionPageTail($layout);
root
2015-09-06