diff options
Diffstat (limited to 'modules/pref-users.php')
-rw-r--r-- | modules/pref-users.php | 56 |
1 files changed, 7 insertions, 49 deletions
diff --git a/modules/pref-users.php b/modules/pref-users.php index 2e9eff759..961e314f4 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -287,60 +287,18 @@ strtotime($line["created"])); } -// if (!$edit_uid || $subop != "edit") { - - print "<td align='center'><input onclick='toggleSelectPrefRow(this, \"user\");' + print "<td align='center'><input onclick='toggleSelectPrefRow(this, \"user\");' type=\"checkbox\" id=\"UMCHK-$uid\"></td>"; - print "<td><a href=\"javascript:editUser($uid);\">" . - $line["login"] . "</td>"; - - if (!$line["email"]) $line["email"] = " "; - - print "<td><a href=\"javascript:editUser($uid);\">" . - $access_level_names[$line["access_level"]] . "</td>"; - -/* } else if ($uid != $edit_uid) { + $onclick = "onclick='editUser($uid) title='".__('Click to edit')."''"; - if (!$line["email"]) $line["email"] = " "; - - print "<td align='center'><input disabled=\"true\" type=\"checkbox\" - id=\"UMCHK-".$line["id"]."\"></td>"; - - print "<td>".$line["login"]."</td>"; - print "<td>".$line["email"]."</td>"; - print "<td>".$access_level_names[$line["access_level"]]."</td>"; - - } else { + print "<td $onclick>" . $line["login"] . "</td>"; - print "<td align='center'> - <input disabled=\"true\" type=\"checkbox\" checked></td>"; + if (!$line["email"]) $line["email"] = " "; - print "<td><input id=\"iedit_ulogin\" value=\"".$line["login"]. - "\"></td>"; - - print "<td><input id=\"iedit_email\" value=\"".$line["email"]. - "\"></td>"; - - print "<td>"; - print "<select id=\"iedit_ulevel\">"; - foreach (array_keys($access_level_names) as $al) { - if ($al == $line["access_level"]) { - $selected = "selected"; - } else { - $selected = ""; - } - print "<option $selected id=\"$al\">" . - $access_level_names[$al] . "</option>"; - } - print "</select>"; - print "</td>"; - - } */ - - - print "<td>".$line["created"]."</td>"; - print "<td>".$line["last_login"]."</td>"; + print "<td $onclick>" . $access_level_names[$line["access_level"]] . "</td>"; + print "<td $onclick>" . $line["created"] . "</td>"; + print "<td $onclick>" . $line["last_login"] . "</td>"; print "</tr>"; |