Файл: foto/inc/gallery_show_foto_form.php
Строк: 31
<?
if (isset($_GET['act']) && $_GET['act'] == 'rename')
{
?>
<div class="mess">
<form action="?act=rename&ok" method="post">
<input placeholder="Название" name="name" type="text" value="<?=text($foto['name'])?>" /><br />
<textarea placeholder="Описание" name="opis"><?=text($foto['opis'])?></textarea><br />
<label><input type="checkbox" name="metka" value="1" <?=($foto['metka'] == 1 ? "checked='checked'" : null)?>/> Метка <font color="red">18+</font></label><br />
<input class="submit" type="submit" value="Сохранить">
</form>
</div>
<?
}
if (isset($_GET['act']) && $_GET['act'] == 'delete')
{
?>
<div class="mess">
<table>
<form action="?act=delete&ok" method="post">
Подтвердите удаление фотографии
<td><input class="submit" type="submit" value="Удалить" /></td>
</form>
<form action="./">
<td><input class="submit" type="submit" value="Отмена" /></td>
</form>
</table>
</div>
<?
}
echo '<table style="text-align:center;" cellspacing="0" cellpadding="0">';
?>
<td><a style="border-right: none;" class="link" href="?act=avatar">Аватар</a></td>
<td><a style="border-right: none;" class="link" href="?act=rename">Изменить</a></td>
<td><a class="link" href="?act=delete">Удалить</a></td>
</table>