From d9084cf22059f709e935c6c0755d2b69c21b3a87 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 13 Jan 2010 18:31:51 +0300 Subject: implement settings profiles (bump schema) --- modules/popup-dialog.php | 97 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 1 deletion(-) (limited to 'modules/popup-dialog.php') diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index c3285fb0c..cca7b053c 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -3,6 +3,97 @@ $id = $_REQUEST["id"]; $param = db_escape_string($_REQUEST["param"]); + 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 ""; + + print ""; + + $lnum = 1; + + while ($line = db_fetch_assoc($result)) { + + $class = ($lnum % 2) ? "even" : "odd"; + + $cat_id = $line["id"]; + $this_row_id = "id=\"FCATR-$cat_id\""; + + print ""; + + $edit_title = htmlspecialchars($line["title"]); + + print ""; + + if ($_SESSION["profile"] == $line["id"]) { + $is_active = __("(active)"); + } else { + $is_active = ""; + } + + print ""; + + print ""; + + ++$lnum; + } + + print "
" . + __("Default profile") . "
" . + $edit_title . " $is_active
"; + print "
"; + print "
"; + + print "
+
+ + +
"; + + print ""; + + print "
"; + + return; + } + if ($id == "pubUrl") { print "
".__('Published Articles')."
"; @@ -185,13 +276,17 @@ $owner_uid = $_SESSION["uid"]; +/* print __('Select:')." + ".__('All').", + ".__('None').""; */ + print ""; print "
- +
"; print ""; -- cgit v1.2.3