{*
  Output of search results/browselist
  $Id: list.tpl,v 1.8 2005/10/05 07:24:10 andig2 Exp $
*}

{if $newslistcolumns == 1}
    {assign var=IMGWIDTH value="115"}
    {assign var=IMGHEIGHT value="115"}
	{assign var=VIGHEIGHT value="180"}   
    {assign var=ROWSPAN value="2"}
{else}
    {assign var=IMGWIDTH value="115"}
    {assign var=IMGHEIGHT value="115"}
	{assign var=VIGHEIGHT value="130"}    
    {assign var=ROWSPAN value="3"}
{/if}


<div id="docpart_list_target">

<div id="docpart_list_target_loading">
Loading...
</div>

<div id="content">
{counter start=0 print=false name=videocount}
{foreach item=news from=$list}

{if $count == 0}
    {cycle values="listeven,listodd" assign=CLASS print=false}
    <div class="{$CLASS}">
        <table width="100%" style="top:0px" border="0" cellpadding="0" cellspacing="5">
        <tr>
{/if}
            <td id="vignette" width="{math equation="floor(100/x)" x=$newslistcolumns}%">
			<div id="theme">
			{if $news.category}[<a href="index.php?categoryselect={$news.category}">{$news.category}</a>]{/if}
			<a href={if $news.link}"{$news.link}" target="_blank"{else}"show_news.php?id={$news.id}"{/if}>{$news.title}</a>
			</div>
			<table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    {if $news.imgurl && $showimg}
					<td height="{$IMGHEIGHT}" width="{$IMGWIDTH}">
					<a title="{$news.title}" href="show_news.php?id={$news.id}">
					<img alt="{$news.title}" src="{$news.imgurl}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
					</a>
					</td>
                    {/if}
					<td class="list_summary">	
                        {$news.summary}<br />
                        <b><a href={if $news.link}"{$news.link}" target="_blank"{else}"show_news.php?id={$news.id}"{/if}>{$lang.knowmore}</a></b>
					</td>
				</tr>
				{if $editable}
				<tr>
					<td id="barre-season" valign="bottom" colspan="2">
						<table border="0" cellpadding="0" cellspacing="0">
							<tr>
							<form action="edit_news.php" method="get" name="import">
							<td>
							<input type="hidden" name="id" value="{$news.id}" />
							<input type="submit" class="onglet" value="{$lang.edit}" />
							</td>
							</form>
							<form action="delete.php" method="get" name="import">
							<td>
							<input type="hidden" name="id" value="{$news.id}" />
							<input type="hidden" name="cat" value="7"/>
							<input type="submit" value="{$lang.del}" onclick="return(confirm('{$news.title|escape:javascript}: {$lang.msg_really_del}?'))" class="onglet"/></td>
							</form>
							</td>
							</tr>
						</table>
					</td>
				</tr>
				{/if}
            </table>
			</td>

{counter assign=count name=videocount}
{if $count == $newslistcolumns}
    {counter start=0 print=false name=videocount}
        </tr>
        </table>
    </div>

{/if}

{php}flush();{/php}
{/foreach}

{if $count != 0}
    {section name="columnLoop" start=$count loop=$newslistcolumns}
            <td>&nbsp;</td>
    {/section}
        </tr>
        </table>
    </div>
    <div class="listdivider"></div>
{/if}

</div>
<!-- /content -->

</div>