summaryrefslogtreecommitdiff
path: root/modules/pref-users.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-17 16:36:35 +0100
committerAndrew Dolgov <[email protected]>2008-05-17 16:36:35 +0100
commita95da1368ec6ed8e7a6e26c831cf160b71440766 (patch)
tree4ffd304c61256a690dead14dbbe4f76c20a8540f /modules/pref-users.php
parentc239b26b3a199a92ee64ee58cff118283fa9495e (diff)
rework entry display for prefs, filters, labels and users
Diffstat (limited to 'modules/pref-users.php')
-rw-r--r--modules/pref-users.php56
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"] = "&nbsp;";
-
- 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"] = "&nbsp;";
-
- 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"] = "&nbsp;";
- 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>";