EIOS/inc/smarty/templates_c/9b12885bbc1d2b62b3bf105ebfc...

221 lines
8.7 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-05-03 13:58:55
compiled from "tpl/tpl_polls_taking.html" */ ?>
<?php /*%%SmartyHeaderCode:118931208063450837517755-75207395%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'9b12885bbc1d2b62b3bf105ebfc666ff0cdcc950' =>
array (
0 => 'tpl/tpl_polls_taking.html',
1 => 1683111523,
2 => 'file',
),
),
'nocache_hash' => '118931208063450837517755-75207395',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_6345083755ce16_33281147',
'variables' =>
array (
'message' => 0,
'id' => 0,
'polls' => 0,
'k' => 0,
'poll' => 0,
'gruppa' => 0,
'count_poll_teach' => 0,
'sem' => 0,
'access' => 0,
'count' => 0,
'questions' => 0,
'quest' => 0,
'opt' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6345083755ce16_33281147')) {function content_6345083755ce16_33281147($_smarty_tpl) {?><!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Список опросов</h3>
<ul class="breadcrumb">
<li><a href="/">Главная</a><span class="divider">/</span></li>
</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">
<?php if ((!isset($_smarty_tpl->tpl_vars['id']->value))){?>
<!--ДОБАЛЕНИЕ НОВОГО ОПРОСА-->
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="widget green" >
<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" >
<p>Любой опрос доступен для прохождения только 1 раз. Для перепрохождения опроса обратитесь в деканат для удаления старого результата.</p>
<table class="table table-bordered">
<tr>
<th>№ п/п</th>
<th>Название опроса</th>
<th>Статус</th>
<th>Дата создания</th>
<th>Пройти опрос</th>
</tr>
<?php $_smarty_tpl->tpl_vars['poll'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['poll']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['polls']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['poll']->key => $_smarty_tpl->tpl_vars['poll']->value){
$_smarty_tpl->tpl_vars['poll']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['poll']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td>
<?php echo $_smarty_tpl->tpl_vars['poll']->value['name'];?>
<br />
<sub>Ограничения по форме обучения: <?php if (($_smarty_tpl->tpl_vars['poll']->value['access_fo']=="0")){?>нет<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['poll']->value['access_fo'];?>
<?php }?></sub>
</td>
<td><?php if (($_smarty_tpl->tpl_vars['poll']->value['status']=="1")){?>открыт<?php }else{ ?>закрыт<?php }?></td>
<td><?php echo $_smarty_tpl->tpl_vars['poll']->value['date_create'];?>
</td>
<td>
<a class="btn btn-primary tooltips" data-trigger="hover" data-original-title="Пройти" href="/polls/taking/<?php echo $_smarty_tpl->tpl_vars['poll']->value['id'];?>
/"><i class="icon-external-link"></i></a>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
<!--ОПРОС О ПРЕПОДАХ-->
<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-down"> Развернуть/Свернуть</a>
</span>
</div>
<div class="widget-body" >
<h4>Группа: <?php echo $_smarty_tpl->tpl_vars['gruppa']->value['sokr'];?>
<?php echo $_smarty_tpl->tpl_vars['gruppa']->value['fo'];?>
</h4>
<?php if ($_smarty_tpl->tpl_vars['gruppa']->value['fo']=="ОФО"){?>
<?php if ($_smarty_tpl->tpl_vars['count_poll_teach']->value>0){?> <p style="color:red;">Вы уже проходили данный опрос</p> <?php }else{ ?><a href="/polls/teachersPoll/<?php echo $_smarty_tpl->tpl_vars['gruppa']->value['id'];?>
/<?php echo $_smarty_tpl->tpl_vars['sem']->value;?>
/" class="btn btn-success">Пройти опрос за <?php echo $_smarty_tpl->tpl_vars['sem']->value;?>
семестр</a><?php }?>
<?php }else{ ?>Опрос доступен только студентам очной формы обучения.<?php }?>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<?php if (($_smarty_tpl->tpl_vars['access']->value=="1")){?>
<h4 align="center">У Вас нет доступа для прохождения данного опроса.</h4>
<?php }else{ ?>
<!--ВЫБРАН КОНКРЕТНЫЙ ОПРОС-->
<?php if (($_smarty_tpl->tpl_vars['count']->value>0)){?>
<h4 align="center">Вы уже проходили данный опрос</h4>
<?php }else{ ?>
<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" >
<form name="taking_poll" method="post" action="#">
<?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;
?>
<?php if (($_smarty_tpl->tpl_vars['quest']->value['type']=="title")){?><h4><?php echo $_smarty_tpl->tpl_vars['quest']->value['name'];?>
</h4><?php }else{ ?><h5><?php echo $_smarty_tpl->tpl_vars['quest']->value['name'];?>
</h5><?php }?>
<?php if (($_smarty_tpl->tpl_vars['quest']->value['type']=="text")){?><input type="text" name="quest[<?php echo $_smarty_tpl->tpl_vars['quest']->value['id'];?>
]" class="form-control" style="width: 90%;" required /><?php }?>
<?php if (($_smarty_tpl->tpl_vars['quest']->value['type']=="select")){?>
<select name="quest[<?php echo $_smarty_tpl->tpl_vars['quest']->value['id'];?>
]" class="form-control" style="width: 90%;">
<?php $_smarty_tpl->tpl_vars['opt'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['opt']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['quest']->value['option']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['opt']->key => $_smarty_tpl->tpl_vars['opt']->value){
$_smarty_tpl->tpl_vars['opt']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['opt']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['opt']->value;?>
</option>
<?php } ?>
</select>
<?php }?>
<?php } ?>
<input type="hidden" name="anketa" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" />
<input type="submit" name="taking_poll" value="Завершить анкетирование" class="btn btn-success" />
</form>
</div>
</div>
</div>
</div>
</div>
<?php }?>
<?php }?>
<?php }?>
</div>
</div>
<?php }} ?>