Source for file DBMS_FIELD_CHECKBOX.phpclass

Documentation is available at DBMS_FIELD_CHECKBOX.phpclass

  1. <?php
  2. /**
  3.   * Class file DBMS_FIELD_CHECKBOX.phpclass
  4.   *
  5.   * @project    Open CSP-Management
  6.   * @package    dbms_field
  7.   * @category   any
  8.   *
  9.   * @author     Peter Krebs <pitlinz@users.sourceforge.net>
  10.   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  11.   *
  12.   * @version pk-05-02-16
  13.   * @version $Id: DBMS_FIELD_CHECKBOX.phpclass,v 1.4 2008/08/08 02:00:42 pitlinz Exp $
  14.   */
  15.  
  16.     pcf_require_class('DBMS_FIELD',dirname(__FILE__"/");
  17.  
  18. /**
  19.   * Class DBMS_FIELD_CHECKBOX
  20.   *
  21.   * @project    Open CSP-Management
  22.   * @package    dbms_field
  23.   * @category   any
  24.   *
  25.   * @author     Peter Krebs <pitlinz@users.sourceforge.net>
  26.   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  27.   *
  28.   * @version pk-04-05-27
  29.   * @version pk-05-11-13
  30.   *
  31.   *  pk-04-05-27:
  32.   *  ---------------------------------
  33.   *  changed parent class from DBMS_FIELD_INT to DBMS_FIELD
  34.   *
  35.   ***/
  36. class DBMS_FIELD_CHECKBOX extends DBMS_FIELD 
  37. {
  38.     // ---------------------------------------------------------------------------
  39.     // constants
  40.     // ---------------------------------------------------------------------------
  41.     
  42.     /**
  43.      * @constant string CLASS_SRC_FILE
  44.      */
  45.     const CLASS_SRC_FILE = __FILE__;
  46.  
  47.     // ---------------------------------------------------------------------------
  48.     // class (static)
  49.     // ---------------------------------------------------------------------------
  50.     
  51.     /*** class vars ------------------------------------------------------ */
  52.     
  53.     /*** class methods --------------------------------------------------- */
  54.     
  55.     // ---------------------------------------------------------------------------
  56.     // object vars
  57.     // ---------------------------------------------------------------------------
  58.     
  59.     /*** compostion --------------------------------------------------- */
  60.     
  61.     /*** attributes  -------------------------------------------------- */
  62.         
  63.     /**
  64.       * source file of the class
  65.       * (without $GLOBALS['PROJECT']['PATH']
  66.       *
  67.       * @var string $classSrcFile 
  68.       * @since pk-05-01-11
  69.       ***/
  70.     protected $classSrcFile=__FILE__;    
  71.  
  72.     /**
  73.      * @var mixed $checkedValue 
  74.      */
  75.     protected $checkedValue   = 1;
  76.     /**
  77.      * @var mixed $$uncheckedValue 
  78.      */
  79.     protected $uncheckedValue = 0;
  80.     
  81.     /**
  82.      * @var string $checkText 
  83.      */
  84.     protected $checkText      = "";
  85.     /**
  86.      * @var string $uncheckText 
  87.      */
  88.     protected $uncheckText    = "";
  89.     
  90.     /**
  91.       * list layout
  92.       *
  93.       * styles:
  94.       *     0 -> check/uncheckText
  95.       *     1 -> disabled checkbox
  96.       *     2 -> ok.gif / nothing
  97.       *     3 -> ok.gif / cancel.gif
  98.       *     4 -> cancel.gif / ok.gif
  99.       *
  100.       * @since pk-06-01-30
  101.       *
  102.       */
  103.     protected $lstStyle       = 0;
  104.  
  105.     /**
  106.       * @var boolean $reloadFormOnChange 
  107.       * @since pk-05-11-13
  108.       ***/
  109.     protected $reloadFormOnChange = False;
  110.  
  111.  
  112.     // ###########################################################
  113.     // OBJECT SETTINGS METHODS
  114.     // ###########################################################
  115.  
  116.     // ###########################################################
  117.     // FIELD DEFINITION DATA METHODS
  118.     // ###########################################################
  119.  
  120.     /**
  121.       * returns an array of field to bie shown in the edit form
  122.       * by using editTbl_echoForm
  123.       *
  124.       * the array is in the form:
  125.       *
  126.       * <code>
  127.       * [_sectionName_]
  128.       *      [TITLE] -> string
  129.       *      [_rowName_]
  130.       *         [FLDLAB]  (complete html code with <td></td>)
  131.       *         [FLDVAL] (complete html code with <td></td>)
  132.       * </code>
  133.       *
  134.       * @param boolean $debug 
  135.       *
  136.       * @returns array
  137.       *
  138.       * @since pk-06-06-29
  139.       *
  140.       ***/
  141.     function editTbl_getFieldEditArr($debug=FALSE{
  142.         if ($debugechoDebugMethod(__FILE__,get_class($this),"DBMS_FIELD_INT::editTbl_getFieldEditArr","",0);
  143.         $a_ret=parent::editTbl_getFieldEditArr($debug);
  144.  
  145.         $a_ret['CHKBOX']=array(
  146.             'FLD_CHECKED_VAL' => array(
  147.                 'FLDLAB'    => 'Checked Value:',
  148.                 'FLDVAL'    => "<input name=\"CHECKEDVALUE\" type=\"input\" value=\"".$this->checkedValue."\" size=\"3\">"
  149.                 ),
  150.             'FLD_CHECKED_TXT' => array(
  151.                 'FLDLAB'    =>'checked Label:',
  152.                 'FLDVAL'    =>"<input name=\"CHECKTEXT\" type=\"input\" value=\"".$this->checkText."\" size=\"30\">"
  153.                 ),
  154.             'FLD_UNCHECKED_VAL' => array(
  155.                 'FLDLAB'    => 'Unchecked Value:',
  156.                 'FLDVAL'    => "<input name=\"uncheckedValue\" type=\"input\" value=\"".$this->uncheckedValue."\" size=\"3\">"
  157.                 ),
  158.             'FLD_UNCHECKED_TXT' => array(
  159.                 'FLDLAB'    =>'unchecked Label:',
  160.                 'FLDVAL'    =>"<input name=\"UNCHECKTEXT\" type=\"input\" value=\"".$this->uncheckText."\" size=\"30\">"
  161.                 )
  162.         );
  163.  
  164.         $a_ret['VALCHECKS']['RELOADONCHANGE']=array(
  165.             'FLDLAB'    => "Formular neu Laden:",
  166.             'FLDVAL'    => '<input name="RELOADONCHANGE" type="checkbox" value="1" '.($this->reloadFormOnChange ? 'checked' '').'> ja FORMULAR an aktuelle URL schicken'
  167.         );
  168.  
  169.         $a_ret['LIST']['CHKBOXLSTSTYLE']=array(
  170.             'FLDLAB'    => "Listenstyle:",
  171.             'FLDVAL'    =>"
  172.                             <select name=\"lstStyle\" size=\"1\">
  173.                                 <option value=\"0\" ".($this->lstStyle == "0" "selected" "").">Checked/Uncheckd Label</option>
  174.                                 <option value=\"1\" ".($this->lstStyle == "1" "selected" "").">Checkbox (disabled)</option>
  175.                                 <option value=\"2\" ".($this->lstStyle == "2" "selected" "").">OK Icon</option>
  176.                                 <option value=\"3\" ".($this->lstStyle == "3" "selected" "").">OK/Cancel Icon</option>
  177.                                 <option value=\"4\" ".($this->lstStyle == "4" "selected" "").">Cancel/OK Icon (Cancel=checked)</option>
  178.                             </select>
  179.                           "
  180.         );
  181.  
  182.  
  183.         return $a_ret;
  184.     }
  185.  
  186.     /**
  187.       * show the filed definition form
  188.       *
  189.       * @param bool $showSize    obsulet   show size input
  190.       * @param boolean $showUnit obsulet
  191.       * @param bool $showNull    obsulet   show input field to handle null values
  192.       *
  193.       * @deprecated since pk-06-06-29
  194.       *
  195.       ***/
  196.     function editTblForm($showSize=FALSE,$showUnit=FALSE,$showNull=FALSE{
  197.         $a_FieldEditArr=$this->editTbl_getFieldEditArr($debug);
  198.         $this->editTbl_echoForm($a_FieldEditArr,$debug);
  199.     }
  200.  
  201.     ###############################
  202.  
  203.     /**
  204.       * save the filed definition form
  205.       *
  206.       * @returns boolean
  207.       *
  208.       ***/
  209.  
  210.     function save({
  211.         parent::save();
  212.  
  213.         $this->checkedValue     =$_POST['CHECKEDVALUE'];
  214.         $this->uncheckedValue   =$_POST['uncheckedValue'];
  215.         $this->checkText        =$_POST['CHECKTEXT'];
  216.         $this->uncheckText      =$_POST['UNCHECKTEXT'];
  217.         $this->lstStyle         =$_POST['lstStyle']// <pk-06-01-30 />
  218.  
  219.         $this->reloadFormOnChange=(intval($_POST['RELOADONCHANGE']TRUE FALSE );
  220.  
  221.         return TRUE;
  222.     }
  223.  
  224.     /**
  225.       * returns if the list cell can be linked with the ['EDIT'] link
  226.       *
  227.       * @returns boolean
  228.       *
  229.       * @since pk-06-01-30
  230.       ***/
  231.     function lstLinksDisabled({
  232.         return TRUE;
  233.     }
  234.  
  235.     ###############################
  236.  
  237.     /**
  238.       * gets the htmlcode for the reload button (if $this->reloadFormOnChange)
  239.       * a html link which submits document.forms['".$this->getMyFormName()."'] to global $frmReloadURL if set
  240.       * otherwise the form is submitted to $_SERVER['REQUEST_URI']
  241.       *
  242.       * @param string $arrName 
  243.       *
  244.       * @returns string
  245.       *
  246.       * @since pk-04-08-31
  247.       *
  248.       ***/
  249.     function getReloadButton($arrName="DBVAL"{
  250.         global $frmReloadURL;
  251.         if (empty($frmReloadURL)) {
  252.             $frmReloadURL=$_SERVER['REQUEST_URI'];
  253.         }
  254.         if ($this->reloadFormOnChange{
  255.             $ret ="<a href=\"javascript:{document.forms['".$this->getMyFormName()."'].action='".$frmReloadURL."';document.forms['".$this->getMyFormName()."'].submit();}\">";
  256.             $ret.="<img src=\"".$GLOBALS['PROJECT']['SYSIMGURL']."icons-22x22/reload.png\" border=\"0\" alt=\"refresh form\"  width=\"18\" height=\"18\" class=\"button\">";
  257.             $ret.="</a>";
  258.         }
  259.         return $ret;
  260.     }
  261.  
  262.     /**
  263.       * returns the html code for the checkbox
  264.       *
  265.       * @param mixed $aValue 
  266.       * @param string $arrName 
  267.       * @param string $nameAdd 
  268.       * @param boolean $addChkTxt 
  269.       *
  270.       * @returns string
  271.       *
  272.       * @version pk-05-12-28
  273.       *
  274.       ***/
  275.     function getInputTag($aValue,$arrName="DBVAL",$nameAdd="",$addChkTxt=TRUE{
  276.         global $frmReloadURL;
  277.         if (empty($frmReloadURL)) {
  278.             $frmReloadURL=$_SERVER['REQUEST_URI'];
  279.         }
  280.         $tag  "<input ";
  281.         $tag .= "name=\"".$arrName."[".$this->myName."]".$nameAdd."\" ";
  282.         $tag .= "type=\"checkbox\" value=\"".$this->checkedValue."\" ";
  283.         if ($aValue == $this->checkedValue$tag.= "checked ";
  284.         if ($this->reloadFormOnChange{
  285.             $tag.=" onChange=\"document.forms['".$this->getMyFormName()."'].action='".$frmReloadURL."';";
  286.             $tag.="document.forms['".$this->getMyFormName()."'].submit();\"";
  287.         }
  288.         $tag .= ">";
  289.         if ($addChkTxt// <pk-05-12-28>
  290.             $tag .= " ".$this->checkText;
  291.         // </pk-05-12-28>
  292.         return $tag;
  293.     }
  294.  
  295.     /**
  296.       * returns the html code for the field value input / show
  297.       * adds $this->myName to ${$this->myDataArrName}['_DBMS_FIELDS']
  298.       *
  299.       * @param int $mode 
  300.       * @param mixed $aValue 
  301.       * @param boolean $debug 
  302.       * @param boolean $addChkTxt 
  303.       *
  304.       * @returns string
  305.       *
  306.       * @since pk-05-12-28
  307.       * @version pk-06-01-30 FRM_MODE_LIST added
  308.       *
  309.       ***/
  310.     function getFieldTag($mode,$aValue=NULL,$debug=FALSE,$addChkTxt=TRUE{
  311.         if (empty($this->myDataArrName)) $this->myDataArrName="DBVAL";
  312.         global ${$this->myDataArrName};
  313.         $debug=($debug || $this->fldDebug);
  314.         if ($debugechoDebug(__FILE__,"<p><b>DBMS_FIELD::getFieldTag($mode,".htmlspecialchars(substr($aValue,0,10)).",...)</b> (".get_class($this)."/".$this->myName.")",0);
  315.  
  316.         $this->myCurrentMode=$mode;
  317.         $ret="";
  318.         switch($mode{
  319.             case FRM_MODE_NEW:
  320.                  if (empty($aValue&& (strval($aValue!== "0")) $aValue=$this->getDefaultValue();
  321.                  if ($this->enableNew{
  322.                      $ret .= $this->getInputTag($aValue,$this->myDataArrName,"",$addChkTxt);
  323.                      $ret .= $this->getAddTag($this->myDataArrName);
  324.                      if (isset(${$this->myDataArrName}['_DBMS_FIELDS'])) ${$this->myDataArrName}['_DBMS_FIELDS'].=$this->myName.",";
  325.                      return $ret;
  326.                  else {
  327.                     $ret.=$this->getFieldTag(FRM_MODE_READONLY,$aValue,$debug);
  328.                     $ret.=$this->getFieldTag(FRM_MODE_HIDDEN,$aValue,$debug);
  329.                     return $ret;
  330.                  }
  331.             case FRM_MODE_COPY:
  332.                  if (empty($aValue&& (strval($aValue!== "0")) $aValue=$this->getDefaultValue();
  333.                  if ($this->enableCopy{
  334.                      $ret .= $this->getInputTag($aValue,$this->myDataArrName,"",$addChkTxt);
  335.                      $ret .= $this->getAddTag($this->myDataArrName);
  336.                      if (isset(${$this->myDataArrName}['_DBMS_FIELDS'])) ${$this->myDataArrName}['_DBMS_FIELDS'].=$this->myName.",";
  337.                      return $ret;
  338.                  else {
  339.                     $ret.=$this->getFieldTag(FRM_MODE_READONLY,$aValue,$debug);
  340.                     $ret.=$this->getFieldTag(FRM_MODE_HIDDEN,$aValue,$debug);
  341.                     return $ret;
  342.                  }
  343.             case FRM_MODE_EDIT:
  344.                  if ($this->enableEdit{
  345.                      $ret .= $this->getInputTag($aValue,$this->myDataArrName,"",$addChkTxt);
  346.                      $ret .= $this->getAddTag($this->myDataArrName);
  347.                      if (isset(${$this->myDataArrName}['_DBMS_FIELDS'])) ${$this->myDataArrName}['_DBMS_FIELDS'].=$this->myName.",";
  348.                      return $ret;
  349.                  else {
  350.                     $ret.=$this->getFieldTag(FRM_MODE_READONLY,$aValue,$debug);
  351.                     $ret.=$this->getFieldTag(FRM_MODE_HIDDEN,$aValue,$debug);
  352.                     return $ret;
  353.                  }
  354.             case FRM_MODE_LIST:
  355.                 return $this->getListValue($aValue,$this->myDataArrName,$debug);
  356.             default:
  357.                 return parent::getFieldTag($mode,$aValue,$debug);
  358.         }
  359.     }
  360.  
  361.  
  362.  
  363.     // ################################################
  364.     // SEARCH FORM METHODS
  365.     // ################################################
  366.  
  367.  
  368.     /**
  369.       * only no options for this fieldtype
  370.       *
  371.       * @param string $arrName name of the post array
  372.       *
  373.       * @return string
  374.       *
  375.       * @since pk-05-02-16
  376.       *
  377.       **/
  378.     function getSearchCompTypes($arrName{
  379.         return "";
  380.     }
  381.  
  382.     /**
  383.       * returns the html code for a searchformular element
  384.       * 3 radiobox are shown checked, unchecked and ignore
  385.       * to avoid trubbles with 0 NULL and so an the
  386.       *
  387.       * radioboxes uses the values:
  388.       * - !CHECKED!
  389.       * - !UNCHECKED!
  390.       * - !IGNORE!
  391.       *
  392.       * @param mixed $aValue the value to set
  393.       * @param string $arrName
  394.       *
  395.       * @returns string
  396.       *
  397.       * @since pk-06-01-25
  398.       * @version pk-06-02-13
  399.       *
  400.       **/
  401.     function getSearchInputTag($aValue,$arrName="DBVAL"{
  402.         $s_name="name=\"".$arrName."[".$this->myName."][VALUE]\"";
  403.         $b_radio_checked=FALSE// either checked or unchecked box is checked
  404.  
  405.         //echo "<pre>".print_r($aValue,TRUE)."</pre>";
  406.         $s_ret="<input type=\"radio\" value=\"!CHECKED!\" $s_name";
  407.         if (($aValue==$this->checkedValue|| ($aValue=="!CHECKED!")) {
  408.             $s_ret.=" checked ";
  409.             $b_radio_checked=TRUE;
  410.         }
  411.         $s_ret.= "> ".(empty($this->checkText"gesetzt" $this->checkText)." ";
  412.  
  413.         $s_ret.="<input type=\"radio\" value=\"!UNCHECKED!\" $s_name";
  414.         if (($aValue==$this->uncheckedValue|| ($aValue=="!UNCHECKED!")) {
  415.             $s_ret.=" checked ";
  416.             $b_radio_checked=TRUE;
  417.         }
  418.         $s_ret.= "> ".(empty($this->uncheckText"nicht gesetzt" $this->uncheckText)." ";
  419.  
  420.         $s_ret.="<input type=\"radio\" value=\"!IGNORE!\" $s_name";
  421.         if (!$b_radio_checked{
  422.             $s_ret.=" checked ";
  423.         }
  424.         $s_ret.= "> ignorieren";
  425.  
  426.         return $s_ret;
  427.     }
  428.  
  429.     /**
  430.       * checks the searchform post field array if [VALUE] != "!IGNORE!"
  431.       * if the field is not to ignore parent::searchWhere() is called
  432.       *
  433.       * @param  array $aArr the posted array of the filed form the search form
  434.       * @param  bool  $debug
  435.       *
  436.       * @returns string
  437.       *
  438.       **/
  439.     function searchWhere($aArr,$debug=FALSE{
  440.         if ($debugechoDebugMethod(__FILE__,get_class($this),"DBMS_FIELD_CHECKBOX::searchWhere()","",0);
  441.  
  442.         $s_ret=($aArr['ANDOR'== "OR" " OR " " AND ");
  443.         switch($aArr['VALUE']{
  444.             case "!IGNORE!":
  445.                 return "";
  446.             case "!CHECKED!":
  447.                 $ret.=$this->myTable.".".$this->myName;
  448.                 $ret.=" = ".$this->slashedValue($this->checkedValue,$err,$arrName,$debug);
  449.                 return $s_ret;
  450.             case "!CHECKED!":
  451.                 $ret.=$this->myTable.".".$this->myName;
  452.                 $ret.=" <> ".$this->slashedValue($this->checkedValue,$err,$arrName,$debug);
  453.                 return $s_ret;
  454.             default:
  455.                return parent::searchWhere($aArr,$debug);
  456.         }
  457.     }
  458.  
  459.  
  460.     // ###########################################################
  461.     // OBJECT VALUE CHECK/RETURN METHODS
  462.     // ###########################################################
  463.  
  464.     function getScreenValue($aValue,$arrName,$debug{
  465.         return (($aValue == $this->checkedValue((!empty($this->checkText)) $this->checkText : "Ja"((!empty($this->uncheckText)) $this->uncheckText : "Nein"));
  466.     }
  467.  
  468.     /**
  469.       * returns the field value if the referenzed row exists
  470.       *
  471.       * @param  string  $aValue     the value
  472.       * @param  array   $err        error array
  473.       * @param  string  $arrName    name of the array to access fieldsarray  gloabl ${$arrName}
  474.       * @param  bool    $debug
  475.       *
  476.       * @return string
  477.       *
  478.       * @since   pk-03-12-13
  479.       * @version pk-04-06-02
  480.       *
  481.       **/
  482.     function getValue($aValue,&$err,$arrName="DBVAL",$debug=FALSE{
  483.         if ($this->fldDebug$debug=TRUE/* <pk-04-06-02> */
  484.         if ($debugecho "<hr><p><b>DBMS_FIELD_CHECKBOX::getValue($aValue,$err,$arrName,$debug)</b> (".get_class($this)." | ".$this->myName.")</p>";
  485.         return ($aValue == $this->checkedValue ? $this->checkedValue : $this->uncheckedValue);
  486.         //return parent::getValue($val,$err,$arrName,$debug);
  487.     }
  488.  
  489.     /**
  490.       * add slashes to the value to add it to a sql command
  491.       *
  492.       * @param  string  $aValue     the value
  493.       * @param  array   $err        error array
  494.       * @param  string  $arrName    name of the global array to access field gloabl ${$arrName}
  495.       * @param  bool    $debug
  496.       *
  497.       * @return string
  498.       *
  499.       * @version pk-03-12-13
  500.       * @version pk-06-07-28
  501.       *
  502.       **/
  503.     function slashedValue($aValue,&$err,$arrName="DBVAL",$debug=FALSE{
  504.         if ($this->fldDebug$debug=TRUE/* <pk-04-06-02> */
  505.         if ($debugecho "<hr><p><b>DBMS_FIELD_CHECKBOX::slashedValue($aValue,$err,$arrName,$debug)</b> (".get_class($this)."/".$this->myName.")</p>";
  506.         // $val=($aValue == $this->checkedValue ? $this->checkedValue : $this->uncheckedValue);
  507.         // <pk-06-07-28>
  508.         //return parent::slashedValue($aValue,$err,$arrName,$debug);
  509.         if ($aValue==$this->checkedValue{
  510.             return parent::slashedValue($this->checkedValue,$err,$arrName,$debug);
  511.         else {
  512.             return parent::slashedValue($this->uncheckedValue,$err,$arrName,$debug);
  513.         }
  514.  
  515.     }
  516.     
  517.     /**
  518.       * returns the html representation of the field in a list (table col)
  519.       *
  520.       * @param mixed $aValue (the value)
  521.       * @param string $arrName (name of the global array holding data values)
  522.       * @param boolean $debug
  523.       * 
  524.       * @global array $OCSP_CONF 
  525.       *
  526.       * @return mixed the html representation of the field
  527.       *
  528.       * @since pk-07-11-08
  529.       *
  530.       **/
  531.     function getListValue($aValue=NULL,$arrName="DBVAL",$debug=FALSE
  532.     {
  533.         global $OCSP_CONF;
  534.         if ($debugechoDebugMethod(__FILE__,get_class($this),"DBMS_FIELD_CHECKBOX::getListValue()");
  535.         
  536.         switch(intval($this->lstStyle)) 
  537.         {
  538.             case 0// labels
  539.                 if ($aValue==$this->checkedValue{
  540.                     return $this->checkText;
  541.                 else {
  542.                     return $this->uncheckText;
  543.                 }            
  544.             case 1// input
  545.                 return "<span style=\"text-align:center\"><input type=\"checkbox\" ".(($aValue == $this->checkedValue"checked" "")." disabled=\"disabled\"/></span>";
  546.             case 2// checked
  547.                 if ($aValue==$this->checkedValue{
  548.                     return "<img src=\"".$OCSP_CONF['SYSIMGURL']."icons-16x16/ok.gif\" title=\"".$this->checkedValue."\" border=\"0\" align=\"center\" alt=\"ok\" />";
  549.                 else {
  550.                     return "&nbsp;";
  551.                 }
  552.             case 3// ok | cancel
  553.                 if ($aValue==$this->checkedValue{
  554.                     return "<img src=\"".$OCSP_CONF['SYSIMGURL']."icons-16x16/ok.gif\" title=\"".$this->checkedValue."\" border=\"0\" align=\"center\" alt=\"ok\" />";
  555.                 else {
  556.                     return "<img src=\"".$OCSP_CONF['SYSIMGURL']."icons-16x16/cancel.gif\" title=\"".$this->uncheckedValue."\" border=\"0\" align=\"center\" alt=\"not ok\" />";
  557.                 }
  558.             case 4// cancel | ok
  559.                 if ($aValue==$this->checkedValue{
  560.                     return "<img src=\"".$OCSP_CONF['SYSIMGURL']."icons-16x16/cancel.gif\" title=\"".$this->uncheckedValue."\" border=\"0\" align=\"center\" alt=\"not ok\" />";
  561.                 else {
  562.                     return "<img src=\"".$OCSP_CONF['SYSIMGURL']."icons-16x16/ok.gif\" title=\"".$this->checkedValue."\" border=\"0\" align=\"center\" alt=\"ok\" />";
  563.                 }
  564.             default:
  565.                 return $aValue;
  566.         }
  567.     }
  568.  
  569. }
  570. ?>

Documentation generated on Thu, 08 Jan 2009 17:40:36 +0100 by phpDocumentor 1.4.0a2