1475 lines
92 KiB
PHP
1475 lines
92 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-13 11:28:02
|
||
compiled from "tpl/tpl_statuses.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:133218207625689926e1c68-19056162%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'4ed17216a52017813fb62d20860b5431c70bfd45' =>
|
||
array (
|
||
0 => 'tpl/tpl_statuses.html',
|
||
1 => 1639401990,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '133218207625689926e1c68-19056162',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'variables' =>
|
||
array (
|
||
'st_view' => 0,
|
||
'logs' => 0,
|
||
'log' => 0,
|
||
'kafedres' => 0,
|
||
'kaf' => 0,
|
||
'grupp' => 0,
|
||
'gp' => 0,
|
||
'kafs' => 0,
|
||
'k' => 0,
|
||
'kafus' => 0,
|
||
'user' => 0,
|
||
'kafedra' => 0,
|
||
'date_start' => 0,
|
||
'date_end' => 0,
|
||
'users' => 0,
|
||
'ki' => 0,
|
||
'user1' => 0,
|
||
'sem' => 0,
|
||
'var' => 0,
|
||
'disciplin' => 0,
|
||
'kafedras' => 0,
|
||
'grupps' => 0,
|
||
'fak' => 0,
|
||
'gf' => 0,
|
||
'gk' => 0,
|
||
'student' => 0,
|
||
'print' => 0,
|
||
'print0' => 0,
|
||
'print1' => 0,
|
||
'g0' => 0,
|
||
'ngrupps' => 0,
|
||
'stud' => 0,
|
||
'kaf1' => 0,
|
||
'k1' => 0,
|
||
'predmet' => 0,
|
||
'up' => 0,
|
||
'gr' => 0,
|
||
'check' => 0,
|
||
'sver' => 0,
|
||
'maxvid' => 0,
|
||
'file' => 0,
|
||
'kf' => 0,
|
||
'f' => 0,
|
||
'ise' => 0,
|
||
'email_user' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_625689928cef60_45662633',
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_625689928cef60_45662633')) {function content_625689928cef60_45662633($_smarty_tpl) {?><?php if (isset($_smarty_tpl->tpl_vars['st_view']->value)){?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="st39_8"){?>
|
||
<h3>Проверка активности преподавателя</h3>
|
||
<form name="active" method="post" action="#" class="form-horizontal">
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">ФИО преподавателя</label>
|
||
<div class="controls">
|
||
<div class="input-prepend">
|
||
<input type="text" name="fio" minlength="5" required />
|
||
</div>
|
||
<span class="help-inline"> <input type="submit" class="btn btn-success" name="search_active" value="Посмотреть" /></span>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</form>
|
||
<?php if (count($_smarty_tpl->tpl_vars['logs']->value)>0){?>
|
||
<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-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th width="20%">Дата</th>
|
||
<th width="80%">Событие</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['log'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['log']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['logs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['log']->key => $_smarty_tpl->tpl_vars['log']->value){
|
||
$_smarty_tpl->tpl_vars['log']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['log']->value['data_c'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['log']->value['message'];?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="st39_7"){?><div>
|
||
|
||
<h3>Активность преподавателей</h3>
|
||
|
||
<form name="active" method="post" action="#" onsubmit="return false;" class="form-horizontal">
|
||
<div class="control-group">
|
||
<label class="control-label">Кафедра</label>
|
||
<div class="controls">
|
||
<div class="input-prepend">
|
||
<select data-placeholder="Выбор кафедры" tabindex="1" name="id_kaf">
|
||
<option value="0">Выберите</option>
|
||
<?php $_smarty_tpl->tpl_vars['kaf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kaf']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['kafedres']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['kaf']->key => $_smarty_tpl->tpl_vars['kaf']->value){
|
||
$_smarty_tpl->tpl_vars['kaf']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['kaf']->value['id'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['kaf']->value['code'];?>
|
||
: <?php echo $_smarty_tpl->tpl_vars['kaf']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
<option value="Политехнический колледж МГТУ">Политехнический колледж МГТУ</option>
|
||
</select>
|
||
</div>
|
||
<span class="help-inline">Выберите кафедру или политехнический колледж</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">Дата</label>
|
||
<div class="controls">
|
||
<div class="input-prepend">
|
||
<input type="date" name="date_d" required />
|
||
</div>
|
||
<span class="help-inline">Выберите кафедру или политехнический колледж</span>
|
||
</div>
|
||
</div>
|
||
|
||
<input type="submit" class="btn btn-success active-prepods" value="Выбрать" />
|
||
|
||
</form>
|
||
<table class="table table-bordered logs-table">
|
||
|
||
</table></div>
|
||
|
||
<script type="text/javascript">
|
||
$(document).ready(function(){
|
||
//
|
||
$(".active-prepods").click(function(){
|
||
|
||
var id_kaf = $("form[name=active] select[name=id_kaf]").val();
|
||
var date_d = $("form[name=active] input[name=date_d]").val();
|
||
|
||
|
||
//alert(id_grupp);
|
||
//alert(podgrupp);
|
||
|
||
$.ajax({
|
||
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=active_prepod&id_kaf='+id_kaf+'&date_d='+date_d,
|
||
success: function(data){
|
||
//alert(123);
|
||
$('.logs-table').html(data.html);
|
||
}
|
||
});
|
||
});
|
||
});
|
||
</script>
|
||
<?php }?>
|
||
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="st39_6"){?><div>
|
||
<style>
|
||
@media print {
|
||
#header,.sidebar-scroll,#footer,h3,.alert,form{
|
||
display: none;
|
||
}
|
||
}
|
||
</style>
|
||
<h3>Активность студентов группы</h3>
|
||
<div class="alert alert-primary" role="alert">
|
||
<b>Если Вы хотите распечать страницу, нажмите <span onclick="print()"><u>сюда</u></span></b>
|
||
</div>
|
||
<form name="active" method="post" action="#" onsubmit="return false;">
|
||
<table class="table" style="width: 100%;">
|
||
<tr>
|
||
<td>Выберите группу:</td>
|
||
<td>Введите подгруппу:</td>
|
||
<td class="ajx_msg">выберите...</td>
|
||
</tr>
|
||
<tr>
|
||
<td><select data-placeholder="Выбор группы" tabindex="1" name="id_grupp" >
|
||
<option value="0">Выберите</option>
|
||
<?php $_smarty_tpl->tpl_vars['gp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gp']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['grupp']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['gp']->key => $_smarty_tpl->tpl_vars['gp']->value){
|
||
$_smarty_tpl->tpl_vars['gp']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['gp']->value['id'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['gp']->value['sokr'];?>
|
||
-<?php echo $_smarty_tpl->tpl_vars['gp']->value['kurs'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['gp']->value['fo'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select></td>
|
||
<td><input type="text" name="podgrupp" value="1" /></td>
|
||
<td><input type="submit" class="btn btn-success active-stud" value="Выбрать" /></td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
<table class="table logs-table" style="width: 100%;">
|
||
|
||
</table>
|
||
|
||
<script type="text/javascript">
|
||
$(document).ready(function(){
|
||
$(".active-stud").click(function(){
|
||
$(".ajx_msg").html("Формируем данные...");
|
||
var id_grupp = $("form[name=active] select[name=id_grupp]").val();
|
||
var podgrupp = $("form[name=active] input[name=podgrupp]").val();
|
||
$.ajax({
|
||
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=active_stud&id_grupp='+id_grupp+'&podgrupp='+podgrupp,
|
||
success: function(data){
|
||
$(".ajx_msg").html("получили данные");
|
||
$('.logs-table').html(data.html);
|
||
}
|
||
});
|
||
});
|
||
});
|
||
</script>
|
||
</div><?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="st39_5"){?><div>
|
||
<h3>Незарегистрированные преподаватели</h3>
|
||
<table class="table">
|
||
<?php $_smarty_tpl->tpl_vars['kaf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kaf']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['kafs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['kaf']->key => $_smarty_tpl->tpl_vars['kaf']->value){
|
||
$_smarty_tpl->tpl_vars['kaf']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['kaf']->key;
|
||
?>
|
||
<tr>
|
||
<td colspan="2"><b><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
||
</b></td>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['kafus'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kafus']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kus'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['kaf']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['kafus']->key => $_smarty_tpl->tpl_vars['kafus']->value){
|
||
$_smarty_tpl->tpl_vars['kafus']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kus']->value = $_smarty_tpl->tpl_vars['kafus']->key;
|
||
?>
|
||
<tr>
|
||
<td width="20%"><?php echo $_smarty_tpl->tpl_vars['kafus']->value['fio'];?>
|
||
</td>
|
||
<td width="80%"><?php echo $_smarty_tpl->tpl_vars['kafus']->value['check_learn']['msg'];?>
|
||
</td>
|
||
<?php if (count($_smarty_tpl->tpl_vars['kafus']->value['check_learn'])){?>
|
||
<table class="table">
|
||
<?php $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['ku'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['kafus']->value['check_learn']['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value){
|
||
$_smarty_tpl->tpl_vars['user']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['ku']->value = $_smarty_tpl->tpl_vars['user']->key;
|
||
?>
|
||
<tr>
|
||
<td width="10%">№<?php echo $_smarty_tpl->tpl_vars['user']->value['id'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['user']->value['email'];?>
|
||
</td>
|
||
<?php if (count($_smarty_tpl->tpl_vars['user']->value['teacher'])){?>
|
||
<td width="10%">Должность: <?php echo $_smarty_tpl->tpl_vars['user']->value['teacher']['dolgnost'];?>
|
||
</td>
|
||
<td width="40%">Факультет: <?php echo $_smarty_tpl->tpl_vars['user']->value['teacher']['fakultet'];?>
|
||
</td>
|
||
<td width="40%">Кафедра: <?php echo $_smarty_tpl->tpl_vars['user']->value['teacher']['kafedra'];?>
|
||
</td>
|
||
<?php }else{ ?><td colspan="4">не преподаватель!</td><?php }?>
|
||
</tr>
|
||
<?php } ?>
|
||
</table>
|
||
<?php }else{ ?><td colspan="2">нет в системе</td><?php }?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php } ?>
|
||
</table>
|
||
</div><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="st39_4"){?><div>
|
||
<style>
|
||
@media print {
|
||
#header,.sidebar-scroll,#footer,h3,.alert,form{
|
||
display: none;
|
||
}
|
||
}
|
||
</style>
|
||
<h3>Активность преподавателей кафедры "<?php echo $_smarty_tpl->tpl_vars['kafedra']->value;?>
|
||
"</h3>
|
||
<div class="alert alert-primary" role="alert">
|
||
<b>По умолчанию выводится за последние 2 дня. Вы можете выбрать нужный вам диапазон. Если Вы хотите распечать страницу, нажмите <span onclick="print()"><u>сюда</u></span></b>
|
||
</div>
|
||
<form name="diapazon" method="post" action="#" onsubmit="return false;">
|
||
<input type="hidden" name="kafedra" value="<?php echo $_smarty_tpl->tpl_vars['kafedra']->value;?>
|
||
" />
|
||
<div class="row-fluid" style="border-radius: 10px; border: 1px solid darkred; padding: 5px;">
|
||
<div class="span3">
|
||
Выберите диапазон:
|
||
</div>
|
||
<div class="span3">
|
||
с <input type="date" name="date_start" value="<?php echo date('Y-m-d',$_smarty_tpl->tpl_vars['date_start']->value);?>
|
||
" />
|
||
</div>
|
||
<div class="span3">
|
||
по <input type="date" name="date_end" value="<?php echo date('Y-m-d',$_smarty_tpl->tpl_vars['date_end']->value);?>
|
||
" />
|
||
</div>
|
||
<div class="span3">
|
||
<?php if (($_smarty_tpl->tpl_vars['kafedra']->value=="Политехнический колледж МГТУ")){?>
|
||
<select name="part">
|
||
<option value="1">1 часть (по умолчанию)</option>
|
||
<option value="2">2 часть</option>
|
||
<option value="3">3 часть</option>
|
||
<option value="4">4 часть</option>
|
||
<option value="5">5 часть</option>
|
||
<option value="6">6 часть</option>
|
||
<option value="7">7 часть</option>
|
||
</select>
|
||
<?php }?>
|
||
<span id="ajbtn01"><input type="submit" class="btn btn-success active-kaf" value="Выбрать" /></span>
|
||
<span id="ajbtn02" style="display:none;">загружаем...</span>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
<table class="table logs-table" style="width: 100%;">
|
||
<?php $_smarty_tpl->tpl_vars["ki"] = new Smarty_variable(1, null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars['user1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user1']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['user1']->key => $_smarty_tpl->tpl_vars['user1']->value){
|
||
$_smarty_tpl->tpl_vars['user1']->_loop = true;
|
||
?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ki']->value==1){?><tr><?php }?>
|
||
<td width="33%"><h4 align="center"><?php echo $_smarty_tpl->tpl_vars['user1']->value['fio'];?>
|
||
</h4>
|
||
<p style="max-width: 350px; word-wrap: break-word;"><?php $_smarty_tpl->tpl_vars['log'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['log']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['user1']->value['logs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['log']->key => $_smarty_tpl->tpl_vars['log']->value){
|
||
$_smarty_tpl->tpl_vars['log']->_loop = true;
|
||
?>
|
||
<?php echo $_smarty_tpl->tpl_vars['log']->value['data_c'];?>
|
||
: <?php echo $_smarty_tpl->tpl_vars['log']->value['message'];?>
|
||
<br />
|
||
<?php } ?></p>
|
||
</td>
|
||
<?php if ($_smarty_tpl->tpl_vars['ki']->value>=3){?></tr><?php $_smarty_tpl->tpl_vars["ki"] = new Smarty_variable(0, null, 0);?><?php }?>
|
||
<?php $_smarty_tpl->tpl_vars["ki"] = new Smarty_variable($_smarty_tpl->tpl_vars['ki']->value+1, null, 0);?>
|
||
<?php } ?>
|
||
</table>
|
||
</div><?php }?>
|
||
|
||
<script type="text/javascript">
|
||
$(document).ready(function(){
|
||
|
||
//$("input[name=date_start]").val( (new Date()).toString('dd.MM.yyyy') );
|
||
|
||
|
||
$(".active-kaf").click(function(){
|
||
var kafedra = $("form[name=diapazon] input[name=kafedra]").val();
|
||
var date_start = $("form[name=diapazon] input[name=date_start]").val();
|
||
var date_end = $("form[name=diapazon] input[name=date_end]").val();
|
||
<?php if (($_smarty_tpl->tpl_vars['kafedra']->value=="Политехнический колледж МГТУ")){?>
|
||
var part = $("form[name=diapazon] select[name=part]").val();
|
||
<?php }else{ ?>
|
||
var part = 0;
|
||
<?php }?>
|
||
$("#ajbtn01").hide();
|
||
$("#ajbtn02").show();
|
||
$('.logs-table').html('<tr><td>получаем данные</td></tr>');
|
||
$.ajax({
|
||
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=active_kaf&kafedra='+kafedra+'&date_start='+date_start+'&date_end='+date_end+'&part='+part,
|
||
success: function(data){
|
||
//alert(123);
|
||
$('.logs-table').html(data.html);
|
||
$("#ajbtn02").hide();
|
||
$("#ajbtn01").show();
|
||
}
|
||
});
|
||
return false;
|
||
});
|
||
});
|
||
</script>
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="39_3"){?><div>
|
||
<table class="table"><tr><td>Отобразить семестры: <?php $_smarty_tpl->tpl_vars['var'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['var']->step = 1;$_smarty_tpl->tpl_vars['var']->total = (int)ceil(($_smarty_tpl->tpl_vars['var']->step > 0 ? 12+1 - (1) : 1-(12)+1)/abs($_smarty_tpl->tpl_vars['var']->step));
|
||
if ($_smarty_tpl->tpl_vars['var']->total > 0){
|
||
for ($_smarty_tpl->tpl_vars['var']->value = 1, $_smarty_tpl->tpl_vars['var']->iteration = 1;$_smarty_tpl->tpl_vars['var']->iteration <= $_smarty_tpl->tpl_vars['var']->total;$_smarty_tpl->tpl_vars['var']->value += $_smarty_tpl->tpl_vars['var']->step, $_smarty_tpl->tpl_vars['var']->iteration++){
|
||
$_smarty_tpl->tpl_vars['var']->first = $_smarty_tpl->tpl_vars['var']->iteration == 1;$_smarty_tpl->tpl_vars['var']->last = $_smarty_tpl->tpl_vars['var']->iteration == $_smarty_tpl->tpl_vars['var']->total;?><a class="btn btn-<?php if ($_smarty_tpl->tpl_vars['sem']->value==$_smarty_tpl->tpl_vars['var']->value){?>success<?php }else{ ?>default<?php }?>" href="/statuses/st39_3/<?php echo $_smarty_tpl->tpl_vars['var']->value;?>
|
||
/"><?php echo $_smarty_tpl->tpl_vars['var']->value;?>
|
||
</a> <?php }} ?></td></tr></table>
|
||
<table class="table">
|
||
<thead>
|
||
<tr>
|
||
<th>Дисциплина</th>
|
||
<th>Группа</th>
|
||
<th>ФО</th>
|
||
<th>Курс</th>
|
||
<th>Преподаватель</th>
|
||
<!--th><?php echo $_smarty_tpl->tpl_vars['disciplin']->value['name'];?>
|
||
</th-->
|
||
</tr></thead>
|
||
<?php $_smarty_tpl->tpl_vars['kafedra'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kafedra']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['kafedras']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['kafedra']->key => $_smarty_tpl->tpl_vars['kafedra']->value){
|
||
$_smarty_tpl->tpl_vars['kafedra']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td colspan="5">Кафедра: <b><?php echo $_smarty_tpl->tpl_vars['kafedra']->value['kafedra'];?>
|
||
</b></td>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['disciplin'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['disciplin']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['kafedra']->value['disciplins']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['disciplin']->key => $_smarty_tpl->tpl_vars['disciplin']->value){
|
||
$_smarty_tpl->tpl_vars['disciplin']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['disciplin']->value['name_disp'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['disciplin']->value['spec'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['disciplin']->value['fo'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['disciplin']->value['kurs'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['disciplin']->value['fio'];?>
|
||
</td>
|
||
<!--td><?php echo $_smarty_tpl->tpl_vars['disciplin']->value['name'];?>
|
||
</td-->
|
||
</tr>
|
||
<?php } ?>
|
||
<?php } ?>
|
||
</table>
|
||
</div><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="39_2"){?><div>
|
||
<h3 align="center">Список студентов</h3>
|
||
<div class="accordion" id="accordion1">
|
||
<?php $_smarty_tpl->tpl_vars['gf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gf']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['fak'] = 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['gf']->key => $_smarty_tpl->tpl_vars['gf']->value){
|
||
$_smarty_tpl->tpl_vars['gf']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['fak']->value = $_smarty_tpl->tpl_vars['gf']->key;
|
||
?>
|
||
<h3><?php echo $_smarty_tpl->tpl_vars['fak']->value;?>
|
||
<?php if (($_smarty_tpl->tpl_vars['fak']->value[0]=="!")){?><?php }else{ ?><a href="/statuses/st39_2/print0/1/<?php echo $_smarty_tpl->tpl_vars['fak']->value;?>
|
||
/" target="_blank">Печать</a></h3><?php }?>
|
||
|
||
<?php $_smarty_tpl->tpl_vars['gk'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gk']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kaf'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['gf']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['gk']->key => $_smarty_tpl->tpl_vars['gk']->value){
|
||
$_smarty_tpl->tpl_vars['gk']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kaf']->value = $_smarty_tpl->tpl_vars['gk']->key;
|
||
?>
|
||
<div class="widget orange" <?php if (($_smarty_tpl->tpl_vars['fak']->value[0]=="!")){?> style="display: none;"<?php }?>>
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> <?php echo $_smarty_tpl->tpl_vars['kaf']->value;?>
|
||
<a href="/statuses/st39_2/print1/1/<?php echo $_smarty_tpl->tpl_vars['kaf']->value;?>
|
||
/" target="_blank">Печать</a></h4><span class="tools"><a class="icon-chevron-up" href="javascript:;"></a></span>
|
||
</div>
|
||
<div class="widget-body" style="display:none;">
|
||
<?php $_smarty_tpl->tpl_vars['grupp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['grupp']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['gk']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['grupp']->key => $_smarty_tpl->tpl_vars['grupp']->value){
|
||
$_smarty_tpl->tpl_vars['grupp']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['grupp']->key;
|
||
?>
|
||
<div class="accordion-group">
|
||
<div class="accordion-heading">
|
||
<div class="accordion-toggle">
|
||
<table width="100%"><tr>
|
||
<td width="30%">
|
||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
||
" href="#collapse_<?php echo $_smarty_tpl->tpl_vars['grupp']->value['id'];?>
|
||
_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
||
"><b<?php if (count($_smarty_tpl->tpl_vars['grupp']->value['students'])==0){?> style="color:red;"<?php }?>>
|
||
<?php echo $_smarty_tpl->tpl_vars['grupp']->value['sokr'];?>
|
||
</b>-<?php echo $_smarty_tpl->tpl_vars['grupp']->value['kurs'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['grupp']->value['fo'];?>
|
||
|
||
</a></td>
|
||
<td width="30%">[Всего : <?php echo count($_smarty_tpl->tpl_vars['grupp']->value['students']);?>
|
||
студента(ов).]</td>
|
||
<td width="40%"><a href="/statuses/st39_2/print/<?php echo $_smarty_tpl->tpl_vars['grupp']->value['id'];?>
|
||
/" target="_blank">Печать</a></td>
|
||
</tr></table>
|
||
</div>
|
||
</div>
|
||
<div id="collapse_<?php echo $_smarty_tpl->tpl_vars['grupp']->value['id'];?>
|
||
_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
||
" class="accordion-body collapse" style="height: 0px;">
|
||
<div class="accordion-inner">
|
||
<form method="POST" class="save_students">
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th width="5%">подГруппа</th>
|
||
<th width="20%">ФИО</th>
|
||
<th width="20%">емаил</th>
|
||
<th width="10%">Последний заход</th>
|
||
<th width="15%">Номер зачетки</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['student'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['student']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['s'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['grupp']->value['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['student']->key => $_smarty_tpl->tpl_vars['student']->value){
|
||
$_smarty_tpl->tpl_vars['student']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['s']->value = $_smarty_tpl->tpl_vars['student']->key;
|
||
?>
|
||
<tr>
|
||
<td><input type="TEXT" value="<?php echo $_smarty_tpl->tpl_vars['student']->value['num_grupp'];?>
|
||
" class="podgrupp" name="podgrupp[<?php echo $_smarty_tpl->tpl_vars['student']->value['id'];?>
|
||
]" style="width:60px;"></td>
|
||
<td><b><?php echo $_smarty_tpl->tpl_vars['student']->value['fio'];?>
|
||
</b></td>
|
||
<td><input type="TEXT" value="<?php echo $_smarty_tpl->tpl_vars['student']->value['email'];?>
|
||
" class="email" name="email[<?php echo $_smarty_tpl->tpl_vars['student']->value['uid'];?>
|
||
]"></td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['student']->value['data_u'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['student']->value['num_zach'];?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?>
|
||
<input type="HIDDEN" name="ajdes" value="save_students">
|
||
<input type="HIDDEN" name="gid" value="<?php echo $_smarty_tpl->tpl_vars['grupp']->value['id'];?>
|
||
">
|
||
<input type="SUBMIT" value="Сохранить студентов" class="save_students_b"><span class="ajmes_<?php echo $_smarty_tpl->tpl_vars['grupp']->value['id'];?>
|
||
"></span>
|
||
<?php }?>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php } ?>
|
||
</div>
|
||
</div>
|
||
<?php } ?>
|
||
<?php } ?>
|
||
|
||
</div>
|
||
<?php if ($_smarty_tpl->tpl_vars['print']->value==0&&$_smarty_tpl->tpl_vars['print0']->value==0&&$_smarty_tpl->tpl_vars['print1']->value==0){?>
|
||
<h3>Список групп не вошедших в кафедры</h3>
|
||
<div class="accordion" id="accordion1">
|
||
<?php $_smarty_tpl->tpl_vars['grupp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['grupp']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['g0']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['grupp']->key => $_smarty_tpl->tpl_vars['grupp']->value){
|
||
$_smarty_tpl->tpl_vars['grupp']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['grupp']->key;
|
||
?>
|
||
<div class="accordion-group">
|
||
<div class="accordion-heading">
|
||
<div class="accordion-toggle">
|
||
<table width="100%"><tr>
|
||
<td width="30%">
|
||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
||
" href="#collapse_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
||
"><b<?php if (count($_smarty_tpl->tpl_vars['grupp']->value['students'])==0){?> style="color:red;"<?php }?>>
|
||
<?php echo $_smarty_tpl->tpl_vars['grupp']->value['sokr'];?>
|
||
</b>-<?php echo $_smarty_tpl->tpl_vars['grupp']->value['kurs'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['grupp']->value['fo'];?>
|
||
|
||
</a></td>
|
||
<td width="30%">[Всего : <?php echo count($_smarty_tpl->tpl_vars['grupp']->value['students']);?>
|
||
студента(ов).]</td>
|
||
<td width="40%"><a href="/statuses/st39_2/print/<?php echo $_smarty_tpl->tpl_vars['grupp']->value['id'];?>
|
||
/" target="_blank">Печать</a></td>
|
||
</tr></table>
|
||
</div>
|
||
</div>
|
||
<div id="collapse_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
||
" class="accordion-body collapse" style="height: 0px;">
|
||
<div class="accordion-inner">
|
||
<form method="POST" class="save_students">
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th width="5%">подГруппа</th>
|
||
<th width="20%">ФИО</th>
|
||
<th width="20%">емаил</th>
|
||
<th width="10%">Последний заход</th>
|
||
<th width="15%">Номер зачетки</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['student'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['student']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['s'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['grupp']->value['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['student']->key => $_smarty_tpl->tpl_vars['student']->value){
|
||
$_smarty_tpl->tpl_vars['student']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['s']->value = $_smarty_tpl->tpl_vars['student']->key;
|
||
?>
|
||
<tr>
|
||
<td><input type="TEXT" value="<?php echo $_smarty_tpl->tpl_vars['student']->value['num_grupp'];?>
|
||
" class="podgrupp" name="podgrupp[<?php echo $_smarty_tpl->tpl_vars['student']->value['id'];?>
|
||
]" style="width:60px;"></td>
|
||
<td><b><?php echo $_smarty_tpl->tpl_vars['student']->value['fio'];?>
|
||
</b></td>
|
||
<td><input type="TEXT" value="<?php echo $_smarty_tpl->tpl_vars['student']->value['email'];?>
|
||
" class="email" name="email[<?php echo $_smarty_tpl->tpl_vars['student']->value['uid'];?>
|
||
]"></td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['student']->value['data_u'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['student']->value['num_zach'];?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?>
|
||
<input type="HIDDEN" name="ajdes" value="save_students">
|
||
<input type="HIDDEN" name="gid" value="<?php echo $_smarty_tpl->tpl_vars['grupp']->value['id'];?>
|
||
">
|
||
<input type="SUBMIT" value="Сохранить студентов" class="save_students_b"><span class="ajmes_<?php echo $_smarty_tpl->tpl_vars['grupp']->value['id'];?>
|
||
"></span>
|
||
<?php }?>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php } ?>
|
||
</div>
|
||
<h3>Список студентов не вошедших в группы</h3>
|
||
<table class="table">
|
||
<tr>
|
||
<th>UID</th>
|
||
<th>ФИО</th>
|
||
<th>email</th>
|
||
<th>Дата</th>
|
||
<th>Номер зач</th>
|
||
<th>Групп</th>
|
||
</tr>
|
||
<?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['ngrupps']->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;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stud']->value['uid'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stud']->value['fio'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stud']->value['email'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stud']->value['data_u'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stud']->value['num_zach'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stud']->value['id_grupp'];?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</table>
|
||
<?php }?>
|
||
</div>
|
||
<script>$(document).ready(function(){
|
||
$(".save_students").submit(function(){
|
||
var data = $(this).serializeArray();
|
||
|
||
$.ajax({url: '../../../inc/statuses.php', type : "POST", dataType : 'json', data : data,
|
||
success : function(result) {
|
||
$(".ajmes_"+result.gid).html(result.html);
|
||
},error: function(xhr, resp, text) {}
|
||
});
|
||
return false;
|
||
});
|
||
})</script>
|
||
<?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="39_1"){?><div>
|
||
<h3>Список преподавателей</h3>
|
||
<form method="POST">
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th width="20%">ФИО</th>
|
||
<th width="10%">Последний заход</th>
|
||
<th width="15%">Звание</th>
|
||
<th width="15%">Должность</th>
|
||
<th width="10%">Степень</th>
|
||
<th width="15%">Факультет</th>
|
||
<th width="15%">Кафедра</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['user1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user1']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['user1']->key => $_smarty_tpl->tpl_vars['user1']->value){
|
||
$_smarty_tpl->tpl_vars['user1']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td><b><?php echo $_smarty_tpl->tpl_vars['user1']->value['fio'];?>
|
||
</b></td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['user1']->value['data_u'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['user1']->value['zvanie'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['user1']->value['dolgnost'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['user1']->value['stepen'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['user1']->value['fakultet'];?>
|
||
</td>
|
||
<td><?php if ($_smarty_tpl->tpl_vars['user1']->value['kafedra']!=''){?><b style="color:green"><?php echo $_smarty_tpl->tpl_vars['user1']->value['kafedra'];?>
|
||
</b><?php }else{ ?><b style="color:blue">нет</b><?php }?><br>
|
||
<?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?>В расчете часов: <?php if (isset($_smarty_tpl->tpl_vars['kafs']->value[$_smarty_tpl->tpl_vars['user1']->value['fio']])){?><b style="color:red">нет</b><?php }else{ ?>
|
||
<select name="kafs[<?php echo $_smarty_tpl->tpl_vars['user1']->value['fio'];?>
|
||
]"><?php $_smarty_tpl->tpl_vars['kaf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kaf']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['kafs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['kaf']->key => $_smarty_tpl->tpl_vars['kaf']->value){
|
||
$_smarty_tpl->tpl_vars['kaf']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['kaf']->key;
|
||
?>
|
||
<?php if ($_smarty_tpl->tpl_vars['kaf']->value['fio']==$_smarty_tpl->tpl_vars['user1']->value['fio']){?><option value="">нет</option><?php $_smarty_tpl->tpl_vars['kaf1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kaf1']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['kaf']->value['kafs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['kaf1']->key => $_smarty_tpl->tpl_vars['kaf1']->value){
|
||
$_smarty_tpl->tpl_vars['kaf1']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k1']->value = $_smarty_tpl->tpl_vars['kaf1']->key;
|
||
?><option value="<?php echo $_smarty_tpl->tpl_vars['kaf1']->value;?>
|
||
"<?php if ($_smarty_tpl->tpl_vars['k1']->value==0){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['kaf1']->value;?>
|
||
</option><?php } ?><?php }?>
|
||
<?php } ?></select><?php }?><?php }?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?><input type="SUBMIT" name="link_kafs" value="Сохранить кафедры"><?php }?>
|
||
</form>
|
||
</div><?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="st39"){?><div><h3>Список кафедр</h3><table class="table">
|
||
<?php $_smarty_tpl->tpl_vars['kafedra'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kafedra']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['kafedras']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['kafedra']->key => $_smarty_tpl->tpl_vars['kafedra']->value){
|
||
$_smarty_tpl->tpl_vars['kafedra']->_loop = true;
|
||
?>
|
||
<tr><td><a href="/statuses/st39/<?php echo $_smarty_tpl->tpl_vars['kafedra']->value['url'];?>
|
||
/"><?php echo $_smarty_tpl->tpl_vars['kafedra']->value['kafedra'];?>
|
||
</a></td><td><a href="/statuses/st39_4/<?php echo $_smarty_tpl->tpl_vars['kafedra']->value['url'];?>
|
||
/">Активность кафедры</a></td></tr>
|
||
<?php } ?>
|
||
</table></div><?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="st39_01"){?><!--NEW PROVERKA-->
|
||
<a href="/statuses/st39/">Вернуться к кафедрам</a> | <a href="/tpl/tpl_statuses_help.html" target="_blank">Помощь</a><hr>
|
||
<h3>Проверка кафедры "<?php echo $_smarty_tpl->tpl_vars['kafedra']->value;?>
|
||
"</h3>
|
||
<?php }?>
|
||
|
||
<p align="right"><input type="checkbox" name="public" id="public" value="yes" /> Убрать описание</p>
|
||
<script type="text/javascript">
|
||
$(document).ready(function(){
|
||
|
||
<!--Скрыть/отобразщить блок-->
|
||
$("input#public").change(function(){
|
||
//alert(2);
|
||
if ($(this).attr("checked")) {
|
||
$('.hide-td').css('display', 'none');
|
||
return;
|
||
} else {
|
||
$('.hide-td').css('display', 'block');
|
||
}
|
||
|
||
});
|
||
})
|
||
</script>
|
||
|
||
<?php $_smarty_tpl->tpl_vars['user1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user1']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['user1']->key => $_smarty_tpl->tpl_vars['user1']->value){
|
||
$_smarty_tpl->tpl_vars['user1']->_loop = true;
|
||
?>
|
||
<div class="widget blue">
|
||
<div class="widget-title">
|
||
<h4><?php echo $_smarty_tpl->tpl_vars['user1']->value['fio'];?>
|
||
</h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-up"> Развернуть/Свернуть</a></span>
|
||
</div>
|
||
<div class="widget-body" style="display: none;">
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th width="3%" align="center"><?php if ($_smarty_tpl->tpl_vars['user1']->value['foto']!=''){?><img src="/upload/users/ava/<?php echo $_smarty_tpl->tpl_vars['user1']->value['foto'];?>
|
||
" style="width:100%;float:left;"><?php }?></th>
|
||
<th width="25%"><h4><?php echo $_smarty_tpl->tpl_vars['user1']->value['fio'];?>
|
||
</h4>Был(а) в сети: <span class="label label-info"><?php echo $_smarty_tpl->tpl_vars['user1']->value['data_u'];?>
|
||
</span></th>
|
||
<th width="67%">
|
||
Звание: <?php if ($_smarty_tpl->tpl_vars['user1']->value['zvanie']!=''){?><?php echo $_smarty_tpl->tpl_vars['user1']->value['zvanie'];?>
|
||
<?php }else{ ?>Звание:нет<?php }?><br />
|
||
Должность: <?php if ($_smarty_tpl->tpl_vars['user1']->value['dolgnost']!=''){?><?php echo $_smarty_tpl->tpl_vars['user1']->value['dolgnost'];?>
|
||
<?php }else{ ?>нет<?php }?><br />
|
||
Уч.степень: <?php if ($_smarty_tpl->tpl_vars['user1']->value['stepen']!=''){?><?php echo $_smarty_tpl->tpl_vars['user1']->value['stepen'];?>
|
||
<?php }else{ ?>нет<?php }?>
|
||
</th>
|
||
<th width="5%">
|
||
<a href="/pm/writeuser/<?php echo $_smarty_tpl->tpl_vars['user1']->value['id_user'];?>
|
||
/" class="btn btn-warning" target="_blank">Написать</a>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['predmet'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['predmet']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['user1']->value['predmets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['predmet']->key => $_smarty_tpl->tpl_vars['predmet']->value){
|
||
$_smarty_tpl->tpl_vars['predmet']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['predmet']->key;
|
||
?>
|
||
<?php $_smarty_tpl->tpl_vars['check'] = new Smarty_variable('0', null, 0);?> <!--переменная для проверки-->
|
||
<?php $_smarty_tpl->tpl_vars['maxvid'] = new Smarty_variable('0', null, 0);?> <!--максимальное количество видов работ, рабочие не считаем -->
|
||
<tr>
|
||
<td style="vertical-align: top!important;"><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
||
</td>
|
||
<td style="vertical-align: top!important;"><?php echo $_smarty_tpl->tpl_vars['predmet']->value['name_disp'];?>
|
||
<!--(<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id_what'];?>
|
||
)--><br><b><?php echo $_smarty_tpl->tpl_vars['predmet']->value['spec'];?>
|
||
-<?php echo $_smarty_tpl->tpl_vars['predmet']->value['kurs'];?>
|
||
<b> сем.<?php echo $_smarty_tpl->tpl_vars['predmet']->value['semestr'];?>
|
||
<b><?php echo $_smarty_tpl->tpl_vars['predmet']->value['fo'];?>
|
||
</td>
|
||
<td>
|
||
<table class="table">
|
||
|
||
<!--РАБОЧИЕ ПРОГРАММЫ-->
|
||
<?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0, null, 0);?>
|
||
<tr>
|
||
<td class="label-info" width="15%" style="background: #cddc39;">Раб. программы</td>
|
||
<td width="85%" class="hide-td">
|
||
<ol>
|
||
<?php $_smarty_tpl->tpl_vars['up'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['up']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kk'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['predmet']->value['rabProgram']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['up']->key => $_smarty_tpl->tpl_vars['up']->value){
|
||
$_smarty_tpl->tpl_vars['up']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kk']->value = $_smarty_tpl->tpl_vars['up']->key;
|
||
?>
|
||
<!--есть хоть какие-то файлы по дисциплине и если он уже не равен 1 баллу-->
|
||
<li><?php echo $_smarty_tpl->tpl_vars['up']->value['name'];?>
|
||
(<?php echo $_smarty_tpl->tpl_vars['up']->value['data_u'];?>
|
||
) <a href="/upload/workprogram/<?php echo $_smarty_tpl->tpl_vars['up']->value['file'];?>
|
||
" class="badge badge-info" target="_blank">Файл </a> <?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['grupps']; 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;
|
||
?>
|
||
<!--Если привязана нужная специальность, то начисляем балл-->
|
||
<span class="badge badge-purple" style="background-color: #db9136;"><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
|
||
</span> <?php } ?></li>
|
||
<?php } ?>
|
||
</ol>
|
||
</td>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['check'] = new Smarty_variable(($_smarty_tpl->tpl_vars['check']->value+$_smarty_tpl->tpl_vars['sver']->value), null, 0);?> <!--Прибавляем баллы для подсчета-->
|
||
|
||
<!--ДАЛЕЕ ИДУТ ОБЫЧНЫЕ УЧЕБНЫЕ МАТЕРИАЛЫ-->
|
||
<?php if (($_smarty_tpl->tpl_vars['predmet']->value['lekcii']>0)){?> <?php $_smarty_tpl->tpl_vars['maxvid'] = new Smarty_variable(($_smarty_tpl->tpl_vars['maxvid']->value+1), null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0, null, 0);?> <!--переменная для сверки-->
|
||
<tr>
|
||
<td class="label-info" width="15%">Лекции: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['lekcii'];?>
|
||
</td>
|
||
<td width="85%" class="hide-td">
|
||
<ol>
|
||
<?php $_smarty_tpl->tpl_vars['up'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['up']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kk'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['predmet']->value['myLection']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['up']->key => $_smarty_tpl->tpl_vars['up']->value){
|
||
$_smarty_tpl->tpl_vars['up']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kk']->value = $_smarty_tpl->tpl_vars['up']->key;
|
||
?><?php if (($_smarty_tpl->tpl_vars['up']->value['type']=="лек")){?>
|
||
<?php if (($_smarty_tpl->tpl_vars['sver']->value!=1)){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0.5, null, 0);?> <?php }?><!--есть хоть какие-то файлы по дисциплине и если он уже не равен 1 баллу-->
|
||
<li><?php echo $_smarty_tpl->tpl_vars['up']->value['name'];?>
|
||
(<?php echo $_smarty_tpl->tpl_vars['up']->value['data_u'];?>
|
||
) <?php if (($_smarty_tpl->tpl_vars['up']->value['module']==1)){?><span class="badge badge-success" style="background-color: #db9136;">+</span><?php }?>
|
||
<?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['file']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kf'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value){
|
||
$_smarty_tpl->tpl_vars['file']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kf']->value = $_smarty_tpl->tpl_vars['file']->key;
|
||
?><a href="/upload/lections/<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
||
" class="badge badge-info" target="_blank">Файл <?php echo $_smarty_tpl->tpl_vars['kf']->value+1;?>
|
||
</a> <?php } ?>
|
||
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['grupps']; 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;
|
||
?>
|
||
<?php if (strpos($_smarty_tpl->tpl_vars['gr']->value['sokr'],$_smarty_tpl->tpl_vars['predmet']->value['spec'])!==false){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(1, null, 0);?> <?php }else{ ?> <?php }?><!--Если привязана нужная специальность, то начисляем балл-->
|
||
<span class="badge badge-purple" style="background-color: #db9136;"><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
|
||
</span> <?php } ?></li>
|
||
<?php }?><?php } ?>
|
||
</ol>
|
||
</td>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['check'] = new Smarty_variable(($_smarty_tpl->tpl_vars['check']->value+$_smarty_tpl->tpl_vars['sver']->value), null, 0);?> <!--Прибавляем баллы для подсчета-->
|
||
<?php }?>
|
||
|
||
<?php if ((($_smarty_tpl->tpl_vars['predmet']->value['prakt_sem_zan']>0)||($_smarty_tpl->tpl_vars['predmet']->value['lab_zan']>0))){?> <?php $_smarty_tpl->tpl_vars['maxvid'] = new Smarty_variable(($_smarty_tpl->tpl_vars['maxvid']->value+1), null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0, null, 0);?> <!--переменная для сверки-->
|
||
<tr>
|
||
<td class="label-success" width="15%">
|
||
Практ./сем.: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['prakt_sem_zan'];?>
|
||
<br />
|
||
Лаб.: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['lab_zan'];?>
|
||
|
||
</td>
|
||
<td width="85%" class="hide-td">
|
||
<ol>
|
||
<?php $_smarty_tpl->tpl_vars['up'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['up']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kk'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['predmet']->value['myLection']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['up']->key => $_smarty_tpl->tpl_vars['up']->value){
|
||
$_smarty_tpl->tpl_vars['up']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kk']->value = $_smarty_tpl->tpl_vars['up']->key;
|
||
?><?php if (($_smarty_tpl->tpl_vars['up']->value['type']=="лаб")){?>
|
||
<?php if (($_smarty_tpl->tpl_vars['sver']->value!=1)){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0.5, null, 0);?> <?php }?><!--есть хоть какие-то файлы по дисциплине и если он уже не равен 1 баллу-->
|
||
<li><?php echo $_smarty_tpl->tpl_vars['up']->value['name'];?>
|
||
(<?php echo $_smarty_tpl->tpl_vars['up']->value['data_u'];?>
|
||
) <?php if (($_smarty_tpl->tpl_vars['up']->value['module']==1)){?><span class="badge badge-success" style="background-color: #db9136;">+</span><?php }?>
|
||
<?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['file']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kf'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value){
|
||
$_smarty_tpl->tpl_vars['file']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kf']->value = $_smarty_tpl->tpl_vars['file']->key;
|
||
?>
|
||
<?php if (strpos($_smarty_tpl->tpl_vars['file']->value,"https://eios.mkgtu.ru/")!==false){?><a href="<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
||
" class="badge badge-info" target="_blank">Файл <?php echo $_smarty_tpl->tpl_vars['kf']->value+1;?>
|
||
</a><?php echo $_smarty_tpl->tpl_vars['f']->value;?>
|
||
</a>
|
||
<?php }else{ ?><a href="/upload/lections/<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
||
" class="badge badge-info" target="_blank">Файл <?php echo $_smarty_tpl->tpl_vars['kf']->value+1;?>
|
||
</a><?php }?>
|
||
<?php } ?>
|
||
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['grupps']; 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;
|
||
?>
|
||
<?php if (strpos($_smarty_tpl->tpl_vars['gr']->value['sokr'],$_smarty_tpl->tpl_vars['predmet']->value['spec'])!==false){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(1, null, 0);?> <?php }else{ ?> <?php }?><!--Если привязана нужная специальность, то начисляем балл-->
|
||
<span class="badge badge-purple" style="background-color: #db9136;"><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
|
||
</span> <?php } ?></li>
|
||
<?php }?><?php } ?>
|
||
</ol>
|
||
</td>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['check'] = new Smarty_variable(($_smarty_tpl->tpl_vars['check']->value+$_smarty_tpl->tpl_vars['sver']->value), null, 0);?> <!--Прибавляем баллы для подсчета-->
|
||
<?php }?>
|
||
|
||
<?php if (($_smarty_tpl->tpl_vars['predmet']->value['kr']>0)){?> <?php $_smarty_tpl->tpl_vars['maxvid'] = new Smarty_variable(($_smarty_tpl->tpl_vars['maxvid']->value+1), null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0, null, 0);?> <!--переменная для сверки-->
|
||
<tr>
|
||
<td class="label-warning" width="15%">Контр.: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['kr'];?>
|
||
</td>
|
||
<td width="85%" class="hide-td">
|
||
<ol>
|
||
<?php $_smarty_tpl->tpl_vars['up'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['up']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kk'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['predmet']->value['myLection']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['up']->key => $_smarty_tpl->tpl_vars['up']->value){
|
||
$_smarty_tpl->tpl_vars['up']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kk']->value = $_smarty_tpl->tpl_vars['up']->key;
|
||
?><?php if (($_smarty_tpl->tpl_vars['up']->value['type']=="контр")){?>
|
||
<?php if (($_smarty_tpl->tpl_vars['sver']->value!=1)){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0.5, null, 0);?> <?php }?><!--есть хоть какие-то файлы по дисциплине и если он уже не равен 1 баллу-->
|
||
<li><?php echo $_smarty_tpl->tpl_vars['up']->value['name'];?>
|
||
(<?php echo $_smarty_tpl->tpl_vars['up']->value['data_u'];?>
|
||
) <?php if (($_smarty_tpl->tpl_vars['up']->value['module']==1)){?><span class="badge badge-success" style="background-color: #db9136;">+</span><?php }?>
|
||
<?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['file']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kf'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value){
|
||
$_smarty_tpl->tpl_vars['file']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kf']->value = $_smarty_tpl->tpl_vars['file']->key;
|
||
?>
|
||
<?php if (strpos($_smarty_tpl->tpl_vars['file']->value,"https://eios.mkgtu.ru/")!==false){?><a href="<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
||
" class="badge badge-info" target="_blank">Файл <?php echo $_smarty_tpl->tpl_vars['kf']->value+1;?>
|
||
</a><?php echo $_smarty_tpl->tpl_vars['f']->value;?>
|
||
</a>
|
||
<?php }else{ ?><a href="/upload/lections/<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
||
" class="badge badge-info" target="_blank">Файл <?php echo $_smarty_tpl->tpl_vars['kf']->value+1;?>
|
||
</a><?php }?>
|
||
<?php } ?>
|
||
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['grupps']; 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;
|
||
?>
|
||
<?php if (strpos($_smarty_tpl->tpl_vars['gr']->value['sokr'],$_smarty_tpl->tpl_vars['predmet']->value['spec'])!==false){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(1, null, 0);?> <?php }else{ ?> <?php }?><!--Если привязана нужная специальность, то начисляем балл-->
|
||
<span class="badge badge-purple" style="background-color: #db9136;"><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
|
||
</span> <?php } ?></li>
|
||
<?php }?><?php } ?>
|
||
</ol>
|
||
</td>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['check'] = new Smarty_variable(($_smarty_tpl->tpl_vars['check']->value+$_smarty_tpl->tpl_vars['sver']->value), null, 0);?> <!--Прибавляем баллы для подсчета-->
|
||
<?php }?>
|
||
|
||
<?php if ((($_smarty_tpl->tpl_vars['predmet']->value['kur']>0)||($_smarty_tpl->tpl_vars['predmet']->value['kup']>0))){?> <?php $_smarty_tpl->tpl_vars['maxvid'] = new Smarty_variable(($_smarty_tpl->tpl_vars['maxvid']->value+1), null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0, null, 0);?> <!--переменная для сверки-->
|
||
<tr>
|
||
<td class="danger" style="background: #f5b9b9;" width="15%">
|
||
Курс.: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['kur'];?>
|
||
<br />
|
||
КурП.: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['kup'];?>
|
||
|
||
</td>
|
||
<td width="85%" class="hide-td">
|
||
<ol>
|
||
<?php $_smarty_tpl->tpl_vars['up'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['up']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kk'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['predmet']->value['myLection']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['up']->key => $_smarty_tpl->tpl_vars['up']->value){
|
||
$_smarty_tpl->tpl_vars['up']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kk']->value = $_smarty_tpl->tpl_vars['up']->key;
|
||
?><?php if (($_smarty_tpl->tpl_vars['up']->value['type']=="курс")){?>
|
||
<?php if (($_smarty_tpl->tpl_vars['sver']->value!=1)){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0.5, null, 0);?> <?php }?><!--есть хоть какие-то файлы по дисциплине и если он уже не равен 1 баллу-->
|
||
<li><?php echo $_smarty_tpl->tpl_vars['up']->value['name'];?>
|
||
(<?php echo $_smarty_tpl->tpl_vars['up']->value['data_u'];?>
|
||
) <?php if (($_smarty_tpl->tpl_vars['up']->value['module']==1)){?><span class="badge badge-success" style="background-color: #db9136;">+</span><?php }?>
|
||
<?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['file']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kf'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value){
|
||
$_smarty_tpl->tpl_vars['file']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kf']->value = $_smarty_tpl->tpl_vars['file']->key;
|
||
?>
|
||
<?php if (strpos($_smarty_tpl->tpl_vars['file']->value,"https://eios.mkgtu.ru/")!==false){?><a href="<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
||
" class="badge badge-info" target="_blank">Файл <?php echo $_smarty_tpl->tpl_vars['kf']->value+1;?>
|
||
</a><?php echo $_smarty_tpl->tpl_vars['f']->value;?>
|
||
</a>
|
||
<?php }else{ ?><a href="/upload/lections/<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
||
" class="badge badge-info" target="_blank">Файл <?php echo $_smarty_tpl->tpl_vars['kf']->value+1;?>
|
||
</a><?php }?>
|
||
<?php } ?>
|
||
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['grupps']; 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;
|
||
?>
|
||
<?php if (strpos($_smarty_tpl->tpl_vars['gr']->value['sokr'],$_smarty_tpl->tpl_vars['predmet']->value['spec'])!==false){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(1, null, 0);?> <?php }else{ ?> <?php }?><!--Если привязана нужная специальность, то начисляем балл-->
|
||
<span class="badge badge-purple" style="background-color: #db9136;"><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
|
||
</span> <?php } ?></li>
|
||
<?php }?><?php } ?>
|
||
</ol>
|
||
</td>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['check'] = new Smarty_variable(($_smarty_tpl->tpl_vars['check']->value+$_smarty_tpl->tpl_vars['sver']->value), null, 0);?> <!--Прибавляем баллы для подсчета-->
|
||
<?php }?>
|
||
|
||
|
||
<?php if ((($_smarty_tpl->tpl_vars['predmet']->value['uch_pr']>0)||($_smarty_tpl->tpl_vars['predmet']->value['uch_pr_p']>0)||($_smarty_tpl->tpl_vars['predmet']->value['proizv_pr']>0)||($_smarty_tpl->tpl_vars['predmet']->value['preddip_pr']>0))){?> <?php $_smarty_tpl->tpl_vars['maxvid'] = new Smarty_variable(($_smarty_tpl->tpl_vars['maxvid']->value+1), null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0, null, 0);?> <!--переменная для сверки-->
|
||
<tr>
|
||
<td style="background: #b1b1b1;" width="15%">
|
||
УчП.: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['uch_pr'];?>
|
||
<br />
|
||
УчПП.: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['uch_pr_p'];?>
|
||
<br />
|
||
ПП.: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['proizv_pr'];?>
|
||
<br />
|
||
дипП.: <?php echo $_smarty_tpl->tpl_vars['predmet']->value['preddip_pr'];?>
|
||
|
||
</td>
|
||
<td width="85%" class="hide-td">
|
||
<ol>
|
||
<?php $_smarty_tpl->tpl_vars['up'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['up']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kk'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['predmet']->value['myLection']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['up']->key => $_smarty_tpl->tpl_vars['up']->value){
|
||
$_smarty_tpl->tpl_vars['up']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kk']->value = $_smarty_tpl->tpl_vars['up']->key;
|
||
?><?php if (($_smarty_tpl->tpl_vars['up']->value['type']=="практика")){?>
|
||
<?php if (($_smarty_tpl->tpl_vars['sver']->value!=1)){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(0.5, null, 0);?> <?php }?><!--есть хоть какие-то файлы по дисциплине и если он уже не равен 1 баллу-->
|
||
<li><?php echo $_smarty_tpl->tpl_vars['up']->value['name'];?>
|
||
(<?php echo $_smarty_tpl->tpl_vars['up']->value['data_u'];?>
|
||
) <?php if (($_smarty_tpl->tpl_vars['up']->value['module']==1)){?><span class="badge badge-success" style="background-color: #db9136;">+</span><?php }?>
|
||
<?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['file']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kf'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value){
|
||
$_smarty_tpl->tpl_vars['file']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['kf']->value = $_smarty_tpl->tpl_vars['file']->key;
|
||
?>
|
||
<?php if (strpos($_smarty_tpl->tpl_vars['file']->value,"https://eios.mkgtu.ru/")!==false){?><a href="<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
||
" class="badge badge-info" target="_blank">Файл <?php echo $_smarty_tpl->tpl_vars['kf']->value+1;?>
|
||
</a><?php echo $_smarty_tpl->tpl_vars['f']->value;?>
|
||
</a>
|
||
<?php }else{ ?><a href="/upload/lections/<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
||
" class="badge badge-info" target="_blank">Файл <?php echo $_smarty_tpl->tpl_vars['kf']->value+1;?>
|
||
</a><?php }?>
|
||
<?php } ?>
|
||
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['up']->value['grupps']; 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;
|
||
?>
|
||
<?php if (strpos($_smarty_tpl->tpl_vars['gr']->value['sokr'],$_smarty_tpl->tpl_vars['predmet']->value['spec'])!==false){?> <?php $_smarty_tpl->tpl_vars['sver'] = new Smarty_variable(1, null, 0);?> <?php }else{ ?> <?php }?><!--Если привязана нужная специальность, то начисляем балл-->
|
||
<span class="badge badge-purple" style="background-color: #db9136;"><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
|
||
</span> <?php } ?></li>
|
||
<?php }?><?php } ?>
|
||
</ol>
|
||
</td>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['check'] = new Smarty_variable(($_smarty_tpl->tpl_vars['check']->value+$_smarty_tpl->tpl_vars['sver']->value), null, 0);?> <!--Прибавляем баллы для подсчета-->
|
||
<?php }?>
|
||
|
||
</table>
|
||
</td>
|
||
<?php if ((($_smarty_tpl->tpl_vars['check']->value/$_smarty_tpl->tpl_vars['maxvid']->value)==1)){?><td style="background:#ddf7e3; text-align: center; font-weight: bold;">Все хорошо<br /><?php echo $_smarty_tpl->tpl_vars['check']->value;?>
|
||
/ <?php echo $_smarty_tpl->tpl_vars['maxvid']->value;?>
|
||
</td>
|
||
<?php }else{ ?><?php if ((($_smarty_tpl->tpl_vars['check']->value/$_smarty_tpl->tpl_vars['maxvid']->value)==0)){?><td style="background:#f7ddde; text-align: center; font-weight: bold;">Ничего нет<br /><?php echo $_smarty_tpl->tpl_vars['check']->value;?>
|
||
/ <?php echo $_smarty_tpl->tpl_vars['maxvid']->value;?>
|
||
</td>
|
||
<?php }else{ ?><td style="background:#f7f5dd; text-align: center; font-weight: bold;">Есть замечания<br /><?php echo $_smarty_tpl->tpl_vars['check']->value;?>
|
||
/ <?php echo $_smarty_tpl->tpl_vars['maxvid']->value;?>
|
||
</td><?php }?><?php }?>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<?php } ?>
|
||
|
||
|
||
|
||
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['st_view']->value=="st39_011"){?><!--СТАРЫЕ ПРОВЕРКИ--><div>
|
||
<a href="/statuses/st39/">Вернуться к кафедрам</a> | <a href="/tpl/tpl_statuses_help.html" target="_blank">Помощь</a><hr>
|
||
<h3>Проверка кафедры "<?php echo $_smarty_tpl->tpl_vars['kafedra']->value;?>
|
||
"</h3>
|
||
<div class="row">
|
||
<div class="span6">
|
||
<p align="center">Смотреть семестр:
|
||
<select name="sem" class="semestr">
|
||
<option value="2">Все</option>
|
||
<option value="0">Нечетный</option>
|
||
<option value="1">Четный</option>
|
||
</select>
|
||
</p>
|
||
</div>
|
||
<div class="span6">
|
||
<i class="icon-plus" style="color: green;"> </i> Есть выставленные оценки за модуль<br />
|
||
<i class="icon-plus" style="color: red;"> </i> Есть выставленные оценки за зачет/экзамен<br />
|
||
</div>
|
||
</div>
|
||
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th width="30%">ФИО</th>
|
||
<th width="70%">Данные</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['user1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user1']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['user1']->key => $_smarty_tpl->tpl_vars['user1']->value){
|
||
$_smarty_tpl->tpl_vars['user1']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td valign="top" style="vertical-align: top;position:relative;">
|
||
<?php if ($_smarty_tpl->tpl_vars['user1']->value['foto']!=''){?><img src="/upload/users/ava/<?php echo $_smarty_tpl->tpl_vars['user1']->value['foto'];?>
|
||
" style="width:64px;float:left;"><?php }?><span class="tooltips" data-trigger="hover" data-placement="bottom" data-original-title="
|
||
Звание: <?php if ($_smarty_tpl->tpl_vars['user1']->value['zvanie']!=''){?><?php echo $_smarty_tpl->tpl_vars['user1']->value['zvanie'];?>
|
||
<?php }else{ ?>Звание:нет<?php }?>;
|
||
Должность: <?php if ($_smarty_tpl->tpl_vars['user1']->value['dolgnost']!=''){?><?php echo $_smarty_tpl->tpl_vars['user1']->value['dolgnost'];?>
|
||
<?php }else{ ?>нет<?php }?>;
|
||
Степень: <?php if ($_smarty_tpl->tpl_vars['user1']->value['stepen']!=''){?><?php echo $_smarty_tpl->tpl_vars['user1']->value['stepen'];?>
|
||
<?php }else{ ?>нет<?php }?>;
|
||
Факультет: <?php if ($_smarty_tpl->tpl_vars['user1']->value['fakultet']!=''){?><?php echo $_smarty_tpl->tpl_vars['user1']->value['fakultet'];?>
|
||
<?php }else{ ?>нет<?php }?>;
|
||
" style="color:#000;"><b><?php echo $_smarty_tpl->tpl_vars['user1']->value['fio'];?>
|
||
</b></span>
|
||
<span class="label label-info tooltips" data-trigger="hover" data-original-title="последний раз был"><?php echo $_smarty_tpl->tpl_vars['user1']->value['data_u'];?>
|
||
</span>
|
||
<div class="email_prepod btn btn-success" style="position:absolute;top:0px;right:0px;padding:4px;cursor:pointer;" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
">НАПИСАТЬ</div>
|
||
<hr style="margin:0px;"><b>Дисциплины из учебных планов,семестры:</b><br>
|
||
<a class="btn btn-mini btn-default tab_change" href="#" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
_0">Все</a> <?php $_smarty_tpl->tpl_vars['ise'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ise']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['user1']->value['issemestr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ise']->key => $_smarty_tpl->tpl_vars['ise']->value){
|
||
$_smarty_tpl->tpl_vars['ise']->_loop = true;
|
||
?><a class="btn btn-mini btn-default tab_change" href="#" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
_<?php echo $_smarty_tpl->tpl_vars['ise']->value;?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['ise']->value;?>
|
||
</a> <?php } ?>
|
||
<table class="table"><?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable('', null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars['predmet'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['predmet']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['user1']->value['predmets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['predmet']->key => $_smarty_tpl->tpl_vars['predmet']->value){
|
||
$_smarty_tpl->tpl_vars['predmet']->_loop = true;
|
||
?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['lekcii']!=0||$_smarty_tpl->tpl_vars['predmet']->value['prakt_sem_zan']!=0||$_smarty_tpl->tpl_vars['predmet']->value['lab_zan']!=0||$_smarty_tpl->tpl_vars['predmet']->value['kr']!=0||$_smarty_tpl->tpl_vars['predmet']->value['kur']!=0||$_smarty_tpl->tpl_vars['predmet']->value['kup']!=0||$_smarty_tpl->tpl_vars['predmet']->value['uch_pr']!=0||$_smarty_tpl->tpl_vars['predmet']->value['uch_pr_p']!=0||$_smarty_tpl->tpl_vars['predmet']->value['proizv_pr']!=0||$_smarty_tpl->tpl_vars['predmet']->value['preddip_pr']!=0||$_smarty_tpl->tpl_vars['predmet']->value['name_disp']=="РВКР"){?>
|
||
<tr class="tab_semestr" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['semestr'];?>
|
||
" data-sem="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['semestr'];?>
|
||
">
|
||
<td><?php echo $_smarty_tpl->tpl_vars['predmet']->value['name_disp'];?>
|
||
<!--(<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id_what'];?>
|
||
)--><br><b><?php echo $_smarty_tpl->tpl_vars['predmet']->value['spec'];?>
|
||
-<?php echo $_smarty_tpl->tpl_vars['predmet']->value['kurs'];?>
|
||
<b> сем.<?php echo $_smarty_tpl->tpl_vars['predmet']->value['semestr'];?>
|
||
<b><?php echo $_smarty_tpl->tpl_vars['predmet']->value['fo'];?>
|
||
</b> </td>
|
||
<td>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['lekcii']!=0){?><span class="label label-info tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Лекции часов:<?php echo $_smarty_tpl->tpl_vars['predmet']->value['lekcii'];?>
|
||
" style="color:#000;position: relative;">Л
|
||
<div style="width:100%;height:3px;background-color:
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['lection']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет лекций и групп<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['lection']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет лекций для группы<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['lection']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['prakt_sem_zan']!=0){?><span class="label label-success tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Практические семинарские занятия, часов <?php echo $_smarty_tpl->tpl_vars['predmet']->value['prakt_sem_zan'];?>
|
||
" style="color:#000;position: relative;">ПС
|
||
<div style="width:100%;height:3px;background-color:
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['practich']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет практических и групп<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['practich']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет практических для групп<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['practich']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['lab_zan']!=0){?><span class="label label-success tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Лабораторные занятия, часов <?php echo $_smarty_tpl->tpl_vars['predmet']->value['lab_zan'];?>
|
||
" style="color:#000;position: relative;">Лаб
|
||
<div style="width:100%;height:3px;background-color:
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['practich']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет практических-лабораторных и групп<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['practich']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет практических-лабораторных для групп<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['practich']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['kr']!=0){?><span class="label label-warning tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Контрольные, часов <?php echo $_smarty_tpl->tpl_vars['predmet']->value['kr'];?>
|
||
" style="color:#000;position: relative;">Контр
|
||
<div style="width:100%;height:3px;background-color:
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['controln']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет контрольных и групп<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['controln']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет контрольных для групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['controln']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['kur']!=0){?><span class="label label-danger tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Курсовые работы, часов <?php echo $_smarty_tpl->tpl_vars['predmet']->value['kur'];?>
|
||
" style="color:#000;position: relative;">Курс
|
||
<div style="width:100%;height:3px;background-color:
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['kursov']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет курсовых работ и групп<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['kursov']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет курсовых работ для групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['kursov']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['kup']!=0){?><span class="label label-danger tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Курсовые проекты, часов <?php echo $_smarty_tpl->tpl_vars['predmet']->value['kup'];?>
|
||
" style="color:#000;position: relative;">КурП
|
||
<div style="width:100%;height:3px;background-color:
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['kursov']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Курсовых проектов и групп<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['kursov']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Курсовых проектов для групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['kursov']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['uch_pr']!=0){?><span class="label label-inverse tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Учебная практика, часов <?php echo $_smarty_tpl->tpl_vars['predmet']->value['uch_pr'];?>
|
||
" style="color:#fff;position: relative;">УчП
|
||
<div style="width:100%;height:3px;background-color:
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Учебной практики и групп<br>", null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Учебной практики для групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['uch_pr_p']!=0){?><span class="label label-inverse tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Учебно производственная практика, часов <?php echo $_smarty_tpl->tpl_vars['predmet']->value['uch_pr_p'];?>
|
||
" style="color:#fff;position: relative;">УчПП
|
||
<div style="width:100%;height:3px;background-color:<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Учебно производственной практики и групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Учебно производственной практики для групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['proizv_pr']!=0){?><span class="label label-inverse tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Производственная практика, часов <?php echo $_smarty_tpl->tpl_vars['predmet']->value['proizv_pr'];?>
|
||
" style="color:#fff;position: relative;">ПП
|
||
<div style="width:100%;height:3px;background-color:<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Производственной практики и групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Производственной практики для групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['preddip_pr']!=0){?><span class="label label-inverse tooltips" data-trigger="hover" data-placement="bottom" data-original-title="Преддипломная практика, часов <?php echo $_smarty_tpl->tpl_vars['predmet']->value['preddip_pr'];?>
|
||
" style="color:#fff;position: relative;">дипП
|
||
<div style="width:100%;height:3px;background-color:<?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==0){?>red<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Преддипломной практики и групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==1){?>#4e3fa7<?php $_smarty_tpl->tpl_vars["email_user"] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['email_user']->value)." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['name_disp'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['spec'])."-".((string)$_smarty_tpl->tpl_vars['predmet']->value['kurs'])."/".((string)$_smarty_tpl->tpl_vars['predmet']->value['semestr'])." ".((string)$_smarty_tpl->tpl_vars['predmet']->value['fo'])." нет Преддипломной практики для групп<br>", null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['statuses']['praktika']==2){?>green<?php }?>;position:absolute;left:0px;bottom:0px;right:0px;"></div>
|
||
</span> <?php }?>
|
||
</td>
|
||
</tr><?php }?>
|
||
<?php } ?>
|
||
</table>
|
||
<div style="display:none;" class="email_usere_<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['user1']->value['email'];?>
|
||
</div>
|
||
<div style="display:none;" class="email_user_<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['email_user']->value;?>
|
||
</div>
|
||
</td>
|
||
<td class="" valign="top" style="vertical-align: top;">
|
||
<div class="select_btn">
|
||
<a href="#" class="statuses_ajloadbtn btn btn-default" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
_workprogram">Рабочие программы</a>
|
||
<a href="#" class="statuses_ajloadbtn btn btn-info" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
_lections">Лекции</a>
|
||
<a href="#" class="statuses_ajloadbtn btn btn-success" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
_practich">Практические</a>
|
||
<a href="#" class="statuses_ajloadbtn btn btn-warning" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
_controln">Контрольные</a>
|
||
<a href="#" class="statuses_ajloadbtn btn btn-danger" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
_kursov">Курсовые</a>
|
||
<a href="#" class="statuses_ajloadbtn btn btn-inverse" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
_praktika">Практика</a>
|
||
</div>
|
||
<div class="statuses_ajload" id="<?php echo $_smarty_tpl->tpl_vars['user1']->value['uid'];?>
|
||
">в процессе наполнения...</div>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<div id="myModal1" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel1" aria-hidden="true" style="display: none;">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h3 id="myModalLabel1">Заголовок</h3>
|
||
</div>
|
||
<form method="POST" name="modal_form">
|
||
<div class="modal-body">
|
||
<p>Сообщение пользователю</p>
|
||
<textarea name="message" class="modal-textarea" style="width:100%;height:220px;"></textarea>
|
||
<input type="HIDDEN" name="email" value="" class="modal-email">
|
||
<input type="HIDDEN" name="user_id" value="" class="modal-user_id">
|
||
<span class="modal_aj_mes1"></span>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button class="btn" data-dismiss="modal" aria-hidden="true">Закрыть</button>
|
||
<button class="btn btn-primary modal_send" name="modal_send">Отправить</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<script>$(document).ready(function(){
|
||
$(".tab_change").click(function(){
|
||
var t = $(this).attr("id").split("_");
|
||
var id_user = t[0];//
|
||
var semestr = t[1];//
|
||
if(semestr!=0){
|
||
/*if (semestr == 0) {
|
||
$('[data-sem=1]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=1]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=3]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=5]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=7]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=9]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=11]').css('display', 'none');
|
||
} else{
|
||
$('.tab_semestr[data-sem=2]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=4]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=6]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=7]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=10]').css('display', 'none');
|
||
$('.tab_semestr[data-sem=12]').css('display', 'none');
|
||
}*/
|
||
$("tr[id*="+id_user+"]").each(function( index ) {
|
||
$( this ).hide();
|
||
});
|
||
$("#"+id_user+"_"+semestr+".tab_semestr").each(function( index ) {
|
||
$( this ).show();
|
||
});
|
||
}else{//отобразить все
|
||
$("tr[id*="+id_user+"]").each(function( index ) {
|
||
$( this ).show();
|
||
});
|
||
}
|
||
return false;
|
||
});
|
||
$(".modal_send").click(function(){
|
||
var message = $(".modal-textarea").val();
|
||
var email = $(".modal-email").val();
|
||
var user_id = $(".modal-user_id").val();
|
||
$.ajax({url: '../../../inc/statuses.php', type : "POST", dataType : 'json', data : "ajdes=send_email&user_id="+user_id+"&email="+email+"&message="+message+"",
|
||
success : function(result) {
|
||
$(".modal_aj_mes1").html(result.html);
|
||
$(".modal_send").hide();
|
||
//$('#myModal1').modal('hide');
|
||
},error: function(xhr, resp, text) {}
|
||
});
|
||
return false;
|
||
});
|
||
$(".email_prepod").click(function(){
|
||
var uid = $(this).attr("id");
|
||
var email = $(".email_usere_"+uid).html();
|
||
var body = $(".email_user_"+uid).html();
|
||
body = body.replace(new RegExp("<br>",'g'),"\n");
|
||
$("#myModalLabel1").html("Пишем письмо преподавателю о проблемах");
|
||
$(".modal-textarea").val(body);
|
||
$(".modal-email").val(email);
|
||
$(".modal-user_id").val(uid);
|
||
$(".modal_send").show();
|
||
$('#myModal1').modal({ keyboard: false });
|
||
$(".modal_aj_mes1").html("");
|
||
});
|
||
|
||
$(".statuses_ajloadbtn").click(function(){
|
||
var tmp=$(this).attr("id").split("_");
|
||
var uid=tmp[0];
|
||
var what=tmp[1];
|
||
$("#"+uid+".statuses_ajload").html("грузим...");
|
||
$.ajax({url: '../../../inc/statuses.php', type : "POST", dataType : 'json', data : "ajdes=get_info_prepod&id="+uid+"&what="+what,
|
||
success : function(result) {
|
||
$("#"+uid+".statuses_ajload").html(result.html);
|
||
},error: function(xhr, resp, text) {}
|
||
});
|
||
return false;
|
||
});
|
||
$(".statuses_ajload").each(function(i,e){
|
||
var uid = $(e).attr("id");
|
||
//console.log(uid);
|
||
$.ajax({url: '../../../inc/statuses.php', type : "POST", dataType : 'json', data : "ajdes=get_info_prepod&id="+uid+"&what=workprogram",
|
||
success : function(result) {
|
||
$(e).html(result.html);
|
||
},error: function(xhr, resp, text) {}
|
||
})
|
||
});
|
||
|
||
//выбираем четный или нечетный семестр - выводим только определенные семестр
|
||
$(".semestr").change(function(){
|
||
var sem = $(this).val(); //выбранный семестр
|
||
|
||
var content; //для сравнения будет использовать
|
||
$(".tab_change").each(function(i, elem){
|
||
content = $(elem).html(); //заносим элемент
|
||
|
||
//сравниваем
|
||
$(elem).css("display", "inline-block");
|
||
if (content % 2 == sem) $(elem).css("display", "none");
|
||
});
|
||
|
||
});
|
||
|
||
})</script>
|
||
</div><?php }?>
|
||
<?php }?><?php }} ?>
|