73 lines
3.9 KiB
Smarty
73 lines
3.9 KiB
Smarty
{dropDownContainer title=$moduleName|default:"Treść" icon=$moduleBoxConfg['element_list'] moduleBoxId=$moduleBoxId setupBox="setupBox_element_list" publish=$param.modulePublication}
|
|
|
|
{*<div class="optionIcon">
|
|
<a class="iconEdit" href="{url Structure='Add'}" title="Ustawienia"> </a>
|
|
</div>*}
|
|
<div class="setupBox" id="setupBox_element_list">
|
|
<p>{$moduleBoxId}</p>
|
|
{if $admin->GetRole() != 'headmaster'}
|
|
<a class="optionIcon iconPublishOn" id="publish_{$moduleBoxId}" title="Publikuj moduł" href="#" onclick="$('#publish_{$moduleBoxId}').addClass('iconPublishOff'); $('#publish_{$moduleBoxId}').removeClass('iconPublishOn'); return false;"> </a>
|
|
<a class="optionIcon iconPublishOff" title="Publikuj moduł" href="#" onclick=""> </a>
|
|
{/if}
|
|
|
|
</div>
|
|
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
|
<tr>
|
|
<th>id</th>
|
|
<th>tytuł</th>
|
|
<th>data publikacji</th>
|
|
<th>publikacja</th>
|
|
{if $idCategory == 9999}
|
|
<th>kategoria</th>
|
|
{/if}
|
|
{*<th>Polecany</th>*}
|
|
<th style="width: 40px; text-align: center;" >
|
|
<a class="optionIcon iconAdd" title="{'Add'|translateAdmin}" href="{url SimpleArticle_Index=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element struktury'); return false;" {/if}> </a>
|
|
|
|
{* <a href="{url SimpleArticle_Index=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element 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}
|
|
{assign var=idCat value=$obj->GetIdCategory()}
|
|
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
|
|
<td>{$obj->GetId()}</td>
|
|
<td>{$obj->GetTitle()}</td>
|
|
<td>{$obj->GetDatePublication()}</td>
|
|
<td>{if $obj->GetPublication()}p*{/if}</td>
|
|
{if $idCategory == 9999}
|
|
<td>{$obj->GetCategoryNameTest($idCat)}</td>
|
|
{/if}
|
|
{*<td id="special_info_{$obj->GetId()}" onclick="Special('{$obj->GetId()}', document.getElementById('special_{$obj->GetId()}').value, '{url SimpleArticle_Index=special}'); return false;"> <a href="#" title="zmień">{$obj->GetSpecial()|replace:"0":"Nie"|replace:"1":"Tak" }</a> </td>*}
|
|
<td style="text-align: center;">
|
|
<a class="optionIcon iconEdit" title="Edytuj" href="{url SimpleArticle_Index=Edit idArticle=$obj->GetId() idElement=$idElement}"> </a>
|
|
{if $admin->GetRole() != 'moderator'}
|
|
<a class="optionIcon iconDelete" title="Usuń" href="{url SimpleArticle_Index=Delete idArticle=$obj->GetId() idElement=$idElement}" onclick="{literal}if (ConfirmAction('Czy napewno usunęć ten element?', '{/literal}{url SimpleArticle_Index=Delete idArticle=$obj->GetId() idElement=$idElement}{literal}')) { } else {return false;}{/literal}"> </a>
|
|
{/if}
|
|
</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 artykułó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 struktury.</td>
|
|
</tr>
|
|
{/if}
|
|
</table>
|
|
{/dropDownContainer} |