Source for file DBMS_FIELD_PRO_PGPSELECT.phpclass
Documentation is available at DBMS_FIELD_PRO_PGPSELECT.phpclass
* Class file DBMS_FIELD_PRO_PGPSELECT.phpclass
* @project Open CSP-Management
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* Class DBMS_FIELD_PRO_PGPSELECT
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
var $showField =
"CONCAT(IFNULL(CONCAT(PGP_NUMBER,' '),''),PGP_NAME,' (',PGP_ID,')')";
var $whereAnd =
"(PROJ_ID='\$*PROJ_ID\$' OR PROJ_ID='\$^PROJ_ID\$' OR PROJ_ID=0)";
* @var boolean $incDefaultProj
* @var string $classSrcFile
// ###########################################################
// 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>)
$arr_ret['DBLOOKUP']['FLD_LUTBL'] =
array(
'FLDLAB' =>
t_admin("Tabellenwert"),
'FLDVAL' =>
"T_PRO_GROUP.PGP_ID"
unset
($arr_ret['DBLOOKUP']['FLD_VALFLD']);
<select name=\"projId\" size=\"1\">
<option value=\"-2\" " .
(($this->projId == -
2) ?
"selected=\"selected\"" :
"") .
">Alle</option>
<option value=\"-1\" " .
(($this->projId == -
1) ?
"selected=\"selected\"" :
"") .
">HTTP_GET/DBVAL</option>
<option value=\"0\" " .
(($this->projId ==
0) ?
"selected=\"selected\"" :
"") .
">default</option>
foreach($arr_proj as $arr_row)
$str_projSel .=
"<option value=\"{$arr_row['PROJ_ID']}\" " .
(($this->projId ==
$arr_row['PROJ_ID']) ?
"selected=\"selected\"" :
"") .
">{$arr_row['PROJ_NAME']}</option>";
$str_projSel .=
"</select>";
$arr_ret['DBLOOKUP']['FLD_PRGPROJ'] =
array(
'FLDVAL' =>
$str_projSel .
"<br />
<input type=\"checkbox\" name=\"incDefaultProj\" value=\"1\" " .
(intval($this->incDefaultProj) ?
"checked=\"checked\"" :
"") .
" />
Default Projekt einschließen
unset
($arr_ret['DBLOOKUP']['FLD_WHEREFLD']);
* echos the filed definition form
<td class="fldName">Wurzel zulassen</td>
<?php echo ($this->allowNullSelect ? "checked" : "");?> > ja
* save the filed definition form
//$this->lookupShowField ="CONCAT(IFNULL(CONCAT(PGP_NUMBER,' '),''),PGP_NAME,' (',PGP_ID,')')";
$this->incDefaultProj =
((isset
($_POST['incDefaultProj']) &&
intval($_POST['incDefaultProj'])) ?
True :
False);
$this->lookupWhere =
"(PROJ_ID='\$*PROJ_ID\$' OR PROJ_ID='\$^PROJ_ID\$')";
} else if ($this->projId == -
2) {
//$this->allowNullSelect =(intval($_POST['ALLOWMENROOT']) ? TRUE : FALSE );
// ###########################################################
// ###########################################################
// ###########################################################
// OBJECT HTML FORM METHODS
// ###########################################################
// ###########################################################
// ###########################################################
// ###########################################################
// OBJECT HTML FORM METHODS
// ###########################################################
// ###########################################################
// OBJECT VALUE CHECK METHODS
// ###########################################################
} // end class DBMS_FIELD_PRO_PGPSELECT
Documentation generated on Thu, 08 Jan 2009 17:42:42 +0100 by phpDocumentor 1.4.0a2