Put names to checkboxes that can be used by others
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 7 May 2008 22:19:58 +0000 (22:19 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 7 May 2008 22:19:58 +0000 (22:19 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13113 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/addressbook_list.tpl

index 9b2b8b1..de1776c 100644 (file)
@@ -103,7 +103,7 @@ $colspan = $abook_has_extra_field ? 6 : 5;
         $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:1%"><?php echo ($source['BackendWritable'] ? '<input type="checkbox" name="sel[' . $count . ']" value="'.$id.'" id="'.$id.'" />' : ''); ?></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>
@@ -119,4 +119,4 @@ $colspan = $abook_has_extra_field ? 6 : 5;
     }
 ?>
 </table>
-</div>
\ No newline at end of file
+</div>