56 lines
2.5 KiB
Smarty
Executable File
56 lines
2.5 KiB
Smarty
Executable File
{*Smarty template*}
|
|
|
|
<div id="searchres">
|
|
<center>
|
|
{if $searchResults.count > 0}
|
|
<table border="0" width="50%">
|
|
<tr style="background-color: {cycle values='#eeeeee, #dadada'}">
|
|
<td align="center"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SEARCH.reOrder&by=title', 'order');">{tra 0=Title}</a></td>
|
|
<td align="center"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SEARCH.reOrder&by=creator', 'order');">{tra 0=Creator}</a></td>
|
|
<td align="center"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SEARCH.reOrder&by=extent', 'order');">{tra 0=Duration}</a></td>
|
|
<td align="center"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SEARCH.reOrder&by=type', 'order');">{tra 0=Type}</a></td>
|
|
</tr>
|
|
{foreach from=$searchResults.items item=i}
|
|
<tr style="background-color: {cycle values='#eeeeee, #dadada'}" {assign var="moreContextBefore" value=", 'SP.addItem'"}{include file="sub/contextmenu.tpl"}>
|
|
<td align="center">
|
|
{if $PLAYLIST.id == $i.id}
|
|
<b>{$i.title|truncate:30}</b>
|
|
{else}
|
|
{$i.title|truncate:30}
|
|
{/if}
|
|
</td>
|
|
<td align="center">{$i.creator}</td>
|
|
<td align="center">{$i.duration}</td>
|
|
<td align="center">{$i.type}</td>
|
|
<!--
|
|
<td>
|
|
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=PL.addItem&id={$i.id}', '2PL')">[PL]</a>
|
|
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SP.addItem&id={$i.id}', '2SP')">[SP]</a>
|
|
</td>
|
|
-->
|
|
</tr>
|
|
{/foreach}
|
|
<tr>
|
|
<td>
|
|
{if $searchResults.prev}<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SEARCH.setOffset&page=prev', 'pager')">back</a>{/if}
|
|
</td>
|
|
<td>count: {$searchResults.count}</td>
|
|
<td>
|
|
go:
|
|
{foreach from=$searchResults.pages item=p key=k}
|
|
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SEARCH.setOffset&page={$k}', 'pager')">{$p}</a>
|
|
{/foreach}
|
|
</td>
|
|
<td align="right">
|
|
{if $searchResults.next}<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SEARCH.setOffset&page=next', 'pager')">forward</a>{/if}
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="4">
|
|
</table>
|
|
{else}
|
|
No match found.
|
|
{/if}
|
|
</center>
|
|
</div>
|
|
|