示例#1
0
<?php

$params = get_glob_content();
?>

<form method="POST">
    <ul class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#main" role="tab" data-toggle="tab">Основное</a></li>
        <li><a href="#secure" role="tab" data-toggle="tab">Безопасность</a></li>
        <?php 
actions_zone('settings_tabs');
?>
    </ul>

    <div class="tab-content">
        <div class="tab-pane active" id="main">
            <h3>Основные настройки</h3>
            <div class="row">
                <div class="field form-group col-lg-4">
                    <label><?php 
echo 'Имя сайта';
?>
</label>
                    <input name="site_name" type="text" class="form-control data-control" value="<?php 
echo $params['site_name'];
?>
" required>
                </div>
            </div>
            <div class="row">
                <div class="field form-group col-lg-4">
示例#2
0
<?php

$block = get_glob_content();
?>

<script>
$(function() {
    $('button[name="delete"]').click(function() {
        $.detconfirm('Вы действительно хотите удалить данный блок и весь связанный с ним контент с полями?', 'Внимание!', function(res) {
            if(res) {
                $('form').find('[name="action"]').val('delete');
                $('form').submit();
            }
        });
    });
});
</script>

<form method="POST">
    <div class="row">
        <div class="field form-group col-lg-5">
            <label>Код</label>
            <div class="input-group">
                <span class="input-group-addon"><i class="glyphicon glyphicon-barcode"></i></span>
                <input type="text" maxlength="60" name="code" class="form-control input-medium" value="<?php 
echo $block->code;
?>
" required/>
            </div>
        </div>
    </div>
示例#3
0
</textarea>
                    <p class="help-block">
                        <span class="glyphicon glyphicon-hand-right"></span> Теги &lt;? ?&gt; вводить не нужно.
                    </p>
                    <p class="help-block">
                        <span class="glyphicon glyphicon-hand-right"></span> Для SQL-запросов используйте глобальную переменную $DETDB.
                    </p>
                    <p class="help-block">
                        <span class="glyphicon glyphicon-hand-right"></span> Фатальные ошибки не предотвращаются.
                    </p>
                    <hr />
                    <button class="btn btn-primary"><span class="glyphicon glyphicon-flash"></span> Выполнить</button>
                </form>
            </div>
        </div>
        <div class="tab-pane<?php 
echo $tab ? ' active' : '';
?>
" id="output">
            <div class="code-output">
                <h3>Результат</h3>
                <form method="POST">
                    <textarea name="output" class="form-control" rows="10"><?php 
echo get_glob_content()[1];
?>
</textarea>
                </form>
            </div>
        </div>
    </div>
</div>
示例#4
0
<?php

$user = get_glob_content();
$default = get_option('default_group');
$rules = get_rules();
?>

<script>
$(function() {
    $('button[name="delete"]').click(function() {
        $.detconfirm('Вы действительно хотите удалить пользователя?', 'Внимание!', function(res) {
            if(res) {
                $('form').find('[name="action"]').val('delete');
                $('form').submit();
            }
        });
    });
});
</script>

<form method="POST">
    <ul class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#main" role="tab" data-toggle="tab">Основное</a></li>
        <li><a href="#rules" role="tab" data-toggle="tab">Права</a></li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="main">
            <h3>Основная информация</h3>
            <div class="row">
                <div class="field form-group col-lg-5">
                    <label>Логин</label>
示例#5
0
<?php

$groups = get_glob_content();
?>

<div id="groups-block" class="detwork-control">
    <div class="panel panel-default">
        <div class="panel-body">
            <b>Упраление группами: </b>
            <a role="button" class="btn btn-primary button-control" data-window="dialog-add" data-set-action="add_user_group"><span class="glyphicon glyphicon-list-alt"></span> Добавить группу</a>
        </div>
    </div>

    <?php 
if (is_array($groups) && count($groups) > 0) {
    ?>
        <table class="table table-striped editable-table table-hover table-bordered" width="100%">
            <thead>
                <tr>
                    <th width="5%">ID</th>
                    <th width="15%">Код</th>
                    <th>Имя</th>
                    <th>Права</th>
                </tr>
            </thead>
            <tbody>
                <?php 
    foreach ($groups as $item) {
        ?>
                    <tr class="parenter">
                        <td data-id="<?php 
示例#6
0
<?php

push_output_message(array('title' => 'Внимание!', 'text' => 'Редактирование опций предназначенно для "простых" (строк и 1-х массивов) данных.', 'type' => 'warning', 'class' => 'alert alert-warning', 'closed' => false));
$options = get_glob_content();
?>

<div id="options-block" class="detwork-control">
    <div class="panel panel-default">
        <div class="panel-body">
            <b>Упраление опциями: </b><a role="button" class="btn btn-primary button-control" data-window="option-edit" data-set-action="add_option"><span class="glyphicon glyphicon-cog"></span> Добавить опцию</a>
        </div>
    </div>
    <?php 
if (is_array($options) && count($options) > 0) {
    ?>
        <table class="table table-striped table-hover table-bordered">
            <thead>
                <tr>
                    <th width="5%">ID</th>
                    <th width="10%">Код</th>
                    <th width="20%">Имя</th>
                    <th>Значение</th>
                </tr>
            </thead>
            <tbody>
                <?php 
    foreach ($options as $item) {
        ?>
                    <tr class="parenter">
                        <td data-id="<?php 
        echo $item->ID;
示例#7
0
<?php

$keys = get_glob_content();
?>

<div id="keys-block" class="detwork-control">
    <div class="panel panel-default">
        <div class="panel-body">
            <b>Упраление ключами: </b>
            <a class="btn btn-primary" href="<?php 
echo get_page_link('remote_keys_edit');
?>
"><span class="glyphicon glyphicon-cog"></span> Добавить ключ</a>
        </div>
    </div>

    <?php 
if (is_array($keys) && count($keys) > 0) {
    ?>
        <table class="table table-striped editable-table table-hover table-bordered" width="100%">
            <thead>
                <tr>
                    <th width="5%">ID</th>
                    <th width="15%">Имя</th>
                    <th>Ключ</th>
                    <th>Права</th>
                </tr>
            </thead>
            <tbody>
                <?php 
    foreach ($keys as $item) {
示例#8
0
文件: add.php 项目: taqtaq11/detemiro
<?php

$remote_key = get_glob_content();
$rules = get_rules();
?>

<script>
$(function() {
    function set_remote_key(res) {
        if($.get_property(res, 'action', 'data')) {
            $('[name="key_value"]').val(res.action['data']);
        }
    }
    $.add_function(set_remote_key);
});
</script>

<form method="POST" class="detwork-control">
    <fieldset>
        <legend>Основная информация</legend>
        <div class="row">
            <div class="field form-group col-lg-5">
                <label>Имя ключа</label>
                <input type="text" name="name" class="form-control input-medium" value="<?php 
echo $remote_key->name;
?>
" required/>
            </div>
        </div>
        <div class="row">
            <div class="field form-group col-lg-5">
示例#9
0
<?php

$active = get_option('active_modules');
$list = get_glob_content();
?>

<div id="modules-panel" class="detwork-control">
    <?php 
if ($list && is_array($list) && count($list) > 0) {
    ?>
        <table width="100%" class="table table-striped table-hover table-bordered">
            <thead>
                <tr>
                    <th width="20%">Название</th>
                    <th>Описание</th>
                    <th width="5%">Версия</th>
                </tr>
            </thead>
            <tbody>
            <?php 
    foreach ($list as $item) {
        ?>
                <?php 
        $key = null;
        $in = ($key = array_multi_search($item['path'], $active, 0)) !== null ? true : false;
        $on = $in && $active[$key][1] ? true : false;
        echo '<tr class="parenter ';
        if ($in) {
            echo 'installed';
            if ($on) {
                echo ' success';
示例#10
0
<?php

$groups = get_users_groups();
$rules = get_glob_content();
$main_ID = isset($_GET['group']) ? $_GET['group'] : 1;
$current_group = get_user_group($main_ID, 'rules');
if ($current_group) {
    $current_group = $current_group->rules;
    $current_group = check_json($current_group) ? json_decode($current_group, false) : array();
}
?>

<div id="rules-panel">
    <div class="panel panel-default detwork-control">
        <div class="panel-body">
            <b>Упраление правами: </b>
            <a role="button" class="btn btn-primary button-control" data-window="dialog-add" data-set-action="add_rule"><span class="glyphicon glyphicon-certificate"></span> Добавить право</a>
            <form methot="GET" class="pull-right">
                <input type="hidden" name="page" value="<?php 
echo get_current_key();
?>
" />
                <select name="group" onchange="this.form.submit()" class="form-control">
                    <?php 
foreach ($groups as $item) {
    echo '<option value="' . $item->ID . '"' . ($main_ID == $item->ID ? ' selected' : '') . '>' . $item->name . '</option>';
}
?>
                </select>
            </form>
        </div>
示例#11
0
文件: add.php 项目: taqtaq11/detemiro
<?php

$event = get_glob_content();
$try = get_option('calendar_events_range');
?>

<?php 
if ($try) {
    ?>
    <div id="show_graphic">
        <h3>Ближайшие мероприятия в диапазоне 10 часов <a class="btn-hide btn btn-warning btn-xs pull-right">скрыть</a></h3>
        <div class="table_show">
        <?php 
    if ($event) {
        $start_date = date('Y-m-d H:i', strtotime($event['date_start']) - 36000);
        $end_date = $event['date_end'] && $event['date_end'] > 0 ? date('Y-m-d H:i', strtotime($event['date_end']) + 36000) : date('Y-m-d H:i', strtotime($event['date_start']) + 36000);
        show_calendar_events(array('limit' => 15, 'exclude_ID' => isset($event['ID']) ? $event['ID'] : '', 'start' => $start_date, 'end' => $end_date, 'type' => 'range'));
    }
    ?>
        </div>
    </div>
    <br />
<?php 
}
?>

<div id="add_event">
    <form method="POST" action="index.php?page=<?php 
echo get_current_key() . (isset($event['ID']) ? '&event_id=' . $event['ID'] : '');
?>
">