EIOS/inc/smarty/templates_c/44156516d4c25481e6fcde25892...

233 lines
10 KiB
PHP
Raw Permalink Normal View History

2023-12-28 15:39:22 +03:00
<?php /* Smarty version Smarty-3.1.13, created on 2023-05-03 14:17:36
compiled from "tpl/tpl_polls_teachers.html" */ ?>
<?php /*%%SmartyHeaderCode:21091779646422cd067b9c67-82131735%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'44156516d4c25481e6fcde25892790f9964e4849' =>
array (
0 => 'tpl/tpl_polls_teachers.html',
1 => 1683112651,
2 => 'file',
),
),
'nocache_hash' => '21091779646422cd067b9c67-82131735',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_6422cd067e4905_61557134',
'variables' =>
array (
'message' => 0,
'id' => 0,
'count_fakultet' => 0,
'grupps' => 0,
'k' => 0,
'gr' => 0,
'gruppa' => 0,
'sem' => 0,
'disc' => 0,
'd' => 0,
'disc2' => 0,
'teachers' => 0,
'teach' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6422cd067e4905_61557134')) {function content_6422cd067e4905_61557134($_smarty_tpl) {?><!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Опросы и анкетирование</h3>
<ul class="breadcrumb">
<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">
<?php if ((!isset($_smarty_tpl->tpl_vars['id']->value))){?>
Всего прошло на факультете: <?php echo $_smarty_tpl->tpl_vars['count_fakultet']->value;?>
чел.
<table class="table table-bordered">
<tr>
<th width="5%"> п/п</th>
<th width="15%">Группы</th>
<th width="40%">Семестры (ДОБАВИТЬ ПРЕПОДАВАТЕЛЕЙ)</th>
<th width="40%">Семестры (РЕЗУЛЬТАТЫ)</th>
</tr>
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['grupps']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['gr']->key => $_smarty_tpl->tpl_vars['gr']->value){
$_smarty_tpl->tpl_vars['gr']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['gr']->key;
?>
<tr>
<td><?php echo ($_smarty_tpl->tpl_vars['k']->value+1);?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
(<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
)</td>
<td>
<div>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/1/" target="_blank" class="btn btn-light">1</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/2/" target="_blank" class="btn btn-light">2</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/3/" target="_blank" class="btn btn-light">3</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/4/" target="_blank" class="btn btn-light">4</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/5/" target="_blank" class="btn btn-light">5</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/6/" target="_blank" class="btn btn-light">6</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/7/" target="_blank" class="btn btn-light">7</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/8/" target="_blank" class="btn btn-light">8</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/9/" target="_blank" class="btn btn-light">9</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/10/" target="_blank" class="btn btn-light">10</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/11/" target="_blank" class="btn btn-light">11</a>
<a href="/polls/teachers/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/12/" target="_blank" class="btn btn-light">12</a>
</div>
</td>
<td>
<div>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/1/" target="_blank" class="btn btn-warning">1</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/2/" target="_blank" class="btn btn-warning">2</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/3/" target="_blank" class="btn btn-warning">3</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/4/" target="_blank" class="btn btn-warning">4</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/5/" target="_blank" class="btn btn-warning">5</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/6/" target="_blank" class="btn btn-warning">6</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/7/" target="_blank" class="btn btn-warning">7</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/8/" target="_blank" class="btn btn-warning">8</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/9/" target="_blank" class="btn btn-warning">9</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/10/" target="_blank" class="btn btn-warning">10</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/11/" target="_blank" class="btn btn-warning">11</a>
<a href="/polls/teachersResult/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id_grupp'];?>
/12/" target="_blank" class="btn btn-warning">12</a>
</div>
</td>
</tr>
<?php } ?>
</table>
<?php }else{ ?>
<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>
<p>Семестр: <?php echo $_smarty_tpl->tpl_vars['sem']->value;?>
</p>
<hr />
<p style="font-weight: bold;">Список дисциплин и преподавателей из ведомостей</p>
<?php $_smarty_tpl->tpl_vars['d'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['d']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['disc']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['d']->key => $_smarty_tpl->tpl_vars['d']->value){
$_smarty_tpl->tpl_vars['d']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['d']->key;
?>
<p><?php echo $_smarty_tpl->tpl_vars['d']->value['name'];?>
- <?php echo $_smarty_tpl->tpl_vars['d']->value['teacher']['fio'];?>
</p>
<?php } ?>
<hr />
<p style="font-weight: bold;">Список дисциплин и преподавателей, введенных вручную</p>
<?php $_smarty_tpl->tpl_vars['d'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['d']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['disc2']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['d']->key => $_smarty_tpl->tpl_vars['d']->value){
$_smarty_tpl->tpl_vars['d']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['d']->key;
?>
<p><?php echo $_smarty_tpl->tpl_vars['d']->value['predmet'];?>
- <?php echo $_smarty_tpl->tpl_vars['d']->value['teacher'];?>
</p>
<?php } ?>
<hr />
<p style="font-weight: bold;">Добавление</p>
<form name="add_teacher_ev" method="post" action="#">
<input type="hidden" name="grupp" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" />
<input type="hidden" name="sem" value="<?php echo $_smarty_tpl->tpl_vars['sem']->value;?>
" />
<div class="control-group">
<label class="control-label span4">Название дисциплины: </label>
<div class="controls" >
<input type="text" class="span8 tooltips" name="predmet" data-trigger="hover" data-original-title="Например: Алгебра и геометрия" required />
</div>
</div>
<div class="control-group">
<label class="control-label span4">Преподаватель: </label>
<div class="controls">
<select name="teacher" class="tooltips" data-trigger="hover" data-original-title="Преподавателей может быть несколько, добавить можно отдельными записями">
<?php $_smarty_tpl->tpl_vars['teach'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['teach']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['teachers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['teach']->key => $_smarty_tpl->tpl_vars['teach']->value){
$_smarty_tpl->tpl_vars['teach']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['teach']->value['fio'];?>
"><?php echo $_smarty_tpl->tpl_vars['teach']->value['fio'];?>
</option>
<?php } ?>
</select>
</div>
</div>
<input type="submit" name="add_teacher_ev" class="btn btn-success" value="Добавить" />
</form>
</div>
</div>
<?php }?>
</div>
</div><?php }} ?>