]> git.wh0rd.org Git - tt-rss.git/commitdiff
rework user admin dialog
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 6 Aug 2008 08:40:04 +0000 (09:40 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 6 Aug 2008 08:40:04 +0000 (09:40 +0100)
modules/pref-users.php

index 9a0abeb25bb20a7234d793198f6a9ded379ac641..b02832f6c802dd6e3376641a7f98398a17d962a8 100644 (file)
@@ -14,7 +14,7 @@
 
                        $id = db_escape_string($_GET["id"]);
 
-                       print "<div id=\"infoBoxTitle\">".__('User editor')."</div>";
+                       print "<div id=\"infoBoxTitle\">".__('User Editor')."</div>";
                        
                        print "<div class=\"infoBoxContents\">";
 
                        $access_level = db_fetch_result($result, 0, "access_level");
                        $email = db_fetch_result($result, 0, "email");
 
-                       print "<table width='100%'>";
-                       print "<tr><td>".__('Login:')."</td><td>
-                               <input class=\"iedit\" onkeypress=\"return filterCR(event)\"
-                               name=\"login\" value=\"$login\"></td></tr>";
+                       $sel_disabled = ($id == $_SESSION["uid"]) ? "disabled" : "";
 
-                       print "<tr><td>".__('Change password:')."</td><td>
-                               <input class=\"iedit\" onkeypress=\"return filterCR(event)\"
-                               name=\"password\"></td></tr>";
+                       print "<div class=\"dlgSec\">".__("User")."</div>";
+                       print "<div class=\"dlgSecCont\">";
 
-                       print "<tr><td>".__('E-mail:')."</td><td>
-                               <input class=\"iedit\" name=\"email\" onkeypress=\"return filterCR(event)\"
-                               value=\"$email\"></td></tr>";
+                       print "<input size=\"30\" style=\"font-size : 16px\" 
+                               onkeypress=\"return filterCR(event)\" $sel_disabled
+                               name=\"login\" value=\"$login\">";
+
+                       print "</div>";
+
+                       print "<div class=\"dlgSec\">".__("Authentication")."</div>";
+                       print "<div class=\"dlgSecCont\">";
+
+                       print __('Access level: ') . " ";
 
-                       $sel_disabled = ($id == $_SESSION["uid"]) ? "disabled" : "";
-                               
-                       print "<tr><td>".__('Access level:')."</td><td>";
                        print_select_hash("access_level", $access_level, $access_level_names, 
                                $sel_disabled);
-                       print "</td></tr>";
+
+                       print "<br/>";
+
+                       print __('Change password to') .
+                               " <input size=\"20\" onkeypress=\"return filterCR(event)\"
+                               name=\"password\">";
+
+                       print "</div>";
+
+                       print "<div class=\"dlgSec\">".__("Options")."</div>";
+                       print "<div class=\"dlgSecCont\">";
+
+                       print __('E-mail: ').
+                               " <input size=\"30\" name=\"email\" onkeypress=\"return filterCR(event)\"
+                               value=\"$email\">";
+
+                       print "</div>";
 
                        print "</table>";
 
                        print "</form>";
                        
-                       print "<div align='right'>
+                       print "<div class=\"dlgButtons\">
                                <input class=\"button\"
                                        type=\"submit\" onclick=\"return userEditSave()\" 
                                        value=\"".__('Save')."\">