
	<div class="panelRightTop"></div>

		<div class="panelRightBody">
			<div class="paddedContent">

<h1>Strona główna</h1>

{dropDownContainer title="Polecamy"}
<br />
<b>Opublikowane</b>
			    
			    
	<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
	{foreach from=$arrayObjMainNewsTop item=objMainNewsTop name=top  key=k}
	{assign var=objArticle value=$objMainNewsTop->GetMainArticleObj()}
	{assign var=objArticle value=$objMainNewsTop->GetMainArticleObj()}
	{if $smarty.foreach.top.first}
		<tr>
			<td width="1">{$objMainNewsTop->GetWeight()}</td>
			<td width="35">
				{if $objMainNewsTop->GetBlockade() gt 0}
					<a href="{url mainSite=blockade id=$objMainNewsTop->GetId() place=0}" class="iconDeleteThread"></a>
				{else}
					<a href="{url mainSite=blockade id=$objMainNewsTop->GetId() place=$k}" class="iconOpenThread"></a>
				{/if}
				</td>
			<td width="35">{*<a href="{url mainSite=sort id=$objMainNewsTop->GetId() mainType=1 direct=up}"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="{url mainSite=sort id=$objMainNewsTop->GetId() mainType=1 direct=down}"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a>*}&nbsp;</td>
			<td><a href="{url mainSite=Edit id=$objMainNewsTop->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
			<td width="100">{$objMainNewsTop->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
			<td width="30"><a href="{url mainSite=delete id=$objMainNewsTop->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>
		</tr>
	{/if}
	{/foreach}
		<tr>
			<td colspan="6" class="noborder">
				<a href="{url mainSite=add mainType=1}" class="floatRight"><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
			</td>
		</tr>
	</table>


<br />
<b>Oczekujące</b>
			    
			    
	<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
	{foreach from=$arrayObjMainNewsTopWaiting item=objMainNewsTopWaiting name=top}
	{assign var=objArticle value=$objMainNewsTopWaiting->GetMainArticleObj()}
	<tr>
			<td width="1"></td>
			<td width="35">&nbsp;{$smarty.foreach.top.iteration}
				<!--<select>
					<option>-</option>
					<option>1</option>
					<option>2</option>
					<option>3</option>
					<option>4</option>
					<option>5</option>
				</select>-->
			</td>
			<td width="35"><a href="{url mainSite=SetPublication id=$objMainNewsTopWaiting->GetId()}" alt="publikuj" >publikuj</a> </td>
			<td><a href="{url mainSite=Edit id=$objMainNewsTopWaiting->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
			<td width="100">{$objMainNewsTopWaiting->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
			<td width="30"><a href="{url mainSite=delete id=$objMainNewsTopWaiting->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>
		</tr>
		{/foreach}
	</table>
{/dropDownContainer}

{*dropDownContainer title="Polecamy"}
<br />
<b>Opublikowane</b>
   
			 <form style="float:right;" method="post"  action="{url mainSite=SetCountRecommend}" name="Count" >
				<select name="count" onchange="document.forms['Count'].submit()" > 
				<option {if $subPromoCount == 3}  selected {/if}>3</option>
				<option {if $subPromoCount == 6}  selected {/if}>6</option>
			
				</select>
				</form>

	<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
	
	{foreach from=$arrayObjMainRecommend item=objMainRecommend name=recommend key=k}
	{assign var=objArticle value=$objMainRecommend->GetMainArticleObj()}
		<tr>
			<td width="1"></td>
			<td width="35">{if $objMainRecommend->GetBlockade() gt 0}<a href="{url mainSite=blockade id=$objMainRecommend->GetId() place=0}" class="iconDeleteThread"></a>{else}<a href="{url mainSite=blockade id=$objMainRecommend->GetId() place=$k}" class="iconOpenThread"></a>{/if}</td>
			<td width="35"><a href="{url mainSite=sort id=$objMainRecommend->GetId() mainType=2 direct=up}"><img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" /></a> <a href="{url mainSite=sort id=$objMainRecommend->GetId() mainType=2 direct=down}"><img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" /></a></td>
			<td><a href="{url mainSite=Edit id=$objMainRecommend->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
			<td width="100">{$objMainRecommend->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
			<td width="30"><a href="{url mainSite=delete id=$objMainRecommend->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>
		</tr>
		{/foreach}
		<tr>
			<td colspan="6" class="noborder">
				<a href="{url mainSite=add mainType=2}" class="floatRight"><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
			</td>
		</tr>
	</table>


<br />
<b>Oczekujące</b>
			    
			    
	<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
		{foreach from=$arrayObjMainRecommendWaiting item=objMainRecommendWaiting name=recommend}
		{assign var=objArticle value=$objMainRecommendWaiting->GetMainArticleObj()}
		<tr>
			<td width="1"></td>
			<td width="35">
			<form method="post"  action="{url mainSite=SetWeight  id=$objMainRecommendWaiting->GetId()}" name="weight{$objMainRecommendWaiting->GetId()}" >
				<select name="weight_{$objMainRecommendWaiting->GetId()}" onchange="document.forms['weight{$objMainRecommendWaiting->GetId()}'].submit()" >
				{foreach from=$arraySubPromoWeight item=weight}
					<option {if $weight == $objMainRecommendWaiting->GetWeight()}  selected {/if}>{$weight|replace:"0":""}</option>
				{/foreach}
				</select>
				</form>
			</td>
			<td width="35"><a href="{url mainSite=SetPublication id=$objMainRecommendWaiting->GetId()}" alt="publikuj" >publikuj</a> </td>
			<td><a href="{url mainSite=Edit id=$objMainRecommendWaiting->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
			<td width="100">{$objMainRecommendWaiting->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
			<td width="30"><a href="{url mainSite=delete id=$objMainRecommendWaiting->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>
		</tr>
		{/foreach}
	</table>
{/dropDownContainer*}


{dropDownContainer title="Aktualności"}
<br />
<b>Opublikowane</b>
			    
			    
	<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
	{foreach from=$arrayObjMainNews item=objMainNews name=news key=k}
		{assign var=objArticle value=$objMainNews->GetMainArticleObj()}
		<tr>
			<td width="5">
				{$smarty.foreach.news.iteration}
			</td>
			<td width="35">
				{if $objMainNews->GetBlockade() gt 0}
					<a href="{url mainSite=blockade id=$objMainNews->GetId() place=0}" class="iconDeleteThread"></a>
				{else}
					<a href="{url mainSite=blockade id=$objMainNews->GetId() place=$k}" class="iconOpenThread"></a>
				{/if}
				</td>
			<td width="35">
				<a href="{url mainSite=sort id=$objMainNews->GetId() mainType=3 direct=up}">
					<img src="{$urlStatic}/image/Admin/adminArrowUp.gif" alt="góra" title="góra" border="0" />
				</a>
				<a href="{url mainSite=sort id=$objMainNews->GetId() mainType=3 direct=down}">
					<img src="{$urlStatic}/image/Admin/adminArrowDown.gif" alt="dół" title="dół" border="0" />
				</a>
			</td>
			<td>
				<a href="{url mainSite=Edit id=$objMainNews->GetId()}"><b>{$objArticle->GetTitle()}</b></a>
			</td>
			<td width="100">
				{$objMainNews->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}
			</td>
			<td width="30">
				<a href="{url mainSite=delete id=$objMainNews->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
			</td>
		</tr>
		{/foreach}

		<tr>
			<td colspan="6" class="noborder">
				<a href="{url mainSite=add mainType=3}" class="floatRight"><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
				{*<input class="floatRight button buttonNowy" value=""  onclick="javascript:window.location.replace('{url mainSite=add mainType=3}');" type="submit"/><div class="floatRight"><input type="checkbox" name="" /> automatyczny&nbsp;&nbsp;&nbsp;</div>*}
			</td>
		</tr>
	</table>


<br />
<b>Oczekujące</b>
			    
			    
	<table cellpadding="7" cellspacing="0" border="0" class="tableContentData2" width="100%">
	{foreach from=$arrayObjMainNewsWaiting item=objMainNewsWaiting name=news}
		{assign var=objArticle value=$objMainNewsWaiting->GetMainArticleObj()}
		<tr>
			<td width="1"></td>
			<td width="35">
				<form method="post"  action="{url mainSite=SetWeight  id=$objMainNewsWaiting->GetId()}" name="weight{$objMainNewsWaiting->GetId()}" >
				<select name="weight_{$objMainNewsWaiting->GetId()}" onchange="document.forms['weight{$objMainNewsWaiting->GetId()}'].submit()" >
				{foreach from=$arrayNewsWeight item=weight name=newsWaight}
					<option {if $weight == $objMainNewsWaiting->GetWeight()}  selected {/if}>{if $smarty.foreach.newsWaight.first}{else}{$weight}{/if}</option>
				{/foreach}
				</select>
				</form>
			</td>
			<td width="35"><a href="{url mainSite=SetPublication id=$objMainNewsWaiting->GetId()}" alt="publikuj" >publikuj</a></td>
			<td><a href="{url mainSite=Edit id=$objMainNewsWaiting->GetId()}"><b>{$objArticle->GetTitle()}</b></a></td>
			<td width="100">{$objMainNewsWaiting->GetDatePublication()|date_format:"%d.%m.%Y, %H:%M"}</td>
			<td width="30"><a href="{url mainSite=delete id=$objMainNewsWaiting->GetId()}" onclick="{literal}if(confirm('Czy napewno usunąć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a></td>

		</tr>
		{/foreach}
		
	</table>
{/dropDownContainer}
</div>
		</div>
		<div class="panelRightBottom">
			<div class="panelButtons">
					
			</div>
		</div>
