{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}
<div class="submenu">&raquo; <a href="administrator.php?mod=config">Ustawienia ogólne</a> &nbsp;&nbsp; &raquo; <a href="administrator.php?mod=config&act=mail">Ustawienia poczty</a> &nbsp;&nbsp; &raquo; <a href="administrator.php?mod=config&act=type">Typy oferty</a> &nbsp;&nbsp; &raquo; <a href="administrator.php?mod=config&act=state">Regiony</a>&nbsp;&nbsp; &raquo; 
<a href="administrator.php?mod=config&act=kategoria">Typ transakcji</a> &nbsp;&nbsp; &raquo; 
<a href="administrator.php?mod=config&act=stan">Stan obiektu</a> &nbsp;&nbsp; &raquo; 
<a href="administrator.php?mod=config&act=dach">Dach obiektu</a> &nbsp;&nbsp; &raquo; <a href="administrator.php?mod=config&act=budulec">Budulec obiektu</a></div>
<form action="administrator.php?mod=config&act=type" method="post">
<table width="100%" cellspacing="2" cellpadding="2" >
<tr class="th_1"><td colspan="2" >Typ oferty  </td></tr>
        {assign var='i' value='0'}
        {foreach from=$type item=T}
        {assign var='i' value=$i+1}
        <tr>
                <td class="td_1">{$i} <a onclick="javascript:if (confirm('Chcesz usun±ć typ obiektu!\n\n Aby potwierdzić, wci¶nij [ OK ], aby anulować wci¶nij [ Anuluj ]\n')) location.href='administrator.php?mod=config&act=type&delete={$T.typeId}'" style="float: right; cursor: pointer;"><img src="../img/admin-delete.png" border="0"  class="img" /></a></td>
                <td class="td_2"><input type="hidden" name="typeId[]" value="{$T.typeId}" /><input type="text" name="typeName[]" value="{$T.typeName}" style="width: 200px;" /></td>
        </tr>
        {/foreach}
        <tr>
                <td align="center"><br /><input type="hidden" name="update_3" value="" /><input type="submit" class="submit" value=" Zapisz " /></td>
        </tr>
</table>
</form>
<br />
<form action="administrator.php?mod=config&act=type" method="post">
<table width="100%" cellspacing="2" cellpadding="2" >
        <tr>
                <td class="td_1">Nowy typ oferty</td>
                <td class="td_2"><input type="text" name="newType" value="" style="width: 200px;" /></td>
        </tr>
        <tr>
                <td align="center"><br /><input type="hidden" name="addType" value="" /><input type="submit" class="submit" value=" Dodaj " /></td>
        </tr>
</table>
</form>
</table>
</div>
{include file="adm-footer.tpl"}
