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
string
Name of ID column (index)
string
Table name
string
Name of name column (caption)
string
File name of page containing the table
string
SQL column name to order by
string
URL to return to after processing form
string
Database to use
display(string $mode) : void
inherited_from | \Formaid_Form::display() |
---|
string
Mode 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() |
---|
string
Mode this function is working in (form, values)
string
getDisplayStringPrefix(string $mode) : string
inherited_from | \Formaid_Form::getDisplayStringPrefix() |
---|
string
Mode this function is working in (form, values)
string
getDisplayStringSuffix(string $mode) : string
inherited_from | \Formaid_Form::getDisplayStringSuffix() |
---|
string
Mode this function is working in (form, values)
string
show(string $mode) : void
inherited_from | \Formaid_Form::show() |
---|
string
Mode 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() |
---|
bool
true if displaying is allowed.redirectToUrl(string $message) : void
Usually this happens after an insert/modify or delete
inherited_from | \Formaid_Form::redirectToUrl() |
---|
string
Message 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.
string
Name of ID column (index)
string
Name of name column (caption)
string
SQL 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 |