prokat/api/modules/deldubcat/pages_list.html
2025-06-16 18:28:08 +05:00

31 lines
1.7 KiB
HTML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- Список страниц -->
{*assign var=json value=$cats[customer].json|uns *}
{*
<!---->
09.01.2022: вынесено в отдельный файл, подключаем со значением massiv, как и файл с категориями
<!---->
*}
{section name=customer loop=$massiv} {if $massiv[customer].id}
<tr id="tr_cat_{$massiv[customer].id}">
<td width=150px>
<a href="/tovar_show/{$massiv[customer].id}" target="_blank" title="Открыть на сайте">
<img src="/api/img/gray/gif/gray.gif" data-original="/img/{$smarty.server.SERVER_NAME}/tovar/{$massiv[customer].img}.jpg" class="lazy" style="width: 100%;">
</a>
<div class="btn-group mt-3 mb-3" role="group" aria-label="Basic example">
<a type="button" class="btn btn-primary" href="/tovar_show/{$massiv[customer].id}" target="_blank" title="Открыть на сайте"><i class="far fa-folder-open"></i></a>
<a type="button" class="btn btn-primary" href="/a_new_tovar/{$massiv[customer].id}"><i class="far fa-edit"></i></a>
<button type="button" class="btn btn-primary del_page" data-bs-toggle="modal" data-bs-target="#modal_del_page" data-id="{$massiv[customer].id}"><i class="far fa-trash-alt"></i></button>
</div>
</td>
<td>
{$massiv[customer].title}
<hr>
Цена: <span class="q_cena">{$massiv[customer].cena}</span> р. |
</td>
<td><p><label class="ui-checkbox"><input type="checkbox" {if $massiv[customer].status==1} checked {/if} class="check-status-tovar" data-id="{$massiv[customer].id}"><span class="input-span"></span>Опубликована</label></p></td>
</tr>
{/if} {/section}