137 lines
4.2 KiB
HTML
137 lines
4.2 KiB
HTML
|
<!-- BEGIN PAGE HEADER-->
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<h3 class="page-title">Опросы и анкетирование</h3>
|
|||
|
<ul class="breadcrumb">
|
|||
|
<li><a href="/polls/resultFakultet/{$id}/" class="btn btn-primary">Посмотреть статистику по факультетам</a></li>
|
|||
|
<li><a href="/polls/teachers/" class="btn btn-danger">Оценка дисциплины и преподавателя</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
{if ($message != "")}
|
|||
|
<div class="alert alert-success">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>{$message}</strong>
|
|||
|
</div>
|
|||
|
{/if}
|
|||
|
|
|||
|
|
|||
|
<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;" >
|
|||
|
{foreach from=$questions item=quest key=k}
|
|||
|
<p style="font-size: 14px; background: beige; padding: 3px;"><b>{$quest.name}</b></p>
|
|||
|
<ul>
|
|||
|
{foreach from=$quest.answers item=ans key=k2}
|
|||
|
<li>{$ans.value} <span class="badge badge-success" style="color: white;">{$ans.count} из {$count}</span> <span class="badge badge-info" style="color: white;">{($ans.count/$count*100)|string_format:"%.2f"} %</span></li>
|
|||
|
|
|||
|
{/foreach}
|
|||
|
</ul>
|
|||
|
{/foreach}
|
|||
|
|
|||
|
</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" >
|
|||
|
{foreach from=$faculties item=fac key=fk}
|
|||
|
<span class="btn btn-success sort-fac" style="margin: 3px;" data-id="{$fac.id}">{$fac.name}</span>
|
|||
|
{/foreach}
|
|||
|
|
|||
|
<table class="table table-bordered">
|
|||
|
<tr>
|
|||
|
<th>№ п/п</th>
|
|||
|
<th>ФИО студента</th>
|
|||
|
<th>Группа (текущая)</th>
|
|||
|
<th>Дата прохождения</th>
|
|||
|
<th>Операции</th>
|
|||
|
</tr>
|
|||
|
|
|||
|
{foreach from=$result item=res key=k}
|
|||
|
<tr class="result-tr" data-facult="{$res.student.id_facult}">
|
|||
|
<td>{$k+1}</td>
|
|||
|
<td>{$res.user.fio}</td>
|
|||
|
<td>{$res.student.sokr} {$res.student.fo}</td>
|
|||
|
<td>{$res.date_create}</td>
|
|||
|
<td>
|
|||
|
<a class="btn btn-primary" href="/polls/result_acc/{$res.id}/">Посмотреть</a>
|
|||
|
<a class="btn btn-danger" href="/polls/delete_acc/{$res.id}/">Удалить</a>
|
|||
|
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
{/foreach}
|
|||
|
|
|||
|
</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>
|