1.1 restoration
[mir.git] / etc / open / editarticle.template
index 4cbeba2..5bd19d7 100755 (executable)
@@ -2,16 +2,7 @@
 <html>
 <head>
 <title>${lang("posting.htmltitle")}</title>
-<meta name="description" content="${lang("posting.meta.description")}">
-<meta name="author" content="${lang("posting.meta.author")}">
-<meta name="keywords" content="${lang("posting.meta.keywords")}">
-<!--<meta name="date" content="### Date ###Time">-->
-<meta http-equiv="Content-Type" content="text/html; charset=${lang("htmlcharset")}">
-<meta name="robots" content="index">
-<meta name="robots" content="follow">
-
-
-    <style type="text/css"> body {background-image: none;} </style>
+<style type="text/css"> body {background-image: none;} </style>
 
 
 <style type="text/css">
@@ -186,21 +177,20 @@ color: red;
 <body bgcolor="#dddddd">
 
 <function showErrors(aField)>
-<comment>
-function to display error message at the input box  // occam, 2003-06-09
-</comment>
-<if errors>
-<list errors as e>
-<if e.field==aField>
-${lang(e.message + "." + e.field)}
-</if>
-</list>
-</if>
+  <comment>
+    function to display error message at the input box  // occam, 2003-06-09
+  </comment>
+
+  <if errors>
+    <list errors as e>
+      <if e.field==aField>
+        ${lang(e.message + "." + e.field)}
+      </if>
+    </list>
+  </if>
 </function>
 
     <if errors>
-
-
           Your input had the following errors:<br><br>
           <list errors as e>
             <font color="red">
@@ -208,10 +198,11 @@ ${lang(e.message + "." + e.field)}
                 ${lang("content."+e.field)}:
               </if>
               ${lang(e.message)} <br>
+              <list e.parameters as p>
+                ${utility.prettyEncodeHTML(p)}<br>
+              </list>
             </font>
           </list>
-
-
     </if>
 
 
@@ -404,6 +395,12 @@ ${lang("posting.text.info")}
 <else>
 <small><strong>(${lang("required")})</strong></small>
 </if>
+<p>${lang("posting.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>
+</select>
+
 </div>
 
 <h2>
@@ -415,27 +412,72 @@ ${lang("posting.step05")}
 ${lang("posting.media")}
 </h4>
 <p>
+<small>${lang("optional")}</small>
+</p>
+<list attachments as a>
+    <hr>
+    <h4>
+      ${utility.encodeHTML(a.filename)}
+    </h4>
+    <input type="checkbox" name="${a.fieldname}_cancel"> ${lang("posting.media.cancel")}
+
+    <h4>
+      ${lang("posting.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")}
 </p>
 <p>
 ${lang("posting.media.howto")}
 </p>
 
-      <list mediaitems as m>
-<h4>
-${lang("posting.media.media")} ${m}
-</h4>
-<input type="file" name="media${m}">
-
-<h4>
-${lang("posting.media.title")} ${m}
-</h4>
-<input type="text" class="preq" name="media${m}_title" size="40" maxlength="80" value="">
+<list mediaitems as m>
+    <hr>
+    <h4>
+    ${lang("posting.media.media")} ${m}
+    </h4>
+    <input type="file" name="media${m}">
+    
+    <h4>
+    ${lang("posting.media.title")} ${m}
+    </h4>
+    <input type="text" class="preq" name="media${m}_title" size="40" maxlength="80" value="">
 </list>
 
-<p>
-<small>${lang("optional")}</small>
-</p>
+<if config["Localizer.OpenSession.AllowFTPUploads"]!="0">
+  <if config["Localizer.OpenSession.AllowFTPUploadSelection"]!="0" && ftpfiles>
+    <hr>
+    <h4>
+      ${lang("posting.media.ftpmedia")}
+    </h4>
+    <select name="ftpupload">
+      <option value="">&nbsp;</option>
+      <list ftpfiles as f>
+        <option value="${utility.encodeHTML(f)}">${f}</option>
+      </list>
+    </select>
+    
+    <h4>
+      ${lang("posting.media.title")} 
+    </h4>
+    <input type="text" class="preq" name="ftpupload_title" size="40" maxlength="80" value="">
+  <else>
+    <hr>
+    <h4>
+      ${lang("posting.media.ftpmedia")}
+    </h4>
+    <input type="text" name="ftpupload"  size="40" maxlength="80" value="">
+    <h4>
+      ${lang("posting.media.title")} 
+    </h4>
+    <input type="text" class="preq" name="ftpupload_title" size="40" maxlength="80" value="">
+  </if>  
+</if>  
+
+
 </div>
 
 <h2>