62 lines
2.1 KiB
HTML
62 lines
2.1 KiB
HTML
<div class="row-fluid">
|
|
<div class="span12">
|
|
|
|
{foreach from=$sections_teacher item=section key=kk}
|
|
<div class="row-fluid">
|
|
<div class="widget orange">
|
|
<div class="widget-title">
|
|
<h4> {$section.name} ({$section.course} курс)</h4>
|
|
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
|
</div>
|
|
<div class="widget-body">
|
|
<h4>Факультеты</h4>
|
|
{foreach from=$section.fac_name item=fac}
|
|
{$fac}<br />
|
|
{/foreach}
|
|
<hr />
|
|
|
|
{$section.content}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
{literal}
|
|
$(document).ready(function(){
|
|
$(".fk_att_tek").click(function(){
|
|
let iduser= $(this).data('iduser');
|
|
let idgrupp= $(this).data('idgrupp');
|
|
let idteacher= $(this).data('idteacher');
|
|
let ocenka = $("#ocenka_"+iduser+"_"+idgrupp+" option:selected").val();
|
|
let propusk = $("#propusk_"+iduser+"_"+idgrupp).val();
|
|
//console.log('iduser='+iduser+'; idgrupp='+idgrupp+'; idteacher='+idteacher+'; ocenka='+ocenka+'; propusk='+propusk);
|
|
$.ajax({
|
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=fk_att_tek_set&iduser='+iduser+'&idgrupp='+idgrupp+'&idteacher='+idteacher+'&ocenka='+ocenka+'&propusk='+propusk+'',
|
|
success: function(data1){
|
|
//console.log(data1);
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
$(".fk_att_pro").click(function(){
|
|
let iduser= $(this).data('iduser');
|
|
let idgrupp= $(this).data('idgrupp');
|
|
let idteacher= $(this).data('idteacher');
|
|
let ocenka = $("#ocenkaP_"+iduser+"_"+idgrupp+" option:selected").val();
|
|
let propusk = $("#propuskP_"+iduser+"_"+idgrupp).val();
|
|
//console.log('iduser='+iduser+'; idgrupp='+idgrupp+'; idteacher='+idteacher+'; ocenka='+ocenka+'; propusk='+propusk);
|
|
$.ajax({
|
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=fk_att_pro_set&iduser='+iduser+'&idgrupp='+idgrupp+'&idteacher='+idteacher+'&ocenka='+ocenka+'&propusk='+propusk+'',
|
|
success: function(data1){
|
|
//console.log(data1);
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
})
|
|
{/literal}
|
|
</script> |