Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: ../phpdbedittk/functions.php
PHPDBEditTk -

../phpdbedittk/functions.php::functions

Contains unrelated functions that are used by other classes in the package

 

private module functions

Contains unrelated functions that are used by other classes in the package

 

Public Method Summary

array

htmlsel(string $name, string $size, string $arrtype, string $arrcont, string $idcol, string $textcol, string $preset, [ string $class, string $extra, string $callback ])

Creates a html select-tag from an array
void

un_post()

Redirects the request to one without a POST submit

Public Method Details

htmlsel

public array htmlsel( string $name, string $size, string $arrtype, string $arrcont, string $idcol, string $textcol, string $preset, [ string $class, string $extra, string $callback ] )

  Creates a html select-tag from an array

Parameter
string $name
name attribute of the select-tag
string $size
size attribute
string $arrtype
type of array, which is used. Either "assoinreg", meaning an array containing associative arrays. There will be then two columns selectable for option-tag, value-attribute. Or "asso", where the key will be used as the value-attribute of the option-tag and the value for the display
string $arrcont
array to use for the select tag
string $idcol
key of the value for each associative array used for display
string $textcol
key of the value for each associative array used for defining the value-attribute of the option tag
string $preset
option value to pre-select the select-tag to
string $class = >>""<<
(optional) The CSS class name attribute
string $extra = >>""<<
(optional) any additional attributes, provided with their full string. Eg. for javascript.
string $callback = >>""<<
(optional) Name of a callback function which will determine the <option part, can be used for coloring the options
Returns array

(string) The select tag produced.


un_post

public void un_post( )

  Redirects the request to one without a POST submit
A POST request for a page, gets transparently forwarded to a GET request,which contains the same data in the $_POST array. This is done by savingdata in $_SESSION and retrieving them from there on the GET request.

Returns void



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta