{*
Output of search results/browselist
$Id: list.tpl,v 1.18 2008/01/29 10:59:52 veal Exp $
*}
<!-- {$smarty.template} -->
{if $listcolumns == 1}
{assign var=IMGWIDTH value="35"}
{assign var=IMGHEIGHT value="48"}
{else}
{assign var=IMGWIDTH value="97"}
{assign var=IMGHEIGHT value="144"}
{/if}
<div id="content">
{counter start=0 print=false name=videocount}
{foreach item=video from=$list}
{if $count == 0}
{cycle values="listeven,listodd" assign=CLASS print=false}
<div class="{$CLASS}">
<table width="100%" class="collapse">
<tr>
{/if}
<td {if $video.who}class="lent"{elseif $video.mediatype==$smarty.const.MEDIA_WISHLIST}class="wanted"{/if} width="{math equation="floor(100/x)" x=$listcolumns}%">
<div class="list_item">
{if $video.imgurl}{html_image file=$video.imgurl link="show.php?id="|cat:$video.id align=left max_width=$IMGWIDTH max_height=$IMGHEIGHT class="cover"}{/if}
{if $listcolumns < 4}
<div class="list_item_more">
{if $video.editable}
<div class="list_item_buttons">
<form action="edit.php" method="get">
<input type="hidden" name="id" value="{$video.id}"/>
<input type="submit" class="button" value="{$lang.edit}" />
</form>
<form action="delete.php" method="get">
<input type="hidden" name="id" value="{$video.id}"/>
<input type="submit" class="button" value="{$lang.del}" onclick="return(confirm('{$video.title|escape:javascript|escape}: {$lang.really_del|escape:javascript|escape}?'))" />
</form>
</div>
{/if}
<div class="list_diskid">
<a href="search.php?q={$video.diskid}&fields=diskid&nowild=1">{$video.diskid}</a>
</div>
<div class="list_language">
{foreach item=itemlang from=$video.language}
{if $itemlang}<a href="search.php?q={$itemlang|escape:url}&fields=language">
{if $video.flagfile[$itemlang]}
<img src="{$video.flagfile[$itemlang]}" alt="{$itemlang}"/>
{else}
{$itemlang}
{/if}</a>
{/if}
{/foreach}
</div>
{if $video.seen}
<div class="list_seen"><!--<a href="index.php?filter=seen">--><img src="{$template}images/eye.gif" filter="seen" alt="{$lang.seen}"/><!--</a>--></div>
{/if}
</div>
{/if}
<div class="list_item_content">
<div class="list_title"><a href="show.php?id={$video.id}">{$video.title}{if $video.subtitle} - {$video.subtitle}{/if}</a></div>
{if $video.year || $video.director}
<div class="list_info">
[{if $video.year}<a href="search.php?q={$video.year}&fields=year&nowild=1">{$video.year}</a>{/if}{if $video.director}{if $video.year}; {/if}<a href="search.php?q=%22{$video.director|escape:url}%22&isname=Y">{$video.director}</a>{/if}]
</div>
{/if}
<div class="list_plot">
{$video.plot|truncate:250}
<a href="show.php?id={$video.id}">{$lang.more}</a>
</div>
</div>
</div>
</td>
{counter assign=count name=videocount}
{if $count == $listcolumns}
{counter start=0 print=false name=videocount}
</tr>
</table>
</div>
{/if}
{/foreach}
{if $count != 0}
{section name="columnLoop" start=$count loop=$listcolumns}
<td> </td>
{/section}
</tr>
</table>
</div>
{/if}
</div>
<!-- /content -->