summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-12-25 10:47:28 +0000
committeralecpl <alec@alec.pl>2011-12-25 10:47:28 +0000
commit672dc411f9d26f557dbab0de4056714274a8fe92 (patch)
tree7b2a7570cc16568f2a2ab842a7147b8941a8060c /program/include
parent4f1b7a447dab993dfd3a3b1b6d4091b9d32ce24b (diff)
- Add password type field support in rcmail_get_edit_field() (#1488276)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 012ee8ddf..ac804bd0a 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -839,11 +839,11 @@ function rcube_table_output($attrib, $table_data, $a_show_cols, $id_col)
function rcmail_get_edit_field($col, $value, $attrib, $type='text')
{
static $colcounts = array();
-
+
$fname = '_'.$col;
$attrib['name'] = $fname . ($attrib['array'] ? '[]' : '');
$attrib['class'] = trim($attrib['class'] . ' ff_' . $col);
-
+
if ($type == 'checkbox') {
$attrib['value'] = '1';
$input = new html_checkbox($attrib);
@@ -857,6 +857,9 @@ function rcmail_get_edit_field($col, $value, $attrib, $type='text')
$input->add('---', '');
$input->add(array_values($attrib['options']), array_keys($attrib['options']));
}
+ else if ($attrib['type'] == 'password') {
+ $input = new html_passwordfield($attrib);
+ }
else {
if ($attrib['type'] != 'text' && $attrib['type'] != 'hidden')
$attrib['type'] = 'text';