Source for file DBMS_FIELD_SELINOUT.phpclass
Documentation is available at DBMS_FIELD_SELINOUT.phpclass
-   * Class file DBMS_FIELD_SELINOUT.phpclass 
-   * @project    Open CSP-Management 
-   * @author     Peter Krebs <p.krebs@wpus.at> 
-   * @copyright  (c) 2002-2004 by Peter Krebs and Landesverlag Unternehmensservice 
-   * @copyright  (c) 2004 by WURM & Partner Unternehmensservice GmbH 
-   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License 
- require_once dirname(- __FILE__ )- . "/DBMS_FIELD_SELECTLIST.phpclass"; // <pk-05-10-25 />
 
-   * Class DBMS_FIELD_SELINOUT 
-   * handels to <SELECT> elements 
-   * one with the selected list and the other with the not selected elements 
-   * @project    Open CSP-Management 
-   * @author     Peter Krebs <p.krebs@wpus.at> 
-   * @copyright  (c) 2002-2004 by Peter Krebs and Landesverlag Unternehmensservice 
-   * @copyright  (c) 2004 by WURM & Partner Unternehmensservice GmbH 
-   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License 
-     // ########################################################### 
-     // OBJECT (CONST) VAR DECLARATION 
-     // ########################################################### 
-       * source file of the class 
-       * @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>) 
-         unset ($a_ret['COMMON']['FLD_SHOWNULLOPT']);
-         $a_ret['SELECT']['FLD_asJSCode'] - = array(
 
-             'FLDVAL'- => "<input name=\"asJSCode\" type=\"checkbox\" value=\"1\">"- . ($this->asJSCode-  ?  "checked"- :  "")- . " Ausgabe als Javascript und normales select im <NOSCRIPT> Bereich "
 
-       * echos the filed definition form 
-       * @param boolean $showSize  
-       * @param boolean $showDBFields  
-       * @version pk-05-12-05 $showDBFields added 
-       * @version pk-05-12-08 allowAddValues outside if($showDBFields) 
-       * @version pk-06-02-06 popUp_frmId 
-       * @deprecated since pk-06-04-26 
-         if (intval($_POST['SELECTSIZE'])- > 1) {
 
-     // ########################################################### 
-     // ########################################################### 
-     // ########################################################### 
-     // OBJECT HTML FORM METHODS 
-     // ########################################################### 
-       * returns the javascript code to relaod the form 
-         $tag - .=  " document.forms["- . $this->getJSDocFormId()- . "].action='"- . $this->getReloadURL()- . "#"- . $this->myName- . "';";
 
-         $tag - .=  " document.forms["- . $this->getJSDocFormId()- . "].submit();";
 
-       * returns the html select tag onChange statement to reload the form 
-         global $frmDocumentFormId; 
-       * returns the html code for a button to reload the form 
-         global $frmDocumentFormId; 
-         $ret - = "<span class=\"button\">";
 
-         $ret- .= "<img src=\""- . $GLOBALS['PROJECT']['SYSIMGURL']- . "icons-22x22/reload.png\" border=\"0\" alt=\"refresh form\"  width=\"18\" height=\"18\">";
 
-       * returns a string with the selected option values ($aValArr) 
-       * calls setMyValues to be sure $this->myValues is set correkt 
-       * @param array $aValArr           array of selected values 
-       * @param boolean $showNotInVal    show values not in $this->myValues; 
-       * @param boolean $asJavaCode      the output is in a javascript 
-     function getOptionListIn($aValArr,$showNotInVal- = TRUE,$asJavaCode- = TRUE,$debug- = FALSE) {
 
-         $debug- = ($debug- ||  $this->fldDebug); // <pk-04-08-31>
 
-             echo  "<p><b>DBMS_FIELD_SELINOUT::getOptionListIn(\$aValArr,$showNotInVal,$asJavaCode,...)</b> ("- . get_class($this)- . ")</p>";
-             echo  "<blockquote><p>\$aValArr</p><pre>"- . print_r($aValArr,TRUE)- . "</pre></blockquote>";
-         foreach($aValArr as $key) { 
-                 if ($showNotInVal) $val- = $key;
 
-                 $ret- .= "\tdocument.writeln('";
 
-             $ret- .= "<option value=\"$key\">$val</option>";
 
-             if ($asJavaCode) $ret- .= "');";
 
-       * returns a string with the not selected option values (!in $aValArr) 
-       * calls setMyValues to be sure $this->myValues is set correkt 
-       * @param array $aValArr           array of selected values 
-       * @param boolean $showNotInVal    show values not in $this->myValues; 
-       * @param boolean $asJavaCode      the output is in a javascript 
-         $debug- = ($debug- ||  $this->fldDebug); // <pk-04-08-31>
 
-             echo  "<p><b>DBMS_FIELD_SELINOUT::getOptionListOut(\$aValArr,$asJavaCode,...)</b> ("- . get_class($this)- . ")</p>";
-             echo  "<blockquote><p>\$aValArr</p><pre>"- . print_r($aValArr,TRUE)- . "</pre></blockquote>";
-             foreach($aValArr as $key) { 
-         foreach($values as $key - =>  $val) {
 
-                 $ret- .= "\tdocument.writeln('";
 
-             $ret- .= "<option value=\"$key\">$val</option>";
 
-             if ($asJavaCode) $ret- .= "');";
 
-       * returns the html code for the select 
-       * @version pk-04-08-31 $debug added 
-     function getInputTag($aValue,$arrName- = "DBVAL",$debug- = FALSE) {
 
-         if ($debug) - echo  "<p><b>DBMS_FIELD_SELINOUT::getInputTag($aValue,$arrName,...)</b> ("- . get_class($this)- . ")</p>";
 
-         // prepare the value array 
-         if (!($valArr- = explode("\n",$aValue))) {
 
-         $tag - = "<input type=\"hidden\" name=\""- . $arrName- . "["- . $this->myName- . "]\" value=\"$aValue\">";
 
-         $tag- .= "<table align=\"center\" border=\"0\" class=\"frmSelInOut\">";
 
-         $tag- .= "<tr><td width=\"45%\">";
 
-         $tag- .= "</select></td>\n";
 
-         // middle (buttons) --------------------------------------------- 
-         $tag- .= "<td width=\"10%\" align=\"center\" class=\"frmSelInOutBtn\" valign=\"middle\">";
 
-             $tag- .= "<input type=\"submit\" name=\""- . $arrName- . "["- . $this->myName- . "_btnadd]\" value=\"<--\">";
 
-             $tag- .= "<input type=\"submit\" name=\""- . $arrName- . "["- . $this->myName- . "_btndel]\" value=\"-->\">";
 
-         // right-side (out list) ---------------------------------------- 
-         $tag- .= "<td width=\"45%\" align=\"center\">";
 
-         // echo "<pre>".htmlspecialchars($tag)."</pre>"; 
-     // ################################################ 
-     // ################################################ 
-     // ########################################################### 
-     // OBJECT VALUE CHECK/RETURN METHODS 
-     // ########################################################### 
- } // end class DBMS_FIELD_SELINOUT 
 
	
		Documentation generated on Thu, 08 Jan 2009 17:42:50 +0100 by phpDocumentor 1.4.0a2