Файл: modules/foto/inc/gallery_form.php
Строк: 52
<?php
/* Мод "Фотоальбомы"
* Версия v0.0.3
* Дата последнего редактирования 23.04.2015
* Двиг DCMS Special
* Модифицировал densnet
* Файл gallery_form.php
* Описание: выводит информацию
*/
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 = '?'><small>Закрыть</small></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 "Давать доступ:<br />n";
echo "<label><input type='radio' name='access' value='all'" . ($new_gallery_access == 'all' ? " checked='checked'" : null) . "/>" . img('globe-small.png', '') . " Всем<br /></label>";
echo "<label><input type='radio' name='access' value='only_me'" . ($new_gallery_access == 'only_me' ? " checked='checked'" : null) . "/>" . img('lock-small.png', '') . " Только мне<br /></label>";
echo "<label><input type='radio' name='access' value='friends'" . ($new_gallery_access == 'friends' ? " checked='checked'" : null) . "/>" . img('user-small.png', '') . " Только друзьям<br /></label>";
echo "<label><input type='radio' name='access' value='pass'" . ($new_gallery_access == 'pass' ? " checked='checked'" : null) . "/>" . img('bullet_key.png', '') . " Только по паролю <br /> <input name='password' size='16' maxlength='16' type='text' value=''/><br /></label>";
echo "<label><input type='radio' name='access' value='auth'" . ($new_gallery_access == 'auth' ? " checked='checked'" : null) . "/>" . img('user_mini.png', '') . " Только авторизованным<br /></label>";
echo "<button class = 'flat blue md'>Добавить</button>";
echo "</form>";
require_once H . 'sys/inc/tfoot.php';
exit();
} else {
echo "<div class = 'comm'><a href = '" . DIR_FOTO . "$ank[id]/?act=create'>" . img('plus.png', '') . " Новый альбом</a></div>";
}
}