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

<div id="content">
<div id="demo">
<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>
				
				<div id="dodaj-ogloszenie"><a href="panel,dodaj.html" class="ogloszenie">Dodaj ogłoszenie</a></div>
				
</div>


<div width="1100px"  >

									<div  style="float:left; width: 720px; padding-left:10px;"> 
									<center><br>
				<form id="search" action="szukaj.html" method="post">
				<fieldset id="log">
				 <table style="width: 690px; margin-left: -20px; " border="0"  cellspacing="9" CELLPADDING="3">
						<tr><td align="left">Typ Nieruchomosci:</td>
						<td width="200px" align="left" >
															 <select name="type"  style="width: 170px;">
																									 <option value="">- rodzaj nieruchomości</option>
																									 {foreach from=$showType item=T}
																									 <option value="{$T.typeId}" {if $T.typeId == $type}SELECTED{/if}>- {$T.typeName}</option>
																									 {/foreach}
																</select>
						</td>
							<td align="left">Województwo:</td>
															<td align="left">
																<select name="state"  style="width: 160px;">
																										<option value="">- województwo</option>
																										{foreach from=$showState item=S}
																										<option value="{$S.stateId}" {if $S.stateId == $state}SELECTED{/if}>- {$S.stateName}</option>
																										{/foreach}
																										</select>
															</td>
														</TR>
						
						<tr><td align="left">Typ transakcji:</td>
														<td align="left">
														<select name="kategoria"  style="width: 140px;">
																									 <option value="">- typ transakcji</option>
																									 {foreach from=$showKategoria item=KK}
																									 <option value="{$KK.katId}" {if $KK.katId == $kat}SELECTED{/if}>- {$KK.katName}</option>
																									 {/foreach}
														</select>
														</td>
									<td align="left">Miasto:</td>
															<td align="left">
																	<input type="text" name="txt" value="{if $txt != null}{$txt}{else}szukane miasto{/if}"  style="width: 150px;" {literal}onfocus="if (this.value == 'szukane miasto') {this.value = '';}" onblur="if (this.value == '') {this.value = 'szukane miasto';}"{/literal} />
															</td>
														</tr>
						<tr><td align="left">Powierzchnia:</td>
														<td align="left">
																	<input type="text" name="powOn" value="{if $powOn != null}{$powOn}{else}pow. od{/if}"  style="width: 80px;" {literal}onfocus="if (this.value == 'pow. od') {this.value = '';}" onblur="if (this.value == '') {this.value = 'pow. od';}"{/literal} /> &nbsp;&nbsp;
																	<input type="text" name="powOff" value="{if $powOff != null}{$powOff}{else}pow. do{/if}"  style="width: 80px;" {literal}onfocus="if (this.value == 'pow. do') {this.value = '';}" onblur="if (this.value == '') {this.value = 'pow. do';}"{/literal} />
														</td>
									<td align="left">Dzielnica:</td>
															<td align="left">
																		<input type="text" name="dziel" value="{if $dziel != null}{$dziel}{else}szukana dzielnica{/if}"  style="width: 150px;" {literal}onfocus="if (this.value == 'szukana dzielnica') {this.value = '';}" onblur="if (this.value == '') {this.value = 'szukana dzielnica';}"{/literal} />
															</td>
						</tr>
							<tr><td align="left">Rynek:</td>
															<td align="left">
																		<select name="rynek"  style="width: 120px;">
																					<option value="">- rynek</option>
																					{foreach from=$showRynek item=RY}
																				 <option value="{$RY.rynekId}" {if $RY.rynekId == $rynek}SELECTED{/if}>- {$RY.rynekName}</option>
																				 {/foreach}
																				 </select>
															</td>
								<td align="left">Ulica:</td>
														<td align="left">
																	<input type="text" name="ulica" value="{if $ulica != null}{$ulica}{else}szukana ulica{/if}"  style="width: 150px;" {literal}onfocus="if (this.value == 'szukana ulica') {this.value = '';}" onblur="if (this.value == '') {this.value = 'szukana ulica';}"{/literal} />
														</td>
						</tr>			
						<tr><td align="left">Cena:</td>
														<td align="left">
																<input type="text" name="priceOn" value="{if $priceOn != null}{$priceOn}{else}cena od{/if}"  style="width: 80px;" {literal}onfocus="if (this.value == 'cena od') {this.value = '';}" onblur="if (this.value == '') {this.value = 'cena od';}"{/literal} /> &nbsp;&nbsp; 
																<input type="text" name="priceOff" value="{if $priceOff != null}{$priceOff}{else}cena do{/if}"  style="width: 79px;" {literal}onfocus="if (this.value == 'cena do') {this.value = '';}" onblur="if (this.value == '') {this.value = 'cena do';}"{/literal} />
														</td>
														<td align="left"></td>
														<td align="center">
																				 <input type="hidden" name="getSearch" value="" /><button type="submit" >&nbsp; Szukaj &nbsp; </button>
														</td>
						</tr>	


				</table>
				</fieldset>
				</form></center>
					</div>
				<div style="float:left; width: 320px;  padding-left:12px;">
								<table style="color:#ffffff">
								<TR><td align="center" bgcolor="#7F3D01" height="25px" width="320px"><FONT SIZE="2" >AGENCJE NIERUCHOMOŚCI</td></tr>
								</table>

																					{assign var='i' value='0'}
                                          {foreach from=$showDiler item=Di}
                                          {assign var='i' value=$i+1}
										<div {if $i%2 != 0}class="list_1"{else}class="list_2"{/if} >
																								<table border="0" cellpadding="1" cellspacing="3" >
																								<tr ><td width="100px" align="center" height="70px">
																								{if $Di.dilerfoto != null } 
																								<img src="./diler/male/{$Di.dilerfoto}"  style="border: 3px double #b6c1ce ">
																								{else}{/if}
																								</td><td width="200px">
																								<div style="font-size: 11px;" align="center">
																								<b>Agencja:</b><br> {$Di.dilerNazwa }<br>
																								<span class="offersdetails2">&raquo;</span> <a href="agent,{$Di.uzytkownik}.html" class="offersdetails2B">strona agencji </a></div>
																								</td>
																	<td     align="center" style="background:#d0cdcd" >
																	<A href="agent,{$Di.uzytkownik}.html"><img src="images/fotki.png" border="0"		title="Przejście do strony Agencji jak i Ogłoszeń tej Agencji."></a><br>
																	<A href="#"><img src="images/mapa.png" border="0"	title="<b>Maiasto:</b> {$Di.dilerMiasto}<br><b>Ulica:</b> {$Di.dilerUlica}<br><b>Telefon:</b> {$Di.dilerTel }<br><b>E-mail</b>: {$Di.dilerEmail}"></a>
																	</td>
																								</tr>
																																		</table>
										</div>
                                          {/foreach}


			</div>
</div>
	
<br style="clear:both;" />
<div width="1100px"  style="padding-to:30px;">
				<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;" />
			</div>
      
			<div style="float:left; width: 850px;padding-left:5px;height:100%" valign="top">
					<table border="0" width="100%">
						<TR><td align="center" bgcolor="#C8C6C7" height="30px" width="100%"><FONT SIZE="3" >OGŁOSZENIA</td></tr>
					</table>
					
						<div > 
							<div style="float:left;width: 410px;padding-left:15px;">
							<div align="left"><font face="Tahoma" size="1">Reklama</font></div>
																		 {assign var='i' value='0'}
																		{foreach from=$reklamaB  item=RD}
																		{assign var='i' value=$i+1}
																		<center><a href="{$RD.url}" target="_blanck">{$RD.kod} </a></center>
																		{/foreach}
							</div>
							<div style="float:left;width: 410px;padding-left:5px;">
							<div align="left"><font face="Tahoma" size="1">Reklama</font></div>
																		 {assign var='i' value='0'}
																		{foreach from=$reklamaB  item=RD}
																		{assign var='i' value=$i+1}
																		<center><a href="{$RD.url}" target="_blanck">{$RD.kod} </a></center>
																		{/foreach}
							</div>

						</div>
											<br style="clear:both;" /><br style="clear:both;" />
																		
																		
                                          {assign var='i' value='0'}
                                          {foreach from=$index item=I}
                                          {assign var='i' value=$i+1}
                                          
              <div class="{if $i%2 != 0}list_1{else}list_2{/if}" {if $I.obPromo == '1'} style="border: 1px solid #{$promoColorBorder}; background: #{$promoColorBg}"{elseif $I.obLastMinute == '1'} style="border: 1px solid #{$lastColorBorder}; background: #{$lastColorBg}"{/if}>
                <table width="840px"  border="0" cellpadding="7" cellspacing="7">																										
									
									<tr><td width="80px" rowspan="4">{if $I.photo != null}<A href="obiekt,{$I.obId},{nopl str=$I.obName}.html"   title=""><img src="files/photo/sre/{$I.photo}" border="0"  style="border: 3px double #b6c1ce " /></a>{else}<A href="obiekt,{$I.obId},{nopl str=$I.obName}.html" title=""><img src="img/no_pic.jpg" border="0" width="100" style="border: 3px double #b6c1ce " /></a>{/if}</td></tr>
									<tr><td colspan="4" style="background-color:#d2d0d0;" style="padding:3px 3px 3px 3px;">{if $I.obPromo == '1'}<img src="images/p.gif" border="0" width="15" title="<CENTER>PROMOWANE OGŁOSZENIE<br><br> <b>{$I.obName}</b></CENTER>" style="padding-left:6px;" alt="OGŁOSZENIE PROMOWANE" />{else}{/if}{if $I.obWyroz == '1'}&nbsp;&nbsp;<img src="images/w.gif" border="0"  style="padding-left:6px;" width="15" title="<CENTER>WYRÓŻNIONE OGŁOSZENIE<br><br> <b>{$I.obName}</b></CENTER>" alt="OGŁOSZENIE WYRÓŻNIONE" /> {else}{/if}&nbsp;&nbsp;<strong>{$I.obName}</strong></TD></tr>
									<tr><td width="140px"> <b>Ogłoszenie: <span class="green">{$I.katName}</span></b><br><b>Typ: <span class="green">{$I.typeName}</span></b><BR><b>Stan:</b> {$I.stanName}</td>
									<td width="180px"><b>Zabudowa:</b> {$I.rodzajName}<br><b>Powierzchnia:</b> {$I.obPoC} m2<br><b>Województwo:</b> {$I.stateName}<br></td>
									<td width="130px"><b>Miejscowosć:</b> {$I.obCity}<br><span class="green"><b>Cena:</b></span> {$I.obPriceOn} zł</td>
									<td align="right"><a href="obiekt,{$I.obId},{nopl str=$I.obName}.html" class="offersdetails">zobacz szczegóły</a> <span class="offersdetails2">&raquo;</span><br /></td>
									</tr>
									<tr><td colspan="4" valing="top">
									<table border="0" width="100%" valing="top" cellpadding="0" cellspacing="0">
													<tr><td class="opis2" >DOTATKOWE DANE: </td></tr>
														<tr>
                              <td valign="top"  class="iko">
																												{if strstr($I.obRoom, 'b1')}Aneks kuchenny,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b2')}Umeblowane,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b3')}Strych,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b4')}Winda,&nbsp; &nbsp;{else}{/if}
																												{if strstr($I.obRoom, 'b5')}Telefon,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b6')}Internet,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b7')}Domofon,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b8')}Monitoring,&nbsp; &nbsp;{else}{/if}
																												{if strstr($I.obRoom, 'b9')}Ochrona,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b10')}Ogrodzenie,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b11')}Parking,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b12')}Kominek,&nbsp; &nbsp;{else}{/if}
																												{if strstr($I.obRoom, 'b13')}Balkon,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b14')}Altana,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b15')}Piwnica,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b16')}Suszarnia,&nbsp; &nbsp;{else}{/if}
																												{if strstr($I.obRoom, 'b17')}Garaż,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b18')}Ogród,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b19')}Ogródek,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b20')}Sad&nbsp; &nbsp;{else}{/if}
														</td>
                           </tr>
		                      </table> 
													 
													 

						</td></tr>
                                                </table>

                                                 </div>
														<div height="180px" >
														{if $i == 4 }

																		<center><div align="left" style="padding-left:25px;"><font face="Tahoma" size="1">Reklama</font></div>
																		 {assign var='i' value='0'}
																		{foreach from=$reklamaS  item=RS}
																		{assign var='i' value=$i+1}
																		<center><a href="{$RS.url}" target="_blanck">{$RS.kod} </a></center>
																		{/foreach}
																		</center>

														{else}{/if} 
														<br style="clear:both;" />
														</div >
                                        
                                          {/foreach}
                         
                                   {if $num > $n}<center>{$str}</center>{/if}
										</div>
			</div>
			
</div>
 <script src="js/jquery.tools.min.js"></script>
 <script type="text/javascript" src="./js/toltip.js" ></script>
 <script>  
			{literal}
					$("#demo img[title]").tooltip({
					offset: [10, 2],
					 effect: 'slide'

					}).dynamic({ bottom: { direction: 'down', bounce: true } });
			{/literal}
</script>

<br style="clear:both;" />
			
	</div>		
<br style="clear:both;" />
{include file='footer.tpl'}
