163 lines
6.6 KiB
HTML
163 lines
6.6 KiB
HTML
|
<!-- BEGIN PAGE HEADER-->
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<h3 class="page-title">Опросы и анкетирование</h3>
|
|||
|
<ul class="breadcrumb">
|
|||
|
<li><a href="/polls/teachers/" class="btn btn-danger">Оценка дисциплины и преподавателя</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
{if ($message != "")}
|
|||
|
<div class="alert alert-success">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>{$message}</strong>
|
|||
|
</div>
|
|||
|
{/if}
|
|||
|
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
|
|||
|
{if (!isset($id))}
|
|||
|
|
|||
|
Всего прошло на факультете: {$count_fakultet} чел.
|
|||
|
|
|||
|
<table class="table table-bordered">
|
|||
|
<tr>
|
|||
|
<th width="5%">№ п/п</th>
|
|||
|
<th width="15%">Группы</th>
|
|||
|
<th width="40%">Семестры (ДОБАВИТЬ ПРЕПОДАВАТЕЛЕЙ)</th>
|
|||
|
<th width="40%">Семестры (РЕЗУЛЬТАТЫ)</th>
|
|||
|
</tr>
|
|||
|
|
|||
|
{foreach from=$grupps item=gr key=k}
|
|||
|
<tr>
|
|||
|
<td>{($k+1)}</td>
|
|||
|
<td>{$gr.sokr} ({$gr.fo})</td>
|
|||
|
<td>
|
|||
|
<div>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/1/" target="_blank" class="btn btn-light">1</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/2/" target="_blank" class="btn btn-light">2</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/3/" target="_blank" class="btn btn-light">3</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/4/" target="_blank" class="btn btn-light">4</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/5/" target="_blank" class="btn btn-light">5</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/6/" target="_blank" class="btn btn-light">6</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/7/" target="_blank" class="btn btn-light">7</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/8/" target="_blank" class="btn btn-light">8</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/9/" target="_blank" class="btn btn-light">9</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/10/" target="_blank" class="btn btn-light">10</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/11/" target="_blank" class="btn btn-light">11</a>
|
|||
|
<a href="/polls/teachers/{$gr.id_grupp}/12/" target="_blank" class="btn btn-light">12</a>
|
|||
|
|
|||
|
</div>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<div>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/1/" target="_blank" class="btn btn-warning">1</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/2/" target="_blank" class="btn btn-warning">2</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/3/" target="_blank" class="btn btn-warning">3</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/4/" target="_blank" class="btn btn-warning">4</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/5/" target="_blank" class="btn btn-warning">5</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/6/" target="_blank" class="btn btn-warning">6</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/7/" target="_blank" class="btn btn-warning">7</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/8/" target="_blank" class="btn btn-warning">8</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/9/" target="_blank" class="btn btn-warning">9</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/10/" target="_blank" class="btn btn-warning">10</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/11/" target="_blank" class="btn btn-warning">11</a>
|
|||
|
<a href="/polls/teachersResult/{$gr.id_grupp}/12/" target="_blank" class="btn btn-warning">12</a>
|
|||
|
|
|||
|
</div>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
{/foreach}
|
|||
|
|
|||
|
</table>
|
|||
|
{else}
|
|||
|
<div class="widget red">
|
|||
|
<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" >
|
|||
|
<h4>Группа: {$gruppa.sokr} {$gruppa.fo}</h4>
|
|||
|
<p>Семестр: {$sem}</p>
|
|||
|
<hr />
|
|||
|
<p style="font-weight: bold;">Список дисциплин и преподавателей из ведомостей</p>
|
|||
|
<table class="table">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Дата</th>
|
|||
|
<th>Дисциплина</th>
|
|||
|
<th>Преподаватель</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
{foreach from=$disc item=d key=k}
|
|||
|
<tr>
|
|||
|
<td>{date('d.m.Y',$d.date_create)}</td>
|
|||
|
<td>{$d.name}</td>
|
|||
|
<td>{$d.teacher.fio}</td>
|
|||
|
</tr>
|
|||
|
{/foreach}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
{*<pre>{print_r($disc)}</pre>*}
|
|||
|
<hr />
|
|||
|
<p style="font-weight: bold;">Список дисциплин и преподавателей, введенных вручную</p>
|
|||
|
{foreach from=$disc2 item=d key=k}
|
|||
|
<p id="list_item_prep_manual_{$d.id}"><a href="#" class="list_item_prep_manual_del" data-id="{$d.id}" data-idgrupp="{$id}">[Удалить]</a> {$d.predmet} - {$d.teacher}</p>
|
|||
|
{/foreach}
|
|||
|
{*<pre>{print_r($disc2)}</pre>*}
|
|||
|
<hr />
|
|||
|
<p style="font-weight: bold;">Добавление</p>
|
|||
|
<form name="add_teacher_ev" method="post" action="#">
|
|||
|
|
|||
|
<input type="hidden" name="grupp" value="{$id}" />
|
|||
|
<input type="hidden" name="sem" value="{$sem}" />
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Название дисциплины: </label>
|
|||
|
<div class="controls" >
|
|||
|
<input type="text" class="span8 tooltips" name="predmet" data-trigger="hover" data-original-title="Например: Алгебра и геометрия" required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Преподаватель: </label>
|
|||
|
<div class="controls">
|
|||
|
<select name="teacher" class="tooltips" data-trigger="hover" data-original-title="Преподавателей может быть несколько, добавить можно отдельными записями">
|
|||
|
{foreach from=$teachers item=teach}
|
|||
|
<option value="{$teach.fio}">{$teach.fio}</option>
|
|||
|
{/foreach}
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<input type="submit" name="add_teacher_ev" class="btn btn-success" value="Добавить" />
|
|||
|
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<script>$(document).ready(function(){
|
|||
|
$(".list_item_prep_manual_del").click(function(){
|
|||
|
if(confirm('Точно удалить?')) {
|
|||
|
let id = $(this).data('id');
|
|||
|
let idgrupp = $(this).data('idgrupp');
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=polls_teachers_manual_del&id='+id+'&idgrupp='+idgrupp,
|
|||
|
success: function(data){
|
|||
|
$("#list_item_prep_manual_"+id).remove();
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
return false;
|
|||
|
});
|
|||
|
})</script>
|
|||
|
{/if}
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|