EIOS/inc/smarty/templates_c/abce6f53d30a232fc0038aa1467...

131 lines
5.1 KiB
PHP
Raw Normal View History

2023-12-28 15:39:22 +03:00
<?php /* Smarty version Smarty-3.1.13, created on 2022-10-26 11:08:43
compiled from "tpl/tpl_polls_result_fakultet.html" */ ?>
<?php /*%%SmartyHeaderCode:54869869163524bc205fcd9-91306838%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'abce6f53d30a232fc0038aa146704f2953a7953e' =>
array (
0 => 'tpl/tpl_polls_result_fakultet.html',
1 => 1666771719,
2 => 'file',
),
),
'nocache_hash' => '54869869163524bc205fcd9-91306838',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_63524bc20a3866_27574641',
'variables' =>
array (
'message' => 0,
'all_voice' => 0,
'faculties' => 0,
'facult' => 0,
'questions' => 0,
'kq' => 0,
'k' => 0,
'quest' => 0,
'ans' => 0,
'count' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_63524bc20a3866_27574641')) {function content_63524bc20a3866_27574641($_smarty_tpl) {?><!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Статистика опроса по факультетам</h3>
<ul class="breadcrumb">
<li><a class="btn btn-primary" href="javascript:(print());"><i class="icon-print"></i> Распечатать</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">
<p>Всего приняло участие: <?php echo $_smarty_tpl->tpl_vars['all_voice']->value;?>
чел.</p>
<table class="table table-bordered table-print">
<tr style="background: darkgray; vertical-align: middle;">
<th> п/п</th>
<th>Вопрос-вариант</th>
<?php $_smarty_tpl->tpl_vars['facult'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['facult']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = 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['facult']->key => $_smarty_tpl->tpl_vars['facult']->value){
$_smarty_tpl->tpl_vars['facult']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['facult']->key;
?>
<th><?php echo $_smarty_tpl->tpl_vars['facult']->value['abbreviated'];?>
<br /> <sub>(<?php echo $_smarty_tpl->tpl_vars['facult']->value['count'];?>
гол.)</sub></th>
<?php } ?>
</tr>
<?php $_smarty_tpl->tpl_vars['quest'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['quest']->_loop = false;
$_smarty_tpl->tpl_vars['kq'] = 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['kq']->value = $_smarty_tpl->tpl_vars['quest']->key;
?>
<tr style="background: antiquewhite;">
<td><?php echo $_smarty_tpl->tpl_vars['kq']->value+1;?>
</td>
<td colspan="<?php echo $_smarty_tpl->tpl_vars['k']->value+2;?>
"><h4><?php echo $_smarty_tpl->tpl_vars['quest']->value['name'];?>
</h4></td>
</tr>
<?php $_smarty_tpl->tpl_vars['ans'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ans']->_loop = false;
$_smarty_tpl->tpl_vars['ka'] = 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['ka']->value = $_smarty_tpl->tpl_vars['ans']->key;
?>
<tr>
<td>---</td>
<td><?php echo $_smarty_tpl->tpl_vars['ans']->value['value'];?>
</td>
<?php $_smarty_tpl->tpl_vars['count'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['count']->_loop = false;
$_smarty_tpl->tpl_vars['kc'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['ans']->value['count']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['count']->key => $_smarty_tpl->tpl_vars['count']->value){
$_smarty_tpl->tpl_vars['count']->_loop = true;
$_smarty_tpl->tpl_vars['kc']->value = $_smarty_tpl->tpl_vars['count']->key;
?>
<td><b><?php echo $_smarty_tpl->tpl_vars['count']->value;?>
</b> <br /><span style="background: YellowGreen; color: black; padding: 3px;"><?php echo sprintf("%.2f",($_smarty_tpl->tpl_vars['count']->value/$_smarty_tpl->tpl_vars['all_voice']->value*100));?>
%</span></td>
<?php } ?>
</tr>
<?php } ?>
<?php } ?>
</table>
</div>
</div>
<style>
@media print {
#header, .sidebar-scroll, #footer, .page-title, .breadcrumb{
display: none;
}
}
</style><?php }} ?>