show mail address as link

This commit is contained in:
Roland Gruber 2008-01-26 13:01:36 +00:00
parent 784a8c08e6
commit 207718d097
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
March/April 2.3.0
- show mail addresses as link in account list
23.01.2008 2.2.0 23.01.2008 2.2.0
- account lists: - account lists:
-> allow to switch sorting -> allow to switch sorting

View File

@ -210,6 +210,16 @@ class lamUserList extends lamList {
$photoFile = '../../tmp/' . $jpeg_filename; $photoFile = '../../tmp/' . $jpeg_filename;
echo "<img src=\"" . $photoFile . "\" alt=\"" . _('Photo') . "\">"; echo "<img src=\"" . $photoFile . "\" alt=\"" . _('Photo') . "\">";
} }
elseif (($attribute == 'mail') || ($attribute == 'rfc822Mailbox')) {
if (isset($entry[$attribute][0]) && ($entry[$attribute][0] != '')) {
for ($i = 0; $i < sizeof($entry[$attribute]); $i++) {
if ($i > 0) {
echo ", ";
}
echo "<a href=\"mailto:" . $entry[$attribute][$i] . "\">" . $entry[$attribute][$i] . "</a>\n";
}
}
}
// print all other attributes // print all other attributes
else { else {
parent::listPrintTableCellContent($entry, $attribute); parent::listPrintTableCellContent($entry, $attribute);