Put names to checkboxes that can be used by others
[squirrelmail.git] / templates / default / addressbook_list.tpl
index 9b2b8b1dc953869707a6eeb51b744e24c582b1c1..de1776c9d24104c958ef9bb17a4f9a67ad5447fc 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>