1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44:
<?php
defined('ICMS_ROOT_PATH') or die("ImpressCMS root path not defined");
class icms_ipf_form_elements_Passwordtray extends icms_form_elements_Tray {
private $_key;
public function __construct($object, $key){
$var = $object->vars[$key];
$control = $object->controls[$key];
icms_loadLanguageFile('core', 'user');
parent::__construct($var['form_caption'] . '<br />' . _US_TYPEPASSTWICE, ' ', $key . '_password_tray');
$password_box1 = new icms_form_elements_Password('', $key . '1', 10, 32, '', FALSE, "password_adv");
$this->addElement($password_box1);
$this->_key = $key;
}
public function render() {
$ret = parent::render();
$ret .= "<input type='password' name='" . $this->_key . "2' id='" . $this->_key . "2' "
. "size='10' maxlength='32' value='' autocomplete='off' />";
return $ret;
}
}