utility class for making an Enumeration over input files
[mir.git] / templates-dist / producer / article.template
1 <comment>
2   Template file for an article.
3   
4   Variables:
5
6 </comment>
7
8 <html>
9   <head>
10     <title>${lang("producer.content.htmltitle")}${article.content.title}</title>
11     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
12     <link rel="stylesheet" href="/style/mir.css" type="text/css">
13                         <if article.content.to_media_images>
14                     <meta name="keywords" content="images"></meta>
15                         </if>
16                         <if article.content.to_media_audio>
17                     <meta name="keywords" content="audio"></meta>
18                         </if>
19                         <if article.content.to_media_video>
20                     <meta name="keywords" content="video"></meta>
21                         </if>
22                         <if article.content.to_media_other>
23                     <meta name="keywords" content="other"></meta>
24                         </if>
25   </head>
26
27 <body bgcolor="#CCCCCC">
28 <table width="760" border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#000000">
29   <tr bgcolor="#FFFFFF">
30     <td valign="top" align="left" width="150" bgcolor="#666666">
31       <table width="150" border="0" cellspacing="0" cellpadding="0">
32         <tr>
33           <td width="140">
34             <a href="${config["Producer.ProductionHost"]}${config["Producer.DocRoot"]}/">
35              <img src="/images/mirlogo.jpg" width="150" height="205" border="0">
36             </a>
37           </td>
38         </tr>
39         <tr valign="top">
40           <td width="140" bgcolor="#666666">
41             <table width="100%" border="0" cellspacing="2" cellpadding="0">
42               <tr>
43                 <td>
44                   <!--#include virtual="../../navigation.inc" -->
45                 </td>
46               </tr>
47             </table>
48           </td>
49         </tr>
50       </table>
51     </td>
52     <td align="left" valign="top" colspan="2" height="100%">
53       <table width="100%" border="0" cellspacing="0" cellpadding="0">
54         <tr>
55           <td>
56             <table width="100%" border="0" cellspacing="0" cellpadding="0">
57               <tr>
58                 <td><img src="/images/mirfont.gif" width="600" height="68"></td>
59               </tr>
60             </table>
61           </td>
62         </tr>
63         <tr bgcolor="#000000">
64           <td height="1"><img src="images/1pixel.gif" width="1" height="1"></td>
65         </tr>
66         <tr>
67           <td align="left" valign="top">
68             <table width="100%" border="0" cellpadding="0" cellspacing="2" height="100%">
69               <tr>
70                 <td width="100%" valign="top">
71                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
72         <if config.generateFO=="yes">
73           <tr><td align="right">          
74           <if config.generatePDF=="yes">
75             <a href="${article.content.id}.pdf">Print this article</a>
76           <else>
77             <a href="${config["Producer.OpenAction"]}?do=getpdf&id=${article.content.id}">Print this article</a>
78           </if>
79           </td></tr>
80         </if>
81             <tr> 
82                       <td> 
83                         <h2>${article.content.title}</h2>
84                         <h4><i>${article.content.creator}, ${article.content.webdb_create_formatted}</i></h4>
85                         <p><b>${article.content.description_parsed}</b>
86
87
88           <!-- media -->
89
90             <list article.content.to_media_audio as media>
91               <p>
92
93                 <img src="/img/${media["big_icon"]}" border="0" alt="">
94
95                 <a href="${media["publish_server"]}${media["publish_path"]}">
96                   ${media["title"]} - ${media["descr"]}
97                 </a>
98               </p>
99             </list>
100             <list article.content.to_media_video as media>
101                 <p>
102                   <img src="/img/${media["big_icon"]}" border="0" alt="">
103                   <a href="${media["publish_server"]}${media["publish_path"]}">
104                   ${media["title"]} - ${media["descr"]}</a>
105                 </p>
106             </list>
107             <list article.content.to_media_other as media>
108                 <p>
109                   <img src="/img/${media["big_icon"]}" border="0" alt="">
110                   <a href="${media["publish_server"]}${media["publish_path"]}">
111                   ${media["title"]} - ${media["descr"]}</a>
112                 </p>
113             </list>
114   
115             <list article.content.to_media_images as image>
116                 <p>
117                   <img src="${image["publish_server"]}${image["publish_path"]}"
118                    border="0" width="${image["img_width"]}"
119                    height="${image["img_height"]}" alt="${image["title"]}">
120                    <br><i>${image["title"]}</i>
121                 </p>
122             </list>
123
124           <!-- media -->
125
126           <p>${article.content.content_data_parsed}</p>
127           <if article.content.creator_main_url || article.content.creator_email>
128                         <table width="100%" bgcolor="#FFFFFF">
129                         <tr>
130                            <td>
131                             <font size="-1">
132                             <if content.creator_email>
133                             <img src="/images/mail_small.gif" width="12" height="10" border="0" alt="-"> ${lang("producer.content.email")}: <a href="mailto:${article.content.creator_email}">${article.content.creator_email}</a><br>
134                             </if>
135                             <if content.creator_main_url>
136                             <img src="/images/link_small.gif" width="12" height="10" border="0" alt=""> ${lang("producer.content.homepage")}: <a href="${article.content.creator_main_url}" target="extern">${article.content.creator_main_url}</a><br>
137                             </if>
138                             </font>
139                            </td>
140                         </tr>
141                         </table>
142                         </if>
143                       </td>
144                     </tr>
145                     <tr><td>&nbsp;</td></tr>
146                     <tr>
147                       <td><a href="${config["Producer.OpenAction"]}?do=addcomment&aid=${article.content.id}">
148                           ${lang("producer.content.comment")}</a>
149                       </td>
150                     </tr>
151                     <if article.content.to_comments>
152                     <list article.content.to_comments as c>
153                     <tr>
154                        <td>
155                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
156                        <tr bgcolor="#cccccc">
157                          <td><b>${c.title}</b></td>
158                          <td align="right"><i>${c.date}</i></td>
159                        </tr>
160                        <tr>
161                          <td colspan="2"><br>${c.description}</td>
162                        </tr>
163                    <if c.email || c.main_url || c.address || c.phone || c.creator>
164                        <tr>
165                          <td bgcolor="#cccccc" colspan="2">
166                          <if c.creator><b>${c.creator}</b></if>
167                      <if c.email || c.main_url>
168                         <if c.email>
169                            <br>
170                            <img src="/images/mail_small.gif" width="12" height="10" border="0" alt="">${lang("producer.content.email")}: <a href="mailto:${c.email}"> ${c.email}</a>
171                         </if>
172                         <if c.main_url>
173                            <br>
174                            <img src="/images/link_small.gif" width="12" height="10" border="0" alt="">
175                            ${lang("producer.content.homepage")}: <a href="${c.main_url}" target="extern"> ${c.main_url}</a>
176                         </if>
177                                       </if>
178                                           </td>
179                       </tr>
180                   </if>
181                      </table>
182                      </td>
183                     </tr>
184                     <tr><td>&nbsp;</td></tr>
185                     </list>
186                     </if>
187                   </table>
188                   </td>
189               </tr>
190             </table>
191           </td>
192         </tr>
193       </table>
194     </td>
195   </tr>
196 </table>
197 <p>&nbsp;</p>
198 </body>
199 </html>