|
Package parasol ::
Module HTML_supt
|
|
1
2
3 __author__ = "Charlie Taylor (charlietaylor@sourceforge.net)"
4 __version__ = " 1.0 "
5 __date__ = "Jan 1, 2009"
6 __copyright__ = "Copyright (c) 2009 Charlie Taylor"
7 __license__ = "BSD"
8
9 my_css = ''
10
11 -def getHead(title='Parametric Solution', task='generic study', author='C Taylor',
12 date='', version=''):
13
14 return '''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
15 "http://www.w3.org/TR/html4/loose.dtd">
16 <html lang="en">
17 <head>
18 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
19 <title>%s</title>
20 %s
21
22 </head>
23 <body>
24 <center><table bgcolor="#FFFFFF" width="680"><tr><td colspan="2" nowrap align="center">
25 <h3 class="header">%s</h3></td></tr>
26 <tr>
27 <td align="left"><span class="header"> %s</span></td>
28 <td align="right"><span class="header"> %s</span></td></tr>
29 <tr>
30 <td align="left"><span class="header">by: %s</span></td>
31 <td align="right"><span class="header">%s</span></td>
32 </tr></table></center>
33 '''%(title,my_css,title,task,version,author,date)
34
35
40
41
42 my_css = '''<style type="text/css">
43 BODY{
44 background-color: #55607B;
45
46 margin-bottom: 0px;
47 margin-top: 0px;
48 font-family: Verdana, Arial, Helvetica, sans-serif;
49 }
50 .mytable{
51 page-break-inside: avoid;
52 background-color: #FFFFFF;
53 margin-bottom: 0px;
54 margin-top: 0px;
55 font-size : 12px;
56 font-family: Verdana, Arial, Helvetica, sans-serif;
57 }
58
59 td, p, .p{
60 font-family: Verdana, Arial, Helvetica, sans-serif;
61 font-size : 12px;
62 }
63
64 .header {
65 font-size: 14px;
66 color: #A62F24;
67 font-weight: bold;
68 line-height: 18px;
69 margin-bottom: 8px;
70 }
71
72 .subhead {
73 font-size : 12px;
74 line-height: 125%;
75 font-weight: bold;
76 color: #A62F24;
77 }
78
79 .hometext {
80 font-size: 12px;
81 line-height: 140%;
82 font-weight: bold;
83 color: #666666;
84 }
85
86 .topnav{
87 font-family: Verdana, Arial, Helvetica, sans-serif;
88 font-size : 10px;
89 font-weight : bold;
90 color: #FFFFFF;
91 text-decoration: none;
92 padding-bottom: 1px;
93 }
94 a.topnav:hover{
95 color: #D0D0D0;
96 }
97 a.p {
98 color:#666666;
99 }
100 a.p:hover {
101 color: #A62F24;
102 }
103 a.p:visited {
104 color: #999999;
105 }
106
107 .small {
108 font-family: Verdana, Arial, Helvetica, sans-serif;
109 font-size : 10px;
110 line-height: 110%;
111 }
112 a.small {
113 color:#666666;
114 }
115 a.small:hover {
116 color: #A62F24;
117 }
118 a.small:visited {
119 color: #999999;
120 }
121
122 a.formlink {
123 color:#333333;
124 text-decoration: none;
125 }
126 a.formlink:hover {
127 color: #A62F24;
128 text-decoration: underline;
129 }
130 a.formlink:visited {
131 color: #999999;
132 text-decoration: underline;
133 }
134
135 .breadcrumb {
136 font-family: Verdana, Arial, Helvetica, sans-serif;
137 font-size : 10px;
138 color:#999999;
139 text-decoration: none;
140 }
141 .breadcrumb:hover {
142 color: #A62F24;
143 text-decoration: underline;
144 }
145
146 .supplierlink {
147 font-family: Verdana, Arial, Helvetica, sans-serif;
148 font-size : 10px;
149 line-height: 140%;
150 color:#A62F24;
151 text-decoration: none;
152 }
153 .supplierlink:hover {
154 color: #333333;
155 text-decoration: underline;
156 }
157
158 a.loclink{
159 font-family: Verdana, Arial, Helvetica, sans-serif;
160 font-size : 12px;
161 line-height: 125%;
162 color: #A62F24;
163 }
164 a.loclink:hover {
165 color: #666666;
166 }
167
168
169 .red {
170 color: #A62F24;
171 }
172
173 .x {
174 font-family: Verdana, Arial, Helvetica, sans-serif;
175 font-size : 14px;
176 font-weight: bold;
177 color: #008000;
178 }
179
180 .footer{
181 font-size : 10px;
182 color: #CDCCCC;
183 text-decoration: none;
184 padding-top: 8px;
185 padding-bottom: 0px;
186 }
187 .footer:hover {
188 color: #FFFFFF;
189 }
190
191 form, input, select, option{
192 margin-bottom : 0px;
193 margin-left : 0px;
194 margin-right : 0px;
195 margin-top : 0px;
196 padding-bottom : 0px;
197 padding-left : 0px;
198 padding-right : 0px;
199 padding-top : 0px;
200 font-family : Verdana, Arial, Helvetica, sans-serif;
201 font-size : 10px;
202 height : 14px;
203 border-bottom: 1px;
204 border-color: #CCCCCC;
205 }
206
207
208 </style>
209
210 '''
211