{*
  Output of search results/browselist
  $Id: list_persons.tpl,v 1.00 2006/10/24 22:00:00
*}

{if $personslistcolumns == 1}
    {assign var=IMGWIDTH value="75"}
    {assign var=IMGHEIGHT value="75"}
{else}
    {assign var=IMGWIDTH value="100"}
    {assign var=IMGHEIGHT value="100"}
{/if}


<div id="docpart_list_target">

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

<div id="content">
{counter start=0 print=false name=personcount}
{foreach item=person 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="0">
        <tr>
{/if}

    <td id="vignette" align="center" width="{math equation="floor(100/x)" x=$personslistcolumns}%">
		<div><a class="title-person" href="show_persons.php?id={$person.id}"><b>{if $person.lastname}{$person.lastname}{else} {/if}<br>{if $person.firstname}{$person.firstname}{else} {/if}</b></a></div>
		{if $person.imgurl && $showimg}
			<a title="{$person.lastname} {$person.firstname}" href="show_persons.php?id={$person.id}">
			<img alt="{$person.lastname} {$person.firstname}" src="{$person.imgurl}" border="0" hspace="2" vspace="5" width="{$IMGWIDTH}">
			</a>
		{/if}
    </td>


{counter assign=count name=personcount}
{if $count == $personslistcolumns}
    {counter start=0 print=false name=personcount}
    </tr>
	</table>
    </div>
{/if}
{php}flush();{/php}
{/foreach}

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

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

</div>