{include file="adm-header.tpl"}
<div class="content">
{if $error != null}<div class="error">{$error}</div>{/if}
{if $success != null}<div class="success">{$success}</div>{/if}
{if $num != 0}
<table width="100%" cellspacing="2" cellpadding="2" style="margin-top: 5px;">
<tr class="th_1"><td colspan="7">Agencje Nieruchomo¶ci</td></tr>
        <tr class="td_list_title">
                <td width="2%">lp</td>
                <td width="5%">Nazwa</td>
                <td width="5%">Uzytkownik</td>
                <td width="15%">Agencja</td>
                <td width="25%">Kontakt </td>
                <td width="10%">Foto</td>
                <td width="5%">opcje</td>
        </tr>
        {assign var='i' value='0'}
        {foreach from=$diler item=Di}
        {assign var='i' value=$i+1}
        <tr class="{if $i%2 == 0}td_list_a{else}td_list_b{/if}" onmouseover="style.backgroundColor='#a9a7a7'" onmouseout="style.backgroundColor='#f6f4f4'">

                <td width="2%">{$i}</td>
                <td width="5%" align="left">&nbsp; {$Di.dilerNazwa}</td>
                <td width="5%" align="left">&nbsp; {$Di.uzytkownik}</td>
                <td width="15%" align="left">&nbsp; >><a href="../agent,{$Di.uzytkownik}.html" target="_blanck"><b> Oferta agencji</b></a> <-- (link do strony dilera)</td>
								<td width="25%" align="center">&nbsp; {$Di.dilerPoczta } {$Di.dilerMiasto} &nbsp; ul. {$Di.dilerUlica } {$Di.dilerNrulicy  }<br>tel.: {$Di.dilerTel  }&nbsp;fax.: {$Di.dilerFax  } <br>emial: {$Di.dilerEmail  }&nbsp; www: {$Di.dilerWWW  }<br>nr licencji: {$Di.dilerNr  } </td>
								<td width="10%" align="center">&nbsp; {if $Di.dilerfoto != null}<img src="../diler/male/{$Di.dilerfoto}"  >	{else}{/if}</td>
                <td width="5%">
									<a onclick="location.href='administrator.php?mod=editagent&id={$Di.id_diler }'" style="cursor: pointer;"><img src="../img/admin-edit.png" border="0" class="img" /></a>
								<a onclick="javascript:if (confirm('Chcesz usun±ć agencje!\n\n Aby potwierdzić, wci¶nij [ OK ], aby anulować wci¶nij [ Anuluj ]\n')) location.href='{$url}&act=delete&id={$Di.uzytkownik}'" style="cursor: pointer;">
								<img src="../img/admin-delete.png" border="0" class="img" /></a></td>
  
        </tr>
        {/foreach}
</table>
<center>{$str}</center>
{else}
<center>lista jest pusta...</center><br />
{/if}
</div>
{include file="adm-footer.tpl"}
