Form with a selectionbox that triggers a reload when changed
The purpose of this form is to reload the webpage when the value of the selection box, contained in the form, is changed.
A select form contains a selection box. When a value is changed in this selection box, the page is reloaded and the value is submitted.
| category | Form |
|---|---|
| package | Formaid |
| author | Dieter Adriaenssens |
| copyright | 2006-2013 Dieter Adriaenssens |
| license | GPL |
| link | http://formaid.sourceforge.net/ |
__construct(string $ID, string $table_name, string $field_name, string $file_name, string $orderby, string $return_url, string $database) : void
stringName of ID column (index)
stringTable name
stringName of name column (caption)
stringFile name of page containing the table
stringSQL column name to order by
stringURL to return to after processing form
stringDatabase to use
display(string $mode) : void
| inherited_from | \Formaid_Form::display() |
|---|
stringMode this function is working in (form, value)
displayValues() : void
Execute display() method in "values" mode. In this mode, no form is displayed, but the values of the record are printed on the webpage. The values can't be edited.
| inherited_from | \Formaid_Form::displayValues() |
|---|
getDisplayString(string $mode) : string
If the mode is form, a form is shown : this includes a title, form tags and form fields (input boxes, ...) If the mode is value, only the values of a record are shown, there is no possibility to change and submit values.
| inherited_from | \Formaid_Form::getDisplayString() |
|---|
stringMode this function is working in (form, values)
stringgetDisplayStringPrefix(string $mode) : string
| inherited_from | \Formaid_Form::getDisplayStringPrefix() |
|---|
stringMode this function is working in (form, values)
stringgetDisplayStringSuffix(string $mode) : string
| inherited_from | \Formaid_Form::getDisplayStringSuffix() |
|---|
stringMode this function is working in (form, values)
stringshow(string $mode) : void
| inherited_from | \Formaid_Form::show() |
|---|
stringMode this function is working in (form, value)
showValues() : void
Execute display() method in "values" mode. In this mode, no form is displayed, but the values of the record are printed on the webpage. The values can't be edited.
| inherited_from | \Formaid_Form::showValues() |
|---|
allowShow() : bool
If the Privilege on this form (allow_show) is set, it is allowed to display the form.
| inherited_from | \Formaid_Form::allowShow() |
|---|
booltrue if displaying is allowed.redirectToUrl(string $message) : void
Usually this happens after an insert/modify or delete
| inherited_from | \Formaid_Form::redirectToUrl() |
|---|
stringMessage for user to pass in the url
_addSelectionField(string $ID, string $name, string $orderby) : void
The selection field is used to select a record from a database, using a drop down menu.
stringName of ID column (index)
stringName of name column (caption)
stringSQL column name to order by
$data : array
| access | public |
|---|---|
| inherited_from | \Formaid_Form::$$data |
$filename : string
| access | public |
|---|---|
| inherited_from | \Formaid_Form::$$filename |
$privileges : array
| access | public |
|---|---|
| inherited_from | \Formaid_Form::$$privileges |
$return_url : string
| access | public |
|---|---|
| inherited_from | \Formaid_Form::$$return_url |
$sql_table : string
| access | public |
|---|---|
| inherited_from | \Formaid_Form::$$sql_table |
$title : string
| access | public |
|---|---|
| inherited_from | \Formaid_Form::$$title |
$db_connection : object
| access | protected |
|---|---|
| inherited_from | \Formaid_Form::$$db_connection |
$encoding : string
| access | protected |
|---|---|
| inherited_from | \Formaid_Form::$$encoding |