You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
222 lines
9.1 KiB
222 lines
9.1 KiB
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>{% block title %}{% endblock %} - Точка кода</title>
|
|
<link rel="shortcut icon" href="/static/img/favicon.ico" type="image/x-icon">
|
|
<link rel="icon" href="/static/img/favicon.ico" type="image/x-icon">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
<meta name="description" content="Школа программирования - Точка Кода." />
|
|
<meta property="og:title" content="Точка Кода" />
|
|
<meta property="og:description" content="Школа программирования" />
|
|
<meta property="og:image" content="{{ DOMAIN }}static/img/3818cc0ec1.png" />
|
|
<link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/animate.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/font-awesome.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/simple-line-icons.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/font.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/app.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/aside.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/kladr.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/bootstrap-datepicker.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/bootstrap-datepicker.standalone.min.css" type="text/css" />
|
|
<link type="text/css" href="/static/css/csshake.min.css">
|
|
<link type="text/css" href="/static/css/jquery-ui.structure.min.css">
|
|
<link type="text/css" href="/static/css/jquery-ui.min.css">
|
|
<link href="/static/css/jquery.Jcrop.css" rel="stylesheet" />
|
|
<script type="text/javascript" src='/static/js/jquery.min.js'></script>
|
|
<script src="/static/js/jquery-ui.min.js"></script>
|
|
<script type="text/javascript" src='/static/js/bootstrap.min.js'></script>
|
|
<script src="//cdn.ckeditor.com/4.5.6/standard/ckeditor.js"></script>
|
|
<script type="text/javascript" src='/static/js/tools.js'></script>
|
|
{% block head %}
|
|
{% endblock %}
|
|
</head>
|
|
<body>
|
|
<div class="app app-header-fixed ">
|
|
<!-- header -->
|
|
<header id="header" class="app-header navbar " role="menu">
|
|
<!-- navbar header -->
|
|
<div class="navbar-header bg-info dker" style="min-width: 235px;">
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<button class="pull-right visible-xs " target=".navbar-collapse" style="padding: 12px 17px;">
|
|
<a href="/access/logout/"><i class="glyphicon glyphicon-log-out"></i></a>
|
|
</button>
|
|
<button class="pull-right visible-xs " target=".navbar-collapse" style="padding: 10px;">
|
|
<a href="/access/profile/" class="pull-right visible-xs ">
|
|
<span class="w-auto-folded avatar thumb-xs">
|
|
<img src="{{ request.user.get_image_url }}" class="img-circle" alt="..." reloader_name="avatar">
|
|
</span>
|
|
</a>
|
|
</button>
|
|
<!-- / navbar right -->
|
|
{% else %}
|
|
<button class="pull-right visible-xs " target=".navbar-collapse">
|
|
<a type="button" data-toggle="modal" data-target="#myModal1" ui-sref="access.signin"><i class="glyphicon glyphicon-log-out"></i></a>
|
|
</button>
|
|
<button class="pull-right visible-xs " target=".navbar-collapse">
|
|
<a type="button" data-toggle="modal" data-target="#myModal" ui-sref="access.signin"><i class="glyphicon glyphicon-plus"></i></a>
|
|
</button>
|
|
{% endif %}
|
|
<!-- brand -->
|
|
<a href="/" class="navbar-brand text-lt" style="padding-right: 0; padding-left: 10px;">
|
|
<img src="/static/img/logo.png" alt="." class="" style="width: 200px;">
|
|
</a>
|
|
|
|
<!-- / brand -->
|
|
</div>
|
|
<!-- / navbar header -->
|
|
|
|
<!-- navbar collapse -->
|
|
<div class="collapse navbar-collapse box-shadow bg-info dk">
|
|
<h2 style=" float: left;
|
|
color: #333;
|
|
font-weight: bold;
|
|
margin: 7px 0 7px 20px;">Кабинет «Отчеты»</h2>
|
|
</div>
|
|
|
|
<!-- / navbar collapse -->
|
|
</header>
|
|
<!-- / header -->
|
|
|
|
{% block asside %}
|
|
<aside id="aside" class="app-aside hidden-xs bg-dark" style="background: #3a3f51;">
|
|
<div class="aside-wrap" style=" position: fixed;
|
|
width: 200px;">
|
|
<div class="navi-wrap">
|
|
<!-- user -->
|
|
<div class="clearfix hidden-xs text-center" id="aside-user">
|
|
<div class="dropdown wrapper">
|
|
<a href="#">
|
|
<span class="clear">
|
|
<span class="block m-t-sm">
|
|
<strong class="font-bold text-lt" reloader_name="user_name">{{ request.user.get_short_name }}</strong>
|
|
</span>
|
|
<span class="text-muted text-xs block">{% if request.user.unique_role %}<i class="glyphicon glyphicon-star" style="color:#fcb813;"></i> {{ request.user.unique_role }}{% else %}{{ request.user.get_in_role_display }}{% endif %}</span>
|
|
</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<!-- / user -->
|
|
<!-- nav -->
|
|
<div name="big_count" style=" padding: 20px;
|
|
color: #000;
|
|
background: #ffc;
|
|
font-weight: bold;
|
|
font-size: 70px; text-align: center;
|
|
margin-bottom: 25px;
|
|
border-top: 5px solid #ff1;
|
|
border-bottom: 5px solid #ff1;">
|
|
<span name="big_count_now" style="color: {% if get_now_success_hw > get_second_success_hw %}green{% else %}red{% endif %};">{{ get_now_success_hw }}</span>*
|
|
<span name="big_count_old" style="font-size: 40px;">{{ get_second_success_hw }}</span>**
|
|
<p style=" font-size: 12px;
|
|
font-weight: normal;">*Сдано ДЗ за текущий месяц по всей системе</p>
|
|
<p style=" font-size: 12px;
|
|
font-weight: normal;">**Сдано ДЗ за прошлый месяц по всей системе</p>
|
|
</div>
|
|
<nav ui-nav="" class="navi clearfix" style="position: fixed;width: 200px;">
|
|
{% include 'reports/menu.html' %}
|
|
</nav>
|
|
<div style="top: 50px;
|
|
text-align: right;
|
|
position: fixed;
|
|
left: 175px; cursor: pointer;" onclick="change_hide_vector1()" name="hide_icon1">
|
|
<i class="glyphicon glyphicon-chevron-left" style="background: #666;
|
|
padding: 15px 5px;
|
|
color: #ccc;
|
|
border-radius: 5px 0 0 5px;"></i>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</aside>
|
|
{% endblock %}
|
|
<div style="top: 50px;
|
|
text-align: right;
|
|
position: fixed;
|
|
z-index: 200;
|
|
left: 0;display: none; cursor: pointer;" onclick="change_hide_vector2()" name="hide_icon2">
|
|
<i class="glyphicon glyphicon-chevron-right" style="background: #666;
|
|
padding: 15px 5px;
|
|
color: #ccc;
|
|
border-radius: 0 5px 5px 0;z-index: 2000;"></i>
|
|
</div>
|
|
<!-- content -->
|
|
<div id="content" class="app-content" role="main">
|
|
<div class="app-content-body ">
|
|
<div class="hbox hbox-auto-xs hbox-auto-sm">
|
|
{% block content %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% block js %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- / content -->
|
|
|
|
<script type="text/javascript" src="/static/js/bootstrap-datepicker.min.js"></script>
|
|
<script type="text/javascript" src="/static/js/bootstrap-datepicker.ru.min.js"></script>
|
|
<script type="text/javascript" src='/static/js/regex_check.js'></script>
|
|
|
|
<script>
|
|
function change_hide_vector1() {
|
|
$('[name=hide_icon1]').fadeOut();
|
|
$('[name=hide_icon2]').fadeIn();
|
|
$('#aside').fadeOut(function () {
|
|
$('#content').css('margin-left', '10px')
|
|
})
|
|
|
|
}
|
|
|
|
function change_hide_vector2() {
|
|
$('[name=hide_icon1]').fadeIn();
|
|
$('[name=hide_icon2]').fadeOut();
|
|
$('#aside').fadeIn()
|
|
$('#content').css('margin-left', '200px')
|
|
|
|
}
|
|
|
|
$('.input-group.date').datepicker({
|
|
todayBtn: true,
|
|
language: "ru",
|
|
orientation: "bottom auto",
|
|
keyboardNavigation: true,
|
|
autoclose: true,
|
|
toggleActive: true,
|
|
defaultViewDate: { year: 2016, month: 05, day: 01 }
|
|
});
|
|
function big_count_now(){
|
|
$.ajax({
|
|
url: '/management/reports_api/now_success_hw/',
|
|
befor: function () {
|
|
$('[name="big_count_now"]').html('<img src="/static/img/preloader.gif">');
|
|
},
|
|
success: function(data){
|
|
$('[name="big_count_now"]').html(data['data']);
|
|
}
|
|
});
|
|
}
|
|
function big_count_old(){
|
|
$.ajax({
|
|
url: '/management/reports_api/now_second_hw/',
|
|
befor: function () {
|
|
$('[name="big_count_old"]').html('<img src="/static/img/preloader.gif">');
|
|
},
|
|
success: function(data){
|
|
$('[name="big_count_old"]').html(data['data']);
|
|
}
|
|
});
|
|
}
|
|
setInterval(function() {
|
|
big_count_now();
|
|
big_count_old();
|
|
}, 200000);
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|