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