| | |
| | | |
| | | while ($row = $result->next()) { |
| | | $row['sourceid'] = $s['id']; |
| | | $key = rcmail_contact_key($row, $sort_col); |
| | | $key = rcube_addressbook::compose_contact_key($row, $sort_col); |
| | | $records[$key] = $row; |
| | | } |
| | | |
| | |
| | | $label = isset($colprop['label']) ? $colprop['label'] : rcube_label($col); |
| | | $category = $colprop['category'] ? $colprop['category'] : 'other'; |
| | | |
| | | if ($ftype == 'text') |
| | | // load jquery UI datepicker for date fields |
| | | if ($colprop['type'] == 'date') |
| | | $colprop['class'] .= ($colprop['class'] ? ' ' : '') . 'datepicker'; |
| | | else if ($ftype == 'text') |
| | | $colprop['size'] = $i_size; |
| | | |
| | | |
| | | $content = html::div('row', html::div('contactfieldlabel label', Q($label)) |
| | | . html::div('contactfieldcontent', rcmail_get_edit_field('search_'.$col, '', $colprop, $ftype))); |
| | | |