{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">Lista ogłoszeń</td></tr>
        <tr class="td_list_title">
                <td width="2%">lp</td>
                <td width="10%">tytuł</td>
                <td width="5%">dodał/a</td>
                <td width="5%">region</td>
                <td width="20%">opis</td>
                <td width="5%">data dodania</td>
                <td width="8%">opcje</td>
        </tr>
        {assign var='i' value='0'}
        {foreach from=$ogloszenie item=O}
        {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>{$i}</td>
                <td align="left"> {$O.ogloszenieTitle|substr:0:50} ...</td>
                <td align="left">&nbsp; {$O.ogloszenieImie }</td>
                <td align="left">&nbsp; {$O.regionName  }</td>
                <td align="left">&nbsp; {$O.ogloszenieTxt }</td>
                <td align="center">&nbsp;{$O.ogloszenieData }</td>
                <td><a onclick="location.href='administrator.php?mod=editogloszenie&id={$O.ogloszenieId}'" style="cursor: pointer;"><img src="../img/admin-edit.png" border="0" class="img" /></a>
                        <a onclick="javascript:if (confirm('Chcesz usun±ć ogłoszenie!\n\n Aby potwierdzić, wci¶nij [ OK ], aby anulować wci¶nij [ Anuluj ]\n')) location.href='{$url}&act=deleteogloszenie&id={$O.ogloszenieId}'" 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"}
