4 if (!isset($config_php))
5 include("../config/config.php");
6 if (!isset($strings_php))
7 include("../functions/strings.php");
8 if (!isset($page_header_php))
9 include("../functions/page_header.php");
10 if (!isset($i18n_php))
11 include("../functions/i18n.php");
12 include("../src/load_prefs.php");
14 displayPageHeader($color, "None");
16 // MESSAGE HIGHLIGHTING
18 echo "<center><b>" . _("Message Highlighting") . "</b></center><br>\n";
21 if ($action == "save") {
23 setPref($data_dir, $username, "highlight$id", $name.",".$newcolor.",".$value);
24 echo "<a href=\"options.php\">saved</a>";
26 if (!isset($id)) $id = count($message_highlight_list);
28 echo "<form action=\"msg_highlight.php\">\n";
29 echo "<input type=\"hidden\" value=\"save\" name=\"action\">\n";
30 echo "<input type=\"hidden\" value=\"$id\" name=\"id\">\n";
31 echo "<table width=75% cellpadding=2 cellspacing=0 border=0>\n";
34 echo _("Identifying name") . ":";
37 echo " <input type=\"text\" value=\"".$message_highlight_list[$id]["name"]."\" name=\"name\">";
42 echo _("Color") . ":";
45 echo " <input type=\"text\" value=\"".$message_highlight_list[$id]["color"]."\" name=\"newcolor\">";
50 echo _("Match") . ":";
53 echo " <input type=\"text\" value=\"".$message_highlight_list[$id]["value"]."\" name=\"value\">";
57 echo "<center><input type=\"submit\" value=\"" . _("Submit") . "\"></center>\n";
60 echo "</BODY></HTML>";