122 lines
4.6 KiB
PHP
122 lines
4.6 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-12 15:19:16
|
||
|
compiled from "tpl/tpl_dpo.html" */ ?>
|
||
|
<?php /*%%SmartyHeaderCode:131218908962556e446a3d35-32999300%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
|
'file_dependency' =>
|
||
|
array (
|
||
|
'b4000d91b37db435cd94455f340a887854da15a6' =>
|
||
|
array (
|
||
|
0 => 'tpl/tpl_dpo.html',
|
||
|
1 => 1570166610,
|
||
|
2 => 'file',
|
||
|
),
|
||
|
),
|
||
|
'nocache_hash' => '131218908962556e446a3d35-32999300',
|
||
|
'function' =>
|
||
|
array (
|
||
|
),
|
||
|
'variables' =>
|
||
|
array (
|
||
|
'page' => 0,
|
||
|
'courses' => 0,
|
||
|
'course' => 0,
|
||
|
'lections' => 0,
|
||
|
'lect' => 0,
|
||
|
),
|
||
|
'has_nocache_code' => false,
|
||
|
'version' => 'Smarty-3.1.13',
|
||
|
'unifunc' => 'content_62556e446d15b0_62327488',
|
||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
|
<?php if ($_valid && !is_callable('content_62556e446d15b0_62327488')) {function content_62556e446d15b0_62327488($_smarty_tpl) {?>
|
||
|
<!-- BEGIN PAGE HEADER-->
|
||
|
<div class="row-fluid">
|
||
|
<div class="span12">
|
||
|
<h3 class="page-title">ДПО: <?php echo $_smarty_tpl->tpl_vars['page']->value;?>
|
||
|
</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="#"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
|
||
|
</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<?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'];?>
|
||
|
</h4>
|
||
|
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
|
</div>
|
||
|
<div class="widget-body">
|
||
|
<p><b>Преподаватель:</b> <?php echo $_smarty_tpl->tpl_vars['course']->value['prepod'];?>
|
||
|
</p>
|
||
|
<?php if (($_smarty_tpl->tpl_vars['course']->value['is']>0)){?><table class="table table-striped table-bordered table-advance table-hover">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Название</th>
|
||
|
<th>Количество часов</th>
|
||
|
<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>
|
||
|
<td><span style="color: green; font-weight: bold;"><?php echo $_smarty_tpl->tpl_vars['lect']->value['mark'];?>
|
||
|
</span> </td>
|
||
|
<td><a href="/dpo/lection/<?php echo $_smarty_tpl->tpl_vars['lect']->value['id'];?>
|
||
|
/">Перейти к лекции</a> </td>
|
||
|
</tr>
|
||
|
<?php }else{ ?>
|
||
|
<?php }?>
|
||
|
<?php } ?>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<br /><?php }else{ ?>
|
||
|
<button class="btn btn-primary order-course" data-id="<?php echo $_smarty_tpl->tpl_vars['course']->value['id'];?>
|
||
|
">Записаться на курс</button>
|
||
|
<?php }?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php } ?>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function(){
|
||
|
//запись на курс
|
||
|
$(".order-course").click(function(){
|
||
|
var id = $(this).data("id");
|
||
|
|
||
|
$.ajax({
|
||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=order_course&id_course='+id,
|
||
|
success: function(data){
|
||
|
location.reload(true)
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
</script><?php }} ?>
|