From 22988692da8b856794f4b8070005fc05a6f00151 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 Nov 2010 12:50:14 +0300 Subject: rework prefs profile dialog --- modules/popup-dialog.php | 88 +++++++++++++++++++++++++++++------------------- 1 file changed, 54 insertions(+), 34 deletions(-) (limited to 'modules/popup-dialog.php') diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 062542a1c..1b90ecfd7 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -68,36 +68,44 @@ if ($id == "editPrefProfiles") { - print "".__('Settings Profiles').""; - print " - "; - print "

"; +# print ""; + $result = db_query($link, "SELECT title,id FROM ttrss_settings_profiles WHERE owner_uid = ".$_SESSION["uid"]." ORDER BY title"); - print __('Select:')." - ".__('All').", - ".__('None').""; - print "

"; print "
"; - print ""; + print "
"; - print ""; + print ""; #odd print ""; + onclick='toggleSelectRow2(this);' + dojoType=\"dijit.form.CheckBox\" + type=\"checkbox\">"; if (!$_SESSION["profile"]) { $is_active = __("(active)"); @@ -105,7 +113,7 @@ $is_active = ""; } - print ""; print ""; @@ -116,16 +124,17 @@ $class = ($lnum % 2) ? "even" : "odd"; - $cat_id = $line["id"]; - $this_row_id = "id=\"FCATR-$cat_id\""; + $profile_id = $line["id"]; + $this_row_id = "id=\"FCATR-$profile_id\""; - print ""; + print ""; $edit_title = htmlspecialchars($line["title"]); print ""; + onclick='toggleSelectRow2(this);' + dojoType=\"dijit.form.CheckBox\" + type=\"checkbox\">"; if ($_SESSION["profile"] == $line["id"]) { $is_active = __("(active)"); @@ -133,9 +142,23 @@ $is_active = ""; } - print ""; - + print ""; + print ""; ++$lnum; @@ -147,19 +170,16 @@ print "
- - + +
"; - print ""; - print "
"; - print "]]>"; - //return; } if ($id == "pubOPMLUrl") { -- cgit v1.2.3
" . + print "" . __("Default profile") . " $is_active
" . - $edit_title . " $is_active" . $edit_title . + " + $is_active