Browse Source

Put names to checkboxes that can be used by others

pdontthink 17 years ago
parent
commit
f3ac41ea0f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      templates/default/addressbook_list.tpl

+ 2 - 2
templates/default/addressbook_list.tpl

@@ -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>
+</div>