63 lines
2.9 KiB
Smarty
63 lines
2.9 KiB
Smarty
{dropDownContainer title=$moduleName|default:"Lista" icon=$moduleBoxConfg['files'] moduleBoxId=$moduleBoxId}
|
|
<div class="container" style="max-height: 500px; overflow-y: auto;">
|
|
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
|
<tr>
|
|
<th>id</th>
|
|
<th>nazwa</th>
|
|
<th>miasto</th>
|
|
<th>adres</th>
|
|
<th>koordynaty</th>
|
|
<th>typ</th>
|
|
<th>publikacja</th>
|
|
<th>waga</th>
|
|
{*<th>Polecany</th>*}
|
|
<th style="width: 40px; text-align: center;" >
|
|
<a class="optionIcon iconAdd" title="EdDodajytuj" href="{url Maps=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element struktury'); return false;" {/if}> </a>
|
|
</th>
|
|
</tr>
|
|
{if !isset($add)}
|
|
{assign var=x value=1}
|
|
{foreach from=$arrayObj item=obj name=obj}
|
|
{assign var=type value=$obj->GetType()}
|
|
<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->GetCity()}</td>
|
|
<td>{$obj->GetAddress()}</td>
|
|
<td>{$obj->GetLng()} - {$obj->GetLat()}</td>
|
|
<td>{$arrayMapsType[$type]}</td>
|
|
<td>{if $obj->GetPublication()}p*{/if}</td>
|
|
<td>{$obj->GetWeight()}</td>
|
|
{*<td id="special_info_{$obj->GetId()}" onclick="Special('{$obj->GetId()}', document.getElementById('special_{$obj->GetId()}').value, '{url Maps=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 Maps=Edit idMaps=$obj->GetId() idElement=$idElement}"> </a>
|
|
{if $admin->GetRole() != 'moderator'}
|
|
<a class="optionIcon iconDelete" title="Usuń" href="{url Maps=Delete idMaps=$obj->GetId() idElement=$idElement}" onclick="{literal}if (ConfirmAction('Czy napewno usunęć ten element?', '{/literal}{url Maps=Delete idMaps=$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>
|
|
</div>
|
|
{/dropDownContainer} |