summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-03-02 20:16:45 +0100
committerAndrew Dolgov <[email protected]>2007-03-02 20:16:45 +0100
commit0d32b41e36fffa800991267b637d9344cb88fd2e (patch)
tree645e10ade87573dca2149b18a1c4a3973984c55a /modules
parentb05d782d90348a1c1a4d16b0e39695cbdf663629 (diff)
interface tweaks, add info/question/exclamation pics
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-feeds.php26
-rw-r--r--modules/pref-filters.php6
-rw-r--r--modules/pref-labels.php4
-rw-r--r--modules/pref-prefs.php20
4 files changed, 22 insertions, 34 deletions
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 "<div class=\"notice\">";
- print "<b>Subscribed to feeds:</b>";
- print "<ul class=\"nomarks\">";
+ $msg = "<b>Subscribed to feeds:</b>".
+ "<ul class=\"nomarks\">";
+
foreach ($subscribed as $title) {
- print "<li>$title</li>";
+ $msg .= "<li>$title</li>";
}
- print "</ul>";
- print "</div>";
+ $msg .= "</ul>";
+
+ print format_notice($msg);
}
}
@@ -442,11 +443,9 @@
}
if (subscribe_to_feed($link, $feed_url, $cat_id)) {
- print "Subscribed to <b>$feed_url</b>.";
+ print format_notice("Subscribed to <b>$feed_url</b>.");
} else {
- print "<div class=\"warning\">
- Already subscribed to <b>$feed_url</b>.
- </div>";
+ print format_warning("Already subscribed to <b>$feed_url</b>.");
}
if ($p_from != 'tt-rss') {
@@ -548,9 +547,7 @@
} else {
- print "<div class=\"warning\">
- Category <b>$feed_cat</b> already exists in the database.
- </div>";
+ print format_warning("Category <b>$feed_cat</b> already exists in the database.");
}
}
@@ -577,8 +574,7 @@
WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]);
} else {
- print "<div class=\"warning\">
- Unable to delete non empty feed categories.</div>";
+ 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 "<a class='helpLinkPic' href=\"javascript:displayHelpInfobox(2)\">
+ <img src='images/sign_quest.png'></a>";
+
print "<input type=\"submit\"
class=\"button\"
onclick=\"return displayDlg('quickAddFilter', false)\"
@@ -336,9 +339,6 @@
print "</p>";
- print "<div class=\"insensitive\" style=\"float : right\">See
- <a target=\"_new\" href=\"http://tt-rss.spb.ru/trac/wiki/ContentFilters\">this page</a>
- for additional information on filtering</div>";
/* print "<div class=\"insensitive\" style=\"float : right\">
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 "<a class='helpLinkPic' href=\"javascript:displayHelpInfobox(1)\">
+ <img src='images/sign_quest.png'></a>";
+
print "<div class=\"prefGenericAddBox\">";
print"<input type=\"submit\" class=\"button\"
@@ -222,7 +225,6 @@
<td width=\"5%\">&nbsp;</td>
<td width=\"30%\"><a href=\"javascript:updateLabelList('description')\">Caption</a></td>
<td width=\"50%\"><a href=\"javascript:updateLabelList('sql_exp')\">SQL Expression</a>
- <a class=\"helpLink\" href=\"javascript:displayHelpInfobox(1)\">(?)</a>
</td>
</tr>";
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 "<div class=\"warning\">
- Your password is at default value, please change it.
- </div>";
+ print format_warning("Your password is at default value, please change it.");
}
if ($_SESSION["pwd_change_result"] == "failed") {
- print "<div class=\"warning\">
- There was an error while changing your password.
- </div>";
+ print format_warning("Could not change the password.");
}
if ($_SESSION["pwd_change_result"] == "ok") {
- print "<div class=\"notice\">
- Password changed successfully.
- </div>";
+ print format_notice("Password was changed.");
}
$_SESSION["pwd_change_result"] = "";
if ($_SESSION["prefs_op_result"] == "reset-to-defaults") {
- print "<div class=\"notice\">
- Your configuration was reset to defaults.
- </div>";
+ print format_notice("The configuration was reset to defaults.");
}
if ($_SESSION["prefs_op_result"] == "save-config") {
- print "<div class=\"notice\">
- Your configuration was saved successfully.
- </div>";
+ print format_notice("The configuration was saved.");
}
$_SESSION["prefs_op_result"] = "";