Файл: foto/inc/gallery_show_foto_form.php
Строк: 33
<?php
if (isset($_GET['act']) && $_GET['act'] == 'rename') {
echo "<div class = 'razdel'>Переименование<a style = 'float:right;color: grey;' href = '?'><small>Закрыть</small></a></div>";
echo "<form class = 'razd' action = '?act=rename&ok' method = 'post'>";
echo '<b>Название</b><br />';
echo "<input name = 'name' type = 'text' value = '$foto[name]' /><br />";
echo '<b>Описание:</b><br />';
echo "<textarea name = 'opis'>" . text::esc(stripcslashes(htmlspecialchars($foto['opis']))) . "</textarea><br />n";
echo "<button class = 'active'>";
echo "<span class = 'label'><span class = 'icon icon67' /> Сохранить</span>";
echo "</button></form>";
require_once '../sys/inc/tfoot.php';
exit();
}
if (isset($_GET['act']) && $_GET['act'] == 'delete') {
echo "<div class = 'razdel'>Удаление<a style = 'float:right;color: grey;' href = '?'><small>Закрыть</small></a></div>";
echo "<div class = 'errs'>Подтвердите удаление фотографии</div>";
echo "<form class = 'razd' action='?act=delete&ok' method = 'post'>";
echo "<button class = 'active'>";
echo "<span class = 'label'><span class = 'icon icon44' /> Удалить</span>";
echo "</button></form>";
require_once '../sys/inc/tfoot.php';
exit();
}
echo "<div class = 'razd'>";
echo "<a href = '?act=delete' class = 'add'>" . img('del.png') . " Удалить</a>";
echo "<a href = '?act=rename' class = 'add'>" . img('pen.png') . " Переименовать</a>";
echo "</div>";