{if $arrayArticle}
{if isset($id)}
{assign var=idForSort value='/id/'|cat:$id}
{assign var=method value='edit'}
{else}
{assign var=idForSort value=''}
{assign var=method value='add'}
{/if}
{*<div class="panelPowiazaniaContentTop"><a class="iconCatalogy paddingLeft20" href="#" onclick="LinkList('CategoryList'); return false; ">Kategorie</a></div>*}
<div id="CategoryListTop">
<table cellpadding="5" cellspacing="1" border="0" class="tableContentData tableContentData2" width="100%">
    <tr>
	<th align="left" width="64">{tableSort url="mainType/$mainType$idForSort/sortuj/kolejnosc/add/mainSite" field='mf_article.id_mf_article' title='ID' }</th>
	<th align="left" width="300">{tableSort url="mainType/$mainType$idForSort/sortuj/tytul/add/mainSite" field='mf_article_description.title' title='Nazwa' }</th>
	<th width="64" align="center">{tableSort url="mainType/$mainType$idForSort/sortuj/stan/add/mainSite" field='mf_article.publication' title='Stan' }</th>
	<th width="66"><b>Powiąż</b></th>
    </tr>
</div>
<div style="height: 0px; overflow: auto;" id="CategoryList">
    {foreach from=$arrayArticle item=Article name=Arts}
    {assign var=idArticleLink value=$Article->GetId()}
    {assign var=Desc value=$Article->GetDescriptionObj()}
    <tr id="mf_article_article_list[{$idArticleLink}]">
	<td width="64"><b>{$idArticleLink}</b>
	</td>
	<td width="300"><b>{$Desc->GetTitle()}</b></td>
	<td width="64" class="center">{$Article->GetPublication()}</td>
	<td width="66" class="center" align="center">
	    <input type="radio" {if isset($idSource) AND $idSource != '' AND $idArticleLink == $idSource} checked {elseif $idSource == '' AND $smarty.foreach.Arts.index == 0}checked{/if} name="mf_article_link" id="mf_article_link" value="{$idArticleLink}" onclick="Dosia.Request('{url mainSite=saveinsession id=$idArticleLink}');" />
	</td>
    </tr>
{foreachelse}
brak wyników...
{/foreach}
</table>
</div>
{if isset($search)}
	{pagination ajax=true class="" currPage=$currPage pageCount=$pageCount MainSite='AjaxList' id=$id search=$search}
{else}
	{pagination ajax=true class="" currPage=$currPage pageCount=$pageCount MainSite='AjaxList' id=$id }
{/if}
<div id="CategoryListBottom"></div>
{/if}