26 lines
982 B
HTML
Executable File
26 lines
982 B
HTML
Executable File
{include file=$header_admin h1="Настройка слайдов" title="Настройка слайдов"}
|
|
<table class=table>
|
|
{section name=customer loop=$sliders}
|
|
{if $sliders[customer].id}
|
|
<tr>
|
|
<td style="width: 250px;">
|
|
<img src="/img/slider/{$sliders[customer].img}.jpg" style="width: 100%;">
|
|
</td>
|
|
<td>
|
|
{$sliders[customer].h3}<br>
|
|
{$sliders[customer].txt}<br>
|
|
{$sliders[customer].link}<br>
|
|
<a href="/slider_edit/{$sliders[customer].id}">Удалить</a>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
{/section}
|
|
</table>
|
|
<form action="" method=post enctype='multipart/form-data'>
|
|
<input type="file" class=form-control name='img'>
|
|
<input type="text" name="h3" placeholder="Заголовок слайда" class="form-control">
|
|
<input type="text" name="txt" placeholder="Текст" class="form-control">
|
|
<input type="text" name="link" placeholder="Ссылка" class="form-control">
|
|
<input type="submit" name="ok" value="Добавить" class="btn btn-success">
|
|
</form>
|