2 the complete medialist-template in two functions
3 not used for image-list because imagelist uses other display method
6 <include "FUNCTIONS.template">
8 <function MediaSearch (module)>
10 <form method="GET" action="${config.actionRoot}">
12 <input type="hidden" name="module" value="${module}">
13 <input type="hidden" name="do" value="search">
14 <input type="hidden" name="articleid" value="${articleid}">
15 <input type="hidden" name="commentid" value="${commentid}">
17 <table border="0" cellspacing="2" cellpadding="2">
19 <td class="table-head">${lang("search")}:</td>
20 <td class="table-head">${lang("medialist.search_text_in")}:</td>
21 <td class="table-head">${lang("media.published")}:</td>
22 <td class="table-head">${lang("media.mediafolder")}:</td>
23 <td class="table-head"> </td>
24 <td><a class="link-box" href="${config.actionRoot}?module=${module}&do=add">[+] ${lang("add")} </a></td>
29 <input type="text" size="20" maxlength="30" name="searchtext" value="${searchtext}">
32 <select name="searchfield">
33 <option value="title"<if searchfield=="title"> selected</if>>${lang("media.title")}</option>
34 <option value="creator"<if searchfield=="creator"> selected</if>>${lang("media.creator")}</option>
35 <option value="place"<if searchfield=="place"> selected</if>>${lang("media.location")}</option>
40 <select name="searchispublished">
41 <option value="">${lang("dontcare")}</option>
42 <option value="0" <if searchispublished=="0"> selected</if>>${lang("no")}</option>
43 <option value="1" <if searchispublished=="1"> selected</if>>${lang("yes")}</option>
48 <select name="searchmediafolder">
49 <option value="">-</option>
50 <list mediafolders as m>
51 <option value="${m.id}" <if m.id == searchmediafolder>selected</if>>${m.name}</option>
57 <input type="submit" class="majorbutton" name="search" value="${lang("filter")}">
70 <function MediaList (module)>
72 <call showAddOrBack2("1", module, returnurl)>
74 <call showAddOrBack("1", module, "Admin", "start")>
78 <call showPrevNextLinks(prevurl, nexturl, "left")>
82 <tr class="darkgrey" >
83 <td class="table-head">
84 <b>${lang("media.icon")}</b></td>
85 <td class="table-head">
86 <b>${lang("media.title")}</b></td>
87 <td class="table-head">
88 <b>${lang("media.format")}</b></td>
89 <td class="table-head">
90 <b>${lang("media.mediafolder")}</b></td>
91 <td class="table-head">
92 <b>${lang("media.creator")}</b></td>
93 <td class="table-head">
98 <list medialist as entry>
99 <tr <if grey=="1"><assign grey="0">class="listrow1"<else>class="listrow2"<assign grey="1"> </if>>
101 <a href="${config.actionRoot}?module=${module}&do=getMedia&id=${entry.id}">
102 <if module=="Images">
103 <img src="${config.actionRoot}?module=${module}&do=getIcon&id=${entry.id}" border=0></a>
105 <img src="${config.docRoot}/img/${entry.info.bigIcon}" border=0></a>
109 ${utility.encodeHTML(entry.title)}
110 <if entry.description && entry.title><br></if>${utility.encodeHTML(entry.description)}
112 <if entry.is_published=="1">${lang("media.published")}: <a href="${entry.publish_server}${entry.publish_path}">${entry.publish_server}${entry.publish_path}</a><br></if>
113 <a href="${config.actionRoot}?module=${module}&do=showarticles&id=${entry.id}">${lang("media.articles")}</a> |
114 <a href="${config.actionRoot}?module=${module}&do=showcomments&id=${entry.id}">${lang("media.comments")}</a>
118 ${entry.info.mediaType}
121 <if entry.mediafolder>
122 ${entry.mediafolder.name}
126 ${entry.creator}
130 <a href="${config.actionRoot}?module=Content&do=attach&mid=${entry.id}&articleid=${articleid}">${lang("attach")}</a>
133 <a href="${config.actionRoot}?module=Comment&do=attach&mid=${entry.id}&commentid=${commentid}">${lang("attach")}</a>
135 <a href="${config.actionRoot}?module=${module}&do=delete&id=${entry.id}&okurl=${utility.encodeURI(thisurl)}&cancelurl=${utility.encodeURI(thisurl)}">${lang("delete")}</a>
137 <a href="${config.actionRoot}?module=${module}&do=edit&id=${entry.id}">${lang("edit")}</a>
144 <td colspan="7" class="table-foot">
145 ${count} ${lang("records")} / ${lang("show_from_to", from, to)}
150 <call showPrevNextLinks(prevurl, nexturl, "left")>
153 <call showAddOrBack2("1", module, returnurl)>
155 <call showAddOrBack("1", module, "Admin", "start")>
159 <P align="center">${lang("no_matches_found")}</p>