file jaxen-1.0-FCS-full.jar was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000
[mir.git] / etc / open / editcomment.template
index fe559a5..7932a9d 100755 (executable)
@@ -164,11 +164,22 @@ ${lang("comment.formtitle")}
 </h1>
 
     <if errors>
-<p class="error">${lang("comment.errors")}</p>
+          Your input had the following errors:<br><br>
+          <list errors as e>
+            <font color="red">
+              <if e.field>
+                ${lang("content."+e.field)}:
+              </if>
+              ${lang(e.message)} <br>
+              <list e.parameters as p>
+                ${utility.prettyEncodeHTML(p)}<br>
+              </list>
+            </font>
+          </list>
    </if>
 
 <form enctype="multipart/form-data" action="${actionURL}&do=opensession&sessiontype=comment" method="post">
-<input type="hidden" name="to_media" value="${to_media}">
+<input type="hidden" name="to_media" value="${utility.encodeHTML(to_media)}">
 
 <h2>
 ${lang("posting.step01")}
@@ -257,52 +268,100 @@ ${lang("comment.language")}
 <h2>
 ${lang("posting.step03")}
 </h2>
+
+
 <div class="pformstep02">
+
+<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>
+
+<hr>
+
 <table>
-       <tr>
-               <td>
-               ${lang("posting.media.title")} 1:
-               </td>
-               <td colspan="2">
-                       <input type="text" name="media1_title" size="40" maxlength="80" value=""><br>
-               </td>
-       </tr>
-       <tr>
-               <td>${lang("posting.media.media")} 1</td>
-               <td colspan="2">
-                       <INPUT TYPE="file" NAME="media1">
-               </td>
-       </tr>
-       <tr>
-               <td>
-               ${lang("posting.media.title")} 2:
-               </td>
-               <td colspan="2">
-                       <input type="text" name="media2_title" size="40" maxlength="80" value=""><br>
-               </td>
-       </tr>
-       <tr>
-               <td>${lang("posting.media.media")} 2</td>
-               <td colspan="2">
-                       <INPUT TYPE="file" NAME="media2">
-               </td>
-       </tr>
-       <tr>
-               <td>
-               ${lang("posting.media.title")} 3:
-               </td>
-               <td colspan="2">
-                       <input type="text" name="media3_title" size="40" maxlength="80" value=""><br>
-               </td>
-       </tr>
-       <tr>
-               <td>${lang("posting.media.media")} 3</td>
-               <td colspan="2">
-                       <INPUT TYPE="file" NAME="media3">
-               </td>
-       </tr>
+  <tr>
+    <td>
+    ${lang("posting.media.title")} 1:
+    </td>
+    <td colspan="2">
+      <input type="text" name="media1_title" size="40" maxlength="80" value=""><br>
+    </td>
+  </tr>
+  <tr>
+    <td>${lang("posting.media.media")} 1</td>
+    <td colspan="2">
+      <INPUT TYPE="file" NAME="media1">
+    </td>
+  </tr>
+  <tr>
+    <td>
+    ${lang("posting.media.title")} 2:
+    </td>
+    <td colspan="2">
+      <input type="text" name="media2_title" size="40" maxlength="80" value=""><br>
+    </td>
+  </tr>
+  <tr>
+    <td>${lang("posting.media.media")} 2</td>
+    <td colspan="2">
+      <INPUT TYPE="file" NAME="media2">
+    </td>
+  </tr>
+  <tr>
+    <td>
+    ${lang("posting.media.title")} 3:
+    </td>
+    <td colspan="2">
+      <input type="text" name="media3_title" size="40" maxlength="80" value=""><br>
+    </td>
+  </tr>
+  <tr>
+    <td>${lang("posting.media.media")} 3</td>
+    <td colspan="2">
+      <INPUT TYPE="file" NAME="media3">
+    </td>
+  </tr>
 </table>
 
+<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>