*** empty log message ***
[nyc.indymedia.org.git] / etc / open / editcomment.template
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>${lang("comment.htmltitle")}</title>
5
6
7 <style type="text/css">
8 <!--
9
10 body {
11 margin: 6px; background: #dddddd ;
12 }
13 h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote
14 {
15 font-family:arial, helvetica, sans-serif;
16 }
17
18 .pformbox
19 {
20 padding-left: 10px;
21 padding-right: 10px;
22 padding-bottom: 0px;
23 padding-top: 0px;
24 }
25
26 h1 { padding-bottom: 0px; margin-bottom: 0px;}
27 h2
28 {
29 border: none;
30 margin: none;
31 padding-bottom: 0px;
32 margin-bottom: 0px;
33 padding: 2px;
34 border-top: 1px solid black;
35 border-left: 1px solid black;
36 border-right: 1px solid black;
37 background-color: #003366;
38 color: white;
39 }
40 h3 { padding-bottom: 0px; margin-bottom: 0px;}
41 h4 { padding-bottom: 0px; margin-bottom: 0px; }
42
43 .pdiscl
44 {
45 border: none;
46 margin: none;
47 padding: 4px;
48 margin-top: 6px;
49 margin-bottom: 6px;
50
51 border-color: #FFF;
52 border-width: 2px;
53 border-style: solid;
54 }
55
56 .pformstep01
57 {
58 border: none;
59 margin: none;
60 padding: 8px;
61 margin-top: 0px;
62 margin-bottom: 6px;
63 background-color: #FAFAD2;
64 border-color: gray;
65 border-width: 1px;
66 border-style: solid;
67 }
68 .pformstep02
69 {
70 border: none;
71 margin: none;
72 padding: 8px;
73 margin-top: 0px;
74 margin-bottom: 6px;
75 background-color: #FAFAD2;
76 border-color: gray;
77 border-width: 1px;
78 border-style: solid;
79 }
80
81 .pformstep06
82 {
83 border: none;
84 margin: none;
85 padding: 8px;
86 margin-top: 0px;
87 margin-bottom: 6px;
88 background-color: #ffffff;
89 border-color: gray;
90 border-width: 1px;
91 border-style: solid;
92 }
93
94 input.psubmit
95 {
96 padding: 5px;
97 border: 2px solid green;
98 background-color: #6F0;
99 }
100
101 input.preset
102 {
103 padding: 5px;
104 border: 2px solid red;
105 background-color: #F96;
106 }
107
108 .pbuttons {
109 text-align: right;
110 }
111 input
112 {
113 background-color: #efefef;
114 }
115
116 textarea
117 {
118 background-color: #efefef;
119 }
120
121
122 input.preq
123 {
124 background-color: #ffffff;
125 }
126 textarea.preq
127 {
128 background-color: #ffffff;
129 }
130
131 .error {
132 color: red;
133 }
134 -->
135 </style>
136
137 </head>
138
139 <body bgcolor="#dddddd">
140
141 <function showErrors(aField)>
142 <comment>
143 function to display error message at the input box  // occam, 2003-06-09
144 </comment>
145 <if errors>
146 <list errors as e>
147 <if e.field==aField>       
148 ${lang(e.message + "." + e.field)}
149 </if>
150 </list>
151 </if>
152 </function>
153
154 <div class="pformbox">
155 <h3>
156 ${lang("comment.header")}
157 </h3>
158 <p>
159 ${lang("comment.note")}
160 </p>
161
162 <h1>
163 ${lang("comment.formtitle")}
164 </h1>
165
166     <if errors>
167           Your input had the following errors:<br><br>
168           <list errors as e>
169             <font color="red">
170               <if e.field>
171                 ${lang("content."+e.field)}:
172               </if>
173               ${lang(e.message)} <br>
174               <list e.parameters as p>
175                 ${utility.prettyEncodeHTML(p)}<br>
176               </list>
177             </font>
178           </list>
179    </if>
180
181 <form enctype="multipart/form-data" action="${actionURL}&do=opensession&sessiontype=comment" method="post">
182 <input type="hidden" name="to_media" value="${to_media}">
183
184 <h2>
185 ${lang("posting.step01")}
186 </h2>
187 <div class="pformstep01">
188
189 <!-- TITEL -->
190 <h4>
191 ${lang("comment.title")}
192 </h4>
193 <input type="text" class="preq" name="title" size="45" maxlength="120" value="${utility.encodeHTML(title)}"> 
194 <if errors>
195 <big class="error"><call showErrors("title")></big>
196 <else>
197 <small><strong>(${lang("required")})</strong></small>
198 </if>
199
200 <!-- AUTHOR -->
201 <h4>
202 ${lang("comment.name")}
203 </h4>
204 <input type="text" class="preq" name="creator" size="20" maxlength="45" value="${utility.encodeHTML(creator)}">
205 <if errors>
206 <big class="error"><call showErrors("creator")></big>
207 <else>
208 <small><strong>(${lang("required")})</strong></small>
209 </if>
210
211 <!-- CONTENT -->
212 <h4>
213 ${lang("comment.text")}
214 </h4>
215 <textarea name="description" class="preq" rows="20" cols="74" wrap=virtual>${utility.encodeHTML(description)}</textarea>
216 <if errors>
217 <big class="error"><call showErrors("description")></big>
218 <else>
219 <small><strong>(${lang("required")})</strong></small>
220 </if>
221 </div>
222
223 <h2>
224 ${lang("posting.step02")}
225 </h2>
226 <div class="pformstep02">
227 <!-- EMAIL -->
228 <h4>
229 ${lang("comment.email")}
230 </h4>
231 <input type="text" name="email" size="30" maxlength="80" value="${utility.encodeHTML(email)}">
232 <small>(${lang("optional")})</small>
233
234 <!-- URL -->
235 <h4>
236 ${lang("comment.url")}
237 </h4>
238 <input type="text" name="main_url" size="40" maxlength="160" value="http://">
239 <small>(${lang("optional")})</small>
240
241 <!-- PHONE -->
242 <h4>
243 ${lang("comment.phone")}
244 </h4>
245 <input type="text" name="phone" size="30" maxlength="80" value="${utility.encodeHTML(phone)}">
246 <small>(${lang("optional")})</small>
247
248 <!-- Adress -->
249 <h4>
250 ${lang("comment.address")}
251 </h4>
252 <input type="text" name="address" size="40" maxlength="160" value="${utility.encodeHTML(address)}">
253 <small>(${lang("optional")})</small>
254
255 <!-- LANG -->
256 <h4>
257 ${lang("comment.language")}
258 </h4>
259 <select name="to_language">
260 <list languages as l>
261 <option value="${l.id}">${l.name}</option>
262 </list>
263 </select>
264 <small>(${lang("optional")})</small>
265
266 </div>
267
268 <h2>
269 ${lang("posting.step03")}
270 </h2>
271
272
273 <div class="pformstep02">
274
275 <list attachments as a>
276     <hr>
277     <h4>
278       ${utility.encodeHTML(a.filename)}
279     </h4>
280     <input type="checkbox" name="${a.fieldname}_cancel"> ${lang("posting.media.cancel")}
281
282     <h4>
283       ${lang("posting.media.title")} 
284     </h4>
285     <input type="text" class="preq" name="${a.fieldname}_title" size="40" maxlength="80" value="${utility.encodeHTML(a.title)}">
286 </list>
287
288 <hr>
289
290 <table>
291   <tr>
292     <td>
293     ${lang("posting.media.title")} 1:
294     </td>
295     <td colspan="2">
296       <input type="text" name="media1_title" size="40" maxlength="80" value=""><br>
297     </td>
298   </tr>
299   <tr>
300     <td>${lang("posting.media.media")} 1</td>
301     <td colspan="2">
302       <INPUT TYPE="file" NAME="media1">
303     </td>
304   </tr>
305   <tr>
306     <td>
307     ${lang("posting.media.title")} 2:
308     </td>
309     <td colspan="2">
310       <input type="text" name="media2_title" size="40" maxlength="80" value=""><br>
311     </td>
312   </tr>
313   <tr>
314     <td>${lang("posting.media.media")} 2</td>
315     <td colspan="2">
316       <INPUT TYPE="file" NAME="media2">
317     </td>
318   </tr>
319   <tr>
320     <td>
321     ${lang("posting.media.title")} 3:
322     </td>
323     <td colspan="2">
324       <input type="text" name="media3_title" size="40" maxlength="80" value=""><br>
325     </td>
326   </tr>
327   <tr>
328     <td>${lang("posting.media.media")} 3</td>
329     <td colspan="2">
330       <INPUT TYPE="file" NAME="media3">
331     </td>
332   </tr>
333 </table>
334
335 <if config["Localizer.OpenSession.AllowFTPUploads"]!="0">
336   <if config["Localizer.OpenSession.AllowFTPUploadSelection"]!="0" && ftpfiles>
337     <hr>
338     <h4>
339       ${lang("posting.media.ftpmedia")}
340     </h4>
341     <select name="ftpupload">
342       <option value="">&nbsp;</option>
343       <list ftpfiles as f>
344         <option value="${utility.encodeHTML(f)}">${f}</option>
345       </list>
346     </select>
347     
348     <h4>
349       ${lang("posting.media.title")} 
350     </h4>
351     <input type="text" class="preq" name="ftpupload_title" size="40" maxlength="80" value="">
352   <else>
353     <hr>
354     <h4>
355       ${lang("posting.media.ftpmedia")}
356     </h4>
357     <input type="text" name="ftpupload"  size="40" maxlength="80" value="">
358     <h4>
359       ${lang("posting.media.title")} 
360     </h4>
361     <input type="text" class="preq" name="ftpupload_title" size="40" maxlength="80" value="">
362   </if>  
363 </if>  
364
365 </div>
366
367
368 <h2>
369 ${lang("posting.step04")}
370 </h2>
371 <div class="pformstep06">
372 <div class="pbuttons">
373 <input type="submit" name="post" class="psubmit" value="${lang("comment.submit")}">
374 <input type="reset" class="preset" value="${lang("comment.reset")}">
375 </div>
376 </div>
377 </form>
378 </div>
379 </body>
380 </html>
381