90 lines
5.0 KiB
HTML
90 lines
5.0 KiB
HTML
{include file=$header h1=$album[0].naim title=$album[0].naim} {if $smarty.session.user_id}
|
||
<section class="container">
|
||
|
||
<div class="btn-group" role="group" aria-label="Basic example">
|
||
<button type="button" class="btn btn-outline-dark" data-link="/foto_add_album/"><i class="fas fa-plus"></i> Добавить альбом</button>
|
||
<button type="button" class="btn btn-outline-dark" data-link="/foto_edit_album/{$smarty.get.id}"><i class="fas fa-edit"></i> Изменить альбом</button>
|
||
<button type="button" class="btn btn-outline-dark" data-modal="#del-album"><i class="fas fa-trash"></i> Удалить альбом</button>
|
||
<!-- input type="text" name="cena" value="{$album[0]['cena']}" id="change_cena" placeholder="Цена за альбом" data-id="{$smarty.get.id}" title="Цена за альбом" class="form-control" style="width: 200px;" -->
|
||
</div>
|
||
</section>
|
||
<div class="clearfix"></div>
|
||
{/if} {if $smarty.session.user_id==$album[0].user_id}
|
||
|
||
<div id="drop-area" class="container mt-2">
|
||
<form class="my-form">
|
||
<p>Загрузите фотографии</p>
|
||
<input type="file" id="fileElem" multiple accept="image/*" onchange="handleFiles(this.files)">
|
||
<label class="button" for="fileElem">Выбрать файлы</label>
|
||
</form>
|
||
<progress id="progress-bar" max=100 value=0></progress>
|
||
<div id="gallery"></div>
|
||
</div>
|
||
{else} {if $smarty.session.user_id}
|
||
|
||
<div class="alert alert-dark container" role="alert">
|
||
Купить альбом (с вашего счета спишется {$album[0]['cena']} р.)
|
||
</div>
|
||
{else}
|
||
<div class="alert alert-dark container" role="alert">
|
||
<a href="/login/">Войдите</a>, чтобы купить этот альбом в максимальном качестве
|
||
</div>
|
||
{/if} {/if}
|
||
<!-- gallery-section class="image-popup"
|
||
================================================== -->
|
||
<section class="gallery-section">
|
||
<div class="container">
|
||
|
||
{if $smarty.session.user_id==$album[0]['user_id']}
|
||
|
||
|
||
<table class="table">
|
||
{section name=customer loop=$foto} {if $foto[customer].id}
|
||
<tr id="tr_{$foto[customer].id}">
|
||
<td style="width: 400px;">
|
||
<a href="/foto_show/{$foto[customer].id}">
|
||
<img src="upload/gallery/g1.jpg" style="width: 100%;" data-original="/img/albums/{$foto[customer].user_id}/{$foto[customer].album_id}/{$foto[customer].img}.jpg" alt="" class="lazy">
|
||
</a>
|
||
</td>
|
||
<td>
|
||
<input type="text" value="{$foto[customer].naim}" name="naim" data-t="naim" data-id="{$foto[customer].id}" class="form-control mb-3 input-update" placeholder="Название">
|
||
<input type="text" value="{$foto[customer].tags}" name="tags" data-t="tags" data-id="{$foto[customer].id}" class="form-control mb-3 input-update" placeholder="Хештеги">
|
||
<input type="text" value="{$foto[customer].data_s}" name="data_s" data-t="data_s" data-id="{$foto[customer].id}" class="form-control mb-3 input-update" placeholder="Дата съемки (ДД.ММ.ГГГГ)">
|
||
<input type="text" value="{$foto[customer].t_info}" name="t_info" data-t="t_info" data-id="{$foto[customer].id}" class="form-control mb-3 input-update" placeholder="Техническая информация о снимке" title="Выдержка, ISO, Диафрагма и пр.">
|
||
<input type="checkbox" class="form-check-input audit" id="exampleCheck1" name="audit" data-t="audit" data-id="{$foto[customer].id}" {if ($foto[customer].audit=='1' )}checked{/if}>
|
||
<label class="form-check-label" for="exampleCheck1"><b>18+</b></label>
|
||
<textarea class="form-control input-update" placeholder="Описание" data-id="{$foto[customer].id}" data-t="opis" name="opis" data-t2="longtext">{$foto[customer].opis}</textarea>
|
||
<p>Рейтинг: {$foto[customer].reyt}</p>
|
||
<button type="button" class="btn btn-outline-dark mb-3 del-foto" data-t="del-foto" data-id="{$foto[customer].id}"><i class="fas fa-trash"></i> Удалить</button>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
|
||
{/if} {/section}
|
||
</table>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
{else}
|
||
<div class="gallery-box iso-call col3">
|
||
{section name=customer loop=$foto} {if $foto[customer].id}
|
||
<div class="gallery-post">
|
||
<img src="upload/gallery/g1.jpg" data-original="/img/albums/{$foto[customer].user_id}/{$foto[customer].album_id}/{$foto[customer].img}.jpg" alt="" class="lazy">
|
||
<div class="hover-box">
|
||
<h2><a href="/foto_show_album/{$albums[customer].id}">{$albums[customer].naim}</a></h2><br><br>
|
||
</div>
|
||
</div>
|
||
{/if} {/section}
|
||
</div>
|
||
|
||
{/if}
|
||
|
||
</div>
|
||
</section>
|
||
|
||
{include file="api/modules/foto_edit_album/modal.html"} {include file=$footer} |