EIOS/inc/smarty/templates_c/4fe0d92b26be35097398239056f...

280 lines
11 KiB
PHP
Raw 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 2022-10-11 14:51:27
compiled from "tpl/tpl_dpo_admin.html" */ ?>
<?php /*%%SmartyHeaderCode:1459544463634558bf602729-31819831%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'4fe0d92b26be35097398239056f7d6c78e6a5445' =>
array (
0 => 'tpl/tpl_dpo_admin.html',
1 => 1570166542,
2 => 'file',
),
),
'nocache_hash' => '1459544463634558bf602729-31819831',
'function' =>
array (
),
'variables' =>
array (
'user' => 0,
'message' => 0,
'courses' => 0,
'course' => 0,
'students' => 0,
'stud' => 0,
'k' => 0,
'lections' => 0,
'lect' => 0,
'works' => 0,
'work' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_634558bf63c887_25753602',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_634558bf63c887_25753602')) {function content_634558bf63c887_25753602($_smarty_tpl) {?><?php if (isset($_smarty_tpl->tpl_vars['user']->value['statuses'][28])){?>
<!-- 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>
<li class="active"><a href="/dpo/">Дополнительное профессиональное образование</a><span class="divider">/</span></li>
<li class="active"><a href="#">Администратор</a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<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">
<?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 }?>
<form name="add_lection" method="post" action="">
<h4>Добавление нового материала</h4>
<div class="control-group">
<label class="control-label span4">Курс: </label>
<div class="controls" >
<select name="course">
<?php $_smarty_tpl->tpl_vars['course'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['course']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['courses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['course']->key => $_smarty_tpl->tpl_vars['course']->value){
$_smarty_tpl->tpl_vars['course']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['course']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['course']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label span4">Полное название: </label>
<div class="controls" >
<input type="text" class="span8 tooltips" name="name" data-trigger="hover" data-original-title="Например: Лекция №1. Линейная алгебра. Метод Гаусса." required />
</div>
</div>
<div class="control-group">
<label class="control-label">Материал (ссылки на файлы добавляйте, предварительно загрузив их в раздел "Лекции")</label>
<div class="controls">
<textarea class="span12 tooltips" rows="10" id="editor1" data-trigger="hover" data-original-title="Напишите текст материала" name="content"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label span4">Количество академических часов: </label>
<div class="controls" >
<input type="text" class="span8 tooltips" name="hour" data-trigger="hover" data-original-title="Например: 2" value="2" required />
</div>
</div>
<div class="control-group">
<label class="control-label">Задание (ссылки на файлы добавляйте, предварительно загрузив их в раздел "Лекции")</label>
<div class="controls">
<textarea class="span12 tooltips" rows="5" id="editor2" data-trigger="hover" data-original-title="Напишите текст материала" name="task"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">Итоговое задание (является итогом - лекция может быть просто подведением того, что освоено без дополнительного материала)</label>
<div class="controls">
<div id="text-toggle-button_t1">
<input type="checkbox" name="itog" >
</div>
</div>
</div>
<input type="submit" name="add_lection" value="Добавить лекцию" class="btn btn-primary" />
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://goleusov.ru/js/ckeditor4/ckeditor.js"></script>
<script>
CKEDITOR.replace('editor1', { height: '400px' });
CKEDITOR.replace('editor2', { height: '250px' });
</script>
<?php $_smarty_tpl->tpl_vars['course'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['course']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['courses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['course']->key => $_smarty_tpl->tpl_vars['course']->value){
$_smarty_tpl->tpl_vars['course']->_loop = true;
?>
<div class="row-fluid">
<div class="span12">
<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> Курс: <?php echo $_smarty_tpl->tpl_vars['course']->value['name'];?>
(<?php echo $_smarty_tpl->tpl_vars['course']->value['type'];?>
)</h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div>
<div class="widget-body">
<h4>Список слушателей</h4>
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th>№</th>
<th>ФИО слушателя</th>
</tr>
</thead>
<tbody class="load-lections">
<?php $_smarty_tpl->tpl_vars['stud'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['stud']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['students']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['stud']->key => $_smarty_tpl->tpl_vars['stud']->value){
$_smarty_tpl->tpl_vars['stud']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['stud']->key;
?>
<?php if (($_smarty_tpl->tpl_vars['stud']->value['id_course']==$_smarty_tpl->tpl_vars['course']->value['id'])){?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['stud']->value['fio'];?>
</td>
</tr>
<?php }?>
<?php } ?>
</tbody>
</table>
<h4>Список дисциплин</h4>
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th>Название</th>
<th>Количество часов</th>
</tr>
</thead>
<tbody class="load-lections">
<?php $_smarty_tpl->tpl_vars['lect'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lect']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['lections']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lect']->key => $_smarty_tpl->tpl_vars['lect']->value){
$_smarty_tpl->tpl_vars['lect']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['course']->value['id']==$_smarty_tpl->tpl_vars['lect']->value['id_course']){?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['lect']->value['name'];?>
<?php if (($_smarty_tpl->tpl_vars['lect']->value['itog']==1)){?><span style="color: red;">Итоговое занятие</span><?php }?></td>
<td><?php echo $_smarty_tpl->tpl_vars['lect']->value['hour'];?>
</td>
</tr>
<?php }else{ ?>
<?php }?>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="widget orange">
<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>Список работ</h4>
<p>Возможно, файлы к работе Вам могли прислать в Личные сообщения или на электронную почту.</p>
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th>№</th>
<th>Курс</th>
<th>Лекция</th>
<th>Слушатель</th>
<th>Посмотреть</th>
</tr>
</thead>
<tbody class="load-lections">
<?php $_smarty_tpl->tpl_vars['work'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['work']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['works']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['work']->key => $_smarty_tpl->tpl_vars['work']->value){
$_smarty_tpl->tpl_vars['work']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['work']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['work']->value['course'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['work']->value['lection'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['work']->value['student'];?>
</td>
<td><a href="/dpo/work/<?php echo $_smarty_tpl->tpl_vars['work']->value['id'];?>
/">Посмотреть</a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<p>У Вас нет доступа</p>
<?php }?><?php }} ?>