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