Add option to ask users for personal information on first login.
[squirrelmail.git] / templates / default / addressbook_list.tpl
index 0907b71ddef712d8d826021b784eb6548836d1be..9b2b8b1dc953869707a6eeb51b744e24c582b1c1 100644 (file)
@@ -31,6 +31,8 @@
  *              $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
@@ -45,7 +47,6 @@ include_once(SM_PATH . 'templates/util_addressbook.php');
 /** extract template variables **/
 extract($t);
 
-#echo dump_array($addresses).'<br>';
 /** Begin template **/
 $source = $addresses[$current_backend];
 $colspan = $abook_has_extra_field ? 6 : 5;
@@ -99,11 +100,11 @@ $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>