Файл: modules/foto/inc/gallery_form.php
Строк: 62
<?php
/* DCMS S (Special)
* Версия файла 0.0.1
* Дата последнего редактирования 26.10.2015
* Модифицировал densnet
*/
if (isset($user) && $user['id'] == $ank['id']) {
if (isset($_GET['act']) && $_GET['act'] == 'create') {
$new_gallery_access = 'all';
echo "<div class = 'comm'>Новый альбом <a style = 'float:right;color: grey;' href = '?' title = 'Закрыть'><img src = '/style/icons/cancel.png'/></a></div>";
echo "<form class = 'comm' name = 'new' action = '?act=create&ok&page=$page' method = 'post'>";
echo '<b>Название альбома</b><br />';
echo "<input type = 'text' name = 'name' value = '' /><br />";
echo '<b>Описание</b><br />';
echo "<textarea name = 'opis'></textarea><br />";
echo "<b>Доступ:</b><br />n";
echo "<label><input type='radio' name='access' value='all'" . ($new_gallery_access == 'all' ? " checked='checked'" : null) . "/><img src = '/style/icons/vol.png'/> Всем<br /></label>";
echo "<label><input type='radio' name='access' value='only_me'" . ($new_gallery_access == 'only_me' ? " checked='checked'" : null) . "/><img src = '/style/icons/lock.png'/> Только мне<br /></label>";
echo "<label><input type='radio' name='access' value='auth'" . ($new_gallery_access == 'auth' ? " checked='checked'" : null) . "/><img src = '/style/icons/user.png'/> Только авторизованным<br /></label>";
echo "<label><input type='radio' name='access' value='friends'" . ($new_gallery_access == 'friends' ? " checked='checked'" : null) . "/><img src = '/style/icons/users.png'/> Только друзьям<br /></label>";
echo "<label><input type='radio' name='access' value='pass'" . ($new_gallery_access == 'pass' ? " checked='checked'" : null) . "/><img src = '/style/icons/key.png'/> Только по паролю <br /> <input name='password' size='16' maxlength='16' type='text' value=''/><br /></label>";
echo "<button class = 'button-green'>Добавить</button>";
echo "</form>";
require_once H . 'sys/inc/tfoot.php';
exit();
} else {
echo "<div class = 'comm'><a href = '" . DIR_FOTO . "$ank[id]/?act=create' style = 'color: #88C057;'><img src = '/style/icons/plus.png'/> Новый альбом</a></div>";
}
}