bernd

bernd commited on 2009-03-19 15:36:25
Zeige 1 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1312 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -147,14 +147,14 @@ if ($output_something)
147 147
     $desc = ($db['description'] ? $db['description'] : '');
148 148
     $form .= "<tr><td style=\"border: 0px; font-weight: bold; text-align: right;\"><span title=\"{$desc}\">{$db['name']}</span>&#160;".internal_link("", "<img src=\"{$prefix}images/delete.png\" title=\"Datenbank »{$db['name']}« löschen\" alt=\"löschen\" />", "action=delete_db&db={$db['name']}")."</td>";
149 149
     foreach ($users as $user)
150
-      $form .= '<td style="text-align: center;"><input type="checkbox" id="'.$db.'_'.$user.'" name="access['.$db.'][]" value="'.$user.'" '.(get_mysql_access($db['name'], $user['username']) ? 'checked="checked" ' : '')." /></td>";
150
+      $form .= '<td style="text-align: center;"><input type="checkbox" id="'.$db['name'].'_'.$user['username'].'" name="access['.$db['name'].'][]" value="'.$user['username'].'" '.(get_mysql_access($db['name'], $user['username']) ? 'checked="checked" ' : '')." /></td>";
151 151
     $form .= "</tr>\n";
152 152
   }
153 153
 
154 154
   $form .= '
155 155
   <tr><td style="border: 0px; font-weight: bold; text-align: right;"><input type="text" name="new_db" size="15" value="" /></td>';
156 156
   foreach ($users as $user)
157
-    $form .= '<td style="text-align: center;"><input type="checkbox" id="new_'.$user.'" name="access[new][]" value="'.$user.'" /></td>';
157
+    $form .= '<td style="text-align: center;"><input type="checkbox" id="new_'.$user['username'].'" name="access[new][]" value="'.$user['username'].'" /></td>';
158 158
   $form .= '</tr>
159 159
   </table>
160 160
   <p><input type="submit" name="accesseditor" value="Speichern" /></p>';
161 161