EIOS/inc/smarty/templates_c/2ab07f8029edf6b8593222c86c1...

213 lines
7.9 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php /* Smarty version Smarty-3.1.13, created on 2023-03-29 08:57:15
compiled from "tpl/tpl_polls_result.html" */ ?>
<?php /*%%SmartyHeaderCode:649448360634d2a97b89980-18384062%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2ab07f8029edf6b8593222c86c1942cbc30b7047' =>
array (
0 => 'tpl/tpl_polls_result.html',
1 => 1680069430,
2 => 'file',
),
),
'nocache_hash' => '649448360634d2a97b89980-18384062',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_634d2a97bcece8_94205853',
'variables' =>
array (
'id' => 0,
'message' => 0,
'questions' => 0,
'quest' => 0,
'ans' => 0,
'count' => 0,
'faculties' => 0,
'fac' => 0,
'result' => 0,
'res' => 0,
'k' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_634d2a97bcece8_94205853')) {function content_634d2a97bcece8_94205853($_smarty_tpl) {?><!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Опросы и анкетирование</h3>
<ul class="breadcrumb">
<li><a href="/polls/resultFakultet/<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
/" class="btn btn-primary">Посмотреть статистику по факультетам</a></li>
<li><a href="/polls/teachers/" class="btn btn-danger">Оценка дисциплины и преподавателя</a></li>
</ul>
</div>
</div>
<?php if (($_smarty_tpl->tpl_vars['message']->value!='')){?>
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong><?php echo $_smarty_tpl->tpl_vars['message']->value;?>
</strong>
</div>
<?php }?>
<div class="row-fluid">
<div class="span12">
<!--СТАТИСТИКА-->
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="widget red" >
<div class="widget-title">
<h4><i class="icon-reorder"></i> Статистика опроса</h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-up"> Развернуть/Свернуть</a>
</span>
</div>
<div class="widget-body" style="display: none;" >
<?php $_smarty_tpl->tpl_vars['quest'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['quest']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['questions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['quest']->key => $_smarty_tpl->tpl_vars['quest']->value){
$_smarty_tpl->tpl_vars['quest']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['quest']->key;
?>
<p style="font-size: 14px; background: beige; padding: 3px;"><b><?php echo $_smarty_tpl->tpl_vars['quest']->value['name'];?>
</b></p>
<ul>
<?php $_smarty_tpl->tpl_vars['ans'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ans']->_loop = false;
$_smarty_tpl->tpl_vars['k2'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['quest']->value['answers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ans']->key => $_smarty_tpl->tpl_vars['ans']->value){
$_smarty_tpl->tpl_vars['ans']->_loop = true;
$_smarty_tpl->tpl_vars['k2']->value = $_smarty_tpl->tpl_vars['ans']->key;
?>
<li><?php echo $_smarty_tpl->tpl_vars['ans']->value['value'];?>
<span class="badge badge-success" style="color: white;"><?php echo $_smarty_tpl->tpl_vars['ans']->value['count'];?>
из <?php echo $_smarty_tpl->tpl_vars['count']->value;?>
</span> <span class="badge badge-info" style="color: white;"><?php echo sprintf("%.2f",($_smarty_tpl->tpl_vars['ans']->value['count']/$_smarty_tpl->tpl_vars['count']->value*100));?>
%</span></li>
<?php } ?>
</ul>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<!--РЕЗУЛЬТАТЫ-->
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="widget blue" >
<div class="widget-title">
<h4><i class="icon-reorder"></i> Результаты</h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"> Развернуть/Свернуть</a>
</span>
</div>
<div class="widget-body" >
<?php $_smarty_tpl->tpl_vars['fac'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fac']->_loop = false;
$_smarty_tpl->tpl_vars['fk'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['faculties']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['fac']->key => $_smarty_tpl->tpl_vars['fac']->value){
$_smarty_tpl->tpl_vars['fac']->_loop = true;
$_smarty_tpl->tpl_vars['fk']->value = $_smarty_tpl->tpl_vars['fac']->key;
?>
<span class="btn btn-success sort-fac" style="margin: 3px;" data-id="<?php echo $_smarty_tpl->tpl_vars['fac']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['fac']->value['name'];?>
</span>
<?php } ?>
<table class="table table-bordered">
<tr>
<th>№ п/п</th>
<th>ФИО студента</th>
<th>Группа (текущая)</th>
<th>Дата прохождения</th>
<th>Операции</th>
</tr>
<?php $_smarty_tpl->tpl_vars['res'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['res']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['result']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['res']->key => $_smarty_tpl->tpl_vars['res']->value){
$_smarty_tpl->tpl_vars['res']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['res']->key;
?>
<tr class="result-tr" data-facult="<?php echo $_smarty_tpl->tpl_vars['res']->value['student']['id_facult'];?>
">
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['res']->value['user']['fio'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['res']->value['student']['sokr'];?>
<?php echo $_smarty_tpl->tpl_vars['res']->value['student']['fo'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['res']->value['date_create'];?>
</td>
<td>
<a class="btn btn-primary" href="/polls/result_acc/<?php echo $_smarty_tpl->tpl_vars['res']->value['id'];?>
/">Посмотреть</a>
<a class="btn btn-danger" href="/polls/delete_acc/<?php echo $_smarty_tpl->tpl_vars['res']->value['id'];?>
/">Удалить</a>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
//сортировка по факультетам
$(".sort-fac").click(function(){
var id = $(this).data("id");
$('tr.result-tr').css("display","none");
$('tr.result-tr[data-facult=' + id + ']').css("display","table-row");
$('.sort-fac').css('background', '#87bb33');
$(this).css('background', '#951414');
/*if (id == 0) $('tr.napr-tr').css("display","table-row"); //все
if (id == 1) $('tr.napr-tr[data-print=1]').css("display","table-row"); //только распечатанные
if (id == 2) $('tr.napr-tr[data-print=0]').css("display","table-row"); //только нераспечатанные
if (id == 3) { //с оценкой
$('tr.napr-tr[data-mark]').css("display","table-row");
$('tr.napr-tr[data-mark=Нет]').css("display","none");
}
if (id == 4) $('tr.napr-tr[data-mark=Нет]').css("display","table-row"); //без оценки*/
});
});
</script>
<?php }} ?>