From 0d32b41e36fffa800991267b637d9344cb88fd2e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Mar 2007 20:16:45 +0100 Subject: interface tweaks, add info/question/exclamation pics --- modules/pref-feeds.php | 26 +++++++++++--------------- modules/pref-filters.php | 6 +++--- modules/pref-labels.php | 4 +++- modules/pref-prefs.php | 20 +++++--------------- 4 files changed, 22 insertions(+), 34 deletions(-) (limited to 'modules') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 3b5ed89d4..d1ef0eae0 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -35,14 +35,15 @@ } if (count($subscribed) > 0) { - print "
"; - print "Subscribed to feeds:"; - print "
"; + $msg .= ""; + + print format_notice($msg); } } @@ -442,11 +443,9 @@ } if (subscribe_to_feed($link, $feed_url, $cat_id)) { - print "Subscribed to $feed_url."; + print format_notice("Subscribed to $feed_url."); } else { - print "
- Already subscribed to $feed_url. -
"; + print format_warning("Already subscribed to $feed_url."); } if ($p_from != 'tt-rss') { @@ -548,9 +547,7 @@ } else { - print "
- Category $feed_cat already exists in the database. -
"; + print format_warning("Category $feed_cat already exists in the database."); } } @@ -577,8 +574,7 @@ WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]); } else { - print "
- Unable to delete non empty feed categories.
"; + print format_warning("Unable to delete non empty feed categories."); } diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 052c5d44a..e348fe69c 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -213,6 +213,9 @@ $filter_types[$line["id"]] = $line["description"]; } + print " + "; + print ""; - print "
See - this page - for additional information on filtering
"; /* print "
First matching filter is used, filtering is performed diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 94e306a21..3b7d7f79f 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -190,6 +190,9 @@ $sort = "description"; } + print " + "; + print "
"; print"  Caption SQL Expression - (?) "; diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 524ab5a6b..fd796bcc1 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -164,35 +164,25 @@ pwd_hash = 'SHA1:".sha1("password")."')"); if (db_num_rows($result) != 0) { - print "
- Your password is at default value, please change it. -
"; + print format_warning("Your password is at default value, please change it."); } if ($_SESSION["pwd_change_result"] == "failed") { - print "
- There was an error while changing your password. -
"; + print format_warning("Could not change the password."); } if ($_SESSION["pwd_change_result"] == "ok") { - print "
- Password changed successfully. -
"; + print format_notice("Password was changed."); } $_SESSION["pwd_change_result"] = ""; if ($_SESSION["prefs_op_result"] == "reset-to-defaults") { - print "
- Your configuration was reset to defaults. -
"; + print format_notice("The configuration was reset to defaults."); } if ($_SESSION["prefs_op_result"] == "save-config") { - print "
- Your configuration was saved successfully. -
"; + print format_notice("The configuration was saved."); } $_SESSION["prefs_op_result"] = ""; -- cgit v1.2.3