made some more esyntax changes
[nyc.indymedia.org.git] / etc / open / editarticle.template
1 <comment>
2   Template file for publishing form.
3 </comment><!DOCTYPE HTML PUBLIC
4    "-//W3C//DTD HTML 4.01 Transitional//EN"
5    "http://www.w3.org/TR/html4/loose.dtd">
6 <html>
7 <head>
8    <meta http-equiv="Content-Type" content="text/html; charset=${config["Mir.DefaultHTMLCharset"]}">
9    <title>${config["Mir.Name"]} | ${lang("posting.htmltitle")}</title>
10    <link rel="stylesheet" type="text/css" href="/css/main.css" />
11
12 </head>
13
14 <body class="interior" id="publish">
15
16 <!--#include virtual="/${language.code}/navigation.html" -->
17
18          <function showErrors(aField)>
19             <comment>
20                function to display error message at the input box  // occam, 2003-06-09
21             </comment>
22          
23             <if errors>
24                <list errors as e>
25                   <if e.field==aField>
26                      ${lang(e.message + "." + e.field)}
27                   </if>
28                </list>
29             </if>
30          </function>
31          
32          <if errors>
33             Please correct the following errors:<br />
34             <list errors as e>
35                <!-- <p class="errors"> -->
36                   <if e.field>
37                      ${lang("content."+e.field)}:
38                   </if>
39                   ${lang(e.message)}<br />
40                   <list e.parameters as p>
41                      ${utility.prettyEncodeHTML(p)}<br />
42                   </list>
43                <!-- </p> -->
44             </list>
45          </if>
46          
47          <comment>
48             <div class="pdiscl">
49                <include "disclaimer.inc.de">
50             &#160;
51          </comment>
52          
53          <p class="title">
54             ${lang("posting.form.title")}
55          </p>
56          
57          <if errors>
58             <p class="errors">
59                ${lang("posting.errors")}
60             </p>
61          </if>
62          
63          <!-- ${lang("posting.step00")} -->
64          
65          <p>
66             ${lang("posting.readhowtos")}
67          </p>
68          
69          
70          <form enctype="multipart/form-data" action="${actionURL}&do=opensession&sessiontype=article" method="post">
71          
72             <comment>
73                what the heck is this? --patrick
74             </comment>
75                <if password>
76                   ${password}<br />
77                   ${lang("posting.password")}<br />
78                   <input type="password" class="formPassword" id="" name="password" value="" size="20" maxlength="" tabindex="" />
79                </if>
80          
81          <div class="mediaUploadCount">
82             <p>
83                ${lang("posting.nr_of_media")}<br />
84                ${lang("posting.nr_of_media.info")}
85             </p>
86             <input type="text" name="nrmediaitems" size="8" value="${utility.encodeHTML(nrmediaitems)}">
87             <input type="submit" value="${lang("posting.nr_of_media.submit")}">
88          </div>
89          <table class="formWrap" id="publishForm" cellspacing="0">
90             <tr>
91                <td colspan="3">
92                   <input type="text" class="formText" id="" name="title" value="${utility.encodeHTML(title)}" size="45" maxlength="45" tabindex="" />  
93                   <p class="title">
94                      ${lang("posting.title")}
95                      <span class="prompt">${lang("posting.title.info")}</span>
96                      <if errors>
97                         <span class="errors"><call showErrors("title")></span>
98                      <else>
99                         <span class="required">(${lang("required")})</span>
100                      </if>
101                   </p>
102                </td>
103             </tr>
104             <tr>
105                <td class="author">
106                   <input type="text" class="formText" id="" name="creator" value="${utility.encodeHTML(creator)}" size="45" maxlength="45" tabindex="" />  
107                </td>
108                <td><div class="spacer"><!-- --></div></td>
109                <td>
110                   <p class="language">
111                      <!-- ${lang("posting.language")} -->
112                      <select name="to_language">
113                         <list languages as l>
114                         <option value="${l.id}">${l.name}</option>
115                         </list>
116                      </select>
117                   </p>
118                </td>
119             </tr>
120             <tr>
121                <td colspan="3">
122                   <p class="author">
123                      ${lang("posting.author")}
124                      <if errors>
125                         <span class="errors"><call showErrors("creator")></span>
126                      <else>
127                         <span class="required">(${lang("required")})</span>
128                      </if>
129                   </p>
130          
131                   <div class="lead">
132                      <p>
133                         ${lang("posting.lead")}
134                         <span class="prompt">${lang("posting.lead.info")}</span>
135                      </p>
136                      <textarea class="formTextarea" id="lead" name="subtitle" value="" rows="2" cols="100" wrap="virtual" tabindex="">${utility.encodeHTML(subtitle)}</textarea>
137                      <p class="prompt">
138                         ${lang("posting.lead.constraint")}
139                      </p>
140                   </div>
141                
142                   <div class="summary">
143                      <p>
144                         ${lang("posting.abstract")}
145                         <span class="prompt">${lang("posting.abstract.info")}</span>
146                         <if errors>
147                            <span class="errors"><call showErrors("description")></span>
148                         <else>
149                            <span class="required">(${lang("required")})</span>
150                         </if>
151                      </p>
152                      <textarea class="formTextarea" id="summary" name="description" value="" rows="10" cols="100" wrap="virtual" tabindex="">${utility.encodeHTML(description)}</textarea>
153                      <p class="prompt">
154                         ${lang("posting.abstract.constraint")}
155                      </p>
156                   </div>
157          
158                   <table class="formWrap" id="location" cellspacing="0">
159                      <tr>
160                         <td>
161                            <select class="formSelect" id="location" name="to_topic">
162                               <list topics as t>
163                                  <if (t.archiv_url == "Location")>
164                                  <option value="${t.id}" <list to_topic as to><if (t.id == to)>selected="selected"</if></list>>${t.title}</option>
165                                  </if>
166                               </list>
167                            </select>
168                         </td>
169                         <td><div class="spacer"><!-- --></div></td>
170                      </tr>
171                   </table>
172                   <table class="formWrap" id="contentType" cellspacing="0">
173                      <tr>
174                         <td>
175                            <input type="radio" class="formRadio" id="" name="" value="" tabindex="" checked="checked" />
176                         </td>
177                         <td>
178                            <p>
179                               News
180                            </p>
181                         </td>
182                         <td><div class="spacer"><!-- --></div></td>
183                         <td>
184                            <input type="radio" class="formRadio" id="" name="" value="" tabindex="" />  
185                         </td>
186                         <td>
187                            <p>
188                               Opinion
189                            </p>
190                         </td>
191                         <td><div class="spacer"><!-- --></div></td>
192                         <td>
193                            <input type="radio" class="formRadio" id="" name="" value="" tabindex="" />  
194                         </td>
195                         <td>
196                            <p>
197                               Analysis
198                            </p>
199                         </td>
200                         <td><div class="spacer"><!-- --></div></td>
201                      </tr>
202                   </table>
203                   <table class="formWrap" id="contentType" cellspacing="0">
204                      <tr>
205                         <td>
206                            <input type="radio" class="formRadio" id="" name="" value="" tabindex="" />  
207                         </td>
208                         <td>
209                            <p>
210                               Event
211                            </p>
212                         </td>
213                         <td><div class="spacer"><!-- --></div></td>
214                         <td>
215                            <input type="radio" class="formRadio" id="" name="" value="" tabindex="" />  
216                         </td>
217                         <td>
218                            <p>
219                               Press Release
220                            </p>
221                         </td>
222                         <td><div class="spacer"><!-- --></div></td>
223                         <td>
224                            <input type="radio" class="formRadio" id="" name="" value="" tabindex="" />  
225                         </td>
226                         <td>
227                            <p>
228                               Review
229                            </p>
230                         </td>
231                      </tr>
232                   </table>
233          
234          <div style="clear: both;"></div>
235          
236                   <p class="body">
237                      ${lang("posting.text")}
238                      ${lang("posting.text.info")}
239                      ${lang("posting.html")}
240                      <if errors>
241                         <span class="errors"><call showErrors("content_data")></span>
242                      <else>
243                         (${lang("required")})
244                      </if>
245                   </p>
246                   <textarea class="formTextarea" id="body" name="content_data" value="" rows="40" cols="100" wrap="soft" tabindex="">${utility.encodeHTML(content_data)}</textarea>
247                   <div class="formWrap" id="textFormat">
248                      <table cellspacing="0">
249                         <tr>
250                            <td>
251                               <input type="radio" class="formRadio" id="" name="is_html" value="0" tabindex="" checked="checked" />
252                            </td>
253                            <td>
254                               <p>
255                                  Plain Text
256                               </p>
257                            </td>
258                            <td><div class="spacer"><!-- --></div></td>
259                            <td>
260                               <input type="radio" class="formRadio" id="" name="is_html" value="1" tabindex="" />  
261                            </td>
262                            <td>
263                               <p>
264                                  HTML
265                               </p>
266                            </td>
267                         </tr>
268                      </table>
269                   </div>         
270                   <comment>
271                      Replacing this with radio buttons --patrick
272                      <select name="is_html">
273                         <option value="0" <if is_html!="1">selected</if>>plain text</option>
274                         <option value="1" <if is_html=="1">selected</if>>html</option>
275                      </select>
276                   </comment>
277          
278                   <table class="formWrap" id="topics" cellspacing="0">
279                      <tr>
280                         <td class="categories">
281                            <p>
282                               ${lang("posting.topic")}
283                            </p>
284                            <list topics as t>
285                               <if (t.archiv_url == "Category")>
286                                  <input type="checkbox" class="formCheckbox" id="" name="to_topic" value="${t.id}" />  
287                                  <p class="topic">
288                                     ${t.title}
289                                  </p>
290                                  <div class="spacer"><!-- --></div>
291                               </if>
292                            </list>
293                         </td>
294                         </td>
295                      </tr>
296                   </table>
297                   <table class="formWrap" id="topics" cellspacing="0">
298                      <tr>
299                         <td class="subcategories">
300                            <p>
301                               ${lang("posting.subcategory")}
302                            </p>
303                            <!-- ${lang("posting.topic.info")} -->
304                            <select class="formSelect" id="" name="to_topic" size="15" multiple="multiple">
305                               <list topics as t>
306                                  <if (t.archiv_url == "Subcategory")>
307                                  <option value="${t.id}" <list to_topic as to><if (t.id == to)>selected="selected"</if></list>>${t.title}</option>
308                                  </if>
309                               </list>
310                            </select>
311                         </td>
312                      </tr>
313                   </table>
314          
315          <div style="clear: both;"></div>
316          
317                   <p>
318                      ${lang("posting.contact")} 
319                   </p>
320                   <p>
321                      ${lang("posting.contact.info")} 
322                   </p>
323          
324                   <div class="contactWrap">
325                      <table class="formWrap" id="contactEmail" cellspacing="0">
326                         <tr>
327                            <td>
328                               <input type="text" class="formText" id="email" name="creator_email" value="${utility.encodeHTML(creator_email)}" size="20" maxlength="80" tabindex="" />  
329                               <p>
330                                  ${lang("posting.email")}
331                               </p>
332                            </td>
333                            <td><div class="spacer"><!-- --></div></td>
334                         </tr>
335                      </table>
336                      <table class="formWrap" id="contactURL" cellspacing="0">
337                         <tr>
338                            <td>
339                               <input type="text" class="formText" id="url" name="creator_main_url" value="${utility.encodeHTML(creator_main_url)}" size="75" maxlength="160" tabindex="" />  
340                               <p>
341                                  ${lang("posting.url")}
342                               </p>
343                            </td>
344                         </tr>
345                      </table>
346             
347             <div style="clear: both;"></div>
348             
349                      <table class="formWrap" id="contactPhone" cellspacing="0">
350                         <tr>
351                            <td>
352                               <input type="text" class="formText" id="phone" name="creator_phone" value="${utility.encodeHTML(creator_address)}" size="20" maxlength="20" tabindex="" />  
353                               <p>
354                                  ${lang("posting.phone")}
355                               </p>
356                            </td>
357                            <td><div class="spacer"><!-- --></div></td>
358                         </tr>
359                      </table>
360                     <table class="formWrap" id="contactAddress" cellspacing="0">
361                         <tr>
362                            <td>
363                               <input type="text" class="formText" id="address" name="creator_address" value="${utility.encodeHTML(creator_address)}" size="20" maxlength="160" tabindex="" />  
364                               <p>
365                                  ${lang("posting.address")}
366                               </p>
367                            </td>
368                         </tr>
369                      </table>
370                   </div>    
371          
372                   <p>
373                      ${lang("posting.media")}
374                   </p>
375          
376          <list attachments as a>
377              <p>  ${utility.encodeHTML(a.filename)}</p>
378              <input type="checkbox" name="${a.fieldname}_cancel"> ${lang("posting.media.cancel")}
379                <p>${lang("posting.media.title")}</p>
380              <input type="text" class="preq" name="${a.fieldname}_title" size="40" maxlength="80" value="${utility.encodeHTML(a.title)}">
381                   </list>
382                   
383                   <p>
384                      ${lang("posting.media.info")}
385                   </p>
386                   <p>
387                      ${lang("posting.media.howto")}
388                   </p>
389          
390          <list mediaitems as m>
391              <p>${lang("posting.media.media")} ${m}</p>
392              <input type="file" name="media${m}">
393              <p>${lang("posting.media.title")} ${m}</p>
394              <input type="text" class="preq" name="media${m}_title" size="40" maxlength="80" value="">
395          </list>
396          
397          <if config["Localizer.OpenSession.AllowFTPUploads"]!="0">
398            <if config["Localizer.OpenSession.AllowFTPUploadSelection"]!="0" && ftpfiles>
399                <p>${lang("posting.media.ftpmedia")}</p>
400              <select name="ftpupload">
401                <option value="">&nbsp;</option>
402                <list ftpfiles as f>
403                  <option value="${utility.encodeHTML(f)}">${f}</option>
404                </list>
405              </select>
406          
407                <p>${lang("posting.media.title")}</p>
408              <input type="text" class="preq" name="ftpupload_title" size="40" maxlength="80" value="">
409            <else>
410                <p>${lang("posting.media.ftpmedia")}</p>
411              <input type="text" name="ftpupload"  size="40" maxlength="80" value="">
412                <p>${lang("posting.media.title")}</p>
413              <input type="text" class="preq" name="ftpupload_title" size="40" maxlength="80" value="">
414            </if>
415          </if>
416          
417          
418                <p>
419                   ${lang("posting.submit.info")}
420                </p>
421                <p>
422                   ${lang("posting.criteria")}
423                </p>
424                <input type="submit" name="post" class="psubmit" value="${lang("posting.submit")}">
425          
426                </td>
427             </tr>
428          </table>
429          </form><!-- 
430       end center column
431       --></td>
432       <td class="margin"><div><!-- --></div></td>
433    </tr>
434 </table>
435
436 <!--#include virtual="/${language.code}/footer.html" -->
437
438