/[cvs]/nfo/php/scripts/gdwebint/public_html/tpl/browse.tpl
ViewVC logotype

Contents of /nfo/php/scripts/gdwebint/public_html/tpl/browse.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Fri Apr 1 15:49:51 2005 UTC (19 years, 3 months ago) by joko
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +12 -2 lines
+ functionality to disable delete- and empty-buttons via configuration

1 {include file="main.header.tpl"}
2
3 <table cellspacing="30" width="100%">
4 <tr>
5 <td valign="top" width="1%">
6 <p align="center">
7 <img src="gfx/topic.browse.gif" alt="">
8 </p>
9
10 <br>
11
12 <p>
13 <b>Browse</b>
14 </p>
15
16 <p class="nowrap">
17 <img src="gfx/icon.arrow.gif" alt="" class="menu-img">
18 <a href="browse.php?sid={$sid}">Artists</a>
19 </p>
20
21 <p class="nowrap">
22 <img src="gfx/icon.arrow.gif" alt="" class="menu-img">
23 <a href="browse.php?mode=tracks&amp;sid={$sid}">Tracks</a>
24 </p>
25
26 <p class="nowrap">
27 <img src="gfx/icon.arrow.gif" alt="" class="menu-img">
28 <a href="browse.php?mode=albums&amp;sid={$sid}">Albums</a>
29 </p>
30 </td>
31 <td valign="top">
32 <h2>{$ptitle}</h2>
33
34 <p>
35 {$ptext}
36 </p>
37
38 <br>
39
40 {if $mode == "tracks"}
41 {* tracks *}
42
43 <table width="100%" align="center">
44 <tr>
45 <td>
46 <b>Tracks</b><br>
47
48 <img src="gfx/icon.arrow.gif" alt="" class="menu-img"> jump to
49 {section name=i loop=$alphabet}
50 {if $alphabet[i] == $init}{$alphabet[i].big}
51 {else}<a href="browse.php?mode={$mode}&amp;jump={$alphabet[i].small}&amp;orderby={$orderby}&amp;direction={$direction}&amp;sid={$sid}">{$alphabet[i].big}</a> {/if}
52 {/section}
53 </td>
54 <td align="right">
55 {include file="main.pages.tpl" format="browse.php?mode=`$mode`&amp;page=%s&amp;orderby=`$orderby`&amp;direction=`$direction`&amp;sid=`$sid`"}
56 </td>
57 </tr>
58 <tr>
59 <td colspan="2">
60 {include file="main.tracklist.tpl" isbrowse=true}
61 </td>
62 </tr>
63 <tr>
64 <td>
65 <table>
66 <tr>
67 <td valign="top"><img src="gfx/icon.check.arrow.gif" alt="" style="vertical-align: bottom">
68 <td valign="bottom">
69 <a href="#" onclick="setCheckboxes('tracks','id[]',true); return false;" onmouseover="showTip(this,event,'Select all checkboxes<br>of the file/s above.')" onmouseout="hideTip()">Select all</a> /
70 <a href="#" onclick="setCheckboxesBetween('tracks','id[]',true); return false;" onmouseover="showTip(this,event,'Select all file/s between<br>two already checked.')" onmouseout="hideTip()">Select between</a> /
71 <a href="#" onclick="setCheckboxes('tracks','id[]',false); return false;" onmouseover="showTip(this,event,'Unselect all checkboxes<br>of the file/s above.')" onmouseout="hideTip()">Deselect all</a>
72 </td>
73 </tr>
74 <tr>
75 <td></td>
76 <td>
77 Selected:
78
79 <img src="gfx/icon.edit.gif" alt="" class="menu-img">
80 <a href="#" onclick="goTrackMultiEdit('tracks','id[]')" onmouseover="showTip(this,event,'Edit the selected file/s<br>in a special multi-edit mode.')" onmouseout="hideTip()">Edit</a>
81
82 {if not $cfg.disable_delete_files}
83 <img src="gfx/icon.delete.file.gif" alt="" class="menu-img">
84 <a href="#" onclick="goTrackMultiDelete('tracks','id[]')" onmouseover="showTip(this,event,'Delete the selected file/s from the filesystem,<br> database and all playlists.')" onmouseout="hideTip()">Delete</a>
85 {/if}
86
87 <img src="gfx/icon.add.gif" alt="" class="menu-img">
88 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goTrackMultiAdd('tracks','id[]'){/if}" onmouseover="showTip(this,event,'Add the selected files to the<br>active playlist.')" onmouseout="hideTip()">Add to Playlist</a>
89
90 <img src="gfx/icon.download.gif" alt="" class="menu-img">
91 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goTrackdownload_multidownload('tracks','id[]'){/if}" onmouseover="showTip(this,event,'Download the selected files as tar.gz-archive.<br><b>Info:</b> Be careful. Don\'t select too many files!')" onmouseout="hideTip()">Download</a>
92
93 <img src="gfx/icon.play.gif" alt="" class="menu-img">
94 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goTrackMultiPlay('tracks','id[]'){/if}" onmouseover="showTip(this,event,'Create a temporary playlist and<br>play the selected files.')" onmouseout="hideTip()">Play</a>
95 </td>
96 </tr>
97 </table>
98 </td>
99 <td align="right" valign="top">
100 {include file="main.pages.tpl" format="browse.php?mode=`$mode`&amp;page=%s&amp;orderby=`$orderby`&amp;direction=`$direction`&amp;sid=`$sid`"}
101 </td>
102 </tr>
103 </table>
104 {elseif $mode == "albums"}
105 {if isset($id)}
106 {* albums by title, album with cddbid $id selected *}
107
108
109 <!-- <table>
110 <tr>
111 <td width="110">
112 {if !empty($album.coverimg)}
113 <p align="center">
114 <img src="{$album.coverimg}" alt="" width="100" height="100">
115 </p>
116 {else}
117 <table width="100" align="center" style="height: 100px; border: 1px solid #000000">
118 <tr><td align="center" valign="middle"><img src="gfx/icon.mid.empty.gif" alt=""><br>no image</td></tr>
119 </table>
120 {/if}
121 </td>
122 <td>
123 {flag lang=$album.lang}
124 <b>{$album.artist} - {$album.title}</b><br>
125 {$album.files} file/s, {length seconds=$album.length show_description=true}
126 </td>
127 </tr>
128 </table>-->
129
130
131 <table width="100%" align="center">
132 <tr>
133 <td valign="top">
134 {flag lang=$album.lang}
135 <b>{$album.artist} - {$album.title}</b><br>
136 {$album.files} file/s, {length seconds=$album.length show_description=true}
137 </td>
138 <td valign="top" align="right">
139 <b>Album Actions:</b><br>
140
141 <img src="gfx/icon.edit.gif" alt="" class="menu-img">
142 <a href="#" onclick="goAlbumSingleEdit('{$album.cddbid}','{$sid}')" onmouseover="showTip(this,event,'Edit Album-Details')" onmouseout="hideTip()">Edit</a>
143
144 {if not $cfg.disable_delete_files}
145 <img src="gfx/icon.delete.file.gif" alt="" class="menu-img">
146 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSingleDelete('{$album.cddbid}','{$sid}'){/if}" onmouseover="showTip(this,event,'Delete Album and Files from System')" onmouseout="hideTip()">Delete</a>
147 {/if}
148
149 <img src="gfx/icon.play.gif" alt="" class="menu-img">
150 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSinglePlay('{$album.cddbid}','{$sid}'){/if}" onmouseover="showTip(this,event,'Play')" onmouseout="hideTip()">Play</a>
151 </td>
152 </tr>
153 <tr>
154 <td colspan="2">
155 {include file="main.tracklist.tpl" showtracknumber=true hidealbum=true}
156 </td>
157 </tr>
158 <tr>
159 <td>
160 <table>
161 <tr>
162 <td valign="top"><img src="gfx/icon.check.arrow.gif" alt="" style="vertical-align: bottom">
163 <td valign="bottom">
164 <a href="#" onclick="setCheckboxes('tracks','id[]',true); return false;" onmouseover="showTip(this,event,'Select all checkboxes<br>of the file/s above.')" onmouseout="hideTip()">Select all</a> /
165 <a href="#" onclick="setCheckboxesBetween('tracks','id[]',true); return false;" onmouseover="showTip(this,event,'Select all file/s between<br>two already checked.')" onmouseout="hideTip()">Select between</a> /
166 <a href="#" onclick="setCheckboxes('tracks','id[]',false); return false;" onmouseover="showTip(this,event,'Unselect all checkboxes<br>of the file/s above.')" onmouseout="hideTip()">Deselect all</a>
167 </td>
168 </tr>
169 <tr>
170 <td></td>
171 <td>
172 Selected:
173
174 <img src="gfx/icon.edit.gif" alt="" class="menu-img">
175 <a href="#" onclick="goTrackMultiEdit('tracks','id[]')" onmouseover="showTip(this,event,'Edit the selected file/s<br>in a special multi-edit mode.')" onmouseout="hideTip()">Edit</a>
176
177 {if not $cfg.disable_delete_files}
178 <img src="gfx/icon.delete.file.gif" alt="" class="menu-img">
179 <a href="#" onclick="goTrackMultiDelete('tracks','id[]')" onmouseover="showTip(this,event,'Delete the selected file/s from the filesystem,<br> database and all playlists.')" onmouseout="hideTip()">Delete</a>
180 {/if}
181
182 <img src="gfx/icon.add.gif" alt="" class="menu-img">
183 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goTrackMultiAdd('tracks','id[]'){/if}" onmouseover="showTip(this,event,'Add the selected files to the<br>active playlist.')" onmouseout="hideTip()">Add to Playlist</a>
184
185 <img src="gfx/icon.download.gif" alt="" class="menu-img">
186 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goTrackdownload_multidownload('tracks','id[]'){/if}" onmouseover="showTip(this,event,'Download the selected files as tar.gz-archive.<br><b>Info:</b> Be careful. Don\'t select too many files!')" onmouseout="hideTip()">Download</a>
187
188 <img src="gfx/icon.play.gif" alt="" class="menu-img">
189 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goTrackMultiPlay('tracks','id[]'){/if}" onmouseover="showTip(this,event,'Create a temporary playlist and<br>play the selected files.')" onmouseout="hideTip()">Play</a>
190 </td>
191 </tr>
192 </table>
193 </td>
194 <td align="right">
195
196 </td>
197
198 </tr>
199 </table>
200 {else}
201 {* albums, no album selected *}
202
203 <table width="100%" align="center">
204 <tr>
205 <td>
206 <b>Albums</b><br>
207
208 <img src="gfx/icon.arrow.gif" alt="" class="menu-img"> jump to
209 {section name=i loop=$alphabet}
210 {if $alphabet[i] == $init}{$alphabet[i].big}
211 {else}<a href="browse.php?mode=albums&amp;jump={$alphabet[i].small}&amp;sid={$sid}">{$alphabet[i].big}</a> {/if}
212 {/section}
213 </td>
214 <td align="right">
215 {include file="main.pages.tpl" format="browse.php?mode=albums&amp;page=%s&amp;sid=`$sid`"}
216 </td>
217 </tr>
218 <tr>
219 <td colspan="2">
220 {include file="main.albumlist.tpl" isbrowse=true}
221 </td>
222 </tr>
223 <tr>
224 <td>
225 <table>
226 <tr>
227 <td valign="top"><img src="gfx/icon.check.arrow.gif" alt="" style="vertical-align: bottom">
228 <td valign="bottom">
229 <a href="#" onclick="setCheckboxes('albums','id[]',true); return false;" onmouseover="showTip(this,event,'Select all checkboxes<br>of the album/s above.')" onmouseout="hideTip()">Select all</a> /
230 <a href="#" onclick="setCheckboxesBetween('albums','id[]',true); return false;" onmouseover="showTip(this,event,'Select all album/s between<br>two already checked.')" onmouseout="hideTip()">Select between</a> /
231 <a href="#" onclick="setCheckboxes('albums','id[]',false); return false;" onmouseover="showTip(this,event,'Unselect all checkboxes<br>of the album/s above.')" onmouseout="hideTip()">Deselect all</a>
232 </td>
233 </tr>
234 <tr>
235 <td></td>
236 <td>
237 Selected:
238
239 {if not $cfg.disable_delete_files}
240 <img src="gfx/icon.delete.file.gif" alt="" class="menu-img">
241 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumMultiDelete('albums','id[]'){/if}" onmouseover="showTip(this,event,'Delete the selected albums/s from the<br>filesystem, database and all playlists.<br><b>Warning:</b> You cannot undo!')" onmouseout="hideTip()">Delete</a>
242 {/if}
243
244 <img src="gfx/icon.add.gif" alt="" class="menu-img">
245 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumMultiAdd('albums','id[]'){/if}" onmouseover="showTip(this,event,'Add the selected albums to the<br>active playlist.')" onmouseout="hideTip()">Add to Playlist</a>
246
247 <img src="gfx/icon.download.gif" alt="" class="menu-img">
248 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumMultiDownload('albums','id[]'){/if}" onmouseover="showTip(this,event,'Download the selected albums as tar.gz-archive.<br><b>Info:</b> Be careful. Don\'t select too many!')" onmouseout="hideTip()">Download</a>
249
250 <img src="gfx/icon.play.gif" alt="" class="menu-img">
251 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumMultiPlay('albums','id[]'){/if}" onmouseover="showTip(this,event,'Create a temporary playlist and<br>play the selected albums.')" onmouseout="hideTip()">Play</a>
252 </td>
253 </tr>
254 </table>
255 </td>
256 <td align="right" valign="top">
257 {include file="main.pages.tpl" format="browse.php?mode=albums&amp;page=%s&amp;sid=`$sid`"}
258 </td>
259 </tr>
260 </table>
261 {/if}
262 {else}
263 {if isset($artist)}
264 {* tracks by artist, artist $artist selected *}
265
266 <table width="100%">
267 <tr>
268 <td>
269 <b>Artist: {$artist}</b><br>
270
271 <img src="gfx/icon.arrow.gif" alt="" class="menu-img">
272 {$artist}, {$count} track/s
273 </td>
274 <td align="right">
275 {assign var="artistenc" value=$artist|urlencode}
276 {include file="main.pages.tpl" format="browse.php?artist=`$artistenc`&amp;page=%s&amp;sid=`$sid`"}
277 </td>
278 </tr>
279 </table>
280
281 {include file="main.tracklist.tpl"}
282 {else}
283 {* default: tracks by artist, no artist selected *}
284
285 <table width="100%" align="center">
286 <tr>
287 <td>
288 <b>Artists</b><br>
289
290 <img src="gfx/icon.arrow.gif" alt="" class="menu-img"> jump to
291 {section name=i loop=$alphabet}
292 {if $alphabet[i] == $init}{$alphabet[i].big}
293 {else}<a href="browse.php?jump={$alphabet[i].small}&amp;sid={$sid}">{$alphabet[i].big}</a> {/if}
294 {/section}
295 </td>
296 <td align="right">
297 {include file="main.pages.tpl" format="browse.php?page=%s&amp;sid=`$sid`"}
298 </td>
299 </tr>
300 <tr>
301 <td colspan="2">
302 {include file="main.artistlist.tpl"}
303 </td>
304 </tr>
305 <tr>
306 <td>
307 <table>
308 <tr>
309 <td valign="top"><img src="gfx/icon.check.arrow.gif" alt="" style="vertical-align: bottom">
310 <td valign="bottom">
311 <a href="#" onclick="setCheckboxes('artists','id[]',true); return false;" onmouseover="showTip(this,event,'Select all checkboxes<br>of the album/s above.')" onmouseout="hideTip()">Select all</a> /
312 <a href="#" onclick="setCheckboxesBetween('artists','id[]',true); return false;" onmouseover="showTip(this,event,'Select all album/s between<br>two already checked.')" onmouseout="hideTip()">Select between</a> /
313 <a href="#" onclick="setCheckboxes('artists','id[]',false); return false;" onmouseover="showTip(this,event,'Unselect all checkboxes<br>of the album/s above.')" onmouseout="hideTip()">Deselect all</a>
314 </td>
315 </tr>
316 <tr>
317 <td></td>
318 <td>
319 Selected:
320
321 {if not $cfg.disable_delete_files}
322 <img src="gfx/icon.delete.file.gif" alt="" class="menu-img">
323 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goArtistMultiDelete('artists','id[]','{$sid}'){/if}" onmouseover="showTip(this,event,'Delete the tracks of the selected artist/s<br>from the filesystem, database and all playlists.<br><b>Warning:</b> You cannot undo!')" onmouseout="hideTip()">Delete</a>
324 {/if}
325
326 <img src="gfx/icon.add.gif" alt="" class="menu-img">
327 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goArtistMultiAdd('artists','id[]','{$sid}'){/if}" onmouseover="showTip(this,event,'Add the tracks of the selected artists<br>to the active playlist.')" onmouseout="hideTip()">Add to Playlist</a>
328
329 <img src="gfx/icon.play.gif" alt="" class="menu-img">
330 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goArtistMultiPlay('artists','id[]',0,'{$sid}'){/if}" onmouseover="showTip(this,event,'Create a temporary playlist and<br>play the tracks of the selected artist/s.')" onmouseout="hideTip()">Play</a>
331
332 <img src="gfx/icon.shuffle.gif" alt="" class="menu-img">
333 <a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goArtistMultiPlay('artists','id[]',1,'{$sid}'){/if}" onmouseover="showTip(this,event,'Create a temporary playlist and<br>play the tracks of the selected artist/s in random order.')" onmouseout="hideTip()">Play shuffled</a>
334 </td>
335 </tr>
336 </table>
337 </td>
338 <td align="right" valign="top">
339 {include file="main.pages.tpl" format="browse.php?page=%s&amp;sid=`$sid`"}
340 </td>
341 </tr>
342 </table>
343 {/if}
344 {/if}
345 </td>
346 </tr>
347 </table>
348 {include file="main.footer.tpl"}

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed