------------------------------------------------------------------------------------
CLASS TABLE
------------------------------------------------------------------------------------
DEFINE TABLE
$o_table = new table([array settings]);
or
$o_table = new table([border][, padding][, spacing][, width][, bgcolor][, class][, add][, tab]);
TABLE ARRAY SETTINGS:
array settings = array(
["border" => ""][, "padding" => ""][, "spacing" => ""][, "tbwidth" => ""]
[, "tbcolor" => ""][, "tbclass" => ""][, "tbadd" => ""][, "tab" => ""]
[, "trcolor" => ""][, "trclass" => ""][, "tradd"]
[, "tdalign" => ""][, "tdvalign" => ""][, "tdwidth" => ""]
[, "tdcolor" => ""][, "tdclass" => ""][, "tdadd"]);
INIT TABLE STRING
$o_table->ini;
INIT TR STRING
$o_table->tr([array settings]);
or
$o_table->tr([$s_bgcolor][, $s_class][, $s_add]);
TR ARRAY SETTINGS:
array settings = array(
["trcolor" => ""][, "trclass" => ""][, "tradd"]
[, "tdalign" => ""][, "tdvalign" => ""][, "tdwidth" => ""]
[, "tdcolor" => ""][, "tdclass" => ""][, "tdadd"]);
INIT TD STRING
$o_table->td([$i_cols][, $i_rows][, array settings]);
or
$o_table->td([$i_cols][, $i_rows][, $s_align][, $s_valign][, $s_width]
[, $s_bgcolor][, $s_class][, $s_add]);
TD ARRAY SETTINGS:
array settings = array(
["tdalign" => ""][, "tdvalign" => ""][, "tdwidth" => ""]
[, "tdcolor" => ""][, "tdclass" => ""][, "tdadd"]);
END TD, TR, TABLE STRING
$o_table->end([[td][, tr][, table]]);
------------------------------------------------------------------------------------
CLASS FORM
------------------------------------------------------------------------------------
DEFINE FORM
$o_form = new form([array settings]);
or
$o_form = new form([name][, action][, method][, onsubmit][, class][, add]);
FORM ARRAY SETTINGS:
array settings = array(
["name" => ""][, "action" => ""][, "method" => ""]
[, "onsubmit" => ""][, "form_class" => ""][, "form_add"]
[, "text_class" => ""][, "select_class" => ""][, "checkbox_class" => ""]
[, "radio_class" => ""][, "textarea_class" => ""][, "button_class"]);
INIT FORM STRING
$o_form->ini;
HIDDEN STRING
$o_form->hidden(array fields and values);
or
$o_form->hidden(name, value);
ARRAY FIELDS AND VALUES
array fields and values = array(
name1 => value1
[, name2 => value2]
[, name3 => ... ]);
TEXT STRING
$o_form->text(name[, size][, maxlength][, value][, class][, add]);
SELECT STRING
$o_form->select(name, array options[, default value][, selected value][, class][, add]);
OPTIONS
array options = array(
value1 => [option1 or array(option1[, class1][, add1])]
[, value2 => ... ]);
CHECKBOX STRING
$o_form->checkbox(name[, value][, default value][, checked value][, class][, add]);
RADIO ARRAY
$o_form->radio(name, array options[, default value][, checked value][, class][, add]);
OPTIONS
array options = array(
value1 => [option1 or array(option1[, class1][, add1])]
[, value2 => ... ]);
RESULT
array result =
array[0][0]: Radio String 1
array[0][1]: Radio Option 1
array[1][0]: Radio String 2
array[1][1]: Radio Option 2
array[2][0]...
TEXTAREA STRING
$o_form->textarea(name[, cols][, rows][, content][, class][, add]);
BUTTON STRING
$o_form->button([type][, name][, value][, class][, add]);
Possibles types are: "submit" (default), "image", "reset", "button".
When type is "image", value is required "src".
END FORM
$o_form->end;
|