|
|
@ -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')
|
|
|
|
function rcmail_get_edit_field($col, $value, $attrib, $type='text')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
static $colcounts = array();
|
|
|
|
static $colcounts = array();
|
|
|
|
|
|
|
|
|
|
|
|
$fname = '_'.$col;
|
|
|
|
$fname = '_'.$col;
|
|
|
|
$attrib['name'] = $fname . ($attrib['array'] ? '[]' : '');
|
|
|
|
$attrib['name'] = $fname . ($attrib['array'] ? '[]' : '');
|
|
|
|
$attrib['class'] = trim($attrib['class'] . ' ff_' . $col);
|
|
|
|
$attrib['class'] = trim($attrib['class'] . ' ff_' . $col);
|
|
|
|
|
|
|
|
|
|
|
|
if ($type == 'checkbox') {
|
|
|
|
if ($type == 'checkbox') {
|
|
|
|
$attrib['value'] = '1';
|
|
|
|
$attrib['value'] = '1';
|
|
|
|
$input = new html_checkbox($attrib);
|
|
|
|
$input = new html_checkbox($attrib);
|
|
|
@ -857,6 +857,9 @@ function rcmail_get_edit_field($col, $value, $attrib, $type='text')
|
|
|
|
$input->add('---', '');
|
|
|
|
$input->add('---', '');
|
|
|
|
$input->add(array_values($attrib['options']), array_keys($attrib['options']));
|
|
|
|
$input->add(array_values($attrib['options']), array_keys($attrib['options']));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if ($attrib['type'] == 'password') {
|
|
|
|
|
|
|
|
$input = new html_passwordfield($attrib);
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
if ($attrib['type'] != 'text' && $attrib['type'] != 'hidden')
|
|
|
|
if ($attrib['type'] != 'text' && $attrib['type'] != 'hidden')
|
|
|
|
$attrib['type'] = 'text';
|
|
|
|
$attrib['type'] = 'text';
|
|
|
|