Вход Регистрация
Файл: templates/admincoreui/controllers/admin/index_chart.tpl.php
Строк: 79
<div id="chart" data-url="<?php echo $this->href_to('index_chart_data'); ?>" data-period="<?php html($defaults['period']); ?>" data-type="<?php html($defaults['type']); ?>">
    <div class="row mb-3">
        <div class="col-auto form-inline">
            <div class="form-group">
                <label class="mr-3 d-none d-md-block"><?php echo LANG_CP_DASHBOARD_STATS?></label>
                <select class="custom-select form-control">
                    <?php foreach($chart_nav as $section){ ?>
                        <optgroup label="<?php echo $section['title']; ?>">
                            <?php foreach($section['sections'] as $id => $link) { ?>
                                <?php if(empty($link['title'])){ continue; } ?>
                                <?php $is_active $defaults['controller']==$section['id'] && $defaults['section']==$id?>
                                <option data-ctrl="<?php echo $section['id']; ?>" data-section="<?php echo $id?><?php if ($is_active) { ?>selected="selected"<?php ?>>
                                    <?php echo $link['title']; ?>
                                </option>
                            <?php ?>
                        </optgroup>
                    <?php ?>
                </select>
            </div>
            <span id="chart-spinner" class="db_spinner sk-spinner sk-spinner-pulse bg-blue ml-3" data-percent="0%"></span>
        </div>
        <div class="col">
            <button id="toggle-type" class="d-none d-md-block btn <?php if($defaults['type'] == 'line'){ ?>btn-primary<?php } else { ?>btn-outline-secondary<?php ?> float-right" type="button">
                <i class="icon-graph"></i>
            </button>
            <div id="menu-period" class="btn-group btn-group-toggle float-sm-right mr-3">
                <label class="btn btn-outline-secondary<?php if ($defaults['period'] == 7) { ?> active<?php ?>">
                    <input type="radio" name="period" autocomplete="off"  <?php if ($defaults['period'] == 7) { ?> checked=""<?php ?> data-period="7" /> <?php echo LANG_WEEK?>
                </label>
                <label class="btn btn-outline-secondary<?php if ($defaults['period'] == 30) { ?> active<?php ?>">
                    <input type="radio" name="period" autocomplete="off" <?php if ($defaults['period'] == 30) { ?> checked=""<?php ?> data-period="30" /> <?php echo LANG_MONTH?>
                </label>
                <label class="btn btn-outline-secondary<?php if ($defaults['period'] == 365) { ?> active<?php ?>">
                    <input type="radio" name="period" autocomplete="off" <?php if ($defaults['period'] == 365) { ?> checked=""<?php ?> data-period="365" /> <?php echo LANG_YEAR?>
                </label>
            </div>
        </div>
    </div>
    <div class="chart-wrapper" style="position: relative; height:40vh; width:100%">
        <canvas class="chart" id="chart-canvas" role="img"></canvas>
    </div>
</div>
<div class="card-footer" id="chart-footer" style="display: none;">
    <div class="row text-center">
        <div class="col-sm-12 col-md mb-0" id="chart-footer-tpl" style="display: none;">
            <div class="callout m-0">
                <small class="text-muted"></small>
                <br>
                <strong class="h4"></strong>
            </div>
        </div>
    </div>
</div>
Онлайн: 2
Реклама