<?php
/* Smarty version 3.1.29, created on 2016-07-13 23:30:47
  from "/var/www/user179/data/www/evolutionmu.ru/views/templates/default/admin/index.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5786c11796d0f1_95049030',
  'file_dependency' => 
  array (
    '20cf00fdae797c04dd78f8a733f8c463b1e1d420' => 
    array (
      0 => '/var/www/user179/data/www/evolutionmu.ru/views/templates/default/admin/index.tpl',
      1 => 1468447030,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5786c11796d0f1_95049030 ($_smarty_tpl) {
?>

<?php echo '<script'; ?>
 type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/globalize/0.1.1/globalize.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript" src="http://cdn3.devexpress.com/jslib/15.2.5/js/dx.chartjs.js"><?php echo '</script'; ?>
>

<?php echo '<script'; ?>
 src="/web/templates/default/admin/js/jquery.knob.js"><?php echo '</script'; ?>
>
    <ul class="central-block-menu">
        <li class="central-menu-block-1"><a href="#">
                <i class="icon-cog"></i> General</a></li>
        <li class="central-menu-block-2"><a href="/admin/newsmanager"><i class="icon-file-alt"></i>News Manager</a></li>
        <li class="central-menu-block-3"><a href="/admin/templates"><i class="icon-paste"></i>Templates</a></li>
        <li class="central-menu-block-4"><a href="/admin/editor"><i class="icon-magic"></i>ExTeam Editor</a></li>
        <li class="central-menu-block-5"><a href="/admin/logout"><i class="icon-share-alt"></i>LOGOUT</a></li>
    </ul>
    <div class="general-block block-statistic">
        <div class="general-block-title">
            Quick statistics
        </div>
        <div id="chartContainer" style="width:100%;height: 600px"></div>
    </div>
    <div class="general-block block-storage">
        <div class="general-block-title">
            Cloud storage usage
        </div>
            <div style="margin-top: 10px;">
                    <span class="dial" type="text" data-width="250" readonly="readonly" data-displayprevious="true"><?php echo $_smarty_tpl->tpl_vars['SiteSpace']->value['procent_used_space'];?>
%</span>
                <div style="clear:both;"></div>
            </div>
            <p class="space-memory">
                Free space: <?php echo $_smarty_tpl->tpl_vars['SiteSpace']->value['string_free_space'];?>
<br />
                Used space: <?php echo $_smarty_tpl->tpl_vars['SiteSpace']->value['string_used_space'];?>
<br />
                Total space: <?php echo $_smarty_tpl->tpl_vars['SiteSpace']->value['string_all_space'];?>
 <br />
            </p>

        <?php echo '<script'; ?>
>
            $(function() {
                $(".dial").val('<?php echo $_smarty_tpl->tpl_vars['SiteSpace']->value['procent_used_space'];?>
');
                $(".dial").knob({
                    'readOnly':true
                });
            });
            var data = [
                { language: "Пн", number: 1,  avgTail: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Monday']['Visitors'];?>
, avgScratches: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Monday']['Views'];?>
 },
                { language: "Вт", number: 2,  avgTail: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Tuesday']['Visitors'];?>
, avgScratches: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Tuesday']['Views'];?>
 },
                { language: "Ср", number: 3,  avgTail: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Wednesday']['Visitors'];?>
, avgScratches: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Wednesday']['Views'];?>
 },
                { language: "Чт", number: 4,  avgTail: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Thursday']['Visitors'];?>
, avgScratches: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Thursday']['Views'];?>
 },
                { language: "Пт", number: 5,  avgTail: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Friday']['Visitors'];?>
, avgScratches: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Friday']['Views'];?>
 },
                { language: "Сб", number: 6,  avgTail: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Saturday']['Visitors'];?>
, avgScratches: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Saturday']['Views'];?>
 },
                { language: "Вс", number: 7,  avgTail: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Sunday']['Visitors'];?>
, avgScratches: <?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Sunday']['Views'];?>
 }
            ];


            $("#chartContainer").dxChart({
                dataSource: data,
                title: "",
                equalBarWidth: false,
                commonAxisSettings: {
                    grid: { visible: true }
                },
                commonPaneSettings: {
                    border: { visible: true }
                },
                commonSeriesSettings: {
                    argumentField: "language",
                    point: {
                        hoverMode: "allArgumentPoints",
                        selectionMode: "allArgumentPoints"
                    }
                },
                series: [{
                    valueField: "avgTail",
                    name: "Количество посетителей",
                    color: "#5F8B95"
                }, {
                    valueField: "avgScratches",
                    name: "Количество просмотров",
                    axis: "scratches",
                    color: "#BA4D51"
                }],
                argumentAxis: { hoverMode: "allArgumentPoints" },
                valueAxis: [{
                    title: {
                        text: "Количество уникальных посетителей",
                        font: {
                            color: "#5F8B95"
                        }
                    },
                    label: {
                        font: {
                            color: "#5F8B95"
                        }
                    }

                }, {
                    name: "scratches",
                    position: "right",
                    title: {
                        text: "Количество просмотренных страниц",
                        font: {
                            color: "#BA4D51"
                        }
                    },
                    label: {
                        font: {
                            color: "#BA4D51"
                        }
                    }
                }],
                legend: {
                    verticalAlignment: "bottom",
                    horizontalAlignment: "center",
                    itemTextPosition: "right"
                },
                tooltip: {
                    enabled: true,
                    customizeText: function() {
                    }
                }
            });

        <?php echo '</script'; ?>
>
        <a href="" class="general-link" style="font-size: 16px; text-decoration: none; color: #eaecf7;">Show my files <i class="icon-double-angle-right"></i></a>
    </div>
    </div<?php }
}
