{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}
{foreach from=$editagnet item=E}
<table width="100%" cellspacing="2" cellpadding="2">
<tr class="th_1"><td colspan="2" >Edycja Agenta : {$E.dilerNazwa }  </td></tr>
		<form action="administrator.php?mod=editagent&id={$id}" method="post" enctype="multipart/form-data">
		
        <tr>
                <td class="td_1"><b>Dane Agenta</b></td>
                <td class="td_2"></td>
        </tr>
        <tr>
                <td class="td_1">Nazwa</td>
                <td class="td_2"><input type="text" name="dilerNazwa" value="{$E.dilerNazwa}" style="width: 150px;" /></td>
        </tr>
        <tr>
                <td class="td_1">Opis</td>
                <td class="td_2"><textarea id="editor11"   name="dilerOfirmie" rows="20" cols="60" style="width: 685px; height: 150px;" class="textarea">{$E.dilerOfirmie}</textarea>
{literal}
<script type="text/javascript" src="ckeditor/edytor/edytor11.js"></script>
{/literal}</td>
        </tr>



        <tr>
                <td></td>
                <td></td>
        </tr>
        <tr>
                <td class="td_1">Ulica</td>
                <td class="td_2"><input type="text" name="dilerUlica" value="{$E.dilerUlica }" style="width: 200px;" /></td>
        </tr>
        <tr>
                <td class="td_1">Numer ulicy</td>
                <td class="td_2"><input type="text" name="dilerNrulicy" value="{$E.dilerNrulicy }" style="width:100px;" /></td>
        </tr>
        <tr>
                <td class="td_1">Kod pocztowy</td>
                <td class="td_2"><input type="text" name="dilerPoczta" value="{$E.dilerPoczta }" style="width:80px;" /></td>
        </tr>
        <tr>
                <td class="td_1">Miasto</td>
                <td class="td_2"><input type="text" name="dilerMiasto" value="{$E.dilerMiasto }" style="width:200px;" /></td>
        </tr>
        <tr>
                <td class="td_1">Strona WWW</td>
                <td class="td_2"><input type="text" name="dilerWWW" value="{$E.dilerWWW }" style="width:200px;" /></td>
        </tr>
        <tr>
                <td class="td_1">Telefon</td>
                <td class="td_2"><input type="text" name="dilerTel" value="{$E.dilerTel }" style="width:80px;" /></td>
        </tr>
        <tr>
                <td class="td_1">Fax</td>
                <td class="td_2"><input type="text" name="dilerFax" value="{$E.dilerFax }" style="width:80px;" /></td>
        </tr>
        <tr>
                <td class="td_1">Email</td>
                <td class="td_2"><input type="text" name="dilerEmail" value="{$E.dilerEmail }" style="width:200px;" /></td>
        </tr>
        <tr>
                <td class="td_1">Numer licencji</td>
                <td class="td_2"><input type="text" name="dilerNr" value="{$E.dilerNr }" style="width:200px;" /></td>
        </tr>

        <tr>
                <td></td>
                <td></td>
        </tr>
        <tr>
                <td class="td_1">Zdjêcie</td>
                <td class="td_2">
																												
                        <table>
																<tr>
                                <td ><div class="photo">
																							{if $E.dilerfoto != null}
																							<img src="../diler/duze/{$E.dilerfoto}" style="border: 3px double #b6c1ce ">
																							{else}{/if}</div>
									
																</td>
																<tr>
                        </table>
                </td>
        </tr>
        <tr>
                <td></td>
                <td></td>
        </tr>
        <tr>
                <td class="td_1">Plik</td>
                <td class="td_2"><input type="file" name="photo" value="" style="width: 450px;" /></td>
        </tr>
         <tr>
              <td class="td_1">Plik</td>
							<td class="td_2"><input type="hidden" name="new_photo" value="" />
												<input type="hidden" name="id_diler" value="{$E.id_diler}" />
												<input type="hidden" name="uzytkownik" value="{$E.uzytkownik}" /><input type="hidden" name="editagnet" value="" />
												<br /><input type="submit" class="submit" value="Zapisz zmiany" />
							</td>
         </tr>
																												

</table>
</form>
{/foreach}
<br />
</div>
{include file="adm-footer.tpl"}
