291 lines
15 KiB
HTML
291 lines
15 KiB
HTML
|
<br>
|
|||
|
<link href="/tpl/css/rejt_anketa.css" rel="stylesheet" />
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span6">
|
|||
|
<h1>Рейтинг <span style="font-size:18px;font-weight:bold;">заведующего кафедрой</span> <span style="font-size:18px;">Всего баллов:{$BALLS}</span> {*<a href="/rejtkaf/otchet01/{$otchgods.id}/">Отчет</a>*}</h1>
|
|||
|
</div>
|
|||
|
<div class="span6">
|
|||
|
{if count($otchgods)}
|
|||
|
<h3><span class="tooltips" data-trigger="hover" data-original-title="Отчетный период: {$otchgods.descrip}">{$otchgods.name}</span> <span class="text-success">{date('d.m.Y',$otchgods.data_s1)}</span>-<span class="text-success">{date('d.m.Y',$otchgods.data_s2)}</span></h3>
|
|||
|
{else}
|
|||
|
<div class="alert alert-error"><strong>Не установлен отчетный период!</strong> Администратор отключил заполнение анкеты, для подсчета баллов</div>
|
|||
|
{/if}
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<!--div class="alert alert-error"><button class="close" data-dismiss="alert">×</button><strong>Внимание!</strong> Система в режиме тестирования(данные скорее всего удалятся). Вы можете попробовать использовать систему и написать свой отзыв на it@mkgtu.ru. Это поможет сделать систему более удобной.</div-->
|
|||
|
<hr>
|
|||
|
{if count($otchgods)}
|
|||
|
<div id="page-wrap">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="widget purple">
|
|||
|
<div class="widget-title">
|
|||
|
<h4>Список НПР кафедры "{$user.teacher.kafedra}"</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-bordered">
|
|||
|
<thead><tr>
|
|||
|
<th rowspan="2">Активность</th>
|
|||
|
<th rowspan="2">ФИО</th>
|
|||
|
{*<th rowspan="2">Звание</th>
|
|||
|
<th rowspan="2">Должность</th>
|
|||
|
<th rowspan="2">Степень</th>
|
|||
|
<th>Факультет</th>*}
|
|||
|
<th colspan="4" style="text-align:center;">Баллов</th>
|
|||
|
</tr><tr>
|
|||
|
<th style="text-align:center;">Образов.</th>
|
|||
|
<th style="text-align:center;">Научная</th>
|
|||
|
<th style="text-align:center;">руков.НИРС</th>
|
|||
|
<th style="text-align:center;">Итого</th>
|
|||
|
</tr></thead>
|
|||
|
<tbody>
|
|||
|
{foreach from=$teachers item=teacher}
|
|||
|
<tr>
|
|||
|
<td>{date('H:i d.m.Y',$teacher.data_u)}</td>
|
|||
|
<td><a href="#" class="tooltips" data-trigger="hover" data-original-title="Звание:{$teacher.zvanie}; Должность:{$teacher.dolgnost}; Степень:{$teacher.stepen}; Факультет:{$teacher.fakultet}; "><i class="icon-info-sign"></i></a> {$teacher.fio} </td>
|
|||
|
{*<td>{$teacher.zvanie}</td>
|
|||
|
<td>{$teacher.dolgnost}</td>
|
|||
|
<td>{$teacher.stepen}</td>
|
|||
|
<td>{$teacher.fakultet}</td>*}
|
|||
|
<td style="text-align:right;">
|
|||
|
{if $teacher.ball1!=""}
|
|||
|
{round($teacher.ball1,2)}{if round($teacher.ball1,2)!=round($teacher.ps[2],2)}<span class="tooltips" style="color:red;" data-trigger="hover" data-original-title="Надо пересохранить в этом разделе данные, для этого преподавателя!">/{round($teacher.ps[2],2)}</span>{/if}
|
|||
|
{else}<span class="muted">0</span>{/if}</td>
|
|||
|
<td style="text-align:right;">
|
|||
|
{if $teacher.ball2!=""}
|
|||
|
{round($teacher.ball2,2)}{if round($teacher.ball2,2)!=round($teacher.ps[3],2)}<span class="tooltips" style="color:red;" data-trigger="hover" data-original-title="Надо пересохранить в этом разделе данные, для этого преподавателя!">/{round($teacher.ps[3],2)}</span>{/if}
|
|||
|
{else}<span class="muted">0</span>{/if}</td>
|
|||
|
<td style="text-align:right;">
|
|||
|
{if $teacher.ball3!=""}
|
|||
|
{round($teacher.ball3,2)}{if round($teacher.ball3,2)!=round($teacher.ps[4],2)}<span class="tooltips" style="color:red;" data-trigger="hover" data-original-title="Надо пересохранить в этом разделе данные, для этого преподавателя!">/{round($teacher.ps[4],2)}</span>{/if}
|
|||
|
{else}<span class="muted">0</span>{/if}</td>
|
|||
|
<td style="text-align:right;">{if $teacher.ball!=0}<strong>{round($teacher.ball,2)}</strong>{else}<span class="text-error">0</span>{/if}
|
|||
|
{*<pre>{print_r($teacher.ps)}</pre>*}
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
|
|||
|
{/foreach}
|
|||
|
</tbody></table>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div id="page-wrap">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<form method="POST" name="form_rejt" id="form_rejt">
|
|||
|
{foreach from=$items item=it}{if count($it.razdel)}
|
|||
|
<div class="widget purple">
|
|||
|
<div class="widget-title">
|
|||
|
<h4>{$it.name}{if $it.descr!=""} <a href="#" class="tooltips" data-trigger="hover" data-original-title="{$it.descr}"><i class="icon-info-sign"></i></a>{/if}</h4>
|
|||
|
<span class="tools"><a href="javascript:;" class="icon-chevron-up">Свернуть/Развернуть</a></span>
|
|||
|
</div>
|
|||
|
<div class="widget-body" style="display: none;">
|
|||
|
{if count($it.razdel)}
|
|||
|
<h2>{$it.razdel.name}{if $it.razdel.descr!=""} <a href="#" class="tooltips" data-trigger="hover" data-original-title="{$it.razdel.descr}"><i class="icon-info-sign"></i></a>{/if}</h2>
|
|||
|
|
|||
|
{foreach from=$it.razdel item=rd}
|
|||
|
|
|||
|
{if !count($rd.itemspolyas)}
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:50%;">
|
|||
|
<strong>{$rd.name}</strong>
|
|||
|
{if $rd.descr!=""} <a href="#" class="tooltips" data-trigger="hover" data-original-title="{$rd.descr}"><i class="icon-info-sign"></i></a>{/if}
|
|||
|
</td>
|
|||
|
<td style="width:50%;" nowrap>
|
|||
|
<input type="TEXT" name="an[{$it.id}][{$rd.id}][]" class="span12 tooltips" data-trigger="hover" data-original-title="Введите значение" value="">
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:100%;text-align:right;">
|
|||
|
<span id="pbomes_{$it.id}_{$rd.id}"></span>
|
|||
|
|
|||
|
<a href="#" class="btn btn-success tooltips panels_body_save" id="pbos_{$it.id}_{$rd.id}" data-trigger="hover" data-original-title="Записать в базу данных текущую информацию в блоке"><i class="icon-save"></i></a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
{else}
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span6">
|
|||
|
<strong>
|
|||
|
{if $rd.tip==1}<a href="#" class="btn btn-primary tooltips panels_buttons_add" id="pba_{$it.id}_{$rd.id}" data-trigger="hover" data-original-title="Добавить поле"><i class="icon-plus"></i></a> {/if}
|
|||
|
{$rd.name}
|
|||
|
{if $rd.descr!=""} <a href="#" class="tooltips" data-trigger="hover" data-original-title="{$rd.descr}"><i class="icon-info-sign"></i></a>{/if}
|
|||
|
<span id="pbmes_{$it.id}_{$rd.id}"></span>
|
|||
|
</strong>
|
|||
|
</div>
|
|||
|
<div class="span6 panels_buttons" id="pb_{$it.id}_{$rd.id}">
|
|||
|
{if $rd.tip==1}
|
|||
|
{if $rd.kolsaves>0}
|
|||
|
{for $kol=1 to $rd.kolsaves}
|
|||
|
<a href='#' class='btn {if $kol==1}btn-info{else}btn-info1{/if} panels_buttons_item' id='pbni_{$it.id}_{$rd.id}_{$kol}'>{$kol}</a>
|
|||
|
{/for}
|
|||
|
{else}
|
|||
|
<a href='#' class='btn btn-info panels_buttons_item' id='pbni_{$it.id}_{$rd.id}_1'>1</a>
|
|||
|
{/if}
|
|||
|
{/if}
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="panels_body" id="pbb_{$it.id}_{$rd.id}">
|
|||
|
{if $rd.kolsaves>0}
|
|||
|
{for $kol=1 to $rd.kolsaves}
|
|||
|
<div class="row-fluid" id="pbi_{$it.id}_{$rd.id}_{$kol}" {if $kol!=1}style="display:none;"{/if}><div class="span12">
|
|||
|
{foreach from=$rd.itemspolyas item=ip}
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:50%;text-align:right;padding-right:10px;">{$ip.name}</td>
|
|||
|
<td style="width:50%;" nowrap>
|
|||
|
{if count($ip.polyas)>1}
|
|||
|
<select name="an[{$it.id}][{$rd.id}][{$ip.id}][]" class="span12 tooltips" data-trigger="hover" data-original-title="Данные сохранили {date('H:i d.m.Y',$ip.saves[$kol].data_c)}">
|
|||
|
<option value="0">Выберите</option>
|
|||
|
{foreach from=$ip.polyas item=pl}
|
|||
|
<option value="{$pl.id}|{$pl.value}"{if $ip.saves[$kol].id_polyas==$pl.id} SELECTED{/if}>{$pl.name}</option>
|
|||
|
{/foreach}
|
|||
|
</select>
|
|||
|
{else}
|
|||
|
<input type="TEXT" name="an[{$it.id}][{$rd.id}][{$ip.id}][]" class="span12 tooltips" data-trigger="hover" data-original-title="Данные сохранили {date('H:i d.m.Y',$ip.saves[$kol].data_c)}" value="{$ip.saves[$kol].value|escape}"{if $rd.edit==false} disabled{/if}>
|
|||
|
{/if}
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
{/foreach}
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:100%;text-align:right;padding-right:10px;">
|
|||
|
<span id="pbomes_{$it.id}_{$rd.id}_{$kol}">Баллов: {$rd.formuls.itogo}, текущая запись: {$rd.formuls[$kol-1]} </span>
|
|||
|
{if $rd.tip==1}<a href="#" class="btn btn-danger tooltips panels_body_dele" id="pbod_{$it.id}_{$rd.id}_{$kol}" data-trigger="hover" data-original-title="Удалить из базы данных текущую информацию в блоке"><i class="icon-trash"></i></a> {/if}
|
|||
|
<a href="#" class="btn btn-success tooltips panels_body_save" id="pbos_{$it.id}_{$rd.id}_{$kol}" data-trigger="hover" data-original-title="Записать в базу данных текущую информацию в блоке"><i class="icon-save"></i></a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div></div>
|
|||
|
{/for}
|
|||
|
{else}
|
|||
|
<div class="row-fluid" id="pbi_{$it.id}_{$rd.id}_1"><div class="span12">
|
|||
|
{foreach from=$rd.itemspolyas item=ip}
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:50%;text-align:right;padding-right:10px;">{$ip.name}</td>
|
|||
|
<td style="width:50%;" nowrap>
|
|||
|
{if count($ip.polyas)>1}
|
|||
|
<select name="an[{$it.id}][{$rd.id}][{$ip.id}][]" class="span12 tooltips" data-trigger="hover" data-original-title="Выберите значение">
|
|||
|
<option value="0">Выберите</option>
|
|||
|
{foreach from=$ip.polyas item=pl}
|
|||
|
<option value="{$pl.id}|{$pl.value}">{$pl.name}</option>
|
|||
|
{/foreach}
|
|||
|
</select>
|
|||
|
{else}
|
|||
|
<input type="TEXT" name="an[{$it.id}][{$rd.id}][{$ip.id}][]" class="span12 tooltips" data-trigger="hover" data-original-title="Введите значение" value="{if isset($rd.formuls2.itogo)}{$rd.formuls2.itogo}{/if}"{if $rd.edit==false} disabled{/if}>
|
|||
|
{/if}
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
{/foreach}
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:100%;text-align:right;">
|
|||
|
<span id="pbomes_{$it.id}_{$rd.id}_1"></span>
|
|||
|
{if $rd.tip==1}<a href="#" class="btn btn-danger tooltips panels_body_dele" id="pbod_{$it.id}_{$rd.id}_1" data-trigger="hover" data-original-title="Удалить из базы данных текущую информацию в блоке"><i class="icon-trash"></i></a> {/if}
|
|||
|
<a href="#" class="btn btn-success tooltips panels_body_save" id="pbos_{$it.id}_{$rd.id}_1" data-trigger="hover" data-original-title="Записать в базу данных текущую информацию в блоке"><i class="icon-save"></i></a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div></div>
|
|||
|
{/if}
|
|||
|
</div>
|
|||
|
{/if}
|
|||
|
<hr>
|
|||
|
{/foreach}
|
|||
|
|
|||
|
{/if}
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
{/if}{/foreach}
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
{/if}
|
|||
|
{literal}<script>$(document).ready(function(){
|
|||
|
$(".panels_buttons_add").click(function(){
|
|||
|
var id = $(this).attr("id").split("_");
|
|||
|
//console.log(id);
|
|||
|
var num=$("#pb_"+id[1]+"_"+id[2]+".panels_buttons").find("a").length + 1;
|
|||
|
var formdata = $("#form_rejt").serialize();
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=rejtkaf_pba&r='+id[1]+'&i='+id[2]+'&num='+num+'&'+formdata,
|
|||
|
success: function(data){
|
|||
|
$("#pbb_"+id[1]+"_"+id[2]+".panels_body").find("div.row-fluid").hide();
|
|||
|
$("#pb_"+id[1]+"_"+id[2]+".panels_buttons").find("a").removeClass("btn-info").addClass("btn-info1");
|
|||
|
|
|||
|
$("#pb_"+id[1]+"_"+id[2]+".panels_buttons").append("<a href='#' class='btn btn-info panels_buttons_item' id='pbni_"+id[1]+"_"+id[2]+"_"+num+"'>"+num+"</a> ");
|
|||
|
$("#pbb_"+id[1]+"_"+id[2]+".panels_body").append("<div class='row-fluid' id='pbi_"+id[1]+"_"+id[2]+"_"+num+"'><div class='span12'>"+data.html+"</div></div>");
|
|||
|
|
|||
|
$("#pbi_"+id[1]+"_"+id[2]+"_"+num).show();
|
|||
|
$("#pbmes_"+id[1]+"_"+id[2]).html(data.debug);
|
|||
|
}
|
|||
|
});
|
|||
|
return false;
|
|||
|
});
|
|||
|
|
|||
|
$(document).on("click", ".panels_body_dele", function(){
|
|||
|
var id =$(this).attr("id").split("_");
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=rejtkaf_dele&r='+id[1]+'&i='+id[2]+'&num='+id[3],
|
|||
|
success: function(data){
|
|||
|
$("#pbmes_"+id[1]+"_"+id[2]).html(data.info);
|
|||
|
$("#pbni_"+id[1]+"_"+id[2]+"_"+id[3]).remove();
|
|||
|
$("#pbi_"+id[1]+"_"+id[2]+"_"+id[3]).remove();
|
|||
|
$("#pbni_"+id[1]+"_"+id[2]+"_"+(id[3]-1)).removeClass("btn-info1").addClass("btn-info");
|
|||
|
$("#pbi_"+id[1]+"_"+id[2]+"_"+(id[3]-1)).show();
|
|||
|
}
|
|||
|
});
|
|||
|
return false;
|
|||
|
});
|
|||
|
$(document).on("click", ".panels_body_save", function(){
|
|||
|
var id =$(this).attr("id").split("_");
|
|||
|
var formdata = $("#form_rejt").serialize();
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=rejtkaf_save&r='+id[1]+'&i='+id[2]+'&num='+id[3]+'&'+formdata,
|
|||
|
success: function(data){
|
|||
|
$("#pbomes_"+id[1]+"_"+id[2]+"_"+id[3]).html(data.info);
|
|||
|
}
|
|||
|
});
|
|||
|
return false;
|
|||
|
});
|
|||
|
$(document).on("click", ".panels_buttons_item", function(){
|
|||
|
var id =$(this).attr("id").split("_");
|
|||
|
$("#pbb_"+id[1]+"_"+id[2]+".panels_body").find("div.row-fluid").hide();
|
|||
|
$("#pb_"+id[1]+"_"+id[2]+".panels_buttons").find("a").removeClass("btn-info").addClass("btn-info1");
|
|||
|
$("#pbni_"+id[1]+"_"+id[2]+"_"+id[3]).removeClass("btn-info1").addClass("btn-info");
|
|||
|
$("#pbi_"+id[1]+"_"+id[2]+"_"+id[3]).show();
|
|||
|
return false;
|
|||
|
});
|
|||
|
|
|||
|
function f(){
|
|||
|
$.ajax({url: '/json.php', dataType:'json', type:'POST', async:false, data: 'ajdes=empty_post',success: function(data){}});
|
|||
|
}
|
|||
|
setInterval(f, 150000);
|
|||
|
});</script>{/literal}
|
|||
|
{*<pre>{print_r($items)}</pre>*}
|