Файл: foto/inc/gallery_form.php
Строк: 51
<?php
if (isset($user) && $user['id'] == $ank['id']) {
    if (isset($_GET['act']) && $_GET['act'] == 'create') {
        echo "<form class="list-group-item" action='?act=create&ok&page=$page' method="post">";
        echo lang("Название альбома") . ":<br />";
        echo "<input type='text' class='form-control' name='name' value='' />n";
        if ($user['set_translit'] == 1) {
            echo "<label class='c-input c-checkbox'><input type="checkbox" name="translit1" value="1" /><span class='c-indicator'></span> " . lang("Транслит") . "</label><br />n";
        }
        echo lang("Описание") . ":<br />n";
        echo "<textarea name='opis' class='form-control'></textarea>n";
        if ($user['set_translit'] == 1) {
            echo "<label class='c-input c-checkbox'><input type="checkbox" name="translit2" value="1" /><span class='c-indicator'></span> " . lang("Транслит") . "</label><br />n";
        }
        echo "<button class='btn btn-success' type='submit'>" . lang("Создать") . "</button> ";
        echo "<a class='btn btn-secondary' href='?'>" . lang("Отмена") . "</a><br />n";
        echo "</form>";
    }
    echo "<div class='list-group-item'>n";
    echo "<a href='/foto/$ank[id]/?act=create'><span class='fa fa-plus fa-fw'></span> " . lang("Новый фотоальбом") . "</a>n";
    echo "</div>n";
}