From e4bf514f77f5a810208b373a70881de69b852534 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Sun, 30 Jul 2000 16:28:35 +0000 Subject: [PATCH] updated some themes to make colors more vivid and readable fixed HTML bugs in folders.php fixed bugs in message hightlighting submission and saving git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@652 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/folders.php | 2 +- src/options_highlight.php | 44 ++++++++++++++++++------------------- themes/deepocean_theme.php | 10 ++++----- themes/plain_blue_theme.php | 24 ++++++++++---------- 4 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/folders.php b/src/folders.php index 35b5a39f..2b2566c5 100644 --- a/src/folders.php +++ b/src/folders.php @@ -92,9 +92,9 @@ if (!sqimap_mailbox_exists ($imapConnection, $trash_folder)){ echo _("Create Trash") . "
\n"; echo ""; - echo "\n"; } } + echo "n"; } /** DELETING FOLDERS **/ diff --git a/src/options_highlight.php b/src/options_highlight.php index ae648b9e..868920b2 100644 --- a/src/options_highlight.php +++ b/src/options_highlight.php @@ -27,11 +27,11 @@ include("../functions/i18n.php"); - if ($action == "delete" && isset($id)) { - removePref($data_dir, $username, "highlight$id"); + if ($action == "delete" && isset($theid)) { + removePref($data_dir, $username, "highlight$theid"); } else if ($action == "save") { - if (!$id) $id = 0; - $name = ereg_replace(",", " ", $name); + if (!$theid) $theid = 0; + $identname = ereg_replace(",", " ", $identname); if ($color_type == 1) $newcolor = $newcolor_choose; else $newcolor = $newcolor_input; @@ -39,11 +39,11 @@ $newcolor = ereg_replace("#", "", $newcolor); $newcolor = "$newcolor"; $value = ereg_replace(",", " ", $value); - setPref($data_dir, $username, "highlight$id", $name.",".$newcolor.",".$value.",".$match_type); - $message_highlight_list[$id]["name"] = $name; - $message_highlight_list[$id]["color"] = $newcolor; - $message_highlight_list[$id]["value"] = $value; - $message_highlight_list[$id]["match_type"] = $match_type; + setPref($data_dir, $username, "highlight$theid", $identname.",".$newcolor.",".$value.",".$match_type); + $message_highlight_list[$theid]["name"] = $identname; + $message_highlight_list[$theid]["color"] = $newcolor; + $message_highlight_list[$theid]["value"] = $value; + $message_highlight_list[$theid]["match_type"] = $match_type; } include("../src/load_prefs.php"); displayPageHeader($color, "None"); @@ -61,7 +61,7 @@ for ($i=0; $i < count($message_highlight_list); $i++) { echo "\n"; echo " \n"; - echo "[" . _("Edit") . "] ["._("Delete")."]\n"; + echo "[" . _("Edit") . "] ["._("Delete")."]\n"; echo " "; echo " \n"; echo " " . $message_highlight_list[$i]["name"]; @@ -78,7 +78,7 @@ echo "
\n"; } if ($action == "edit" || $action == "add") { - if (!isset($id)) $id = count($message_highlight_list); + if (!isset($theid)) $theid = count($message_highlight_list); $color_list[0] = "4444aa"; $color_list[1] = "44aa44"; @@ -95,27 +95,27 @@ $color_list[12] = "dfdfdf"; $color_list[13] = "ffffff"; for ($i=0; $i < 14; $i++) { - if ($color_list[$i] == $message_highlight_list[$id]["color"]) { + if ($color_list[$i] == $message_highlight_list[$theid]["color"]) { $selected_choose = " checked"; ${"selected".$i} = " selected"; continue; } } - if (!$message_highlight_list[$id]["color"]) + if (!$message_highlight_list[$theid]["color"]) $selected_choose = " checked"; else if (!$selected_choose) $selected_input = " checked"; echo "
\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; @@ -141,7 +141,7 @@ echo " \n"; echo " \n"; diff --git a/themes/deepocean_theme.php b/themes/deepocean_theme.php index 3b04137d..09a86d28 100644 --- a/themes/deepocean_theme.php +++ b/themes/deepocean_theme.php @@ -6,16 +6,16 @@ Deep Ocean is a theme that is very blue. **/ - $color[0] = "#597E9B"; // (light gray) TitleBar + $color[0] = "#6188A9"; // (light gray) TitleBar $color[1] = "#800000"; // (red) $color[2] = "#CC0000"; // (light red) Warning/Error Messages - $color[3] = "#183667"; // (green-blue) Left Bar Background + $color[3] = "#294763"; // (green-blue) Left Bar Background $color[4] = "#7A9CBF"; // (white) Normal Background - $color[5] = "#B5C9DF"; // (light yellow) Table Headers + $color[5] = "#597D9D"; // (light yellow) Table Headers $color[6] = "#FFFFFF"; // (black) Text on left bar - $color[7] = "#014D7B"; // (blue) Links + $color[7] = "#014070"; // (blue) Links $color[8] = "#000000"; // (black) Normal text - $color[9] = "#395E7B"; // (mid-gray) Darker version of #0 + $color[9] = "#587B99"; // (mid-gray) Darker version of #0 $color[10] = "#496E8B"; // (dark gray) Darker version of #9 $color[11] = "#A7C5F3"; // (dark red) Special Folders color ?> diff --git a/themes/plain_blue_theme.php b/themes/plain_blue_theme.php index 6809f347..c40ec64f 100644 --- a/themes/plain_blue_theme.php +++ b/themes/plain_blue_theme.php @@ -4,16 +4,16 @@ Theme Name: "Plain Blue" **/ - $color[0] = "#B2C5D4"; // (light gray) TitleBar - $color[1] = "#800000"; // (red) - $color[2] = "#CC0000"; // (light red) Warning/Error Messages - $color[3] = "#6795B9"; // (green-blue) Left Bar Background - $color[4] = "#FFFFFF"; // (white) Normal Background - $color[5] = "#98B0C3"; // (light yellow) Table Headers - $color[6] = "#000000"; // (black) Text on left bar - $color[7] = "#0000CC"; // (blue) Links - $color[8] = "#000000"; // (black) Normal text - $color[9] = "#92A5B4"; // (mid-gray) Darker version of #0 - $color[10] = "#376589"; // (dark gray) Darker version of #9 - $color[11] = "#770000"; // (dark red) Special Folders color + $color[0] = "#A2BED4"; // TitleBar + $color[1] = "#800000"; // + $color[2] = "#CC0000"; // Warning/Error Messages + $color[3] = "#6795B9"; // Left Bar Background + $color[4] = "#FFFFFF"; // Normal Background + $color[5] = "#94ABC0"; // Table Headers + $color[6] = "#000000"; // Text on left bar + $color[7] = "#0000CC"; // Links + $color[8] = "#000000"; // Normal text + $color[9] = "#83A0BA"; // Darker version of #0 + $color[10] = "#376589"; // Darker version of #9 + $color[11] = "#770000"; // Special Folders color ?> -- 2.25.1
\n"; echo _("Identifying name") . ":"; echo " \n"; - echo " "; + echo " "; echo "
 
\n"; echo " \n"; - echo "  ("; + echo "  ("; echo _("Regular Expression"); echo ")\n