Corrected UGLY html output, now looks more common sense.
[squirrelmail.git] / functions / display_messages.php
CommitLineData
59177427 1<?php
3302d0d4 2 /**
a09387f4 3 ** display_messages.php
3302d0d4 4 **
5 ** This contains all messages, including information, error, and just
6 ** about any other message you can think of.
7 **
8 **/
9
d068c0ec 10 $display_messages_php = true;
11
f8f9bed9 12 function error_username_password_incorrect($color) {
3302d0d4 13 echo "<BR>";
97be2168 14 echo "<TABLE COLS=1 WIDTH=75% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
3302d0d4 15 echo " <TR>";
f8f9bed9 16 echo " <TD BGCOLOR=\"$color[0]\">";
aae41ae9 17 echo " <B><CENTER>ERROR</CENTER></B>";
3302d0d4 18 echo " </TD></TR><TR><TD>";
9f2215a1 19 echo " <CENTER><BR>". _("Unknown user or password incorrect.") ."<BR><A HREF=\"login.php\" TARGET=_top>". _("Click here to try again") ."</A>.</CENTER>";
3302d0d4 20 echo " </TD></TR>";
21 echo "</TABLE>";
22 echo "</BODY></HTML>";
23 }
24
f8f9bed9 25 function general_info($motd, $org_logo, $version, $org_name, $color) {
3302d0d4 26 echo "<BR>";
06913e08 27 echo "<TABLE COLS=1 WIDTH=80% CELLSPACING=0 CELLPADDING=2 NOBORDER ALIGN=CENTER><TR><TD BGCOLOR=\"$color[9]\">";
175e7218 28 echo "<TABLE COLS=1 WIDTH=100% CELLSPACING=0 CELLPADDING=3 NOBORDER BGCOLOR=\"#FFFFFF\" ALIGN=CENTER>";
3302d0d4 29 echo " <TR>";
f8f9bed9 30 echo " <TD BGCOLOR=\"$color[0]\">";
aae41ae9 31 echo " <B><CENTER>". _("Welcome to $org_name's WebMail system") ."</CENTER></B>";
175e7218 32 echo " <TR><TD BGCOLOR=\"#FFFFFF\">";
2a0ada20 33 echo " <TABLE COLS=2 WIDTH=90% CELLSPACING=0 CELLPADDING=3 NOBORDER align=\"center\">";
3302d0d4 34 echo " <TR>";
175e7218 35 echo " <TD BGCOLOR=\"#FFFFFF\"><CENTER>";
3302d0d4 36 if (strlen($org_logo) > 3)
37 echo " <IMG SRC=\"$org_logo\">";
38 else
aae41ae9 39 echo " <B>$org_name</B>";
40 echo " <BR><CENTER>". _("Running SquirrelMail version $version (c) 1999-2000.") ."</CENTER><BR>";
3302d0d4 41 echo " </CENTER></TD></TR><TR>";
175e7218 42 echo " <TD BGCOLOR=\"#FFFFFF\">";
aae41ae9 43 echo " $motd";
3302d0d4 44 echo " </TD>";
45 echo " </TR>";
46 echo " </TABLE>";
47 echo " </TD></TR>";
48 echo "</TABLE>";
1adbc0b9 49 echo "</TD></TR></TABLE>";
3302d0d4 50 }
aa4c3749 51
f8f9bed9 52 function messages_deleted_message($mailbox, $sort, $startMessage, $color) {
aa4c3749 53 $urlMailbox = urlencode($mailbox);
2a32fc83 54
aa4c3749 55 echo "<BR>";
f8f9bed9 56 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
aa4c3749 57 echo " <TR>";
f8f9bed9 58 echo " <TD BGCOLOR=\"$color[0]\">";
aae41ae9 59 echo " <B><CENTER>". _("Messages Deleted") ."</CENTER></B>";
aa4c3749 60 echo " </TD></TR><TR><TD>";
aae41ae9 61 echo " <CENTER><BR>". _("The selected messages were deleted successfully.") ."<BR>\n";
de80e95e 62 echo " <BR>";
9f2215a1 63 echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
a5b3c10c 64 echo " ". _("Click here to return to ") ."$mailbox</A>.";
aae41ae9 65 echo " </CENTER>";
de80e95e 66 echo " </TD></TR>";
67 echo "</TABLE>";
68 }
69
f8f9bed9 70 function messages_moved_message($mailbox, $sort, $startMessage, $color) {
de80e95e 71 $urlMailbox = urlencode($mailbox);
2a32fc83 72
de80e95e 73 echo "<BR>";
f8f9bed9 74 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
de80e95e 75 echo " <TR>";
f8f9bed9 76 echo " <TD BGCOLOR=\"$color[0]\">";
aae41ae9 77 echo " <B><CENTER>". _("Messages Moved") ."</CENTER></B>";
de80e95e 78 echo " </TD></TR><TR><TD>";
aae41ae9 79 echo " <CENTER><BR>". _("The selected messages were moved successfully.") ."<BR>\n";
de80e95e 80 echo " <BR>";
9f2215a1 81 echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
a5b3c10c 82 echo " ". _("Click here to return to ") ."$mailbox</A>.";
aae41ae9 83 echo " </CENTER>";
de80e95e 84 echo " </TD></TR>";
85 echo "</TABLE>";
86 }
87
f8f9bed9 88 function error_message($message, $mailbox, $sort, $startMessage, $color) {
de80e95e 89 $urlMailbox = urlencode($mailbox);
2a32fc83 90
de80e95e 91 echo "<BR>";
f8f9bed9 92 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
de80e95e 93 echo " <TR>";
f8f9bed9 94 echo " <TD BGCOLOR=\"$color[0]\">";
aae41ae9 95 echo " <FONT COLOR=\"$color[2]\"><B><CENTER>". _("ERROR") ."</CENTER></B></FONT>";
de80e95e 96 echo " </TD></TR><TR><TD>";
aae41ae9 97 echo " <CENTER><BR>$message<BR>\n";
de80e95e 98 echo " <BR>";
9f2215a1 99 echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
a5b3c10c 100 echo " ". _("Click here to return to ") ."$mailbox</A>.";
aae41ae9 101 echo " </CENTER>";
aa4c3749 102 echo " </TD></TR>";
103 echo "</TABLE>";
aa4c3749 104 }
a0c694f0 105
f8f9bed9 106 function plain_error_message($message, $color) {
a0c694f0 107 echo "<BR>";
f8f9bed9 108 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
a0c694f0 109 echo " <TR>";
f8f9bed9 110 echo " <TD BGCOLOR=\"$color[0]\">";
aae41ae9 111 echo " <FONT COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . "</CENTER></B></FONT>";
a0c694f0 112 echo " </TD></TR><TR><TD>";
aae41ae9 113 echo " <CENTER><BR>$message";
114 echo " </CENTER>";
a0c694f0 115 echo " </TD></TR>";
116 echo "</TABLE>";
117 }
a09387f4 118?>