Ejemplo n.º 1
0
 function draw(&$form)
 {
     parent::base_draw($form);
     if ($this->updatable) {
         $myInput = new CHAW_input($this->key, $this->value, $this->title . $this->labelseparator);
         if ($this->maxlength > 0) {
             $myInput->set_maxlength($this->maxlength);
         }
         if ($this->size > 0) {
             $myInput->set_size($this->size);
         }
         $myInput->set_type(HAW_INPUT_PASSWORD);
         $form->add_input($myInput);
     } else {
         //$myHidden = new CHAW_hidden($this->key, $this->value);
         //$form->add_input($myHidden);
         $myText = new CHAW_text($this->title . $this->labelseparator . ' **********');
         $form->add_text($myText);
     }
 }