* $el['Info'] - Additional info about this contact
* $el['Extra'] - Additional field, if provided. NULL if this
* field is not provided by the book.
+ * $el['JSEmail'] - email address scrubbed for use with
+ * javascript functions.
*
* @copyright © 1999-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
/** extract template variables **/
extract($t);
-#echo dump_array($addresses).'<br>';
/** Begin template **/
$source = $addresses[$current_backend];
$colspan = $abook_has_extra_field ? 6 : 5;
echo '<tr><td class="abookEmpty" colspan="'.$colspan.'">'._("Address book is empty").'</td></tr>'."\n";
}
foreach ($source['Addresses'] as $contact) {
- $id = $current_backend.':'.$contact['NickName'];
+ $id = $contact['NickName'] .'_'. $current_backend;
?>
<tr class=<?php echo '"'.($count%2 ? 'even' : 'odd').'"'; ?>>
<td class="abookField" style="width:1%"><?php echo ($source['BackendWritable'] ? '<input type="checkbox" name="sel[]" value="'.$id.'" id="'.$id.'" />' : ''); ?></td>
- <td class="abookField" style="width:15%"><label for=<?php echo '"'.$id.'"'; ?>><?php echo $contact['NickName']; ?></lable></td>
+ <td class="abookField" style="width:15%"><label for=<?php echo '"'.$id.'"'; ?>><?php echo $contact['NickName']; ?></label></td>
<td class="abookField"><?php echo $contact['FullName']; ?></td>
<td class="abookField"><?php echo composeLink($contact); ?></td>
<td class="abookField"><?php echo $contact['Info']; ?></td>