2 the complete medialist-template in two functions
3 not used for image-list because imagelist uses other display method
6 <function MediaSearch (module)>
8 <form method="post" action="${config.actionRoot}">
10 <input type="hidden" name="module" value="${module}">
11 <input type="hidden" name="do" value="search">
12 <input type="hidden" name="articleid" value="${articleid}">
13 <input type="hidden" name="commentid" value="${commentid}">
15 <table border="0" cellspacing="2" cellpadding="2">
17 <td class="table-head">${lang("search")}:</td>
18 <td class="table-head">${lang("medialist.search_text_in")}:</td>
19 <td class="table-head">${lang("media.published")}:</td>
20 <td class="table-head">${lang("media.mediafolder")}:</td>
21 <td class="table-head"> </td>
22 <td><a class="link-box" href="${config.actionRoot}?module=${module}&do=add">[+] ${lang("add")} </a></td>
27 <input type="text" size="20" maxlength="30" name="searchtext" value="${searchtext}">
30 <select name="searchfield">
31 <option value="title"<if searchfield=="title"> selected</if>>${lang("media.title")}</option>
32 <option value="creator"<if searchfield=="creator"> selected</if>>${lang("media.creator")}</option>
33 <option value="place"<if searchfield=="place"> selected</if>>${lang("media.location")}</option>
38 <select name="searchispublished">
39 <option value="">${lang("dontcare")}</option>
40 <option value="0" <if searchispublished=="0"> selected</if>>${lang("no")}</option>
41 <option value="1" <if searchispublished=="1"> selected</if>>${lang("yes")}</option>
46 <select name="searchmediafolder">
47 <option value="">-</option>
48 <list mediafolders as m>
49 <option value="${m.id}" <if m.id == searchmediafolder>selected</if>>${m.name}</option>
55 <input type="submit" name="search" value="${lang("filter")}">
68 <function MediaList (module)>
72 <tr class="darkgrey" >
73 <td class="table-head">
74 <b>${lang("media.icon")}</b></td>
75 <td class="table-head">
76 <b>${lang("media.title")}</b></td>
77 <td class="table-head">
78 <b>${lang("media.format")}</b></td>
79 <td class="table-head">
80 <b>${lang("media.size")}</b></td>
81 <td class="table-head">
82 <b>${lang("media.mediafolder")}</b></td>
83 <td class="table-head">
84 <b>${lang("media.creator")}</b></td>
85 <td class="table-head">
91 <list medialist as entry>
92 <tr <if grey=="1"><assign grey="0">class="listrow1"<else>class="listrow2"<assign grey="1"> </if>>
94 <a href="${config.actionRoot}?module=${module}&do=getMedia&id=${entry.id}">
96 <img src="${config.actionRoot}?module=${module}&do=getIcon&id=${entry.id}" border=0></a>
98 <img src="${config.docRoot}/img/${entry.big_icon}" border=0></a>
103 <if entry.description><br>${entry.description}</if>
106 ${entry.media_descr}
109 ${entry.human_readable_size}
112 <if entry.mediafolder>
113 ${entry.mediafolder.name}
117 ${entry.creator}
121 <a href="${config.actionRoot}?module=Content&do=attach&mid=${entry.id}&articleid=${articleid}">${lang("attach")}</a>
124 <a href="${config.actionRoot}?module=Comment&do=attach&mid=${entry.id}&commentid=${commentid}">${lang("attach")}</a>
126 <a href="${config.actionRoot}?module=${module}&do=delete&id=${entry.id}&okurl=${utility.encodeURI(thisurl)}&cancelurl=${utility.encodeURI(thisurl)}">${lang("delete")}</a>
128 <a href="${config.actionRoot}?module=${module}&do=edit&id=${entry.id}">${lang("edit")}</a>
135 <td colspan="7" class="table-foot">
136 ${count} ${lang("records")} / ${lang("show_from_to", from, to)}
143 <a href="${config.actionRoot}?${prevurl}">${lang("list.previous")}</a>
146 <a href="${config.actionRoot}?${nexturl}">${lang("list.next")}</a>
152 <tr><td align="center" class="box" colspan="7">${lang("no_matches_found")}</td></tr>