18 require_once SQ_ATTRIBUTES_PATH.
'/text/text.inc';
63 if (!parent::setEditParams($node))
return false;
65 $this->_edit_params[
'min_length'] = isset($node->attributes()->min_length) ? (
int) $node->attributes()->min_length : 0;
66 if(isset($node->attributes()->autocomplete)){
67 $this->_edit_params[
'autocomplete'] = $node->attributes()->autocomplete;
82 function paint($prefix, $read_only=
false)
85 echo translate(
'password_not_shown');
89 require_once SQ_LIB_PATH.
'/html_form/html_form.inc';
92 password_box($prefix.
'_one',
'', $this->_edit_params[
'width'], $this->_params[
'max_length'],isset($this->_edit_params[
'autocomplete']) ?
'autocomplete="'.$this->_edit_params[
'autocomplete'].
'"' :
'');
94 password_box($prefix.
'_two',
'', $this->_edit_params[
'width'], $this->_params[
'max_length'],isset($this->_edit_params[
'autocomplete']) ?
'autocomplete="'.$this->_edit_params[
'autocomplete'].
'"' :
'');
110 if (!isset($_REQUEST[$prefix.
'_one']) && !isset($_REQUEST[$prefix.
'_two'])) {
113 $this->processed =
false;
115 $one = $_REQUEST[$prefix.
'_one'];
116 $two = $_REQUEST[$prefix.
'_two'];
125 $this->processed =
true;
127 $this->processed =
false;
130 trigger_localised_error(
'SYS0017', E_USER_WARNING);
131 $this->processed =
false;
147 $value = trim($value);
148 $new_value = (string)$value;
149 if ($new_value != $value)
return false;