/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $cltype ID of the currently used Cluster-Template. * @param string $params Additional parameters. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. Allowed is DATE only. */ function CLSelector($label, $table, $column, $row_identifier = "1", $cltype, $params = "", $check = "MANDATORY", $db_datatype = "NUMBER") { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); $this->v_wuiobject = new Dropdown($this->name, null, $this->std_style, $this->value, 300, 1); $this->clt = $cltype; if ($this->value=="") $this->value="NULL"; }
/** * Standard Constructor * * @param string $label Label of the widget * @param string $table * @param string $column * @param string $row_identifier * @param string $cltfilter Whereclause for selecting the clustertemplates * @param string $namecolumn Column in database, where the title of the record ist stored. Used for setting name of object. */ function SelectCLTForCLN($label, $table, $column, $row_identifier, $cltFilter = "1", $nameColumn = "") { DBO::DBO($label, $table, $column, $row_identifier, "", "NUMBER"); $this->cltFilter = $cltFilter; $this->nameColumn = $nameColumn; $this->v_wuiobject = new Select($this->name, $this->getNameValueArray(), $this->std_style, 0, 1, "", 300, 1); }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string $longitude,column, which stores the longitude * @param string $latitude, columnd, which stores the latitude * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) */ function CoordinatesInput($label, $table, $longitude, $latitude, $row_identifier = "1") { global $page, $page_state, $forceLoadFromDB, $page_action; DBO::DBO($label, $table, $longitude, $row_identifier, ""); $this->lng = $longitude; $this->lat = $latitude; $this->vlng = 0; $this->vlat = 0; if ($page_state == "processing" && value("changevariation") != "GO" && !($forceLoadFromDB == "yes")) { $this->vlng = value("coordY", "NUMERIC", "0"); $this->vlat = value("coordX", "NUMERIC", "0"); } else { if (($page_action == "UPDATE" || $page_action == "DELETE") && $this->row_identifier != "1") { $this->vlng = getDBCell($table, $longitude, $row_identifier); $this->vlat = getDBCell($table, $latitude, $row_identifier); } } include_once "nxgooglemapsapi.php"; $this->api = new NXGoogleMapsAPI(); $this->api->setWidth(590); $this->api->setHeight(350); $this->api->addControl(GLargeMapControl); $this->api->addControl(GOverviewMapControl); $this->api->addControl(GMapTypeControl); $this->api->setCenter(50, 10); $this->api->setZoomFactor(4); if ($this->vlng != 0 || $this->vlat != 0) { $this->api->addDragMarker($this->vlng, $this->vlat); } $page->headerPayload = $this->api->getHeadCode(); $page->onLoad .= $this->api->getOnLoadCode(); }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $thisCLT ID of the currently used Cluster-Template. * @param string $params Additional parameters. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. Allowed is DATE only. * @param string select compounds only. */ function CLTSelector($label, $table, $column, $row_identifier = "1", $thisCLT, $params = "", $check = "MANDATORY", $db_datatype = "NUMBER", $iscompound=0) { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); $this->v_wuiobject = new Dropdown($this->name, null, $this->std_style, $this->value, 300, 1); $this->clt = $thisCLT; $this->iscompound = $iscompound; }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $params Allowed parameter is: * param:<Name of form> needed for js-reasons. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. Allowed is DATE only. */ function DateTimeInput($label, $table, $column, $row_identifier = "1", $params = "param:form1", $check = "", $db_datatype = "DATE") { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); // load the data of the field. global $page_state, $page_action; if ($page_state == "processing") { $this->value = value($this->name, "NOSPACES", ""); if ($this->value != "") { $this->value.=" ".value($this->name."_time", "NOSPACES", "").":00"; $this->value = str_replace("/", "-", $this->value); /** added 21.1.2002 */ global $c_magic_quotes_gpc; if ($c_magic_quotes_gpc == 1) $this->value = str_replace("\\", "", $this->value); /** got rid of magic quotes! */ $this->oldvalue = getDBCell($table, $column, $row_identifier); } } else { if (($page_action == "UPDATE" || $page_action == "DELETE") && $this->row_identifier != "1") { $this->value = getDBCell($table, $column, $row_identifier); if ($this->value == "0000-00-00 00:00:00" || $this->value == "00:00:00" || $this->value=="") $this->value = ""; } } $this->v_wuiobject = new DateTimebox($this->name, $this->value, $this->std_style, $this->parameter); }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $params Allowed parameters are: * type:TEXT|TEXTAREA|COLOR|RICH|URL; * size:XX Size of Input in chars. * width:XX Size of Input in pixel. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. Allowed are CHAR|NUMBER|PASSWORD */ function TextInput($label, $table, $column, $row_identifier = "1", $params = "type:text,size:10,width:100", $check = "", $db_datatype = "TEXT") { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); switch ($this->type): case "TEXT": $this->v_wuiobject = new Input($this->name, $this->value, $this->std_style, $this->size, $this->parameter, $this->width); break; case "TEXTAREA": $this->v_wuiobject = new Textarea($this->name, $this->value, $this->std_style, $this->size, $this->parameter, $this->width); break; case "COLOR": $this->v_wuiobject = new ColorInput($this->name, $this->value, $this->std_style, $this->parameter); break; case "RICH": $this->v_wuiobject = new Richedit($this->name, $this->value, $this->std_style, $this->size, $this->parameter, $this->width); break; case "URL": $this->v_wuiobject = new InputURL($this->name, $this->value, $this->std_style, $this->size, $this->parameter, $this->width); break; endswitch; }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $cltype ID of the currently used Cluster-Template. * @param string $params Additional parameters. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. Allowed is DATE only. */ function AdvancedCLSelector($label, $table, $column, $row_identifier = "1", $cltype, $params = "", $check = "MANDATORY", $db_datatype = "NUMBER") { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); $this->v_wuiobject = new Dropdown($this->name, null, $this->std_style, $this->value, 300, 1); $this->clt = $cltype; global $page; $page->setJS("CLSELECT"); }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $params Allowed parameter is: * param:<Name of form> needed for js-reasons. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. Allowed is DATE only. */ function SitepageSelector($label, $table, $column, $row_identifier = "1", $params = "", $check = "", $db_datatype = "NUMBER", $livepages = false) { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); $this->v_wuiobject = new Dropdown($this->name, null, $this->std_style, $this->value, 300, 1); if ($this->value == "" || $this->value == 0) { $this->value = "0"; } $this->livepages = $livepages; }
/** * standard constructor * @param string Where Condition to filter */ function SelectChannelCategory($row_identifier = "1") { global $lang, $chcat, $page_state, $page_action; DBO::DBO($lang->get("sel_channel_cat", "Select Channel and Category"), "centerstage", "CHID", $row_identifier, '', 'NUMBER', 'MANDATORY'); if ($page_state != "processing") { $tmp = getDBCell("centerstage", "CH_CAT_ID", $row_identifier); if ($tmp != 0 && $tmp != "" && $tmp != "0") { $this->value = $tmp; } } $this->populateSelectbox(); $this->v_wuiobject = new Dropdown($this->name, $chcat, $this->std_style, $this->value, $this->width); }
/** * Standard constructor * * @param $table string Table, where the CLNID of the cluster shall be stored * @param $column string Column, wehere the CLNID of the cluster shall be stored * @param $cond string WhereStr to indentify the record * @param $cltid integer GUID of the cluster-template, for creating a new cluster only * @param $variation integer GUID of the language * @param $clustername string name of the cluster which shall be created. */ function ClusterEditor($table, $column, $cond, $cltid, $variation, $clustername) { global $page_action, $oid; DBO::DBO('', $table, $column, $cond, "", "NUMBER"); $this->cltid = $cltid; $this->variation = $variation; $this->clnid = -1; $this->clid = -1; $this->clustername = $clustername; $this->value = getDBCell($table, $column, $cond); if ($oid != "" && $oid != "0") { $this->checkIfCLNExists(); } }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $params Allowed parameter is: * param:<Name of form> needed for js-reasons. * @param string $check is disabled here. For interface reasons only. * @param string $db_datatype Datatype of the database, you want to use. Allowed is DATE only. */ function FolderDropdown($label, $table, $column, $row_identifier = "1", $params = "", $check = "", $db_datatype = "NUMBER") { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, ""); $this->v_wuiobject = new Dropdown($this->name, null, $this->std_style, $this->value, 300, 1); global $page_state; if ($page_state == "processing") { $fieldname = $this->name; $this->value = value($fieldname, "NUMERIC"); } }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $checkedValue Value that is to be used if field checkbox is submitted checked. * @param string $uncheckedValue Value that is to be used if field checkbox is submitted unchecked. * @param string Datatype of the database, you want to use. Allowed are CHAR|NUMBER|DATE|DATETIME|TIMESTAMP|PASSWORD */ function CheckboxInput($label, $table, $column, $row_identifier = "1", $checkedValue = "1", $uncheckedValue = "0", $datatype = "NUMBER") { DBO::DBO($label, $table, $column, $row_identifier, "param:$uncheckedValue", $datatype); $checked = false; if ($this->value == $checkedValue) { $checked = true; } else { $this->value = $uncheckedValue; } $this->v_wuiobject = new Checkbox($this->name, $checkedValue, $this->std_style, $checked); }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * @param string PARENT_ID where all the menu-entries are located. * @param string allowed is type:DROPDOWN|SELECT as paramter for choosing a dropdown or selectbox. For select * you may also use size:XX for number of rows. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Unique will not make sense in most cases! * @param string $datatype Datatype of the database, you want to use. Allowed are CHAR|NUMBER|DATE|DATETIME|TIMESTAMP|PASSWORD */ function SitemapPosition($label, $table, $column, $row_identifier, $menuId, $parentId, $param = "type:dropdown", $check = "MANDATORY", $datatype = "NUMBER") { $chktmp = $check; $this->parentId = $parentId; $this->menuId = $menuId; DBO::DBO($label, $table, $column, $row_identifier, $param, $datatype, $chktmp); switch ($this->type): case "DROPDOWN": $this->v_wuiobject = new Dropdown($this->name, $values, $this->std_style, $this->value, $this->width); break; case "SELECT": $this->v_wuiobject = new Select($this->name, $values, "", $this->value, $this->size, $this->std_style, $this->width); break; endswitch; }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string first $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $params Allowed parameter is: * param:<Name of form> needed for js-reasons. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. TIME is allowed only */ function TimeInput($label, $table, $column, $row_identifier = "1", $style = "", $params = "", $check = "", $db_datatype = "TIME") { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); global $page_state; if ($page_state == "processing") { $fieldname = $this->name; if (value($fieldname) != "0") $this->value = value($fieldname); } else { $this->value = getDBCell($table, $column, $row_identifier); } $this->v_wuiobject = new Timebox($this->name, $this->std_style, "", substr($this->value, 0, 5)); }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param array name-value-array of entries to be shown in dropdown for selection. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string allowed is type:DROPDOWN|SELECT as paramter for choosing a dropdown or selectbox. For select * you may also use size:XX for number of rows. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Unique will not make sense in most cases! * @param string $datatype Datatype of the database, you want to use. Allowed are CHAR|NUMBER|DATE|DATETIME|TIMESTAMP|PASSWORD */ function ManualDropdownInput($label, $table, $column, $values, $row_identifier = "1", $param = "type:dropdown", $check = "MANDATORY", $datatype = "TEXT") { $chktmp = $check; DBO::DBO($label, $table, $column, $row_identifier, $param, $datatype, $chktmp); switch ($this->type): case "DROPDOWN": $this->v_wuiobject = new Dropdown($this->name, $values, $this->std_style, $this->value, $this->width); break; case "SELECT": $this->v_wuiobject = new Select($this->name, $values, "", $this->value, $this->size, $this->std_style, $this->width); break; endswitch; }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param array values, the list of input-values. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string allowed is type:DROPDOWN|SELECT as paramter for choosing a dropdown or selectbox. For select * you may also use size:XX for number of rows. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Unique will not make sense in most cases! * @param string $datatype Datatype of the database, you want to use. Allowed are CHAR|NUMBER|DATE|DATETIME|TIMESTAMP|PASSWORD */ function SelectOneInputFixed($label, $table, $column, $values, $row_identifier = "1", $param = "type:dropdown", $check = "MANDATORY", $datatype = "NUMBER") { DBO::DBO($label, $table, $column, $row_identifier, $param, $datatype, $check); $dsvalues = array(); if (is_array($values[0])) { $dsvalues = $values; } else { foreach ($values as $key => $value) { $dsvalues[] = array($value, $key); } } switch ($this->type) { case "DROPDOWN": $this->v_wuiobject = new Dropdown($this->name, $dsvalues, $this->std_style, $this->value, $this->width); break; case "SELECT": $this->v_wuiobject = new Select($this->name, $dsvalues, "", $this->value, $this->size, $this->std_style, $this->width); break; default: echo "SelectOneInputFixed: ERROR! type {$this->type} is invalid<br>\n"; } }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string name of the table, you want to join to the input-value. * @param string name of the column, you want to use as diplay in dropdown for value. * @param string name of the column, you want to retrieve the values from for the table and column. * foreign key to table->column. * @param string $foreign_data_identifier where-condition in SQL-Clause for selections of input-values. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string allowed is type:DROPDOWN|SELECT as paramter for choosing a dropdown or selectbox. For select * you may also use size:XX for number of rows. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Unique will not make sense in most cases! * @param string $datatype Datatype of the database, you want to use. Allowed are CHAR|NUMBER|DATE|DATETIME|TIMESTAMP|PASSWORD */ function SelectOneInput($label, $table, $column, $foreign_table, $foreign_name, $foreign_value, $foreign_data_identifier = "1", $row_identifier = "1", $param = "type:dropdown", $check = "MANDATORY", $datatype = "NUMBER") { $chktmp = $check; DBO::DBO($label, $table, $column, $row_identifier, $param, $datatype, $chktmp); if (!$this->mandatory) { $values = createNameValueArray($foreign_table, $foreign_name, $foreign_value, $foreign_data_identifier); } else { $values = createNameValueArrayEx($foreign_table, $foreign_name, $foreign_value, $foreign_data_identifier); } switch ($this->type): case "DROPDOWN": $this->v_wuiobject = new Dropdown($this->name, $values, $this->std_style, $this->value, $this->width); break; case "SELECT": $this->v_wuiobject = new Select($this->name, $values, "", $this->value, $this->size, $this->std_style, $this->width); break; endswitch; }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. (will not be displayed !!) * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $params Allowed parameters are: * type:RICH; * size:XX Size of Input in chars. * width:XX Size of Input in pixel. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. Allowed are CHAR|NUMBER|PASSWORD */ function RicheditInput($label, $table, $column, $row_identifier = "1", $params = "type:rich,size:10,width:100", $check = "", $db_datatype = "TEXT") { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); global $page_state, $page_action, $forceLoadFromDB; if ($page_state == "processing" && value("changevariation") != "GO" && value("changetranslation") != "GO" && ! ($forceLoadFromDB=="yes")) { //$fieldname = $this->table."_".$this->column; $fieldname = $this->name; if (value($fieldname) != "0") { $this->value = value($fieldname); } else { $this->value = $_POST[$fieldname]; } /** added 21.1.2002 */ global $c_magic_quotes_gpc; if ($c_magic_quotes_gpc == 1) $this->value = str_replace("\\", "", $this->value); $this->value = str_replace('&', '&', $this->value); /** got rid of magic quotes! */ $this->oldvalue = getDBCell($table, $column, $row_identifier); } else { if (($page_action == "UPDATE" || $page_action == "DELETE") && $this->row_identifier != "1") { $parser = new NX2HTML(variation()); $this->value = $parser->parseText(getDBCell($table, $column, $row_identifier)); } } switch ($this->type): case "RICH": $this->v_wuiobject = new Richedit($this->name, $this->value, $this->std_style, $this->size, $this->parameter, $this->width); break; endswitch; }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string allowed is type:TEXT as paramter * @param string $datatype Datatype of the database, you want to use. Allowed are CHAR|NUMBER|DATE|DATETIME|TIMESTAMP|PASSWORD */ function DisplayedValue($label, $table, $column, $row_identifier = "1", $param = "type:text", $datatype = "TIMESTAMP") { DBO::DBO($label, $table, $column, $row_identifier, $param, $datatype, ""); $this->std_style = "standardlight"; $this->v_wuiobject = new Label($this->name, $this->value, $this->std_style, $this->width); }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $posFilter Filter for determining the correct order * @param string $params Allowed parameters are: * size:XX Size of Input in chars. * width:XX Size of Input in pixel. */ function PositionInput($label, $table, $column, $row_identifier = "1", $posFilter, $params = "size:10,width:100") { $this->posFilter = $posFilter; DBO::DBO($label, $table, $column, $row_identifier, $params, "NUMBER", "NUMBER&MANDATORY"); $this->v_wuiobject = new Input($this->name, $this->value, $this->std_style, $this->size, $this->parameter, $this->width); }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column, you want to connect with the object. * @param string $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $params Allowed parameter is: * param:Name of form> needed for js-reasons. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. Allowed is DATE only. */ function MenuSelector($label, $table, $column, $row_identifier = "1", $params = "", $check = "", $db_datatype = "NUMBER") { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); $this->v_wuiobject = new Dropdown($this->name, null, $this->std_style, $this->value, $this->width, 1); }
/** * standard constructor * @param string Text that is to be shown as description or label with your object. * @param string Table, you want to connect with the object. * @param string column1, you want to connect with the object. * @param string column2, you want to connect with the object. * @param string first $row_identifier Usually to be generated with form->setPK. Identifies the * row in db, you want to affect with operation. Keep empty for insert. (Example: stdEDForm) * @param string $params Allowed parameter is: * param:<Name of form> needed for js-reasons. * @param string $check Does checks on user input. Allowed are MANDATORY (=not null)|UNIQUE. Separate with &. * @param string $db_datatype Datatype of the database, you want to use. */ function DurationInput($label, $table, $column1, $column2, $row_identifier = "1", $style = "standard", $params = "param:f1", $check = "", $db_datatype = "TIME") { DBO::DBO($label, $table, $column, $row_identifier, $params, $db_datatype, $check); $this->v_frombox = new TimeInput("", $table, $column1, $row_identifier, $style, $params, $check, $db_datatype); $this->v_untilbox = new TimeInput("to", $table, $column2, $row_identifier, $style, $params, $check, $db_datatype); }