Source for file DBMS_FIELD_DBMS_FORMFIELDSELECT.phpclass
Documentation is available at DBMS_FIELD_DBMS_FORMFIELDSELECT.phpclass
* Class file DBMS_FIELD_DBMS_FORMFIELDSELECT.phpclass
* @project Open CSP-Management
* @author Peter Krebs <p.krebs@lvus.at>
* @copyright (c) 2002-2005 by Peter Krebs and LVUS
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* Class file DBMS_FIELD_DBMS_FORMFIELDSELECT.phpclass
* @project Open CSP-Management
* @author Peter Krebs <p.krebs@lvus.at>
* @copyright (c) 2002-2005 by Peter Krebs and LVUS
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* source file of the class
* @var string $classSrcFile
protected $lookupShowField =
"CONCAT(IFNULL(FLD_LABEL,'FLD:'),' (',FLD_NAME,')')";
* column name of the form id
* @var string $myFormIdCol
* returns an array of field to bie shown in the edit form
* by using editTbl_echoForm
* the array is in the form:
* [FLDLAB] (complete html code with <td></td>)
* [FLDVAL] (complete html code with <td></td>)
//unset($a_ret['DBLOOKUP']);
$a_ret['DBLOOKUP']['FLD_LUTBL']['FLDVAL'] =
'T_DBMS_FORMFIELDS';
$a_ret['DBLOOKUP']['FLD_VALFLD']['FLDVAL'] =
'FLD_KEY';
$a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'] =
"
FRM_ID='\$*<input type=\"text\" size=\"20\" name=\"myFormIdCol\" value=\"" .
$this->myFormIdCol .
"\" />\$' AND <br />
<textarea name=\"lookupWhereAdd\" rows=\"2\" cols=\"40\">".
htmlspecialchars($str_lookupWhereAdd).
"</textarea>
unset($a_ret['FTBL_POPUPS']);
if (!isset
($_POST['lookupWhereAdd']) &&
!empty($_POST['lookupWhereAdd']))
$this->lookupWhere .=
"AND " .
$_POST['lookupWhereAdd'];
* returns the where part of to select the foreign Value
* @param boolean $withWhereAnd
function getWhereStmt($arrName="DBVAL",$append="",$debug=FALSE,$withWhereAnd=TRUE) {
if ($debug) echo
"<hr /><p><b>DBMS_FIELD_DBMS_FORMFIELDSELECT::getWhereStmt($arrName,$append,$debug)</b> (".get_class($this)."/".$this->myName.
")</p><blockquote>";
$ret=" WHERE FRM_ID=".intval(${$arrName}[$this->myFormIdCol]);
if ($debug) echo "<pre>2:\n$wKey</pre>";
$ret .=" AND ".$append; // <pk-06-10-18 /> E_ALL
if ($debug) echo "<pre>3:\n$ret</pre>";
if ($debug) echo "</blockquote>";
* returns the html code for a button to zoom to the foreign record
* first ensure FRM_ID is set in $this->editUrl
* then calls the parent method
function getZoomButton($arrName="DBVAL",$debug=FALSE) {
if ($debug) echo
"<p><b>DBMS_FIELD_DBMS_FORMFIELDSELECT::getAddButton($arrName,$url,...)</b> (".get_class($this).")</p>";
return parent::getZoomButton($arrName,$debug);
Documentation generated on Thu, 08 Jan 2009 17:41:08 +0100 by phpDocumentor 1.4.0a2