| 1 |
joko |
1.1 |
<form action="" method="get" id="playlists"> |
| 2 |
|
|
<input type="hidden" name="mode" value=""> |
| 3 |
|
|
|
| 4 |
|
|
<table border="0" width="100%"> |
| 5 |
|
|
<tr> |
| 6 |
|
|
<td colspan="2"></td> |
| 7 |
|
|
<td class="playlist">Title</td> |
| 8 |
|
|
<td class="playlist">Author</td> |
| 9 |
|
|
<td colspan="6"></td> |
| 10 |
|
|
</tr> |
| 11 |
|
|
{section name=i loop=$playlists} |
| 12 |
|
|
{if $smarty.section.i.iteration % 2 == 1} |
| 13 |
|
|
{if $playlists[i].is_tracklist} |
| 14 |
|
|
{assign var="special" value="true"} |
| 15 |
|
|
{assign var="rowid" value="special"} |
| 16 |
|
|
{assign var="color" value="#E6FFE6"} |
| 17 |
|
|
{assign var="cycle" value="true"} |
| 18 |
|
|
{else} |
| 19 |
|
|
{assign var="special" value="false"} |
| 20 |
|
|
{assign var="rowid" value="row"} |
| 21 |
|
|
{assign var="color" value="#F4F4F4"} |
| 22 |
|
|
{assign var="cycle" value="true"} |
| 23 |
|
|
{/if} |
| 24 |
|
|
{else} |
| 25 |
|
|
{assign var="special" value="false"} |
| 26 |
|
|
{assign var="rowid" value="row"} |
| 27 |
|
|
{assign var="color" value="transparent"} |
| 28 |
|
|
{assign var="cycle" value="false"} |
| 29 |
|
|
{/if} |
| 30 |
|
|
|
| 31 |
|
|
<tr id="{$rowid}{$playlists[i].id}" class="trackbg" style="background-color: {$color}" onmouseover="hoverRow({$playlists[i].id},'over',{$special},{$cycle})" onmouseout="hoverRow({$playlists[i].id},'out',{$special},{$cycle})" onclick="clickRow({$playlists[i].id},{$special},{$cycle})"> |
| 32 |
|
|
<td width="1%" class="playlist"><input class="checkbox" type="checkbox" name="id[]" value="{$playlists[i].id}" id="checkbox{$playlists[i].id}"></td> |
| 33 |
|
|
<td width="1%" class="playlist"> |
| 34 |
|
|
{if $cfg.playlist_activeplaylist == $playlists[i].id}<img src="gfx/icon.activate.gif" alt="" onmouseover="showTip(this,event,'This playlist is active.<br> <br>You can add files using<br>the <img src=\'gfx/icon.add.gif\' class=\'menu-img\'>-button.')" onmouseout="hideTip()"> |
| 35 |
|
|
{else}<img src="gfx/icon.deactivate.gif" alt="" onmouseover="showTip(this,event,'This playlist is <b>not</b> active.<br> <br>To add files, you must activate it<br>using the <img src=\'gfx/icon.activate.gif\' class=\'menu-img\'>-button.')" onmouseout="hideTip()">{/if} |
| 36 |
|
|
</td> |
| 37 |
|
|
<td class="playlist"> |
| 38 |
|
|
<b>{$playlists[i].title}</b><br> |
| 39 |
|
|
{$playlists[i].files} file/s, {length seconds=$playlists[i].length show_description=true} |
| 40 |
|
|
</td> |
| 41 |
|
|
<td class="playlist">{if $playlists[i].author != ""}{$playlists[i].author}{else}<i>no author set</i>{/if}</td> |
| 42 |
|
|
<td width="1%" class="playlist">{if !$playlists[i].is_tracklist}<a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goPlaylistSingleDelete('{$playlists[i].id}','{$sid}'){/if}" onmouseover="showTip(this,event,'Delete this playlist<br>from your database.')" onmouseout="hideTip()"><img src="gfx/icon.delete.entry.gif" alt=""></a>{/if}</td> |
| 43 |
|
|
<td width="1%" class="playlist"><a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goPlaylistSingleEmpty('{$playlists[i].id}','{$sid}'){/if}" onmouseover="showTip(this,event,'Empty')" onmouseout="hideTip()"><img src="gfx/icon.empty.gif" alt=""></a></td> |
| 44 |
|
|
<td width="1%" class="playlist"><a href="#" onclick="goPlaylistSingleEdit('{$playlists[i].id}','{$sid}')" onmouseover="showTip(this,event,'Edit Details')" onmouseout="hideTip()"><img src="gfx/icon.edit.gif" alt=""></a></td> |
| 45 |
|
|
<td width="1%" class="playlist"><a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goPlaylistSingleActivate('{$playlists[i].id}','{$sid}'){/if}" onmouseover="showTip(this,event,'Activate')" onmouseout="hideTip()"><img src="gfx/icon.activate.gif" alt=""></a></td> |
| 46 |
|
|
<td width="1%" class="playlist"><a href="#" onclick="{if $cfg.common_isdemo}demoInfo(){else}goPlaylistSinglePlay('{$playlists[i].id}','{$sid}'){/if}" onmouseover="showTip(this,event,'Play')" onmouseout="hideTip()"><img src="gfx/icon.play.gif" alt=""></a></td> |
| 47 |
|
|
<td width="1%" class="playlist"><a href="#" onclick="goPlaylistSingleShow('{$playlists[i].id}','{$sid}')" onmouseover="showTip(this,event,'Show')" onmouseout="hideTip()"><img src="gfx/icon.show.gif" alt=""></a></td> |
| 48 |
|
|
</tr> |
| 49 |
|
|
{/section} |
| 50 |
|
|
</table> |
| 51 |
|
|
|
| 52 |
|
|
<input type="hidden" name="sid" value="{$sid}"> |
| 53 |
|
|
</form> |