static function isLoggedOrDie($init) { global $_TB_IDENTITY; if ($init->user->isLogged) { return true; } else { App::$instance->log->logWrite(LOG_SECURITY, "Restricted access: Try to enter logged only allowed zone"); ST::redirectToCaRoute("AuthNew/login&return=" . FrontController::whereIm() . "/" . FrontController::getParams()); // echo ExceptionHandler::showEmptyMessage("Страница доступна только зарегистрированным пользователям, пожалуйста, войдите в систему <a href='" . HTTP_PATH."?route=AuthNew/login&return=" . FrontController::whereIm()."/".FrontController::getParams() . "' '>здесь</a> используя логин для <b>ТБ ".$_TB_IDENTITY[MY_NODE]['humanName']."</b>"); // exit; } }
header('refresh:60'); include_once CORE_REPOSITORY_REAL_PATH . "views/main.php"; $asrt = new FlotGraphAssert(); $asrt->init(); ?> <script type='text/javascript'> <?php echo "var plotTicks = " . json_encode($graph->plotTicks) . ";\n"; echo "var randomData = " . json_encode($graph->data) . ";\n"; echo "var thresholdCou = " . json_encode($graph->threshold) . ";\n"; ?> </script> <div class="container"> <div class="col-lg-12" style="margin-bottom: 200px;"> <h3>График нагрузки на <?php echo date_create(FrontController::getParams())->format("d.m.Y"); ?> <span class="pull-right"><input id="dp_another_date" class="hidden" disabled/><button type="button" class="btn btn-default btn-sm" id="btn_another_date">Другая дата</button> </span></h3> <hr> <div class="demo-container"> <div> <div id="placeholder" class="demo-placeholder" style="width:100%;height:450px"></div> </div> <div class="clearfix"></div> <div><button class="btn btn-default btn-sm pull-right" id="reset" type="button">Сброс</button></div> </div> </div>
<!-- deploy breadcrumps --> <div class="breadcrumb-container"> <a href="?route=AttendanceNew/show/1" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-home"></span></a> <?php if ($data['breadCrumps']) { ?> <?php foreach ($data['breadCrumps'] as $point) { ?> <a href="?route=AttendanceNew/show/<?php echo $point->id; ?> " class="btn btn-default btn-sm <?php if (FrontController::getParams() == $point->id) { echo "btn-info"; } ?> "><?php echo $point->name; ?> </a> <?php } ?> <?php } ?> </div> <!-- !deploy breadcrumps -->