EIOS/inc/smarty/templates_c/b5d55b3f1edde0356b206522fa1...

233 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 2023-07-04 13:53:32
compiled from "tpl/tpl_kafedra_reference.html" */ ?>
<?php /*%%SmartyHeaderCode:1926061939625522c44cedf7-62987205%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'b5d55b3f1edde0356b206522fa1786d42142ca78' =>
array (
0 => 'tpl/tpl_kafedra_reference.html',
1 => 1688468010,
2 => 'file',
),
),
'nocache_hash' => '1926061939625522c44cedf7-62987205',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_625522c4528e85_44571643',
'variables' =>
array (
'msg' => 0,
'profiles' => 0,
'pr' => 0,
'profile' => 0,
'disciplins' => 0,
'k' => 0,
'disc' => 0,
'teachers' => 0,
'teach' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_625522c4528e85_44571643')) {function content_625522c4528e85_44571643($_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>
<a href="/iup/lkkafedry/" class="btn btn-primary">Загрузить план</a>
<a href="http://d.zaix.ru/zYLC.pdf" class="btn btn-danger">Как редактировать справку в Word?</a>
</ul>
</div>
</div>
<?php if (($_smarty_tpl->tpl_vars['msg']->value==1)){?>
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Информация сохранена</strong>
</div>
<?php }?>
<div class="row-fluid">
<div class="span12">
<!--ВСЕ ПЛАНЫ КАФЕДРЫ-->
<?php if ((isset($_smarty_tpl->tpl_vars['profiles']->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">
<table class="table table-bordered">
<?php $_smarty_tpl->tpl_vars['pr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pr']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['pr']->key => $_smarty_tpl->tpl_vars['pr']->value){
$_smarty_tpl->tpl_vars['pr']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['pr']->key;
?>
<tr>
<td><a href="/kafedra/reference/<?php echo $_smarty_tpl->tpl_vars['pr']->value['id'];?>
/"><?php echo $_smarty_tpl->tpl_vars['pr']->value['shifr1'];?>
<?php echo $_smarty_tpl->tpl_vars['pr']->value['nappodgo'];?>
, <?php echo $_smarty_tpl->tpl_vars['pr']->value['propodgo'];?>
(<?php echo $_smarty_tpl->tpl_vars['pr']->value['forobu'];?>
, <?php echo $_smarty_tpl->tpl_vars['pr']->value['godnap'];?>
)<br /><small><?php echo $_smarty_tpl->tpl_vars['pr']->value['id_file'];?>
. <?php echo $_smarty_tpl->tpl_vars['pr']->value['podpis'];?>
</small></a></td>
<td>
<a href="/kafedra/reference_print/<?php echo $_smarty_tpl->tpl_vars['pr']->value['id'];?>
/" class="btn btn-primary" target="_blank">Основная справка</a>
<a href="/kafedra/reference_in_print/<?php echo $_smarty_tpl->tpl_vars['pr']->value['id'];?>
/" class="btn btn-info" target="_blank">Справка по совместителям</a>
<a href="/kafedra/reference_svodka_print/<?php echo $_smarty_tpl->tpl_vars['pr']->value['id'];?>
/" class="btn btn-warning" target="_blank">Сводные данные</a>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
<?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><?php echo $_smarty_tpl->tpl_vars['profile']->value['shifr1'];?>
<?php echo $_smarty_tpl->tpl_vars['profile']->value['nappodgo'];?>
, <?php echo $_smarty_tpl->tpl_vars['profile']->value['propodgo'];?>
(<?php echo $_smarty_tpl->tpl_vars['profile']->value['forobu'];?>
, <?php echo $_smarty_tpl->tpl_vars['profile']->value['godnap'];?>
)</h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
</span>
</div>
<div class="widget-body">
<form name="reference" method="post" action="/kafedra/reference/">
<input type="hidden" name="id_plan" value="<?php echo $_smarty_tpl->tpl_vars['profile']->value['id'];?>
" />
<table class="table table-bordered">
<tr>
<th>#</th>
<th>Дисциплина</th>
<th>Преподаватель</th>
<th>Условия привлечения</th>
<th>Образование соответствует профилю дисциплины</th>
</tr>
<?php $_smarty_tpl->tpl_vars['disc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['disc']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['disciplins']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['disc']->key => $_smarty_tpl->tpl_vars['disc']->value){
$_smarty_tpl->tpl_vars['disc']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['disc']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['disc']->value['discid'];?>
. <?php echo $_smarty_tpl->tpl_vars['disc']->value['discip'];?>
<br /><font size="-2"><?php echo $_smarty_tpl->tpl_vars['disc']->value['kurs'];?>
курс/ <?php echo $_smarty_tpl->tpl_vars['disc']->value['sem'];?>
сем.</font></td>
<td>
<select class="form-control teacher-list" id="teach<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?>
" name="teacher[<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?>
]">
<option value="0">не выбран</option>
<?php $_smarty_tpl->tpl_vars['teach'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['teach']->_loop = false;
$_smarty_tpl->tpl_vars['t'] = new Smarty_Variable;
$_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;
$_smarty_tpl->tpl_vars['t']->value = $_smarty_tpl->tpl_vars['teach']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['teach']->value['id_user'];?>
" <?php if (($_smarty_tpl->tpl_vars['teach']->value['id_user']==$_smarty_tpl->tpl_vars['disc']->value['id_user'])){?>SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['teach']->value['fio'];?>
</option>
<?php } ?>
</select>
<span class="info-teacher[<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?>
]"></span>
</td>
<td><font size="-1">
<input type="radio" name="usl[<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?>
]" value="по основному месту работы" <?php if (($_smarty_tpl->tpl_vars['disc']->value['condition_pr']=="по основному месту работы")){?>checked<?php }?> /> по основному месту работы<br />
<input type="radio" name="usl[<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?>
]" value="на условиях внутреннего совместительства" <?php if (($_smarty_tpl->tpl_vars['disc']->value['condition_pr']=="на условиях внутреннего совместительства")){?>checked<?php }?> /> на условиях внутреннего совместительства<br />
<input type="radio" name="usl[<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?>
]" value="на условиях внешнего совместительства" <?php if (($_smarty_tpl->tpl_vars['disc']->value['condition_pr']=="на условиях внешнего совместительства")){?>checked<?php }?> /> на условиях внешнего совместительства<br />
<input type="radio" name="usl[<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?>
]" value="на условиях договора ГПХ" <?php if (($_smarty_tpl->tpl_vars['disc']->value['condition_pr']=="на условиях договора ГПХ")){?>checked<?php }?> /> на условиях договора ГПХ
</font></td>
<td><font size="-1">
<!--<?php echo $_smarty_tpl->tpl_vars['disc']->value['edu_profile_is'];?>
-->
<input type="checkbox" name="edu_profile[<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?>
]" value="да" <?php if (($_smarty_tpl->tpl_vars['disc']->value['edu_profile_is']=="нет")){?><?php }else{ ?>checked<?php }?> /> да
</font></td>
</tr>
<?php } ?>
</table>
<input type="submit" class="btn btn-success" name="save_ref" value="Сохранить" />
</form>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
//выбор группы и вывод списка необходимых студентов
//$("select[name=grupp]").change(function(){
$(".teacher-list").change(function(){
var name = $(this).attr('name');
var res = name.replace(/\D/g, ""); //только цифры из строки
//alert(res); // 667000
//alert(res);
//айдишник пользователя-учителя
var id_teacher = $(this).val();
//alert();
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=kaf_change_teacher_education&id_user='+id_teacher,
success: function(data){
//$('.teacher-list[name='+name+']').after('<div id="space">информация об образовании</div>');
//$(this).after(data.html);
//alert(123);
//$('select[name=student]').html(data.html);
//$('.hide-content').css('display', 'block');
//alert(id_teacher);
$('#teach'+res).after(data.html);
}
});
});
});
</script>
<?php }?>
</div>
</div>
<?php }} ?>