diff options
author | Andrew Dolgov <[email protected]> | 2010-11-17 14:49:06 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-17 14:49:06 +0300 |
commit | 8df7184cada3390918cd4364c1382603e2ee26c7 (patch) | |
tree | b92f0845dff797518db24a57382709a448df0d93 /modules/pref-prefs.php | |
parent | f8ce21fc722361adab5ce8c812065fb9dde62727 (diff) |
rework preferences to use dijit stuff
Diffstat (limited to 'modules/pref-prefs.php')
-rw-r--r-- | modules/pref-prefs.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 2133715a2..18a336396 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -195,10 +195,12 @@ $_SESSION["prefs_op_result"] = ""; + print "<div dojoType=\"dijit.layout.AccordionContainer\" region=\"center\">"; + print "<div dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Personal data')."\">"; + print "<form onsubmit='return false' id='change_email_form'>"; print "<table width=\"100%\" class=\"prefPrefsList\">"; - print "<tr><td colspan='3'><h3>".__("Personal data")."</h3></tr></td>"; $result = db_query($link, "SELECT email,full_name, access_level FROM ttrss_users @@ -240,11 +242,13 @@ print "<p><button onclick=\"return changeUserEmail()\">". __("Save data")."</button>"; + print "</div>"; # pane + print "<div dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Authentication')."\">"; + print "<form onsubmit=\"return false\" name=\"change_pass_form\" id=\"change_pass_form\">"; print "<table width=\"100%\" class=\"prefPrefsList\">"; - print "<tr><td colspan='3'><h3>".__("Authentication")."</h3></tr></td>"; print "<tr><td width=\"40%\">".__("Old password")."</td>"; print "<td class=\"prefValue\"><input class=\"editbox\" type=\"password\" @@ -279,8 +283,12 @@ print "<p><button onclick=\"return changeUserPassword()\">". __("Change password")."</button>"; + + print "</div>"; #pane } + print "<div dojoType=\"dijit.layout.AccordionPane\" selected=\"true\" title=\"".__('Preferences')."\">"; + if ($_SESSION["profile"]) { initialize_user_prefs($link, $_SESSION["uid"], $_SESSION["profile"]); $profile_qpart = "profile = '" . $_SESSION["profile"] . "'"; @@ -325,7 +333,7 @@ print "</table>"; } - print "<p><table width=\"100%\" class=\"prefPrefsList\">"; + print "<table width=\"100%\" class=\"prefPrefsList\">"; $active_section = $line["section_name"]; @@ -434,6 +442,9 @@ print "</form>"; + print "</div>"; #pane + print "</div>"; #container + } } ?> |