beautified a bit of code and made stuff a bit more efficient.
[squirrelmail.git] / functions / display_messages.php
CommitLineData
3302d0d4 1<?
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
10 function error_username_password_incorrect() {
11 echo "<BR>";
12 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=FFFFFF ALIGN=CENTER>";
13 echo " <TR>";
14 echo " <TD BGCOLOR=DCDCDC>";
15 echo " <FONT FACE=\"Arial,Helvetica\"><B><CENTER>ERROR</CENTER></B></FONT>";
16 echo " </TD></TR><TR><TD>";
a09387f4 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>";
3302d0d4 18 echo " </TD></TR>";
19 echo "</TABLE>";
20 echo "</BODY></HTML>";
21 }
22
23 function general_info($motd, $org_logo, $version, $org_name) {
24 echo "<BR>";
25 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=FFFFFF ALIGN=CENTER>";
26 echo " <TR>";
27 echo " <TD BGCOLOR=DCDCDC>";
28 echo " <FONT FACE=\"Arial,Helvetica\"><B><CENTER>Welcome to $org_name's WebMail system</CENTER></B></FONT>";
29 echo " </TD></TR><TR><TD>";
30 echo " <TR><TD BGCOLOR=FFFFFF>";
31 echo " <FONT FACE=\"Arial,Helvetica\" SIZE=-1><CENTER>Running SquirrelMail version $version (c) 1999 by Nathan and Luke Ehresman.</CENTER></FONT>";
32 echo " </TD></TR><TR><TD>";
33 echo " <TABLE COLS=2 WIDTH=75% NOBORDER align=\"center\">";
34 echo " <TR>";
35 echo " <TD BGCOLOR=FFFFFF><CENTER>";
36 if (strlen($org_logo) > 3)
37 echo " <IMG SRC=\"$org_logo\">";
38 else
39 echo " <B><FONT FACE=\"Arial,Helvetica\">$org_name</FONT></B>";
40 echo " </CENTER></TD></TR><TR>";
41 echo " <TD BGCOLOR=FFFFFF>";
42 echo " <FONT FACE=\"Arial,Helvetica\">$motd</FONT>";
43 echo " </TD>";
44 echo " </TR>";
45 echo " </TABLE>";
46 echo " </TD></TR>";
47 echo "</TABLE>";
3302d0d4 48 }
aa4c3749 49
50 function messages_deleted_message($mailbox, $sort, $startMessage) {
51 $urlMailbox = urlencode($mailbox);
52 echo "<BR>";
53 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=FFFFFF ALIGN=CENTER>";
54 echo " <TR>";
55 echo " <TD BGCOLOR=DCDCDC>";
56 echo " <FONT FACE=\"Arial,Helvetica\"><B><CENTER>Messages Deleted</CENTER></B></FONT>";
57 echo " </TD></TR><TR><TD>";
58 echo " <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>The selected messages were deleted successfully.<BR>\n";
907165ca 59 echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
aa4c3749 60 echo " Click here to return to $mailbox";
61 echo " </A>.";
62 echo " </FONT></CENTER>";
63 echo " </TD></TR>";
64 echo "</TABLE>";
aa4c3749 65 }
a09387f4 66?>