1 |
joko |
1.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 |
|
|
<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> |
48 |
|
|
<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> |
49 |
|
|
<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> |
50 |
|
|
<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> |
51 |
|
|
<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> |
52 |
|
|
|
53 |
|
|
<!-- Genre: {if empty($albums[i].genre)}-{else}{$albums[i].genre}{/if}, |
54 |
|
|
Files: {$albums[i].files} --> |
55 |
|
|
|
56 |
|
|
</td> |
57 |
|
|
<td></td> |
58 |
|
|
</tr> |
59 |
|
|
<tr> |
60 |
|
|
<td colspan="3"> </td> |
61 |
|
|
</tr> |
62 |
|
|
</table> |
63 |
|
|
{if $smarty.section.i.iteration % 3 == 0}</tr>{/if} |
64 |
|
|
{/section} |
65 |
|
|
</table> |
66 |
|
|
{elseif $listmode == 1 || (!isset($listmode) && $cfg.albumlist_mode == 1)} |
67 |
|
|
<table border="0" width="100%"> |
68 |
|
|
{section name=i loop=$albums} |
69 |
|
|
{if $smarty.section.i.iteration % 2 == 1} |
70 |
|
|
{assign var="color" value="#F4F4F4"} |
71 |
|
|
{assign var="cycle" value="true"} |
72 |
|
|
|
73 |
|
|
{else} |
74 |
|
|
{assign var="color" value="transparent"} |
75 |
|
|
{assign var="cycle" value="false"} |
76 |
|
|
{/if} |
77 |
|
|
|
78 |
|
|
<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})"> |
79 |
|
|
<td width="1%" class="albumlist"><input class="checkbox" type="checkbox" name="id[]" value="{$albums[i].cddbid}" id="checkbox{$albums[i].cddbid}"></td> |
80 |
|
|
<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> |
81 |
|
|
<td valign="top"> |
82 |
|
|
<table style="height: {$cfg.albumlist_coverheight}px"> |
83 |
|
|
<tr> |
84 |
|
|
<td valign="top"> |
85 |
|
|
<span class="albumartist"> |
86 |
|
|
{$albums[i].artist} - |
87 |
|
|
{$albums[i].title} |
88 |
|
|
</span> |
89 |
|
|
|
90 |
|
|
<br> |
91 |
|
|
|
92 |
|
|
Genre: {if empty($albums[i].genre)}-{else}{$albums[i].genre}{/if}, |
93 |
|
|
Files: {$albums[i].files} |
94 |
|
|
|
95 |
|
|
{if count($albums[i].tracks) > 0} |
96 |
|
|
{section name=j loop=$albums[i].tracks} |
97 |
|
|
<b>{$smarty.section.j.iteration})</b> {$albums[i].tracks[j].artist|htmlentities} - {$albums[i].tracks[j].title|htmlentities}, |
98 |
|
|
{/section} |
99 |
|
|
{/if} |
100 |
|
|
</td> |
101 |
|
|
</tr> |
102 |
|
|
<tr> |
103 |
|
|
<td valign="bottom"> |
104 |
|
|
<b>Actions:</b> |
105 |
|
|
|
106 |
|
|
<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> |
107 |
|
|
<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> |
108 |
|
|
<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> |
109 |
|
|
<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> |
110 |
|
|
<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> |
111 |
|
|
</td> |
112 |
|
|
</tr> |
113 |
|
|
</table> |
114 |
|
|
</td> |
115 |
|
|
|
116 |
|
|
</tr> |
117 |
|
|
{/section} |
118 |
|
|
</table> |
119 |
|
|
{else} |
120 |
|
|
<table border="0" cellspacing="1" width="{$cfg.albumlist_coverheight}%"> |
121 |
|
|
<tr> |
122 |
|
|
<td></td> |
123 |
|
|
{if $cfg.albumlist_showartist} |
124 |
|
|
<td class="albumlist"> |
125 |
|
|
{if $issearch} |
126 |
|
|
{strip} |
127 |
|
|
<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> |
128 |
|
|
{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} |
129 |
|
|
{/strip} |
130 |
|
|
{else} |
131 |
|
|
Artist |
132 |
|
|
{/if} |
133 |
|
|
</td> |
134 |
|
|
{/if} |
135 |
|
|
{if $cfg.albumlist_showtitle} |
136 |
|
|
<td class="albumlist"> |
137 |
|
|
{if $issearch} |
138 |
|
|
{strip} |
139 |
|
|
<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> |
140 |
|
|
{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} |
141 |
|
|
{/strip} |
142 |
|
|
{else} |
143 |
|
|
Title |
144 |
|
|
{/if} |
145 |
|
|
</td> |
146 |
|
|
{/if} |
147 |
|
|
{if $cfg.albumlist_showgenre} |
148 |
|
|
<td class="albumlist"> |
149 |
|
|
{if $issearch} |
150 |
|
|
{strip} |
151 |
|
|
<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> |
152 |
|
|
{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} |
153 |
|
|
{/strip} |
154 |
|
|
{else} |
155 |
|
|
Genre |
156 |
|
|
{/if} |
157 |
|
|
</td> |
158 |
|
|
{/if} |
159 |
|
|
{if $cfg.albumlist_showfiles} |
160 |
|
|
<td class="albumlist"> |
161 |
|
|
{if $issearch} |
162 |
|
|
{strip} |
163 |
|
|
<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> |
164 |
|
|
{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} |
165 |
|
|
{/strip} |
166 |
|
|
{else} |
167 |
|
|
Files |
168 |
|
|
{/if} |
169 |
|
|
</td> |
170 |
|
|
{/if} |
171 |
|
|
{if $cfg.albumlist_showlength} |
172 |
|
|
<td class="albumlist"> |
173 |
|
|
{if $issearch} |
174 |
|
|
{strip} |
175 |
|
|
<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> |
176 |
|
|
{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} |
177 |
|
|
{/strip} |
178 |
|
|
{else} |
179 |
|
|
Len. |
180 |
|
|
{/if} |
181 |
|
|
</td> |
182 |
|
|
{/if} |
183 |
|
|
{if $cfg.albumlist_showlang} |
184 |
|
|
<td class="albumlist"> |
185 |
|
|
{if $issearch} |
186 |
|
|
{strip} |
187 |
|
|
<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> |
188 |
|
|
{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} |
189 |
|
|
{/strip} |
190 |
|
|
{else} |
191 |
|
|
Lang. |
192 |
|
|
{/if} |
193 |
|
|
</td> |
194 |
|
|
{/if} |
195 |
|
|
{if $cfg.albumlist_showrating} |
196 |
|
|
<td class="albumlist"> |
197 |
|
|
{if $issearch} |
198 |
|
|
{strip} |
199 |
|
|
<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> |
200 |
|
|
{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} |
201 |
|
|
{/strip} |
202 |
|
|
{else} |
203 |
|
|
Rat. |
204 |
|
|
{/if} |
205 |
|
|
</td> |
206 |
|
|
{/if} |
207 |
|
|
<td><!-- Delete File --></td> |
208 |
|
|
<td><!-- Edit Entry --></td> |
209 |
|
|
<td><!-- Add to Playlist --></td> |
210 |
|
|
<td><!-- Play --></td> |
211 |
|
|
</tr> |
212 |
|
|
{section name=i loop=$albums} |
213 |
|
|
{if $smarty.section.i.iteration % 2 == 1} |
214 |
|
|
{assign var="color" value="#F4F4F4"} |
215 |
|
|
{assign var="cycle" value="true"} |
216 |
|
|
|
217 |
|
|
{else} |
218 |
|
|
{assign var="color" value="transparent"} |
219 |
|
|
{assign var="cycle" value="false"} |
220 |
|
|
{/if} |
221 |
|
|
|
222 |
|
|
<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})"> |
223 |
|
|
<td width="1%" class="albumlist"><input class="checkbox" type="checkbox" name="id[]" value="{$albums[i].cddbid}" id="checkbox{$albums[i].cddbid}"></td> |
224 |
|
|
{if $cfg.albumlist_showartist}<td class="albumlist">{$albums[i].artist}</td>{/if} |
225 |
|
|
{if $cfg.albumlist_showtitle}<td class="albumlist">{$albums[i].title}</td>{/if} |
226 |
|
|
{if $cfg.albumlist_showgenre}<td class="albumlist">{if empty($albums[i].genre)}-{else}{$albums[i].genre}{/if}</td>{/if} |
227 |
|
|
{if $cfg.albumlist_showfiles}<td class="albumlist">{$albums[i].files}</td>{/if} |
228 |
|
|
{if $cfg.albumlist_showlength}<td class="albumlist">{length seconds=$albums[i].length}</td>{/if} |
229 |
|
|
{if $cfg.albumlist_showlang}<td align="center" class="albumlist">{flag lang=$albums[i].lang}</td>{/if} |
230 |
|
|
{if $cfg.albumlist_showrating}<td class="albumlist" style="text-align: center">{strip} |
231 |
|
|
{if $albums[i].rating == 0}<img src="gfx/main.rating.minus.gif" alt=""> |
232 |
|
|
{elseif $albums[i].rating == 1}<img src="gfx/main.rating.null.gif" alt=""> |
233 |
|
|
{elseif $albums[i].rating == 2}<img src="gfx/main.rating.plus.gif" alt=""> |
234 |
|
|
{elseif $albums[i].rating == 3}<img src="gfx/main.rating.plusplus.gif" alt="">{/if} |
235 |
|
|
{/strip}</td>{/if} |
236 |
|
|
<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> |
237 |
|
|
<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> |
238 |
|
|
<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> |
239 |
|
|
<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> |
240 |
|
|
<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> |
241 |
|
|
</tr> |
242 |
|
|
{/section} |
243 |
|
|
</table> |
244 |
|
|
{/if} |
245 |
|
|
|
246 |
|
|
<input type="hidden" name="sid" value="{$sid}"> |
247 |
|
|
</form> |