4cbeba2cf4956454fe336abafc29f5e9f2b276e2
[mir.git] / etc / open / editarticle.template
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//DE">
2 <html>
3 <head>
4 <title>${lang("posting.htmltitle")}</title>
5 <meta name="description" content="${lang("posting.meta.description")}">
6 <meta name="author" content="${lang("posting.meta.author")}">
7 <meta name="keywords" content="${lang("posting.meta.keywords")}">
8 <!--<meta name="date" content="### Date ###Time">-->
9 <meta http-equiv="Content-Type" content="text/html; charset=${lang("htmlcharset")}">
10 <meta name="robots" content="index">
11 <meta name="robots" content="follow">
12
13
14     <style type="text/css"> body {background-image: none;} </style>
15
16
17 <style type="text/css">
18 <!--
19
20 body {
21 margin: 6px; background: #dddddd ;
22 }
23 h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote
24 {
25 font-family:arial, helvetica, sans-serif;
26 }
27
28 .pformbox
29 {
30 border: none;
31 margin: none;
32 padding-left: 10px;
33 padding-right: 10px;
34 padding-bottom: 0px;
35 padding-top: 0px;
36 }
37
38 h1 { padding-bottom: 0px; margin-bottom: 0px;}
39 h2
40 {
41 padding-bottom: 0px;
42 margin-bottom: 0px;
43 padding: 2px;
44 border: none;
45 margin: none;
46 border-top: 1px solid black;
47 border-left: 1px solid black;
48 border-right: 1px solid black;
49 background-color: #003366;
50 color: white;
51 }
52 h3 { padding-bottom: 0px; margin-bottom: 0px;}
53 h4 { padding-bottom: 0px; margin-bottom: 0px;}
54
55 .pdiscl
56 {
57 padding: 4px;
58 margin-top: 6px;
59 margin-bottom: 6px;
60
61 border-color: #FFF;
62 border-width: 2px;
63 border-style: solid;
64 }
65
66 .pformstep01
67 {
68 margin: none;
69 border: none;
70 padding: 8px;
71 margin-top: 0px;
72 margin-bottom: 6px;
73 background-color: #FAFAD2;
74 border-color: gray;
75 border-width: 1px;
76 border-style: solid;
77 }
78 .pformstep02
79 {
80 margin: none;
81 border: none;
82 padding: 8px;
83 margin-top: 0px;
84 margin-bottom: 6px;
85 background-color: #FAFAD2;
86 border-color: gray;
87 border-width: 1px;
88 border-style: solid;
89 }
90 .pformstep03
91 {
92 margin: none;
93 border: none;
94 padding: 8px;
95 margin-top: 0px;
96 margin-bottom: 6px;
97 background-color: #FAFAD2;
98 border-color: gray;
99 border-width: 1px;
100 border-style: solid;
101 }
102 .pformstep04
103 {
104 margin: none;
105 border: none;
106 padding: 8px;
107 margin-top: 0px;
108 margin-bottom: 6px;
109 background-color: #FAFAD2;
110 border-color: gray;
111 border-width: 1px;
112 border-style: solid;
113 }
114 .pformstep05
115 {
116 margin: none;
117 border: none;
118 padding: 8px;
119 margin-top: 0px;
120 margin-bottom: 6px;
121 background-color: #FAFAD2;
122 border-color: gray;
123 border-width: 1px;
124 border-style: solid;
125 }
126 .pformstep06
127 {
128 margin: none;
129 border: none;
130 padding: 8px;
131 margin-top: 0px;
132 margin-bottom: 6px;
133 background-color: #FFFFFF;
134 border-color: gray;
135 border-width: 1px;
136 border-style: solid;
137 }
138
139 input.psubmit
140 {
141 padding: 5px;
142 border: 2px solid green;
143 background-color: #6F0;
144 }
145
146 input.preset
147 {
148 padding: 5px;
149 border: 2px solid red;
150 background-color: #F96;
151 }
152
153 .pbuttons {
154 text-align: right;
155 }
156
157 input
158 {
159 background-color: #efefef;
160 }
161
162 textarea
163 {
164 background-color: #efefef;
165 }
166
167
168 input.preq
169 {
170 background-color: #ffffff;
171 }
172 textarea.preq
173 {
174 background-color: #ffffff;
175 }
176
177 .error {
178 color: red;
179 }
180
181 -->
182 </style>
183
184 </head>
185
186 <body bgcolor="#dddddd">
187
188 <function showErrors(aField)>
189 <comment>
190 function to display error message at the input box  // occam, 2003-06-09
191 </comment>
192 <if errors>
193 <list errors as e>
194 <if e.field==aField>
195 ${lang(e.message + "." + e.field)}
196 </if>
197 </list>
198 </if>
199 </function>
200
201     <if errors>
202
203
204           Your input had the following errors:<br><br>
205           <list errors as e>
206             <font color="red">
207               <if e.field>
208                 ${lang("content."+e.field)}:
209               </if>
210               ${lang(e.message)} <br>
211             </font>
212           </list>
213
214
215     </if>
216
217
218 <comment>
219
220 <div class="pdiscl">
221 <include "disclaimer.inc.de">
222 </div>
223
224 </comment>
225
226 <div class="pformbox">
227
228 <h1>
229 ${lang("posting.form.title")}
230 </h1>
231
232     <if errors>
233 <p class="error">${lang("posting.errors")}</p>
234     </if>
235
236 <h2>
237 ${lang("posting.step00")}
238 </h2>
239
240 <div class="pformstep01">
241 ${lang("posting.readhowtos")}
242 </div>
243 <form enctype="multipart/form-data" action="${actionURL}&do=opensession&sessiontype=article" method="post">
244 <h2>
245 ${lang("posting.step01")}
246 </h2>
247
248
249
250 <div class="pformstep01">
251 <h4>
252 ${lang("posting.nr_of_media")}
253 </h4>
254 <p>
255 ${lang("posting.nr_of_media.info")}
256 </p>
257 <p>
258 <input type="text" name="nrmediaitems" size="8" value="${utility.encodeHTML(nrmediaitems)}"> 
259 <input type="submit" value="${lang("posting.nr_of_media.submit")}">
260 </p>
261 </div>
262
263 <if password>
264 <div class="ppassword">
265 ${password}
266
267 <p>${lang("posting.password")}</p>
268
269 <p><input type="text" name="password" size="10">
270 </if>
271
272 <h2>
273 ${lang("posting.step02")}
274 </h2>
275
276 <div class="pformstep02">
277
278 <!-- TITEL -->
279 <h4>
280 ${lang("posting.title")}
281 </h4>
282 <p>
283 <small>${lang("posting.title.info")}</small>
284 </p>
285 <p>
286 <input type="text" class="preq" name="title" size="45" maxlength="45" value="${utility.encodeHTML(title)}">
287 <if errors>
288 <big class="error"><call showErrors("title")></big>
289 <else>
290 <small><strong>(${lang("required")})</strong></small>
291 </if>
292 </p>
293
294 <!-- TOPIC -->
295 <h4>
296 ${lang("posting.topic")}
297 </h4>
298 <p>
299 ${lang("posting.topic.info")}
300 </p>
301 <select name="to_topic" size="10" multiple>
302 <list topics as t>
303 <option value="${t.id}" <list to_topic as to><if (t.id == to)>selected</if></list>>${t.title}</option>
304 </list>
305 </select>
306 <small>(${lang("optional")})</small>
307
308 <!-- AUTOR -->
309 <h4>
310 ${lang("posting.author")}
311 </h4>
312
313 <input type="text" class="preq" name="creator" value="${utility.encodeHTML(creator)}" size="45" maxlength="45"> 
314
315 <if errors>
316 <big class="error"><call showErrors("creator")></big>
317 <else>
318 <small><strong>(${lang("required")})</strong></small>
319 </if>
320
321 <!-- ABSTRACT -->
322 <h4>
323 ${lang("posting.abstract")}
324 </h4>
325 <p>
326 ${lang("posting.abstract.info")}
327 </p>
328 <textarea name="description" class="preq" rows="10" cols="74" wrap=virtual>${utility.encodeHTML(description)}</textarea>
329 <if errors>
330 <big class="error"><call showErrors("description")></big>
331 <else>
332 <small><strong>(${lang("required")})</strong></small>
333 </if>
334 <p>
335 <strong>${lang("posting.abstract.constraint")}</strong>
336 </p>
337
338 </div>
339
340 <h2>
341 ${lang("posting.step03")}
342 </h2>
343
344 <div class="pformstep03">
345 <p>
346 ${lang("posting.contact.info")}
347 </p>
348
349 <!--  EMAIL -->
350 <h4>
351 ${lang("posting.email")}
352 </h4>
353 <input type="text" name="creator_email" size="55" maxlength="80" value="${utility.encodeHTML(creator_email)}">
354 <small>(${lang("optional")})</small>
355
356 <!-- URL -->
357 <h4>
358 ${lang("posting.url")}
359 </h4>
360 <input type="text" name="creator_main_url" size="55" maxlength="160" value="${utility.encodeHTML(creator_main_url)}">
361 <small>(${lang("optional")})</small>
362
363 <!-- ADRESS -->
364 <h4>
365 ${lang("posting.address")}
366 </h4>
367 <input type="text" name="creator_address" size="55" maxlength="160" value="${utility.encodeHTML(creator_address)}">
368 <small>(${lang("optional")})</small>
369
370 <!-- PHONE -->
371 <h4>
372 ${lang("posting.phone")}
373 </h4>
374 <input type="text" name="creator_phone" size="20" maxlength="20" value="${utility.encodeHTML(creator_address)}">
375 <small>(${lang("optional")})</small>
376 </div>
377
378 <h2>
379 ${lang("posting.step04")}
380 </h2>
381
382 <div class="pformstep04">
383 <!-- LANG -->
384 <h4>
385 ${lang("posting.language")}
386 </h4>
387 <select name="to_language">
388 <list languages as l>
389 <option value="${l.id}">${l.name}</option>
390 </list>
391 </select>
392 <small>(${lang("optional")})</small>
393
394 <!-- CONTENT -->
395 <h4>
396 ${lang("posting.text")}
397 </h4>
398 <p>
399 ${lang("posting.text.info")}
400 </p>
401 <textarea name="content_data" class="preq" rows="35" cols="74" wrap="soft">${utility.encodeHTML(content_data)}</textarea>
402 <if errors>
403 <big class="error"><call showErrors("content_data")></big>
404 <else>
405 <small><strong>(${lang("required")})</strong></small>
406 </if>
407 </div>
408
409 <h2>
410 ${lang("posting.step05")}
411 </h2>
412 <div class="pformstep05">
413
414 <h4>
415 ${lang("posting.media")}
416 </h4>
417 <p>
418 ${lang("posting.media.info")}
419 </p>
420 <p>
421 ${lang("posting.media.howto")}
422 </p>
423
424       <list mediaitems as m>
425 <h4>
426 ${lang("posting.media.media")} ${m}
427 </h4>
428 <input type="file" name="media${m}">
429
430 <h4>
431 ${lang("posting.media.title")} ${m}
432 </h4>
433 <input type="text" class="preq" name="media${m}_title" size="40" maxlength="80" value="">
434 </list>
435
436 <p>
437 <small>${lang("optional")}</small>
438 </p>
439 </div>
440
441 <h2>
442 ${lang("posting.step06")}
443 </h2>
444 <div class="pformstep06">
445 <p>
446 ${lang("posting.submit.info")}
447 </p>
448 <p>
449 ${lang("posting.criteria")}
450 </p>
451 <div class="pbuttons">
452 <input type="submit" name="post" class="psubmit" value="${lang("posting.submit")}">
453 <input type="reset" class="preset" value="${lang("posting.reset")}">
454 </div>
455 </div>
456 </form>
457 </div>
458 </body>
459 </html>