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