support for CAPTCHAs
[mir.git] / etc / open / editarticle.template
index 5bd19d7..67356bc 100755 (executable)
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//DE">
 <html>
 <head>
-<title>${lang("posting.htmltitle")}</title>
+<title>${lang("content.htmltitle")}</title>
 <style type="text/css"> body {background-image: none;} </style>
 
 
@@ -54,6 +54,31 @@ border-width: 2px;
 border-style: solid;
 }
 
+.pformerrors
+{
+margin: none;
+border: none;
+padding: 8px;
+margin-top: 0px;
+margin-bottom: 6px;
+background-color: #FFFFFF;
+border-color: gray;
+border-width: 1px;
+border-style: solid;
+}
+.pformstep00
+{
+margin: none;
+border: none;
+padding: 8px;
+margin-top: 0px;
+margin-bottom: 6px;
+background-color: #FAFAD2;
+border-color: gray;
+border-width: 1px;
+border-style: solid;
+}
+
 .pformstep01
 {
 margin: none;
@@ -184,13 +209,20 @@ color: red;
   <if errors>
     <list errors as e>
       <if e.field==aField>
-        ${lang(e.message + "." + e.field)}
+        ${lang(e.message)}
       </if>
     </list>
   </if>
 </function>
 
+<div class="pformbox">
+
+<h1>
+${lang("content.form.title")}
+</h1>
+
     <if errors>
+<div class="pformerrors">
           Your input had the following errors:<br><br>
           <list errors as e>
             <font color="red">
@@ -203,75 +235,50 @@ color: red;
               </list>
             </font>
           </list>
-    </if>
-
-
-<comment>
-
-<div class="pdiscl">
-<include "disclaimer.inc.de">
 </div>
-
-</comment>
-
-<div class="pformbox">
-
-<h1>
-${lang("posting.form.title")}
-</h1>
-
-    <if errors>
-<p class="error">${lang("posting.errors")}</p>
     </if>
 
 <h2>
-${lang("posting.step00")}
+${lang("content.step00")}
+
 </h2>
 
-<div class="pformstep01">
-${lang("posting.readhowtos")}
+<div class="pformstep00">
+${lang("content.readhowtos")}
+
 </div>
 <form enctype="multipart/form-data" action="${actionURL}&do=opensession&sessiontype=article" method="post">
 <h2>
-${lang("posting.step01")}
+${lang("content.step01")}
 </h2>
 
 
 
 <div class="pformstep01">
 <h4>
-${lang("posting.nr_of_media")}
+${lang("content.nr_of_media")}
 </h4>
 <p>
-${lang("posting.nr_of_media.info")}
+${lang("content.nr_of_media.info")}
 </p>
 <p>
 <input type="text" name="nrmediaitems" size="8" value="${utility.encodeHTML(nrmediaitems)}"> 
-<input type="submit" value="${lang("posting.nr_of_media.submit")}">
+<input type="submit" value="${lang("content.nr_of_media.submit")}">
 </p>
 </div>
 
-<if password>
-<div class="ppassword">
-${password}
-
-<p>${lang("posting.password")}</p>
-
-<p><input type="text" name="password" size="10">
-</if>
-
 <h2>
-${lang("posting.step02")}
+${lang("content.step02")}
 </h2>
 
 <div class="pformstep02">
 
 <!-- TITEL -->
 <h4>
-${lang("posting.title")}
+${lang("content.title")}
 </h4>
 <p>
-<small>${lang("posting.title.info")}</small>
+<small>${lang("content.title.info")}</small>
 </p>
 <p>
 <input type="text" class="preq" name="title" size="45" maxlength="45" value="${utility.encodeHTML(title)}">
@@ -284,10 +291,10 @@ ${lang("posting.title")}
 
 <!-- TOPIC -->
 <h4>
-${lang("posting.topic")}
+${lang("content.topic")}
 </h4>
 <p>
-${lang("posting.topic.info")}
+${lang("content.topic.info")}
 </p>
 <select name="to_topic" size="10" multiple>
 <list topics as t>
@@ -298,7 +305,7 @@ ${lang("posting.topic.info")}
 
 <!-- AUTOR -->
 <h4>
-${lang("posting.author")}
+${lang("content.creator")}
 </h4>
 
 <input type="text" class="preq" name="creator" value="${utility.encodeHTML(creator)}" size="45" maxlength="45"> 
@@ -311,10 +318,10 @@ ${lang("posting.author")}
 
 <!-- ABSTRACT -->
 <h4>
-${lang("posting.abstract")}
+${lang("content.abstract")}
 </h4>
 <p>
-${lang("posting.abstract.info")}
+${lang("content.abstract.info")}
 </p>
 <textarea name="description" class="preq" rows="10" cols="74" wrap=virtual>${utility.encodeHTML(description)}</textarea>
 <if errors>
@@ -323,57 +330,57 @@ ${lang("posting.abstract.info")}
 <small><strong>(${lang("required")})</strong></small>
 </if>
 <p>
-<strong>${lang("posting.abstract.constraint")}</strong>
+<strong>${lang("content.abstract.constraint")}</strong>
 </p>
 
 </div>
 
 <h2>
-${lang("posting.step03")}
+${lang("content.step03")}
 </h2>
 
 <div class="pformstep03">
 <p>
-${lang("posting.contact.info")}
+${lang("content.contact.info")}
 </p>
 
 <!--  EMAIL -->
 <h4>
-${lang("posting.email")}
+${lang("content.email")}
 </h4>
 <input type="text" name="creator_email" size="55" maxlength="80" value="${utility.encodeHTML(creator_email)}">
 <small>(${lang("optional")})</small>
 
 <!-- URL -->
 <h4>
-${lang("posting.url")}
+${lang("content.url")}
 </h4>
 <input type="text" name="creator_main_url" size="55" maxlength="160" value="${utility.encodeHTML(creator_main_url)}">
 <small>(${lang("optional")})</small>
 
 <!-- ADRESS -->
 <h4>
-${lang("posting.address")}
+${lang("content.address")}
 </h4>
 <input type="text" name="creator_address" size="55" maxlength="160" value="${utility.encodeHTML(creator_address)}">
 <small>(${lang("optional")})</small>
 
 <!-- PHONE -->
 <h4>
-${lang("posting.phone")}
+${lang("content.phone")}
 </h4>
 <input type="text" name="creator_phone" size="20" maxlength="20" value="${utility.encodeHTML(creator_address)}">
 <small>(${lang("optional")})</small>
 </div>
 
 <h2>
-${lang("posting.step04")}
+${lang("content.step04")}
 </h2>
 
 <div class="pformstep04">
 <!-- LANG -->
 <h4>
-${lang("posting.language")}
+${lang("content.language")}
 </h4>
 <select name="to_language">
 <list languages as l>
@@ -384,10 +391,10 @@ ${lang("posting.language")}
 
 <!-- CONTENT -->
 <h4>
-${lang("posting.text")}
+${lang("content.content_data")}
 </h4>
 <p>
-${lang("posting.text.info")}
+${lang("content.content_data.info")}
 </p>
 <textarea name="content_data" class="preq" rows="35" cols="74" wrap="soft">${utility.encodeHTML(content_data)}</textarea>
 <if errors>
@@ -395,7 +402,7 @@ ${lang("posting.text.info")}
 <else>
 <small><strong>(${lang("required")})</strong></small>
 </if>
-<p>${lang("posting.html")}</p>
+<p>${lang("content.html")}</p>
 <select name="is_html">
 <option value="0" <if is_html!="1">selected</if>>plain text</option>
 <option value="1" <if is_html=="1">selected</if>>html</option>
@@ -404,12 +411,12 @@ ${lang("posting.text.info")}
 </div>
 
 <h2>
-${lang("posting.step05")}
+${lang("content.step05")}
 </h2>
 <div class="pformstep05">
 
 <h4>
-${lang("posting.media")}
+${lang("content.media")}
 </h4>
 <p>
 <small>${lang("optional")}</small>
@@ -419,30 +426,30 @@ ${lang("posting.media")}
     <h4>
       ${utility.encodeHTML(a.filename)}
     </h4>
-    <input type="checkbox" name="${a.fieldname}_cancel"> ${lang("posting.media.cancel")}
+    <input type="checkbox" name="${a.fieldname}_cancel"> ${lang("content.media.cancel")}
 
     <h4>
-      ${lang("posting.media.title")} 
+      ${lang("content.media.title")} 
     </h4>
     <input type="text" class="preq" name="${a.fieldname}_title" size="40" maxlength="80" value="${utility.encodeHTML(a.title)}">
 </list>
 
 <p>
-${lang("posting.media.info")}
+${lang("content.media.info")}
 </p>
 <p>
-${lang("posting.media.howto")}
+${lang("content.media.howto")}
 </p>
 
 <list mediaitems as m>
     <hr>
     <h4>
-    ${lang("posting.media.media")} ${m}
+    ${lang("content.media.media")} ${m}
     </h4>
     <input type="file" name="media${m}">
     
     <h4>
-    ${lang("posting.media.title")} ${m}
+    ${lang("content.media.title")} ${m}
     </h4>
     <input type="text" class="preq" name="media${m}_title" size="40" maxlength="80" value="">
 </list>
@@ -451,7 +458,7 @@ ${lang("posting.media.howto")}
   <if config["Localizer.OpenSession.AllowFTPUploadSelection"]!="0" && ftpfiles>
     <hr>
     <h4>
-      ${lang("posting.media.ftpmedia")}
+      ${lang("content.media.ftpmedia")}
     </h4>
     <select name="ftpupload">
       <option value="">&nbsp;</option>
@@ -461,17 +468,17 @@ ${lang("posting.media.howto")}
     </select>
     
     <h4>
-      ${lang("posting.media.title")} 
+      ${lang("content.media.title")} 
     </h4>
     <input type="text" class="preq" name="ftpupload_title" size="40" maxlength="80" value="">
   <else>
     <hr>
     <h4>
-      ${lang("posting.media.ftpmedia")}
+      ${lang("content.media.ftpmedia")}
     </h4>
     <input type="text" name="ftpupload"  size="40" maxlength="80" value="">
     <h4>
-      ${lang("posting.media.title")} 
+      ${lang("content.media.title")} 
     </h4>
     <input type="text" class="preq" name="ftpupload_title" size="40" maxlength="80" value="">
   </if>  
@@ -481,18 +488,28 @@ ${lang("posting.media.howto")}
 </div>
 
 <h2>
-${lang("posting.step06")}
+${lang("content.step06")}
 </h2>
 <div class="pformstep06">
 <p>
-${lang("posting.submit.info")}
+${lang("content.submit.info")}
 </p>
 <p>
-${lang("posting.criteria")}
+${lang("content.criteria")}
 </p>
+<if password>
+<div class="ppassword">
+<img src="${actionURL}&amp;do=captcha"/>
+
+<p>${lang("content.password")}</p>
+
+<p><input type="text" name="password" size="10">
+<call showErrors("title")>
+</if>
+
 <div class="pbuttons">
-<input type="submit" name="post" class="psubmit" value="${lang("posting.submit")}">
-<input type="reset" class="preset" value="${lang("posting.reset")}">
+<input type="submit" name="post" class="psubmit" value="${lang("content.submit")}">
+<input type="reset" class="preset" value="${lang("content.reset")}">
 </div>
 </div>
 </form>