	{dropDownContainer title="Lista"}
			<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
				<tr>
					<th>id</th>
					<th>nazwa</th>
					<th>data publikacji</th>
					<th>publikacja</th>
					<th width="60">
						<a href="{url Product=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element do struktury');  return false;" {/if}><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
					</th>
				</tr>
				{if !isset($add)}
				{assign var=x value=1}
				{foreach from=$arrayObj item=obj name=obj}
				
					<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
						<td>{$obj->GetId()}</td>
						<td>{$obj->GetName()}</td>
						<td>{$obj->GetDate()}</td>
						<td>{if $obj->GetPublication()}p*{/if}</td>
						<td style="text-align: center;">
							<a href="{url Product=Edit idProduct=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
							<a href="{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}" 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 $smarty.foreach.obj.last}
						<tr>
							<td colspan="10" align="center" >
								<div class="paging">
									{insertPagination}
								</div>
							</td>
						</tr>
					{/if}
				{foreachelse}
					{if !isset($searchString) || $searchString == ""}
						<tr>
							<td colspan="5" style="text-align: center;">Brak zdefiniowanych produktów. <br/> Aby dodać kliknij link 'dodaj'.</td>
						</tr>
					{/if}
				{/foreach}
				{else}
					<tr>
						<td colspan="5" style="text-align: center;">Aby dodać wpis, proszę zapisać element do struktury.</td>
					</tr>
				{/if}
			</table>
	{/dropDownContainer}