{*
  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="100"}
{else}
    {assign var=IMGWIDTH value="100"}
    {assign var=IMGHEIGHT value="150"}
{/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}
        <table width="90%" style="top:0px" border="0" cellpadding="0" cellspacing="5">
        <tr>
{/if}

    <td class="table-info" align="center" width="{math equation="floor(100/x)" x=$personslistcolumns}%">
		<div class="title-classement"><a 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}">
			{html_image alt="$person.lastname $person.firstname" file=$person.imgurl max_width="$IMGWIDTH"  max_height="$IMGHEIGHT" border="0"}
			</a>
		{/if}
    </td>


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

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

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

</div>