Source for file DBMS_FIELD_DBMS_FORMSELECT.phpclass
Documentation is available at DBMS_FIELD_DBMS_FORMSELECT.phpclass
* Class file DBMS_FIELD_DBMS_FORMSELECT.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
require_once $OCSP_CONF['DBMSFLD_PATH'].
"DBMS_FIELD_FOREIGNKEY.phpclass";
* Class file DBMS_FIELD_DBMS_FORMSELECT.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
* @var string $lookupTable
* @var string $lookupShowField
* @var string $lookupField
* @var string $lookupSort
* @var boolean $showNullOption
* @var string $editUrl url to the field editor
protected $editUrl =
"\$@OCSP|ADMINURL\$dbms/editframe.php?FRM_ID=##VALUE##";
* @var int $editEnableInList link List field with edit url
// ###########################################################
// OBJECT SETTINGS METHODS
// ###########################################################
* 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>)
if (empty($this->showField)) $this->showField=
"CONCAT(FRM_NAME,' (',FRM_ID,')')";
if (empty($this->sortField)) $this->sortField=
"FRM_NAME";
unset
($a_ret['DBLOOKUP']['FLD_FOREIGNTBL']);
$a_ret['DBLOOKUP']['FLD_VALFLD']['FLDVAL']=
"FRM_ID";
$s_tmp=
$a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'];
$a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL']=
"
Tabellenfilter: <select name=\"formTable\" size=\"1\">
<option value=\"\">--- ??? ---</option>\n";
if ($a_tblLst=
$GLOBALS['USRDB']->getDBTblList($debug)) {
foreach($a_tblLst as $s_tbl) {
$a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'].=
" <option value=\"".
$s_tbl.
"\"";
if ($this->formTable ==
$s_tbl) $a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'].=
" selected";
$a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'].=
">".
$s_tbl.
"</option>\n";
$a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'].=
"</select><br />\n";
$a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'].=
$s_tmp;
* saves the postet values to the object but not to the db
* 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
"<p><b>DBMS_FIELD_DBMS_FORMSELECT::getWhereStmt(...)</b> (".
get_class($this).
")</p>\n";
$s_ret=
parent::getWhereStmt($arrName,$append,$debug,$withWhereAnd);
if (strstr($s_ret,"WHERE")) $s_ret.=
" AND "; else $s_ret.=
" WHERE ";
$s_ret.=
"FRM_TABLES LIKE '%".
$this->formTable.
"%' ";
Documentation generated on Thu, 08 Jan 2009 17:41:09 +0100 by phpDocumentor 1.4.0a2