Example #1
0
function GetSaveDeleteCloseButtonsHTML($ShowSaveAndStay = true, $ShowDelete = false, $ShowSaveAndClose = true, $ShowClose = true)
{
    if ($ShowSaveAndStay == true) {
        echo '<button name="SaveAndStayBtn" type="submit" class="btn btn-primary submit_changes_control">' . GetLoaderImageHTML() . 'Сохранить</button>';
    }
    if ($ShowSaveAndClose == true) {
        echo '<button name="SaveAndCloseBtn" type="submit" class="btn btn-success submit_changes_control">' . GetLoaderImageHTML() . 'Сохранить и закрыть</button>';
    }
    if ($ShowClose == true) {
        echo '<button name="CloseBtn" type="submit" class="btn btn-warning submit_control">Закрыть</button>';
    }
    if ($ShowDelete == true) {
        echo '<button name="DeleteBtn" type="submit" class="btn btn-default delete_record_control">Удалить запись</button>';
    }
}
Example #2
0
if (!isset($_SESSION['auth']) || empty($_SESSION['auth']['firstname'])) {
    ?>
                    <div class="enter_field" style="margin-bottom: 10px;">
                        <input type="text" placeholder="Ваше имя" id="UserNameEdt" name="UserNameEdt" class="required enter_input" style="float: left; width: 550px;" />
                    </div>
                <?php 
}
?>

                <div class="enter_field">
                    <label id="CommentLengthLbl" class="CommentLength" style="width:550px;">Осталось 500 символов</label>
                    <textarea rows="4" maxlength="500" placeholder="Введите текст комментария" id="CommentEdt" name="CommentEdt" class="required enter_input" style="float:left; width:550px; font-family: Arial, Helvetica, sans-serif;"></textarea>
                </div>
                <div class="enter_field" style="margin-bottom: 0px;">
                    <button id="ajax_AddCommentBtn" name="ajax_AddCommentBtn" type="submit" class="newbutton float_left" style="margin-right: 20px;"><?php 
echo GetLoaderImageHTML('loader3.gif');
?>
Добавить</button>
                    <?php 
if (!isset($_SESSION['auth']) || empty($_SESSION['auth']['email'])) {
    ?>
                        <div class="MyCheckBox">
                            <input id="IsNotifyRecipientActiveEdt" name="IsNotifyRecipientActiveEdt" type="checkbox" disabled/>
                            <label for="IsNotifyRecipientActiveEdt" class="isdisabled" disabled>Уведомлять меня о новых комментариях на эл. почту</label><br/>
                            <label style="padding-left: 10px;">(Доступно только <a class="normal_link" href="/auth/registration">зарегистрированным</a> пользователям!)</label>

                        </div>
                    <?php 
} else {
    ?>
                        <div class="MyCheckBox">