Файл: modules/foto/inc/gallery_show_foto_form.php
Строк: 59
<?php
/* DCMS S (Special)
* Версия файла 0.0.1
* Дата последнего редактирования 27.10.2015
* Модифицировал densnet
*/
if (isset($_GET['act']) && $_GET['act'] == 'edit') {
echo "<div class = 'comm'>Редактирование<a style = 'float:right;color: grey;' href = '?'><small>Закрыть</small></a></div>";
echo "<div class = 'comm'>";
echo "<center><img src='/modules/foto/foto128/$foto[id].jpg' /><br /><a href='?act=edit&rotate=left'><img src = '/style/icons/a_left.png'/></a> <a href='?act=edit&rotate=right'><img src = '/style/icons/a_right.png'/></a></center>n";
echo "</div>";
echo "<form class = 'comm' action = '?act=edit&ok' method = 'post'>";
echo '<b>Название</b><br />';
echo "<input name = 'name' type = 'text' value = '$foto[name]' /><br />";
echo "<input type = 'checkbox' name = 'adult' value = '1'" . ($foto['adult'] == 1 ? " checked = 'checked'" : NULL) . " /> ";
echo "Фото для взрослых <span style='color: red;'>(+18)</span><br />n";
echo '<b>Описание:</b><br />';
echo "<textarea name = 'opis'>" . text::esc(stripcslashes(htmlspecialchars($foto['opis']))) . "</textarea><br />n";
echo "Кто может комментировать:<br />n";
echo "<label><input type = 'radio' name = 'komm' value = 'all'" . ($foto['komm'] == 'all' ? " checked = 'checked'" : NULL) . "/><img src = '/style/icons/vol.png'/> Все<br /></label>n";
echo "<label><input type = 'radio' name = 'komm' value = 'friends'" . ($foto['komm'] == 'friends' ? " checked='checked'" : NULL) . "/><img src = '/style/icons/users.png'/> Только друзья<br /></label>n";
echo "<label><input type = 'radio' name = 'komm' value = 'only_me'" . ($foto['komm'] == 'only_me' ? " checked='checked'" : NULL) . "/><img src = '/style/icons/lock.png'/> Только я<br /></label>n";
echo "<button class = 'button-green'>Сохранить</button>";
echo "</form>";
require_once H . 'sys/inc/tfoot.php';
exit();
}
if (isset($_GET['act']) && $_GET['act'] == 'delete') {
echo "<div class = 'comm'>Удаление<a style = 'float:right;color: grey;' href = '?'><small>Закрыть</small></a></div>";
echo "<div class = 'errs'>Подтвердите удаление фотографии</div>";
echo "<form class = 'comm' action='?act=delete&ok' method = 'post'>";
echo "<button class = 'button-green'>Удалить</button>";
echo "</form>";
require_once H . 'sys/inc/tfoot.php';
exit();
}
echo "<div class = 'comm'>";
echo "<a href = '?act=edit' style = 'color: #9777A8;'><img src = '/style/icons/set.png'/> Редактировать</a><br />";
echo "<a href = '?act=delete' style = 'color: #ED7161;'><img src = '/style/icons/del.png'/> Удалить</a>";
echo "</div>";