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); } }
function draw(&$form) { parent::draw($form); if ($this->updatable) { $myOldInput = new CHAW_input($this->key . '_old', '', camila_get_translation('camila.form.oldpassword') . $this->labelseparator); if ($this->maxlength > 0) { $myOldInput->set_maxlength($this->maxlength); } if ($this->size > 0) { $myOldInput->set_size($this->size); } $myOldInput->set_type(HAW_INPUT_PASSWORD); $form->add_input($myOldInput); $myInput = new CHAW_input($this->key, '', $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); $myConfirmInput = new CHAW_input($this->key . '_confirm', '', camila_get_translation('camila.form.confirmpassword') . $this->labelseparator); if ($this->maxlength > 0) { $myConfirmInput->set_maxlength($this->maxlength); } if ($this->size > 0) { $myConfirmInput->set_size($this->size); } $myConfirmInput->set_type(HAW_INPUT_PASSWORD); $form->add_input($myConfirmInput); } else { $myText = new CHAW_text($this->title . $this->labelseparator . ' *******'); $form->add_text($myText); } }
$nome = new CHAW_input('name', $_REQUEST['name'], camila_get_translation('camila.login.name') . ': '); } else { $nome = new CHAW_input('name', '', camila_get_translation('camila.login.name') . ': '); } $nome->set_size(20); $nome->set_maxlength(20); $myForm->add_input($nome); $myParClose = new HAW_raw(HAW_HTML, '</p>'); $myForm->add_raw($myParClose); } $myParOpen = new HAW_raw(HAW_HTML, '<p>'); $myForm->add_raw($myParOpen); $thePW1 = new CHAW_input('pwd', '', camila_get_translation('camila.login.password') . ': '); $thePW1->set_size(20); $thePW1->set_maxlength(CAMILA_PASSWORD_LENGTH); $thePW1->set_type(HAW_INPUT_PASSWORD); $myForm->add_input($thePW1); $myParClose = new HAW_raw(HAW_HTML, '</p>'); $myForm->add_raw($myParClose); if (CAMILA_USERNAME_LOGIN) { $myParOpen = new HAW_raw(HAW_HTML, '<p>'); $myForm->add_raw($myParOpen); $myCheckbox = new CHAW_checkbox('remembersession', 'yes', camila_get_translation('camila.login.remembersession')); //$myCheckbox->set_br(0); $myForm->add_checkbox($myCheckbox); $myForm->add_raw($myParClose); if ($dh2 = opendir('./lang/')) { $myForm->add_raw($myParOpen); $mySelect = new CHAW_select('lang'); while (($file2 = readdir($dh2)) !== false) { if (substr($file2, -9) == '.lang.php') {