alecpl
2012-01-01 1c029b9c7c67c9603e9044b65c843300dd73ecb8
program/steps/addressbook/show.inc
@@ -25,12 +25,16 @@
$cid    = array_shift($cids[$source]);
// Initialize addressbook source
$CONTACTS = rcmail_contact_source($source, true);
$CONTACTS  = rcmail_contact_source($source, true);
$SOURCE_ID = $source;
// read contact record
if ($cid && ($record = $CONTACTS->get_record($cid, true))) {
    $OUTPUT->set_env('cid', $record['ID']);
}
// get address book name (for display)
rcmail_set_sourcename($CONTACTS);
// return raw photo of the given contact
if ($RCMAIL->action == 'photo') {
@@ -98,7 +102,7 @@
    $form = array(
        'contact' => array(
            'name'    => rcube_label('contactproperties'),
            'name'    => rcube_label('properties'),
            'content' => array(
              'email' => array('size' => $i_size, 'render_func' => 'rcmail_render_email_value'),
              'phone' => array('size' => $i_size),
@@ -197,8 +201,9 @@
    $form_end = '</form>';
    $RCMAIL->output->add_gui_object('editform', 'form');
    $RCMAIL->output->add_label('addingmember', 'removingmember');
    return $form_start . $table->show() . $form_end;
    return $form_start . html::tag('fieldset', 'contactfieldgroup contactgroups', $table->show()) . $form_end;
}