{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="leftmenuMM">
												 {foreach from=$showStateLicz item=S}
												 <li> <a   href="szukaj,woj,{$S.obStateId },1,{nopl str=$S.stateName }.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 UŻYTKOWNIKA</td></tr>
</table>
                                {if $error != null}<div class="info2" align="center"><table align="center"><tr><td align="center"><img src="img/blad.png" border="0" /></td></tr><tr><td align="center"><font color="red"><b>{foreach from=$error item=E}<li>{$E}</li>{/foreach}</b></font></td></tr><tr><td><br><br></td></tr></table></div>{/if}
                                {if $success != null}<div class="info2" align="center"><table align="center"><tr><td align="center"><img src="img/ok.png" border="0" /> &nbsp;&nbsp; </td></tr><tr><td align="center"><font color="#1f8603"><b>{foreach from=$success item=S}<li>{$S}</li>{/foreach}</b></font></td></tr><tr><td><br><br></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">
                                                {if $num != 0}
                                                <table width="100%" cellspacing="1" class="list" style="font:10px Tahoma;">
                                                        <tr>
                                                                <td class="td_1" width="4%">lp</td>
                                                                <td class="td_1" width="30%">nazwa obiektu</td>
                                                                <td class="td_1" width="10%">wysłane</td>
                                                                <td class="td_1" width="10%">oglądane</td>
                                                                <td class="td_1" width="16%">wygasa</td>
                                                                <td class="td_1" width="11%">status</td>
                                                                <td class="td_1" width="11%">promuj</td>
																<td class="td_1" width="9%">edytuj</td>
																<td class="td_1" width="9%">usuń</td>
                                                        </tr>
                                                        {assign var='i' value='0'}
                                                        {foreach from=$ob item=O}
                                                        {assign var='i' value=$i+1}
                                                        <tr>
                                                                <td class="td_3" align="center">{$i}</td>
                                                                <td class="td_3">&nbsp; {$O.obName}</td>
                                                                <td class="td_3" align="center">{$O.clicked }</td>
																																<td class="td_3" align="center">{$O.wizyt}</td>
                                                                <td class="td_3" align="center">{$O.obDateEnd} <BR>( {if $O.end >= 0}{if $O.end <= 21}<span style="color: red;">za  {$O.end} dni</span>{else}za  {$O.end} dni{/if} {else} <span style="color: red;">wygasło!</span>{/if}  )</td>
                                                                <td class="td_3" align="center">{if $O.obConfirm == 1}<img src="img/dodaj.png" border="0" class="img" />{else}<img src="img/weryfikacja.png" border="0" title="status" class="img" />{/if}</td>
                                                                <td class="td_3" align="center"><a onclick="location.href='panel,platnosci,{$O.obId},1.html'" style="cursor: pointer;"><img src="img/button_promowanie.png" border="0" title="promuj" class="img"  /></a></td>
																																<td  class="td_3" align="center"> <a onclick="location.href='panel,edycja,{$O.obId}.html'" style="cursor: pointer;"><img src="img/edytuj.png" border="0" title="edytuj" class="img" /></a></td>
																																<td  class="td_3" align="center"> <a onclick="javascript:if (confirm('Chcesz usunąć obiekt!\n\n Aby potwierdzić, wciśnij [ OK ], aby anulować wciśnij [ Anuluj ]\n')) location.href='panel,delete,{$O.obId}.html'" style="cursor: pointer;"><img src="img/usun.png" border="0" title="usuń" class="img" /></a></td>
                                                        </tr>
                                                        {/foreach}
                                                </table>
												</td></tr></table>
                                                <br >

							
                                                {else}
												  <table border=0 width="100%" cellspacing="1" class="list">
                                                        <tr><td>
                                                <center>lista jest pusta...</center>
												   </td></tr>
                                                </table>
                                                {/if}
                            </td></tr></table>

							            </div>
																				


			</div>
			

<br style="clear:both;" />
			
	</div>		
<br style="clear:both;" />
		
                         
</div>


{include file='footer.tpl'}
