817edcd4906032bef80f267918fa89c4f55a680f
[mir.git] / etc / open / editcomment.template
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>${lang("comment.htmltitle")}</title>
5
6
7 <style type="text/css">
8 <!--
9
10 body {
11 margin: 6px; background: #dddddd ;
12 }
13 h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote
14 {
15 font-family:arial, helvetica, sans-serif;
16 }
17
18 .pformbox
19 {
20 padding-left: 10px;
21 padding-right: 10px;
22 padding-bottom: 0px;
23 padding-top: 0px;
24 }
25
26 h1 { padding-bottom: 0px; margin-bottom: 0px;}
27 h2
28 {
29 border: none;
30 margin: none;
31 padding-bottom: 0px;
32 margin-bottom: 0px;
33 padding: 2px;
34 border-top: 1px solid black;
35 border-left: 1px solid black;
36 border-right: 1px solid black;
37 background-color: #003366;
38 color: white;
39 }
40 h3 { padding-bottom: 0px; margin-bottom: 0px;}
41 h4 { padding-bottom: 0px; margin-bottom: 0px; }
42
43 .pdiscl
44 {
45 border: none;
46 margin: none;
47 padding: 4px;
48 margin-top: 6px;
49 margin-bottom: 6px;
50
51 border-color: #FFF;
52 border-width: 2px;
53 border-style: solid;
54 }
55
56 .pformstep01
57 {
58 border: none;
59 margin: none;
60 padding: 8px;
61 margin-top: 0px;
62 margin-bottom: 6px;
63 background-color: #FAFAD2;
64 border-color: gray;
65 border-width: 1px;
66 border-style: solid;
67 }
68 .pformstep02
69 {
70 border: none;
71 margin: none;
72 padding: 8px;
73 margin-top: 0px;
74 margin-bottom: 6px;
75 background-color: #FAFAD2;
76 border-color: gray;
77 border-width: 1px;
78 border-style: solid;
79 }
80
81 .pformstep06
82 {
83 border: none;
84 margin: none;
85 padding: 8px;
86 margin-top: 0px;
87 margin-bottom: 6px;
88 background-color: #ffffff;
89 border-color: gray;
90 border-width: 1px;
91 border-style: solid;
92 }
93
94 input.psubmit
95 {
96 padding: 5px;
97 border: 2px solid green;
98 background-color: #6F0;
99 }
100
101 input.preset
102 {
103 padding: 5px;
104 border: 2px solid red;
105 background-color: #F96;
106 }
107
108 .pbuttons {
109 text-align: right;
110 }
111 input
112 {
113 background-color: #efefef;
114 }
115
116 textarea
117 {
118 background-color: #efefef;
119 }
120
121
122 input.preq
123 {
124 background-color: #ffffff;
125 }
126 textarea.preq
127 {
128 background-color: #ffffff;
129 }
130
131 .error {
132 color: red;
133 }
134 -->
135 </style>
136
137 </head>
138
139 <body bgcolor="#dddddd">
140
141 <function showErrors(aField)>
142 <comment>
143 function to display error message at the input box  // occam, 2003-06-09
144 </comment>
145 <if errors>
146 <list errors as e>
147 <if e.field==aField>       
148 ${lang(e.message + "." + e.field)}
149 </if>
150 </list>
151 </if>
152 </function>
153
154 <div class="pformbox">
155 <h3>
156 ${lang("comment.header")}
157 </h3>
158 <p>
159 ${lang("comment.note")}
160 </p>
161
162 <h1>
163 ${lang("comment.formtitle")}
164 </h1>
165
166     <if errors>
167 <p class="error">${lang("comment.errors")}</p>
168    </if>
169
170 <form enctype="multipart/form-data" action="${actionURL}&do=opensession&sessiontype=comment" method="post">
171 <input type="hidden" name="to_media" value="${to_media}">
172
173 <h2>
174 ${lang("posting.step01")}
175 </h2>
176 <div class="pformstep01">
177
178 <!-- TITEL -->
179 <h4>
180 ${lang("comment.title")}
181 </h4>
182 <input type="text" class="preq" name="title" size="45" maxlength="45" value="${utility.encodeHTML(title)}"> 
183 <if errors>
184 <big class="error"><call showErrors("title")></big>
185 <else>
186 <small><strong>(${lang("required")})</strong></small>
187 </if>
188
189 <!-- AUTHOR -->
190 <h4>
191 ${lang("comment.name")}
192 </h4>
193 <input type="text" class="preq" name="creator" size="20" maxlength="45" value="${utility.encodeHTML(creator)}">
194 <if errors>
195 <big class="error"><call showErrors("creator")></big>
196 <else>
197 <small><strong>(${lang("required")})</strong></small>
198 </if>
199
200 <!-- CONTENT -->
201 <h4>
202 ${lang("comment.text")}
203 </h4>
204 <textarea name="description" class="preq" rows="20" cols="74" wrap=virtual>${utility.encodeHTML(description)}</textarea>
205 <if errors>
206 <big class="error"><call showErrors("description")></big>
207 <else>
208 <small><strong>(${lang("required")})</strong></small>
209 </if>
210 </div>
211
212 <h2>
213 ${lang("posting.step02")}
214 </h2>
215 <div class="pformstep02">
216 <!-- EMAIL -->
217 <h4>
218 ${lang("comment.email")}
219 </h4>
220 <input type="text" name="email" size="30" maxlength="80" value="${utility.encodeHTML(email)}">
221 <small>(${lang("optional")})</small>
222
223 <!-- URL -->
224 <h4>
225 ${lang("comment.url")}
226 </h4>
227 <input type="text" name="main_url" size="40" maxlength="160" value="http://">
228 <small>(${lang("optional")})</small>
229
230 <!-- PHONE -->
231 <h4>
232 ${lang("comment.phone")}
233 </h4>
234 <input type="text" name="phone" size="30" maxlength="80" value="${utility.encodeHTML(phone)}">
235 <small>(${lang("optional")})</small>
236
237 <!-- Adress -->
238 <h4>
239 ${lang("comment.address")}
240 </h4>
241 <input type="text" name="address" size="40" maxlength="160" value="${utility.encodeHTML(address)}">
242 <small>(${lang("optional")})</small>
243
244 <!-- LANG -->
245 <h4>
246 ${lang("comment.language")}
247 </h4>
248 <select name="to_language">
249 <list languages as l>
250 <option value="${l.id}">${l.name}</option>
251 </list>
252 </select>
253 <small>(${lang("optional")})</small>
254
255 </div>
256
257 <h2>
258 ${lang("posting.step03")}
259 </h2>
260 <div class="pformstep02">
261 <table>
262   <tr>
263     <td>
264     ${lang("posting.media.title")} 1:
265     </td>
266     <td colspan="2">
267       <input type="text" name="media1_title" size="40" maxlength="80" value=""><br>
268     </td>
269   </tr>
270   <tr>
271     <td>${lang("posting.media.media")} 1</td>
272     <td colspan="2">
273       <INPUT TYPE="file" NAME="media1">
274     </td>
275   </tr>
276   <tr>
277     <td>
278     ${lang("posting.media.title")} 2:
279     </td>
280     <td colspan="2">
281       <input type="text" name="media2_title" size="40" maxlength="80" value=""><br>
282     </td>
283   </tr>
284   <tr>
285     <td>${lang("posting.media.media")} 2</td>
286     <td colspan="2">
287       <INPUT TYPE="file" NAME="media2">
288     </td>
289   </tr>
290   <tr>
291     <td>
292     ${lang("posting.media.title")} 3:
293     </td>
294     <td colspan="2">
295       <input type="text" name="media3_title" size="40" maxlength="80" value=""><br>
296     </td>
297   </tr>
298   <tr>
299     <td>${lang("posting.media.media")} 3</td>
300     <td colspan="2">
301       <INPUT TYPE="file" NAME="media3">
302     </td>
303   </tr>
304 </table>
305
306 </div>
307
308
309 <h2>
310 ${lang("posting.step04")}
311 </h2>
312 <div class="pformstep06">
313 <div class="pbuttons">
314 <input type="submit" name="post" class="psubmit" value="${lang("comment.submit")}">
315 <input type="reset" class="preset" value="${lang("comment.reset")}">
316 </div>
317 </div>
318 </form>
319 </div>
320 </body>
321 </html>
322