1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.talika.tms;
19
20
21 public class Constants {
22
23 public static final String Package = "org.talika.tms";
24
25 public static final String MANAGER_INFO = "ManagerX 5.5.17/1.7.4";
26
27 public static final String HTML_HEADER_SECTION =
28 "<html>\n" +
29 "<head>\n" +
30 "<style>\n" +
31 org.apache.catalina.util.TomcatCSS.TOMCAT_CSS +
32 " table {\n" +
33 " width: 100%;\n" +
34 " }\n" +
35 " td.page-title {\n" +
36 " text-align: center;\n" +
37 " vertical-align: top;\n" +
38 " font-family:sans-serif,Tahoma,Arial;\n" +
39 " font-weight: bold;\n" +
40 " background: white;\n" +
41 " color: black;\n" +
42 " }\n" +
43 " td.title {\n" +
44 " text-align: left;\n" +
45 " vertical-align: top;\n" +
46 " font-family:sans-serif,Tahoma,Arial;\n" +
47 " font-style:italic;\n" +
48 " font-weight: bold;\n" +
49 " background: #D2A41C;\n" +
50 " }\n" +
51 " td.header-left {\n" +
52 " text-align: left;\n" +
53 " vertical-align: top;\n" +
54 " font-family:sans-serif,Tahoma,Arial;\n" +
55 " font-weight: bold;\n" +
56 " background: #FFDC75;\n" +
57 " }\n" +
58 " td.header-center {\n" +
59 " text-align: center;\n" +
60 " vertical-align: top;\n" +
61 " font-family:sans-serif,Tahoma,Arial;\n" +
62 " font-weight: bold;\n" +
63 " background: #FFDC75;\n" +
64 " }\n" +
65 " td.row-left {\n" +
66 " text-align: left;\n" +
67 " vertical-align: middle;\n" +
68 " font-family:sans-serif,Tahoma,Arial;\n" +
69 " color: black;\n" +
70 " }\n" +
71 " td.row-center {\n" +
72 " text-align: center;\n" +
73 " vertical-align: middle;\n" +
74 " font-family:sans-serif,Tahoma,Arial;\n" +
75 " color: black;\n" +
76 " }\n" +
77 " td.row-right {\n" +
78 " text-align: right;\n" +
79 " vertical-align: middle;\n" +
80 " font-family:sans-serif,Tahoma,Arial;\n" +
81 " color: black;\n" +
82 " }\n" +
83 " TH {\n" +
84 " text-align: center;\n" +
85 " vertical-align: top;\n" +
86 " font-family:sans-serif,Tahoma,Arial;\n" +
87 " font-weight: bold;\n" +
88 " background: #FFDC75;\n" +
89 " }\n" +
90 " TD {\n" +
91 " text-align: center;\n" +
92 " vertical-align: middle;\n" +
93 " font-family:sans-serif,Tahoma,Arial;\n" +
94 " color: black;\n" +
95 " }\n" +
96 "</style>\n";
97
98 public static final String BODY_HEADER_SECTION =
99 "<title>{0}</title>\n" +
100 "</head>\n" +
101 "\n" +
102 "<body bgcolor=\"#FFFFFF\">\n" +
103 "\n" +
104 "<table cellspacing=\"4\" width=\"100%\" border=\"0\">\n" +
105 " <tr>\n" +
106 " <td colspan=\"2\">\n" +
107 " <a href=\"http://www.apache.org/\">\n" +
108 " <img border=\"0\" alt=\"The Apache Software Foundation\" align=\"left\"\n" +
109 " src=\"{0}/images/asf-logo.gif\">\n" +
110 " </a>\n" +
111 " <a href=\"http://tomcat.apache.org/\">\n" +
112 " <img border=\"0\" alt=\"The Tomcat Servlet/JSP Container\"\n" +
113 " align=\"right\" src=\"{0}/images/tomcat.gif\">\n" +
114 " </a>\n" +
115 " </td>\n" +
116 " </tr>\n" +
117 "</table>\n" +
118 "<hr size=\"1\" noshade=\"noshade\">\n" +
119 "<table cellspacing=\"4\" width=\"100%\" border=\"0\">\n" +
120 " <tr>\n" +
121 " <td class=\"page-title\" bordercolor=\"#000000\" " +
122 "align=\"left\" nowrap>\n" +
123 " <font size=\"+2\">{1}</font>\n" +
124 " </td>\n" +
125 " </tr>\n" +
126 "</table>\n" +
127 "<br>\n" +
128 "\n";
129
130 public static final String MESSAGE_SECTION =
131 "<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n" +
132 " <tr>\n" +
133 " <td class=\"row-left\" width=\"10%\">" +
134 "<small><strong>{0}</strong></small> </td>\n" +
135 " <td class=\"row-left\"><pre>{1}</pre></td>\n" +
136 " </tr>\n" +
137 "</table>\n" +
138 "<br>\n" +
139 "\n";
140
141 public static final String SERVER_HEADER_SECTION =
142 "<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n" +
143 "<tr>\n" +
144 " <td colspan=\"6\" class=\"title\">{0}</td>\n" +
145 "</tr>\n" +
146 "<tr>\n" +
147 " <td class=\"header-center\"><small>{1}</small></td>\n" +
148 " <td class=\"header-center\"><small>{2}</small></td>\n" +
149 " <td class=\"header-center\"><small>{3}</small></td>\n" +
150 " <td class=\"header-center\"><small>{4}</small></td>\n" +
151 " <td class=\"header-center\"><small>{5}</small></td>\n" +
152 " <td class=\"header-center\"><small>{6}</small></td>\n" +
153 "</tr>\n";
154
155 public static final String SERVER_ROW_SECTION =
156 "<tr>\n" +
157 " <td class=\"row-center\"><small>{0}</small></td>\n" +
158 " <td class=\"row-center\"><small>{1}</small></td>\n" +
159 " <td class=\"row-center\"><small>{2}</small></td>\n" +
160 " <td class=\"row-center\"><small>{3}</small></td>\n" +
161 " <td class=\"row-center\"><small>{4}</small></td>\n" +
162 " <td class=\"row-center\"><small>{5}</small></td>\n" +
163 "</tr>\n" +
164 "</table>\n" +
165 "<br>\n" +
166 "\n";
167
168 public static final String HTML_TAIL_SECTION =
169 "<hr size=\"1\" noshade=\"noshade\">\n" +
170 "<center><font size=\"-1\" color=\"#525D76\">\n" +
171 " <em>Copyright © 1999-2003, Apache Software Foundation</em>" +
172 "</font></center>\n" +
173 "\n" +
174 "</body>\n" +
175 "</html>";
176 public static final String CHARSET="utf-8";
177
178 public static final String XML_DECLARATION =
179 "<?xml version=\"1.0\" encoding=\""+CHARSET+"\"?>";
180
181 public static final String XML_STYLE =
182 "<?xml-stylesheet type=\"text/xsl\" href=\"/manager/xform.xsl\" ?>";
183
184 }
185