1 |
<form action="" method="get" id="albums" target=""> |
2 |
<input type="hidden" name="mode" value="" id="mode"> |
3 |
{if $isplaylist}<input type="hidden" name="pid" value="{$playlist.id}">{/if} |
4 |
|
5 |
{if $listmode == 2 || (!isset($listmode) && $cfg.albumlist_mode == 2)} |
6 |
<table border="0" width="100%"> |
7 |
{section name=i loop=$albums} |
8 |
{if $smarty.section.i.iteration % 2 == 1} |
9 |
{assign var="color" value="#F4F4F4"} |
10 |
{assign var="cycle" value="true"} |
11 |
|
12 |
{else} |
13 |
{assign var="color" value="transparent"} |
14 |
{assign var="cycle" value="false"} |
15 |
{/if} |
16 |
|
17 |
{if ($smarty.section.i.iteration-1) % 3 == 0}<tr>{/if} |
18 |
<td width="33%" id="row{$albums[i].cddbid}" class="trackbg" style="background-color: {$color}" onmouseover="hoverRow('{$albums[i].cddbid}','over',false,{$cycle})" onmouseout="hoverRow('{$albums[i].cddbid}','out',false,{$cycle})" onclick="clickRow('{$albums[i].cddbid}',false,{$cycle})"> |
19 |
<table width="100%" style="height: 100%"> |
20 |
<tr> |
21 |
<td colspan="3" valign="top"> |
22 |
<table width="98%"><tr> |
23 |
<td width="20"><input class="checkbox" type="checkbox" name="id[]" value="{$albums[i].cddbid}" id="checkbox{$albums[i].cddbid}"></td> |
24 |
<td><b>{$albums[i].artist} - {$albums[i].title}</b></td> |
25 |
<td align="right">{if empty($albums[i].genre)}No Genre{else}{$albums[i].genre}{/if}, {$albums[i].files} File/s</td> |
26 |
</tr></table> |
27 |
</td> |
28 |
</tr> |
29 |
<tr> |
30 |
<td></td> |
31 |
<td valign="middle" align="center"> |
32 |
|
33 |
{if !empty($albums[i].coverimg)} |
34 |
<table> |
35 |
<tr><td align="center" valign="middle"><img src="{$smarty.const.PATH_RELATIVE_IMAGE|addtrailingslash}{$albums[i].coverimg}" alt="" width="{$cfg.albumlist_coverheight}" height="{$cfg.albumlist_coverheight}" style="margin: 0px"></td></tr> |
36 |
</table> |
37 |
{else} |
38 |
<table width="{$cfg.albumlist_coverheight}" style="height: {$cfg.albumlist_coverheight}px; border: 1px solid #000000"> |
39 |
<tr><td align="center" valign="middle">no image</td></tr> |
40 |
</table> |
41 |
{/if} |
42 |
|
43 |
<br> |
44 |
|
45 |
Actions: |
46 |
|
47 |
{if not $cfg.disable_delete_files} |
48 |
<a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSingleDelete('{$albums[i].cddbid}','{$sid}'); return false;{/if}" onmouseover="showTip(this,event,'Delete Album!')" onmouseout="hideTip()"><img src="gfx/icon.delete.file.gif" alt="" class="menu-img"></a> |
49 |
{/if} |
50 |
<a href="#" onclick="goAlbumSingleEdit('{$albums[i].cddbid}','{$sid}'); return false;" onmouseover="showTip(this,event,'Edit')" onmouseout="hideTip()"><img border="0" src="gfx/icon.edit.gif" alt="" class="menu-img"></a> |
51 |
<a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSingleAdd('{$albums[i].cddbid}','{$sid}'); return false;{/if}" onmouseover="showTip(this,event,'Add')" onmouseout="hideTip()"><img border="0" src="gfx/icon.add.gif" alt="" class="menu-img"></a> |
52 |
<a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSinglePlay('{$albums[i].cddbid}','{$sid}'); return false;{/if}" onmouseover="showTip(this,event,'Play')" onmouseout="hideTip()"><img border="0" src="gfx/icon.play.gif" alt="" class="menu-img"></a> |
53 |
<a href="#" onclick="goAlbumSingleShow('{$albums[i].cddbid}','{$sid}')" onmouseover="showTip(this,event,'Show')" onmouseout="hideTip()"><img src="gfx/icon.show.gif" alt="" class="menu-img"></a> |
54 |
|
55 |
<!-- Genre: {if empty($albums[i].genre)}-{else}{$albums[i].genre}{/if}, |
56 |
Files: {$albums[i].files} --> |
57 |
|
58 |
</td> |
59 |
<td></td> |
60 |
</tr> |
61 |
<tr> |
62 |
<td colspan="3"> </td> |
63 |
</tr> |
64 |
</table> |
65 |
{if $smarty.section.i.iteration % 3 == 0}</tr>{/if} |
66 |
{/section} |
67 |
</table> |
68 |
{elseif $listmode == 1 || (!isset($listmode) && $cfg.albumlist_mode == 1)} |
69 |
<table border="0" width="100%"> |
70 |
{section name=i loop=$albums} |
71 |
{if $smarty.section.i.iteration % 2 == 1} |
72 |
{assign var="color" value="#F4F4F4"} |
73 |
{assign var="cycle" value="true"} |
74 |
|
75 |
{else} |
76 |
{assign var="color" value="transparent"} |
77 |
{assign var="cycle" value="false"} |
78 |
{/if} |
79 |
|
80 |
<tr id="row{$albums[i].cddbid}" class="trackbg" style="background-color: {$color}" onmouseover="hoverRow('{$albums[i].cddbid}','over',false,{$cycle})" onmouseout="hoverRow('{$albums[i].cddbid}','out',false,{$cycle})" onclick="clickRow('{$albums[i].cddbid}',false,{$cycle})"> |
81 |
<td width="1%" class="albumlist"><input class="checkbox" type="checkbox" name="id[]" value="{$albums[i].cddbid}" id="checkbox{$albums[i].cddbid}"></td> |
82 |
<td width="{$cfg.albumlist_coverheight}" valign="middle" align="center" style="height: {$cfg.albumlist_coverheight}px">{if !empty($albums[i].coverimg)}<img src="{$smarty.const.PATH_RELATIVE_IMAGE|addtrailingslash}{$albums[i].coverimg}" alt="" width="{$cfg.albumlist_coverheight}" height="{$cfg.albumlist_coverheight}">{else}no image{/if}</td> |
83 |
<td valign="top"> |
84 |
<table style="height: {$cfg.albumlist_coverheight}px"> |
85 |
<tr> |
86 |
<td valign="top"> |
87 |
<span class="albumartist"> |
88 |
{$albums[i].artist} - |
89 |
{$albums[i].title} |
90 |
</span> |
91 |
|
92 |
<br> |
93 |
|
94 |
Genre: {if empty($albums[i].genre)}-{else}{$albums[i].genre}{/if}, |
95 |
Files: {$albums[i].files} |
96 |
|
97 |
{if count($albums[i].tracks) > 0} |
98 |
{section name=j loop=$albums[i].tracks} |
99 |
<b>{$smarty.section.j.iteration})</b> {$albums[i].tracks[j].artist|htmlentities} - {$albums[i].tracks[j].title|htmlentities}, |
100 |
{/section} |
101 |
{/if} |
102 |
</td> |
103 |
</tr> |
104 |
<tr> |
105 |
<td valign="bottom"> |
106 |
<b>Actions:</b> |
107 |
|
108 |
{if not $cfg.disable_delete_files} |
109 |
<a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSingleDelete('{$albums[i].cddbid}','{$sid}'); return false;{/if}" onmouseover="showTip(this,event,'Delete Album!')" onmouseout="hideTip()"><img src="gfx/icon.delete.file.gif" alt="" class="menu-img"></a> |
110 |
{/if} |
111 |
<a href="#" onclick="goAlbumSingleEdit('{$albums[i].cddbid}','{$sid}'); return false;" onmouseover="showTip(this,event,'Edit')" onmouseout="hideTip()"><img border="0" src="gfx/icon.edit.gif" alt="" class="menu-img"></a> |
112 |
<a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSingleAdd('{$albums[i].cddbid}','{$sid}'); return false;{/if}" onmouseover="showTip(this,event,'Add')" onmouseout="hideTip()"><img border="0" src="gfx/icon.add.gif" alt="" class="menu-img"></a> |
113 |
<a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSinglePlay('{$albums[i].cddbid}','{$sid}'); return false;{/if}" onmouseover="showTip(this,event,'Play')" onmouseout="hideTip()"><img border="0" src="gfx/icon.play.gif" alt="" class="menu-img"></a> |
114 |
<a href="#" onclick="goAlbumSingleShow('{$albums[i].cddbid}','{$sid}')" onmouseover="showTip(this,event,'Show')" onmouseout="hideTip()"><img src="gfx/icon.show.gif" alt="" class="menu-img"></a> |
115 |
</td> |
116 |
</tr> |
117 |
</table> |
118 |
</td> |
119 |
|
120 |
</tr> |
121 |
{/section} |
122 |
</table> |
123 |
{else} |
124 |
<table border="0" cellspacing="1" width="{$cfg.albumlist_coverheight}%"> |
125 |
<tr> |
126 |
<td></td> |
127 |
{if $cfg.albumlist_showartist} |
128 |
<td class="albumlist"> |
129 |
{if $issearch} |
130 |
{strip} |
131 |
<a href="search.php?mode=albums&artist={$artist}&title={$title}&genre={$genre}&orderby=artist&direction={if $orderby == "artist" && $direction == "asc"}desc{else}asc{/if}&page={$page}&sid={$sid}">Artist</a> |
132 |
{if $orderby == "artist" || empty($orderby)}{if $direction == "desc"}<img src="gfx/main.order.desc.gif" alt="" class="menu-img">{else}<img src="gfx/main.order.asc.gif" alt="" class="menu-img">{/if}{/if} |
133 |
{/strip} |
134 |
{else} |
135 |
Artist |
136 |
{/if} |
137 |
</td> |
138 |
{/if} |
139 |
{if $cfg.albumlist_showtitle} |
140 |
<td class="albumlist"> |
141 |
{if $issearch} |
142 |
{strip} |
143 |
<a href="search.php?mode=albums&artist={$artist}&title={$title}&genre={$genre}&orderby=title&direction={if $orderby == "title" && $direction == "asc"}desc{else}asc{/if}&page={$page}&sid={$sid}">Title</a> |
144 |
{if $orderby == "title"}{if $direction == "desc"}<img src="gfx/main.order.desc.gif" alt="" class="menu-img">{else}<img src="gfx/main.order.asc.gif" alt="" class="menu-img">{/if}{/if} |
145 |
{/strip} |
146 |
{else} |
147 |
Title |
148 |
{/if} |
149 |
</td> |
150 |
{/if} |
151 |
{if $cfg.albumlist_showgenre} |
152 |
<td class="albumlist"> |
153 |
{if $issearch} |
154 |
{strip} |
155 |
<a href="search.php?mode=albums&artist={$artist}&title={$title}&genre={$genre}&orderby=genre&direction={if $orderby == "genre" && $direction == "asc"}desc{else}asc{/if}&page={$page}&sid={$sid}">Genre</a> |
156 |
{if $orderby == "genre"}{if $direction == "desc"}<img src="gfx/main.order.desc.gif" alt="" class="menu-img">{else}<img src="gfx/main.order.asc.gif" alt="" class="menu-img">{/if}{/if} |
157 |
{/strip} |
158 |
{else} |
159 |
Genre |
160 |
{/if} |
161 |
</td> |
162 |
{/if} |
163 |
{if $cfg.albumlist_showfiles} |
164 |
<td class="albumlist"> |
165 |
{if $issearch} |
166 |
{strip} |
167 |
<a href="search.php?mode=albums&artist={$artist}&title={$title}&genre={$genre}&orderby=files&direction={if $orderby == "files" && $direction == "asc"}desc{else}asc{/if}&page={$page}&sid={$sid}">Files</a> |
168 |
{if $orderby == "files"}{if $direction == "desc"}<img src="gfx/main.order.desc.gif" alt="" class="menu-img">{else}<img src="gfx/main.order.asc.gif" alt="" class="menu-img">{/if}{/if} |
169 |
{/strip} |
170 |
{else} |
171 |
Files |
172 |
{/if} |
173 |
</td> |
174 |
{/if} |
175 |
{if $cfg.albumlist_showlength} |
176 |
<td class="albumlist"> |
177 |
{if $issearch} |
178 |
{strip} |
179 |
<a href="search.php?mode=albums&artist={$artist}&title={$title}&genre={$genre}&orderby=length&direction={if $orderby == "length" && $direction == "asc"}desc{else}asc{/if}&page={$page}&sid={$sid}">Len.</a> |
180 |
{if $orderby == "length"}{if $direction == "desc"}<img src="gfx/main.order.desc.gif" alt="" class="menu-img">{else}<img src="gfx/main.order.asc.gif" alt="" class="menu-img">{/if}{/if} |
181 |
{/strip} |
182 |
{else} |
183 |
Len. |
184 |
{/if} |
185 |
</td> |
186 |
{/if} |
187 |
{if $cfg.albumlist_showlang} |
188 |
<td class="albumlist"> |
189 |
{if $issearch} |
190 |
{strip} |
191 |
<a href="search.php?mode=albums&artist={$artist}&title={$title}&genre={$genre}&orderby=lang&direction={if $orderby == "lang" && $direction == "asc"}desc{else}asc{/if}&page={$page}&sid={$sid}">Lang.</a> |
192 |
{if $orderby == "lang"}{if $direction == "desc"}<img src="gfx/main.order.desc.gif" alt="" class="menu-img">{else}<img src="gfx/main.order.asc.gif" alt="" class="menu-img">{/if}{/if} |
193 |
{/strip} |
194 |
{else} |
195 |
Lang. |
196 |
{/if} |
197 |
</td> |
198 |
{/if} |
199 |
{if $cfg.albumlist_showrating} |
200 |
<td class="albumlist"> |
201 |
{if $issearch} |
202 |
{strip} |
203 |
<a href="search.php?mode=albums&artist={$artist}&title={$title}&genre={$genre}&orderby=rating&direction={if $orderby == "rating" && $direction == "asc"}desc{else}asc{/if}&page={$page}&sid={$sid}">Rat.</a> |
204 |
{if $orderby == "rating"}{if $direction == "desc"}<img src="gfx/main.order.desc.gif" alt="" class="menu-img">{else}<img src="gfx/main.order.asc.gif" alt="" class="menu-img">{/if}{/if} |
205 |
{/strip} |
206 |
{else} |
207 |
Rat. |
208 |
{/if} |
209 |
</td> |
210 |
{/if} |
211 |
<td><!-- Delete File --></td> |
212 |
<td><!-- Edit Entry --></td> |
213 |
<td><!-- Add to Playlist --></td> |
214 |
<td><!-- Play --></td> |
215 |
</tr> |
216 |
{section name=i loop=$albums} |
217 |
{if $smarty.section.i.iteration % 2 == 1} |
218 |
{assign var="color" value="#F4F4F4"} |
219 |
{assign var="cycle" value="true"} |
220 |
|
221 |
{else} |
222 |
{assign var="color" value="transparent"} |
223 |
{assign var="cycle" value="false"} |
224 |
{/if} |
225 |
|
226 |
<tr id="row{$albums[i].cddbid}" class="trackbg" style="background-color: {$color}" onmouseover="hoverRow('{$albums[i].cddbid}','over',false,{$cycle})" onmouseout="hoverRow('{$albums[i].cddbid}','out',false,{$cycle})" onclick="clickRow('{$albums[i].cddbid}',false,{$cycle})"> |
227 |
<td width="1%" class="albumlist"><input class="checkbox" type="checkbox" name="id[]" value="{$albums[i].cddbid}" id="checkbox{$albums[i].cddbid}"></td> |
228 |
{if $cfg.albumlist_showartist}<td class="albumlist">{$albums[i].artist}</td>{/if} |
229 |
{if $cfg.albumlist_showtitle}<td class="albumlist">{$albums[i].title}</td>{/if} |
230 |
{if $cfg.albumlist_showgenre}<td class="albumlist">{if empty($albums[i].genre)}-{else}{$albums[i].genre}{/if}</td>{/if} |
231 |
{if $cfg.albumlist_showfiles}<td class="albumlist">{$albums[i].files}</td>{/if} |
232 |
{if $cfg.albumlist_showlength}<td class="albumlist">{length seconds=$albums[i].length}</td>{/if} |
233 |
{if $cfg.albumlist_showlang}<td align="center" class="albumlist">{flag lang=$albums[i].lang}</td>{/if} |
234 |
{if $cfg.albumlist_showrating}<td class="albumlist" style="text-align: center">{strip} |
235 |
{if $albums[i].rating == 0}<img src="gfx/main.rating.minus.gif" alt=""> |
236 |
{elseif $albums[i].rating == 1}<img src="gfx/main.rating.null.gif" alt=""> |
237 |
{elseif $albums[i].rating == 2}<img src="gfx/main.rating.plus.gif" alt=""> |
238 |
{elseif $albums[i].rating == 3}<img src="gfx/main.rating.plusplus.gif" alt="">{/if} |
239 |
{/strip}</td>{/if} |
240 |
{if not $cfg.disable_delete_files} |
241 |
<td width="1%"><a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSingleDelete('{$albums[i].cddbid}','{$sid}'); return false;{/if}" onmouseover="showTip(this,event,'Delete file!')" onmouseout="hideTip()"><img src="gfx/icon.delete.file.gif" alt=""></a></td> |
242 |
{/if} |
243 |
<td width="1%"><a href="#" onclick="goAlbumSingleEdit('{$albums[i].cddbid}','{$sid}'); return false;" onmouseover="showTip(this,event,'Edit')" onmouseout="hideTip()"><img border="0" src="gfx/icon.edit.gif" alt=""></a></td> |
244 |
<td width="1%"><a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSingleAdd('{$albums[i].cddbid}','{$sid}'); return false;{/if}" onmouseover="showTip(this,event,'Add')" onmouseout="hideTip()"><img border="0" src="gfx/icon.add.gif" alt=""></a></td> |
245 |
<td width="1%"><a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goAlbumSinglePlay('{$albums[i].cddbid}','{$sid}'); return false;{/if}" onmouseover="showTip(this,event,'Play')" onmouseout="hideTip()"><img border="0" src="gfx/icon.play.gif" alt=""></a></td> |
246 |
<td width="1%"><a href="#" onclick="goAlbumSingleShow('{$albums[i].cddbid}','{$sid}')" onmouseover="showTip(this,event,'Show')" onmouseout="hideTip()"><img src="gfx/icon.show.gif" alt=""></a></td> |
247 |
</tr> |
248 |
{/section} |
249 |
</table> |
250 |
{/if} |
251 |
|
252 |
<input type="hidden" name="sid" value="{$sid}"> |
253 |
</form> |