Source for file DBMS_FIELD_CLISELECT.phpclass
Documentation is available at DBMS_FIELD_CLISELECT.phpclass
  * Class file DBMS_FIELD_CLISELECT.phpclass  
  * @project    Open CSP-Management  
  * @author     Peter Krebs <pitlinz@users.sourceforge.net>  
  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License  
  * @version $Id: DBMS_FIELD_CLISELECT.phpclass,v 1.6 2008/06/13 15:30:16 pitlinz Exp $  
  * Class file DBMS_FIELD_CLISELECT.phpclass  
  * @project    Open CSP-Management  
  * @author     Peter Krebs <pitlinz@users.sourceforge.net>  
  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License  
  * @version $Id: DBMS_FIELD_CLISELECT.phpclass,v 1.6 2008/06/13 15:30:16 pitlinz Exp $  
      * source file of the class  
      * @var string $classSrcFile   
     * @var string $lookupTable   
    protected $lookupShowField = 
"CONCAT(CLI_NAME1,IFNULL(CONCAT(' ',CLI_NAME2),''),' (',IFNULL(CLI_NUMBER,CONCAT('ID :',CLI_ID)),')')";  
     * type of client (CTY_ID)  
      * 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>)  
        $a_ret['LAYOUT']['FLD_SIZE']=
NULL;      // unset parent field  
        $a_ret['LAYOUT']['FLD_INPUTADD']=
NULL;  // unset parent field  
        $a_ret['DBLOOKUP']['FLD_LUTBL']['FLDVAL']=
"T_CLI_CLIENT";  
        $a_ret['DBLOOKUP']['FLD_VALFLD']['FLDVAL']=
"CLI_ID";  
        unset
($a_ret['DBLOOKUP']['FLD_VALFLD']); 
        $a_ret['DBLOOKUP']['FLD_WHEREFLD']=
array(  
                'FLDVAL'=>
"#SELECT see below#"  
        $a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL']=
"  
                <select name=\"ctyId\" size=\"1\">\n  
                    <option value=\"0\">--- ALLE ---</option>  
        $s_query=
"SELECT * FROM T_CLI_TYPE ORDER BY CTY_SORTORDER,CTY_NAME";  
        if ($o_cursor=
$GLOBALS['USRDB']->query($s_query)) {  
            while($a_cty=
$o_cursor->fetchArrayFld()) {  
                $a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'].=
"<option value=\"".
$a_cty['CTY_ID'].
"\"";  
                if ($this->ctyId==
$a_cty['CTY_ID']) $a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'].=
" selected";  
                $a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'].=
">".
$a_cty['CTY_NAME'].
"</option>\n";  
        $a_ret['DBLOOKUP']['FLD_WHEREFLD']['FLDVAL'].=
"  
        $this->allowNullSelect  = 
FALSE;  
        $this->ctyId            = 
(isset
($_POST['ctyId']) ? 
intval($_POST['ctyId']) : 
0);  
 
 
	
		Documentation generated on Thu, 08 Jan 2009 17:40:37 +0100 by phpDocumentor 1.4.0a2