File size: 1.06Kb
<?
if (isset($_GET['act']) && $_GET['act']=='rename')
{
echo "<form class='foot' action='?act=rename&ok' method=\"post\">";
echo "Название:<br />\n";
echo "<input name='name' type='text' value='$foto[name]' /><br />\n";
echo "Описание:<br />\n";
echo "<textarea name='opis'>".esc(stripcslashes(htmlspecialchars($foto['opis'])))."</textarea><br />\n";
echo "<input class='submit' type='submit' value='Применить' /><br />\n";
echo "«<a href='?'>Отмена</a><br />\n";
echo "</form>";
}
if (isset($_GET['act']) && $_GET['act']=='delete')
{
echo "<form class='foot' action='?act=delete&ok' method=\"post\">";
echo "<div class='err'>Подтвердите удаление фотографии</div>\n";
echo "<input class='submit' type='submit' value='Удалить' /><br />\n";
echo "«<a href='?'>Отмена</a><br />\n";
echo "</form>";
}
echo "<div class=\"foot\">\n";
echo "»<a href='?act=delete'>Удалить</a><br />\n";
echo "»<a href='?act=rename'>Переименовать</a><br />\n";
echo "</div>\n";
?>