{*
  Output of search results/browselist
  $Id: list.tpl,v 2.30 2005/09/27 07:31:00 andig2 Exp $
*}

{if $actorlistcolumns == 1}
    {assign var=IMGWIDTH value="70"}
    {assign var=IMGHEIGHT value="94"}
    {assign var=ROWSPAN value="2"}
{else}
    {assign var=IMGWIDTH value="97"}
    {assign var=IMGHEIGHT value="144"}
    {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=searchcount}
{foreach item=search from=$list}

{if $count == 0}
    {cycle values="listeven,listodd" assign=CLASS print=false}
    <div class="{$CLASS}">
    <table width="100%" class="collapse">
        <tr>
{/if}
{if $searchtype == 1}
	<td width="{math equation="floor(100/x)" x=$stadiumslistcolumns}%">
			<div id="theme" width="100%"><a href="show_stadiums.php?id={$search.id}">{$search.longname}</a></div>
            {if $search.imgurl && $showimg}
			<div class="img-shadow">
			<a title="{$search.longname}" href="show_stadiums.php?id={$search.id}">
			<img alt="{$search.longname}" src="{$search.imgurl}" class="cover" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
			</a>
			</div>
			{else}
			<div><a title="{$search.longname}" href="show_stadiums.php?id={$search.id}">{$search.longname}</a></div>
			{/if}
    </td>
	{counter assign=count name=searchcount}
		{if $count == $stadiumslistcolumns}
		{counter start=0 print=false name=searchcount}
		</tr>
		</table>
		</div>
		{/if}
	
	
	
	
{elseif $searchtype == 2 || $searchtype == 3 || $searchtype == 4}
	<td width="{math equation="floor(100/x)" x=$personslistcolumns}%">
			<div id="theme" width="100%"><a href="show_persons.php?id={$search.id}">{$search.lastname} - <i>{$search.firstname}</i></a></div>
            {if $search.imgurl && $showimg}
			<div class="img-shadow">
			<a title="{$search.lastname} - {$search.firstname}" href="show_persons.php?id={$search.id}">
			<img alt="{$search.lastname} - {$search.firstname}" src="{$search.imgurl}" class="cover" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
			</a>
			</div>
			{else}
			<div><a title="{$search.lastname} - {$search.firstname}" href="show_persons.php?id={$search.id}">{$search.lastname} - {$search.firstname}</a></div>
			{/if}

    </td>
	{counter assign=count name=searchcount}
		{if $count == $personslistcolumns}
		{counter start=0 print=false name=searchcount}
		</tr>
		</table>
		</div>
		{/if}
		
{elseif $searchtype == 5}
		<td width="{math equation="floor(100/x)" x=$newslistcolumns}%">
				<div id="theme" width="100%"><a href="show_news.php?id={$search.id}">{$search.title}</a></div>
				{if $search.imgurl && $showimg}
				<div class="list-summary">
				<a title="{$search.title}" href="show_news.php?id={$search.id}">
				<img alt="{$search.title}" src="{$search.imgurl}" class="cover" align="left" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
				</a></div>
				{$search.summary}
				{else}
				<div>{$search.summary}</div>
				{/if}
	    </td>
	{counter assign=count name=searchcount}
		{if $count == $newslistcolumns}
		{counter start=0 print=false name=searchcount}
		</tr>
		</table>
		</div>
		{/if}
		
		
{else}
    <td width="{math equation="floor(100/x)" x=$clubslistcolumns}%">
			<div id="theme"><a href="show_clubs.php?id={$search.id}">{$search.shortname}</a></div>
			{if $search.imgurl && $showimg}
			<div class="img-shadow">
			<a title="{$search.shortname}" href="show_clubs.php?id={$search.id}">
			<img alt="{$search.shortname}" src="{$search.imgurl}" class="cover" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
			</a>
			{else}
			<div> </div>
			{/if}
    </td>
	{counter assign=count name=searchcount}
		{if $count == $clubslistcolumns}
		{counter start=0 print=false name=searchcount}
		</tr>
		</table>
		</div>
		{/if}
{/if}

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

{if $count != 0}
	{if $searchtype == 1}
    {section name="columnLoop" start=$count loop=$stadiumslistcolumns}
	<td class="{$CLASS}">&nbsp;</td>
    {/section}
	{elseif $searchtype == 2 || $searchtype == 3 || $searchtype == 4}
	{section name="columnLoop" start=$count loop=$personslistcolumns}
	<td class="{$CLASS}">&nbsp;</td>
    {/section}
	{elseif $searchtype == 5}
	{section name="columnLoop" start=$count loop=$newslistcolumns}
	<td class="{$CLASS}">&nbsp;</td>
    {/section}
	{else}
	{section name="columnLoop" start=$count loop=$clubslistcolumns}
	<td class="{$CLASS}">&nbsp;</td>
    {/section}
	{/if}
        
    </tr>
	</table>
    </div>
{/if}
</div>

<!-- /content -->
