merged with 1.1
[mir.git] / templates / admin / uploadedmedia.template
1 <html>
2   <head>
3     <title>${config["Mir.Name"]}<comment> | ${lang("image.htmltitle")}</comment></title>
4     <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
5   <head>
6   <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
7
8     <include "FUNCTIONS.template">
9     <include "head.template">
10
11     <if new=="1">
12       <form action="${config.actionRoot}?module=${module}&do=add" method="post">
13
14         <input type="hidden" name="returnurl" value="${returnurl}">
15       <if articleid>
16           <input type="hidden" name="articleid" value="${articleid}">
17       </if>
18       <if commentid>
19           <input type="hidden" name="commentid" value="${commentid}">
20       </if>
21         <table border="0">
22           <tr>
23             <td align="right" class="table-left">
24               <b>${lang("media.nr_of_media")} :</b><br>
25             </td>
26             <td class="listrow2">
27               <input type="text" size="3" name="nrmedia" value="${nrmedia}">&nbsp;&nbsp;<input type="submit" value="${lang("media.nr_of_media.submit")}">
28             </td>
29           </tr>
30         </table>
31       </form>
32     </if>
33
34
35     <form enctype="multipart/form-data" method="post" action="${config.actionRoot}?module=${module}&do=<if new=="1">insert<else>update</if>&id=${uploadedmedia.id}">
36       <if articleid>
37         <input type="hidden" name="articleid" value="${articleid}">
38       </if>
39       <if commentid>
40         <input type="hidden" name="commentid" value="${commentid}">
41       </if>
42       <input type="hidden" name="returnurl" value="${returnurl}">
43       <input type="hidden" name="id" value="${uploadedmedia.id}">
44     
45       <table border="0">
46     
47         <include edittemplate>
48       
49         <tr><td colspan="2" class="x-small">&nbsp;</td></tr>
50       
51         <if new=="1">
52           <tr>
53             <td align="right" class="table-left">
54               ${lang("media.is_published")} : 
55             </td>
56             <td class="listrow2" style='border: 1px solid #FF0000;'>
57               <input type="checkbox" name="is_published" value="1"<if uploadedmedia.is_published!="0" && uploadedmedia.is_published!=""> checked</if>>  
58             </td>
59           </tr>
60           
61           <tr><td colspan="2" class="x-small">&nbsp;</td></tr>
62           
63           <list mediafields as m>
64               <tr>
65                 <td align="right" class="table-left">
66                   <B>${lang("media.title")}:<B>
67                  </td>
68                 <td class="listrow2">
69                   <input type="text" name="media_title${m}" size="40" maxlength="80" value="">
70                 </td>
71               </tr>
72               <tr>
73                 <td align="right">
74                   &nbsp;
75                 </td>
76                 <td class="listrow2">
77                   <input type="file" name="media${m}"><br>
78                 </td>
79               </tr>
80           </list>
81         </if>
82         
83         <tr>
84           <td colspan="2" align="right" class="table-foot">
85             <if new=="1">
86               <input type="submit" name="save" value="${lang("insert")}">
87             <else>
88               ${lang("media.is_published")} <input type="checkbox" name="is_published" value="1"<if uploadedmedia.is_published!="0" && uploadedmedia.is_published!=""> checked</if>>
89               &nbsp;&nbsp;<input type="submit" name="save" value="${lang("save")}">
90             </if> 
91           </td>
92         </tr>
93       </table>
94     </form>
95     
96     <p><a class="link-box" href="${config.actionRoot}?module=${module}&do=list">[&lt;] ${lang("list")} </a> &nbsp;</p>
97
98     <include "foot.template">
99   </body>
100 </html>