{include file='header.tpl'}
                     <div id="main">


<div id="content">
<div width="1100px"  id="belka-top">

					<div id="toplogowanie">						
								 <form action="{$getUrl}" method="post">
								<table border="0" >
								<tr>
								<td height="10px"><input type="text" name="login"  style="width: 80px; height: 17px; font-size:11px; " value="{if $login != null}{$login}{else}login{/if}"  style="width: 80px;" {literal}onfocus="if (this.value == 'login') {this.value = '';}" onblur="if (this.value == '') {this.value = 'login';}"{/literal} /></td>
								<td><input type="password" name="pass"  style="width:80px; height:17px; font-size:11px; " value="{if $pass != null}{$pass}{else}pass{/if}"  style="width: 80px;" {literal}onfocus="if (this.value == 'pass') {this.value = '';}" onblur="if (this.value == '') {this.value = 'pass';}"{/literal} /></td>
								<td colspan="2"><input type="hidden" name="getLogin" value="" />
								<button type="submit" style="width: 50px; height: 20px; font-size:10px; " > OK </button>&nbsp;&nbsp;</td>
								</tr>
								</table>
								</form>
				</div>

				 <div id="tlumacz">
							{*	<div id="translate-this"><a href="http://translateth.is/" class="translate-this-button">Translate</a></div>
								 
								<script type="text/javascript" src="http://www.google.com/jsapi"></script>
								<script type="text/javascript" src="http://x.translateth.is/translate-this.js"></script>
								<script type="text/javascript"> 
									{literal} TranslateThis();	{/literal}
								</script>
								*}
				</div>
				
				<div id="dodaj-ogloszenie"><a href="panel,dodaj.html" class="ogloszenie">Dodaj ogłoszenie</a></div>
				

</div>

<div width="1100px" style="padding-top:20px;" >



			<div style="float:left; width: 200px; padding-left:12px;">
								<table  style="color:#ffffff" cellpadding="0" cellspacing="0">
									<TR><td align="center" bgcolor="#7F3D01" height="30px" width="200px">TYP TRANSAKCJI</td></tr>
								</table>

									<ul class="leftmenuT">
									 {foreach name=li from=$showKategriaLicz item=K}
									<li><a   href="szukaj,kategoria,{$K.katId},1,{$K.katName}.html" >{$K.katName} ({$K.licz }) </a></li>
									{/foreach}
									</ul>
									
			<br style="clear:both;" />
							<table  style="color:#ffffff" cellpadding="0" cellspacing="0">
								<TR><td align="center" bgcolor="#7F3D01" height="30px" width="200px" >RODZAJE NIERUCHOMOŚCI</td></tr>
							</table>

								<ul class="leftmenuM">
								 {foreach from=$showTypeLicz item=T}
								<li><a   href="szukaj,type,{$T.typeId},1,{$T.typeName}.html" >{$T.typeName} ({$T.licz })</a></li>
								{/foreach}
								</ul>
								
  
				<br style="clear:both;" />
				
					<table width="200px" border=0 cellpadding="0" cellspacing="0">
														<TR><td align="center" bgcolor="#C8C6C7" height="30px" width="200px">WOJEWÓDZTWO</td></TR>
								</table>
											<ul class="leftmenuM">
												 {foreach from=$showStateLicz item=S}
												 <li> <a   href="szukaj,state,{$S.obStateId },1.html" >{$S.stateName } ({$S.licz })</a></li>
												{/foreach}
											</ul>
											
												
				<br style="clear:both;" />
									<table border=0 cellpadding="0" cellspacing="0">
									<TR><td align="center" bgcolor="#C8C6C7" height="30px" width="200px"><FONT SIZE="2">PODSTRONY</font></td></tr>
								</table>
									<ul class="leftmenuM">
									{foreach from=$showPages  item=PP}
									<li><a   href="{$PP.pagesId},{$PP.pagesTitle}.html" >{$PP.pagesTitle}</a></li>
									{/foreach}
									</ul>
									
									
									
</div>
			
			<div style="float:left; width: 850px;padding-left:5px;height:100%" valign="top">
<table >
	<TR><td align="center" bgcolor="#C8C6C7" height="30px" width="850px">PANEL AGENTA</td></tr>
</table>
                                {if $error != null}<div class="error" align="center"><table><tr><td><img src="img/blad.png" border="0" /></td><td>{foreach from=$error item=E}<li>{$E}</li>{/foreach}</td></tr></table></div>{/if}
                                {if $success != null}<div class="success" align="center"><table><tr><td><img src="img/ok.png" border="0" /> &nbsp;&nbsp; </td><td>{foreach from=$success item=S}<li>{$S}</li>{/foreach}</td></tr></table></div>{/if}
                                        <div class="page">
										<table width="100%" border="0"><tr><td width="100px" valign="top">
                                        {include file='panel-menu.tpl'}
								</td><td width="1%"></td><td valign="top" width="100%">
										<table align="center" width="550px" border="0">
                                                        
                                                        <tr>
                                                                <td ><br /></td>
                                                        </tr>
{if $num == 0}
																											
                                                        <form action="{$getUrl}" method="post" enctype="multipart/form-data">
                                                        <tr>
                                                                <td colspan="2"><strong>&raquo; Dane Agenta</strong></td>
                                                                
                                                        </tr>
                                                        <tr><td><br /></td></tr>
																												
																												 <tr><td >Nazwa: </td><td><input type="text" name="dilerNazwa" value="{$E.dilerNazwa}" style="width: 150px;" /></td></tr>
																												<tr><td><br /></td></tr>
                                                        <tr><td colspan="2">Opis: </td></tr>
                                                        <tr><td width="100%" colspan="2"><textarea  name="dilerOfirmie"  rows="40" cols="60" style="width: 520px; height: 250px;" class="textarea"></textarea></td></tr>
																												<tr><td><br /></td></tr>
																												 <tr><td >Ulica : </td><td><input type="text" name="dilerUlica" value="{$E.dilerUlica}" style="width: 200px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												 <tr><td >Numer ulicy: </td><td><input type="text" name="dilerNrulicy" value="{$E.dilerNrulicy}" style="width: 50px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Kod pocztowy: </td><td><input type="text" name="dilerPoczta" value="{$E.dilerPoczta}" style="width: 80px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Miasto: </td><td><input type="text" name="dilerMiasto" value="{$E.dilerMiasto}" style="width: 150px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Strona WWW: </td><td><input type="text" name="dilerWWW" value="{$E.dilerWWW}" style="width: 220px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Telefon: </td><td><input type="text" name="dilerTel" value="{$E.dilerTel}" style="width: 80px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Fax: </td><td><input type="text" name="dilerFax" value="{$E.dilerFax}" style="width: 80px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Email: </td><td><input type="text" name="dilerEmail" value="{$E.dilerEmail}" style="width: 100px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Numer licencji: </td><td><input type="text" name="dilerNr" value="{$E.dilerNr}" style="width: 80px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td><br /></td></tr>
                                                        <tr><td colspan="2">Plik: </td></tr>
                                                        <tr><td colspan="2" ><input type="file" name="photo_logo" value="" style="width: 450px;" /></td>
                                                             
                                                        </tr>
                                                        <tr><td colspan="2" align="right">
																												<input type="hidden" name="addDiler" value="" /><br /><button type="submit" >&nbsp; Zapisz zmiany &nbsp; </button></td>
                                                        </tr>  </table>
                                                        </form>
																									
{else}

										{foreach from=$eDiler item=E}
                                                        <form action="{$getUrl}" method="post" enctype="multipart/form-data">
																												<table align="center" width="550px" border="0">
																												<tr>
                                                                <td colspan="2"><strong>&raquo; Dane Agenta - EDYTUJ:</strong></td>
                                                                
                                                        </tr>
                                                        <tr>
                                                                <td ><br /></td>
                                                        </tr>
																												
																												 <tr><td >Nazwa:  </td><td><input type="text" name="dilerNazwa" value="{$E.dilerNazwa}" style="width: 150px;" /></td></tr>
																												 <tr><td><br /></td></tr>
                                                        <tr><td colspan="2">Opis: </td></tr>
                                                        <tr><td width="100%" colspan="2"><textarea name="dilerOfirmie"  rows="40" cols="60" style="width: 520px; height: 250px;" class="textarea">{$E.dilerOfirmie}</textarea></td></tr>
																												<tr><td><br /></td></tr>
																												 <tr><td >Ulica : </td><td><input type="text" name="dilerUlica" value="{$E.dilerUlica}" style="width: 200px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												 <tr><td >Numer ulicy: </td><td><input type="text" name="dilerNrulicy" value="{$E.dilerNrulicy}" style="width: 50px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Kod pocztowy: </td><td><input type="text" name="dilerPoczta" value="{$E.dilerPoczta}" style="width: 80px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Miasto: </td><td><input type="text" name="dilerMiasto" value="{$E.dilerMiasto}" style="width: 150px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Strona WWW: </td><td><input type="text" name="dilerWWW" value="{$E.dilerWWW}" style="width: 220px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Telefon: </td><td><input type="text" name="dilerTel" value="{$E.dilerTel}" style="width: 80px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Fax: </td><td><input type="text" name="dilerFax" value="{$E.dilerFax}" style="width: 80px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Email: </td><td><input type="text" name="dilerEmail" value="{$E.dilerEmail}" style="width: 100px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												<tr><td >Numer licencji: </td><td><input type="text" name="dilerNr" value="{$E.dilerNr}" style="width: 80px;" /></td></tr>
																												<tr><td><br /></td></tr>
																												
																												<tr><td><br /></td></tr>
                                                        <tr><td colspan="2"></td></tr>
                                                        <tr><td align="center" colspan="2">
																												{if $E.dilerfoto != null}
																												<img src="./diler/duze/{$E.dilerfoto}" style="border: 3px double #b6c1ce ">
																												{else}{/if}
																												</td>
                                                             
                                                        </tr>
																												<tr><td><br /></td></tr>
                                                        <tr><td colspan="2">Plik: </td></tr>
																												<tr><td colspan="2"><input type="file" name="photo_logo" value="" style="width: 450px;" /></td></tr>
                                                        <tr>
                                                                <td colspan="2" align="right">
																																<input type="hidden" name="id_diler" value="{$E.id_diler}" />
																																<input type="hidden" name="uzytkownik" value="{$E.uzytkownik}" />
																																<input type="hidden" name="eddDiler" value="" /><br /><button type="submit" >&nbsp; Zapisz zmiany &nbsp; </button></td>
                                                        </tr>
                                                        </form>
																												{/foreach}
{/if}
                                                </table>
                                                </td></tr></table>
                                        </div> 
</div>
<br style="clear:both;" />
			
	</div>		
<br style="clear:both;" />
		
                         
</div>
{include file='footer.tpl'}
