This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
<tr class="selAllRow">
<td class="cornerTop"></td><td colspan="6">{*<a href="#">Zaznacz wszystkie</a>*} <a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a> {*<a href="#">publikuj</a><a href="#">nie publikuj</a>*}
</td>
</tr>
<tr>
<td class="selAll">&nbsp;</td>
<th>id</th>
<th>nazwa</th>
<th>data publikacji</th>
<th>publikacja</th>
<th>wyprzedaż</th>
<th>promocja</th>
<th>nowość</th>
<th>kolejność</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>
{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} id="row_{$obj->GetId()}">
<td class="selAll"><input name="deleteList[{$obj->GetId()}]" type="checkbox" value="{$obj->GetId()}" class="tf" /></td>
<td>{$obj->GetId()}</td>
<td>{$obj->GetName()}</td>
<td>{$obj->GetDate()}</td>
<td id="publicationList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetPublication('{url Product=AjaxPublication}', '{$obj->GetId()}', {$obj->GetPublication()}); return false;">{$obj->GetPublication()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
<td id="limitedList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetState('{url Product=AjaxLimited}', '#limitedList{$obj->GetId()}', '{$obj->GetId()}', {$obj->GetLimited()}); return false;">{$obj->GetLimited()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
<td id="saleList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetState('{url Product=AjaxSale}', '#saleList{$obj->GetId()}', '{$obj->GetId()}', {$obj->GetSale()}); return false;">{$obj->GetSale()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
<td id="newList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetState('{url Product=AjaxNew}', '#newList{$obj->GetId()}', '{$obj->GetId()}', {$obj->GetNew()}); return false;">{$obj->GetNew()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
<td id="weightList{$obj->GetId()}"><div onclick="WeightInput('{url Product=AjaxEditWeight}', '#weightList{$obj->GetId()}', '{$obj->GetId()}', '{$obj->GetWeight()}');" title="zmień">{$obj->GetWeight()}</div> </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="#" onclick="checkLang({$idElement},'{url Product=AjaxCeackLang idProduct=$obj->GetId() idElement=$idElement}', '{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
{if $smarty.foreach.obj.last}
<tr class="selAllRow">
<td class="cornerBottom"></td><td colspan="6">{*<a href="#">Zaznacz wszystkie</a>*}<a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a> {*<a href="#">publikuj</a> <a href="#">nie publikuj</a>*}
</tr>
<tr>
<td colspan="10" class="selAllRow" >
<div class="paging">
{insertPagination _class='pager'}
</div>
</td>
</tr>
{/if}
{foreachelse}
{if !isset($searchString) || $searchString == ""}
<tr>
<td class="selAll">&nbsp;</td>
<td colspan="9" style="text-align: center;">Brak zdefiniowanych elementów. <br/> Aby dodać kliknij link 'dodaj'.</td>
</tr>
{/if}
{/foreach}
</table>