big-moving.ru/api/mod/t_cats.html

63 lines
2.8 KiB
HTML
Raw Normal View History

2022-06-24 15:29:23 +05:00
{include file=$header_admin title="Категории товара"}
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn btn-info" data-link="/t_cats_edit/">Создать категорию</button>
<button type="button" class="btn btn-info" data-link="/t_tovar_edit/">Создать товар</button>
</div>
<table class="table">
<tr><td>Название</td><td>Публикация</td><td>Меню</td><td>Действия</td></tr>
{if ($smarty.get.id)}
{if ($list[0].parent==0)}
<tr><td><a href="/t_cats/">Назад</a></td><td></td><td></td><td></td></tr>
{else}
<tr><td><a href="/t_cats/{$list[0].parent-1}">Назад</a></td><td></td><td></td><td></td></tr>
{/if}
{/if}
{section name=customer loop=$list}
{if $list[customer].id}
<tr>
<td><a href="/t_cats/{$list[customer].id}"><i class="far fa-folder"></i> {$list[customer].naim}</a></td>
<td>
{if ($list[customer].public==1)}
<i class="fas fa-genderless" style="color: green;font-size: 20pt;"></i>
{/if}
</td>
<td>
{if ($list[customer].show_mnu==1)}
<i class="fas fa-genderless" style="color: green;font-size: 20pt;"></i>
{/if}
</td>
<td>
<i class="far fa-file-alt" title="Информация" style="margin-right: 8px;"></i>
<a href="/t_cats_edit/{$list[customer].id}"><i class="far fa-edit" title="Изменить категорию" style="margin-right: 8px;"></i></a>
<i class="fas fa-times" title="Удалить категорию"></i>
</td>
</tr>
{/if}
{/section}
{section name=customer loop=$tovarlist}
{if $tovarlist[customer].id}
<tr>
<td><a href="/t_cats/{$tovarlist[customer].id}">
<img src="/api/img/gray/png/no_image.png" class="lazy" style="width:100px;" data-original="/img/magazin/cats/{$tovarlist[customer].img}_150_150.jpg">
{$tovarlist[customer].naim}
</a></td>
<td>
{if ($tovarlist[customer].public==1)}
<i class="fas fa-genderless" style="color: green;font-size: 20pt;"></i>
{/if}
</td>
<td>
{if ($tovarlist[customer].show_mnu==1)}
<i class="fas fa-genderless" style="color: green;font-size: 20pt;"></i>
{/if}
</td>
<td>
<i class="far fa-file-alt" title="Информация" style="margin-right: 8px;"></i>
<a href="/t_tovar_edit/{$tovarlist[customer].id}"><i class="far fa-edit" title="Изменить товар" style="margin-right: 8px;"></i></a>
<i class="fas fa-times" title="Удалить товар"></i>
</td>
</tr>
{/if}
{/section}
</table>
{include file=$footer_admin}