forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShow.java
More file actions
30 lines (28 loc) · 1.45 KB
/
Copy pathShow.java
File metadata and controls
30 lines (28 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.bwm.page;
/**
*class explain:String deal with
*set up name: crazyadept
*set up time: 12/01/2004
*/
public class Show {
/***************************************************
*input parameter: Html page
*output parameter: message title and content
*modify time: 11/29/2004
****************************************************/
public String errorBox(String str1, String str2) {
String str =
"<p align=center style=margin-top:80><body bgcolor=#f5efe7><div align=center>";
str = str + "<table border=1 cellspacing=0 bordercolorlight=#000000 bordercolordark=#FFFFFF bgcolor=#E0E0E0>";
str = str + "<tr><td><table border=0 bgcolor=677fa9 cellspacing=0 cellpadding=2 width=350><tr><td>";
str = str + "<font face=Marlett>1</font><font color=#FFFFFF><b>" + str2 +
"</b></font></td></tr></table>";
str = str + "<table border=0 width=350 cellpadding=4><tr><td width=52 height=64 align=center>";
str = str + "<font face=\"MS Outlook\"color=#FF0000 style=\"font-size:30pt\">A</font></td><td>";
str = str + "<p align=center>" + str1 +
"</p></td></tr><tr valign=top><td colspan=2 align=center>";
str = str + "<input type=button name=ok value=\"\u3000\u786E \u5B9A\u3000\" onclick=\"javascript:history.back()\">";
str = str + "</td></tr></table></td></tr></table></div></body>";
return str;
}
}