From 8df7184cada3390918cd4364c1382603e2ee26c7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Nov 2010 14:49:06 +0300 Subject: rework preferences to use dijit stuff --- modules/pref-feeds.php | 43 +++++++++++++++++++++++++------------------ modules/pref-filters.php | 16 ++++++++++++---- modules/pref-labels.php | 17 ++++++++++++----- modules/pref-prefs.php | 17 ++++++++++++++--- modules/pref-users.php | 13 +++++++++++-- 5 files changed, 74 insertions(+), 32 deletions(-) (limited to 'modules') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 38f7b5777..d8df49ab3 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -955,6 +955,9 @@ if ($quiet) return; + print "
"; + print "
"; + set_pref($link, "_PREFS_ACTIVE_TAB", "feedConfig"); $result = db_query($link, "SELECT COUNT(id) AS num_errors @@ -976,6 +979,8 @@ $feed_search = $_SESSION["prefs_feed_search"]; } + print "
"; + print "
"; # toolbar + $feeds_sort = db_escape_string($_REQUEST["sort"]); if (!$feeds_sort || $feeds_sort == "undefined") { @@ -1229,17 +1236,9 @@ } - print "

".__('OPML')."

"; + print "
"; # feeds pane -/* print "
-
- ".__('File:')."   - - -
"; - - print " "; */ + print "
"; print "

" . __("Using OPML you can export and import your feeds and Tiny Tiny RSS settings."); @@ -1262,8 +1261,7 @@ "; print "

 "; - print ""; + print ""; print "

".__('Your OPML can be published publicly and can be subscribed by anyone who knows the URL below.'); @@ -1273,9 +1271,11 @@ __('Display URL')." "; - if (strpos($_SERVER['HTTP_USER_AGENT'], "Firefox") !== false) { - - print "

" . __("Firefox Integration") . "

"; + print "
"; # pane + + if (true || strpos($_SERVER['HTTP_USER_AGENT'], "Firefox") !== false) { + + print "
"; print "

" . __('This Tiny Tiny RSS site can be used as a Firefox Feed Reader by clicking the link below.') . "

"; @@ -1288,10 +1288,12 @@ ""; print "

"; - } - print "

".__("Subscribing via bookmarklet")."

"; + print "
"; # pane + } + print "
"; + print "

" . __("Drag the link below to your browser toolbar, open the feed you're interested in in your browser and click on the link to subscribe to it.") . "

"; $bm_subscribe_url = str_replace('%s', '', add_feed_url()); @@ -1302,7 +1304,9 @@ print "" . __('Subscribe in Tiny Tiny RSS'). ""; - print "

".__("Published articles")."

"; + print "
"; #pane + + print "
"; print "

".__('Published articles are exported as a public RSS feed and can be subscribed by anyone who knows the URL specified below.')."

"; @@ -1315,6 +1319,9 @@ print " "; + print "
"; #pane + print "
"; #container + } function print_feed_browser($link, $search, $limit, $mode = 1) { diff --git a/modules/pref-filters.php b/modules/pref-filters.php index b50b0410f..d796d84e4 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -298,16 +298,17 @@ } else { $filter_search = $_SESSION["prefs_filter_search"]; } + + print "
"; + print "
"; + print "
"; - print "
+ print "
-   - -
"; print " "; } + print "
"; # toolbar + print "
"; # toolbar-frame + print "
"; + if ($filter_search) { $filter_search = split(' ', db_escape_string($filter_search)); @@ -523,6 +528,9 @@ print "

"; } + + print "
"; #pane + print "
"; #container } ?> diff --git a/modules/pref-labels.php b/modules/pref-labels.php index ac25d01e1..e683ab615 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -150,7 +150,11 @@ $label_search = $_SESSION["prefs_label_search"]; } - print "
+ print "
"; + print "
"; + print "
"; + + print "
".__('Search')."
"; - print "
"; - print" "; - print " "; print ""; - print "
"; + print "
"; #toolbar + print "
"; #pane + print "
"; if ($label_search) { @@ -269,6 +273,9 @@ print "

"; } + + print "
"; #pane + print "
"; #container } function print_color_picker($id) { 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 "
"; + print "
"; + print "
"; print ""; - print ""; $result = db_query($link, "SELECT email,full_name, access_level FROM ttrss_users @@ -240,11 +242,13 @@ print "

"; + print ""; # pane + print "

"; + print ""; print "

".__("Personal data")."

"; - print ""; print ""; print "

".__("Authentication")."

".__("Old password").""; + + print ""; #pane } + print "
"; + if ($_SESSION["profile"]) { initialize_user_prefs($link, $_SESSION["uid"], $_SESSION["profile"]); $profile_qpart = "profile = '" . $_SESSION["profile"] . "'"; @@ -325,7 +333,7 @@ print "
"; } - print "

"; + print "
"; $active_section = $line["section_name"]; @@ -434,6 +442,9 @@ print ""; + print ""; #pane + print ""; #container + } } ?> diff --git a/modules/pref-users.php b/modules/pref-users.php index f1f25c665..a97bd3108 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -347,6 +347,10 @@ } } + print "
"; + print "
"; + print "
"; + set_pref($link, "_PREFS_ACTIVE_TAB", "userConfig"); $user_search = db_escape_string($_REQUEST["search"]); @@ -357,7 +361,7 @@ $user_search = $_SESSION["prefs_user_search"]; } - print "
+ print "
". __('Reset password').""; - print "
"; + print "
"; #toolbar + print "
"; #pane + print "
"; if ($user_search) { @@ -485,5 +491,8 @@ } + print "
"; #pane + print "
"; #container + } ?> -- cgit v1.2.3