/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/form/form_elements/FECheckBox.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/form/form_elements/FECheckBox.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jonen, Sat Feb 22 21:07:48 2003 UTC revision 1.2 by jonen, Sat Sep 20 00:20:15 2003 UTC
# Line 58  class FECheckBox extends FormElement { Line 58  class FECheckBox extends FormElement {
58       * @return string - the text associated       * @return string - the text associated
59       */       */
60      function get_value_text($value) {      function get_value_text($value) {
61          return $this->_text;          if ($value != NULL) {
62                return $this->_text;
63            } else {
64                return NULL;
65            }        
66      }      }
67    
68      /**      /**
# Line 108  class FECheckBoxList extends FEMultiList Line 112  class FECheckBoxList extends FEMultiList
112          }          }
113    
114          $attributes = $this->_build_element_attributes();          $attributes = $this->_build_element_attributes();
115            unset( $attributes["name"] );
116          $c = new DIVtag($attributes);          $c = new DIVtag($attributes);
117    
118          $element_name = $this->get_element_name();          $element_name = $this->get_element_name();
# Line 128  class FECheckBoxList extends FEMultiList Line 133  class FECheckBoxList extends FEMultiList
133              $checkbox = new INPUTtag($attributes);              $checkbox = new INPUTtag($attributes);
134    
135              $js_action = "javascript:elements['" . $name . "'].checked=!elements['".$name."'].checked;";              $js_action = "javascript:elements['" . $name . "'].checked=!elements['".$name."'].checked;";
136              $a_attributes = array("href" => "#",              $a_attributes = array("href" => "javascript:void(0)",
137                                    "onClick" => $js_action);                                    "onClick" => $js_action);
138              $a = new Atag($a_attributes, $text, FALSE);              $a = new Atag($a_attributes, htmlspecialchars($text), FALSE);
139    
140              $check = container( $checkbox, $a );              $check = container( $checkbox, $a );
141              $check->set_collapse();              $check->set_collapse();

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed