{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=state" method="post">
<table width="100%" cellspacing="2" cellpadding="2" >
<tr class="th_1"><td colspan="2" >Regiony  </td></tr>
        {assign var='i' value='0'}
        {foreach from=$state item=S}
        {assign var='i' value=$i+1}
        <tr>
                <td class="td_1">{$i} <a onclick="javascript:if (confirm('Chcesz usun±ć region!\n\n Aby potwierdzić, wci¶nij [ OK ], aby anulować wci¶nij [ Anuluj ]\n')) location.href='administrator.php?mod=config&act=state&delete={$S.stateId}'" 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="stateId[]" value="{$S.stateId}" /><input type="text" name="stateName[]" value="{$S.stateName}" style="width: 300px;" /></td>
        </tr>
        {/foreach}
        <tr>
                <td align="center"><br /><input type="hidden" name="update_4" value="" /><input type="submit" class="submit" value=" Zapisz " /></td>
        </tr>
</table>
</form>
<br />
<form action="administrator.php?mod=config&act=state" method="post">
<table width="100%" cellspacing="2" cellpadding="2" >
        <tr>
                <td class="td_1">Nowy region</td>
                <td class="td_2"><input type="text" name="newState" value="" style="width: 400px;" /></td>
        </tr>
        <tr>
                <td align="center"><br /><input type="hidden" name="addState" value="" /><input type="submit" class="submit" value=" Dodaj " /></td>
        </tr>
</table>
</form>
</table>
</div>
{include file="adm-footer.tpl"}
