407 lines
18 KiB
HTML
407 lines
18 KiB
HTML
<!-- BEGIN PAGE HEADER-->
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<h3 class="page-title">Группы</h3>
|
||
<ul class="breadcrumb">
|
||
<li><a href="/">Главная</a><span class="divider">/</span></li>
|
||
<li class="active"><a href="/teach/grupp/">Обучать - группы</a></li>
|
||
<li><a class="btn btn-warning" href="/teach/grupp/connect/"><i class="icon-plus icon-white"></i> Привязать</a></li>
|
||
{if $user.status==99}
|
||
<li><a class="btn btn-success" href="/teach/grupp/add/"><i class="icon-plus icon-white"></i> Добавить</a></li>
|
||
<li><a class="btn btn-default" href="/teach/grupp/pass/"><i class="icon-eye-open icon-white"></i> Пароли</a></li>
|
||
<!--li><a class="btn btn-primary" href="/teach/grupp/import/"><i class="icon-eye-open icon-random"></i> Импортировать</a></li-->
|
||
{/if}
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
{if $regim=='show'}
|
||
{if count($form.err)}{foreach from=$form.err item=er}
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> {$er}
|
||
</div>
|
||
{/foreach}{/if}
|
||
{if isset($form.msg)}
|
||
<div class="alert alert-success">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Успешно!</strong> {$form.msg}
|
||
</div>
|
||
{/if}
|
||
{if count($items)}
|
||
<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><i class="icon-bullhorn"></i> Даты</th>
|
||
<th class="hidden-phone"><i class="icon-question-sign"></i> Специальность<br>Курс</th>
|
||
<th><i class="icon-bookmark"></i> Название</th>
|
||
<th><i class="icon-bookmark"></i> Описание</th>
|
||
<th>Количество<br>студентов</th>
|
||
<th>Выставить<br>оценки</th>
|
||
{if $user.status==99}<th>Перенести<br>студентов</th>{/if}
|
||
<th><i class=" icon-edit"></i> </th>
|
||
<th></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{foreach from=$items item=lc}
|
||
<tr>
|
||
<td>{$lc.data_c}<br>{$lc.data_u}</td>
|
||
<td class="hidden-phone">{$lc.specialnost}<br>{$lc.sokr}<!-- -{$lc.kurs}--> {$lc.fo}</td>
|
||
<td>{$lc.name}</td>
|
||
<td>{$lc.descrip}<br>{$lc.teacher.fio}</td>
|
||
{if $lc.students!=0}
|
||
<td>{$lc.students}</td>
|
||
<td><a class="btn btn-success" href="/teach/ocenki/grupp/{$lc.id}/"><i class="icon-gear"></i></a></td>
|
||
{if $user.status==99}<td><a class="btn btn-danger" href="/teach/grupp_transport/{$lc.id}/"><i class="icon-exchange"></i></a></td>{/if}
|
||
{else}<td colspan="3">нет студентов</td>{/if}
|
||
<td nowarp>
|
||
{if $lc.edde=='1'}
|
||
<a class="btn btn-primary" href="/teach/grupp/edit/{$lc.id}/"><i class="icon-pencil"></i></a>
|
||
<a class="btn btn-warning" href="/teach/grupp/unconnect/{$lc.id}/" onclick="return confirm('Отвзяать группу?')"><i class="icon-unlink "></i></a>
|
||
<a class="btn btn-danger" href="/teach/grupp/del/{$lc.id}/" onclick="return confirm('Удалить группу?')"><i class="icon-trash "></i></a>
|
||
{else}
|
||
{*<span class="label label-mini">не доступно</span>*}
|
||
<a class="btn btn-danger" href="/teach/grupp/unconnect/{$lc.id}/" onclick="return confirm('Удалить группу?')"><i class="icon-trash "></i></a>
|
||
{/if}
|
||
</td>
|
||
<td></td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{if count($items0)}{*для админа*}
|
||
{foreach from=$items0 item=lc0 key=sokr}
|
||
<div class="span6" style="margin-left:2px!important;"><div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget default">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> <span style="width:200px;display: inline-block;">{$sokr}</span> Кол-во элементов {count($lc0)}</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="20%"><i class="icon-bullhorn"></i> Даты</th>
|
||
<th width="15%" class="hidden-phone"><i class="icon-question-sign"></i> Спец./Курс</th>
|
||
<!--th width="35%"><i class="icon-bookmark"></i> Название/Описание</th-->
|
||
<th width="5%">Кол-во студ.</th>
|
||
<th width="5%">Оценки</th>
|
||
<th width="5%">Перевод</th>
|
||
<th width="30%"><i class=" icon-edit"></i> </th>
|
||
<th width="5%"></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{foreach from=$lc0 item=lc}
|
||
<tr>
|
||
<td>{$lc.data_c}<br>{$lc.data_u}</td>
|
||
<td class="hidden-phone">{$lc.specialnost}<br>{$lc.sokr} -{$lc.kurs} {$lc.fo}</td>
|
||
<!--td>{$lc.name}{if $lc.descrip!=""}<br>{$lc.descrip}{/if}{if $lc.teacher.fio!=""}<br>{$lc.teacher.fio}{/if}</td-->
|
||
{if $lc.students!=0}<td>{$lc.students}</td><td><a class="btn btn-success" href="/teach/ocenki/grupp/{$lc.id}/"><i class="icon-gear"></i></a></td><td><a class="btn btn-danger" href="/teach/grupp_transport/{$lc.id}/"><i class="icon-exchange"></i></a></td>{else}<td colspan="3">нет студентов</td>{/if}
|
||
|
||
<td nowarp>
|
||
{if $lc.edde=='1'}
|
||
<a class="btn btn-primary" href="/teach/grupp/edit/{$lc.id}/"><i class="icon-pencil"></i></a>
|
||
<a class="btn btn-danger" href="/teach/grupp/del/{$lc.id}/" onclick="return confirm('Вы уверены, что хотите удалить?')"><i class="icon-trash "></i></a>
|
||
{else}
|
||
{*<span class="label label-mini">не доступно</span>*}
|
||
<a class="btn btn-danger" href="/teach/grupp/unconnect/{$lc.id}/" onclick="return confirm('Вы уверены, что хотите удалить?')"><i class="icon-trash "></i></a>
|
||
{/if}
|
||
</td>
|
||
<td></td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div></div>
|
||
{/foreach}
|
||
{/if}
|
||
{/if}
|
||
{if $regim=='aded'}
|
||
<div class="row-fluid"><div class="span12">
|
||
<div class="widget red">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> {$form.title} </h4>
|
||
<span class="tools">
|
||
<a href="javascript:;" class="icon-chevron-down"></a>
|
||
</span>
|
||
</div>
|
||
<div class="widget-body">
|
||
{if count($form.err)}{foreach from=$form.err item=er}
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> {$er}
|
||
</div>
|
||
{/foreach}{/if}
|
||
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
||
<div class="control-group">
|
||
<label class="control-label">Специальность</label>
|
||
<div class="controls">
|
||
<select name="specialnost" class="form-control">
|
||
<option value="">Не выбрано<option>
|
||
{foreach from=$areas item=area }
|
||
<option value="{$area.code}" {if ($form.p.specialnost == $area.code)}selected {/if}>{$area.name} {$area.code}</option>
|
||
{/foreach}
|
||
</select>
|
||
<!--input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="наименование специальности (не более 255 символов)" name="specialnost" value="{$form.p.specialnost}" /-->
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Курс</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Курс 1-6 (только цифра)" name="kurs" value="{$form.p.kurs}" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Группа</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Сокращенное название группы" name="sokr" value="{$form.p.sokr}" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Год набора</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Год набора группы" name="year_start" value="{$form.p.year_start}" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Форма обучение</label>
|
||
<div class="controls">
|
||
<!--input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения оч заоч" name="fo" value="{$form.p.fo}" /-->
|
||
{if isset($form.p.fo2)}
|
||
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ОФО" name="fo1" value="ОФО" style=" width:32px;" {if $form.p.fo1=="ОФО"}CHECKED{/if}/> <span style="font-size:18px;">очная</span>
|
||
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ЗФО" name="fo2" value="ЗФО" style=" width:32px;" {if $form.p.fo2=="ЗФО"}CHECKED{/if} /> <span style="font-size:18px;">заочная</span>
|
||
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ОЗФО" name="fo3" value="ОЗФО" style=" width:32px;" {if $form.p.fo3=="ОЗФО"}CHECKED{/if} /> <span style="font-size:18px;">очно-заочная</span>
|
||
- при выборе нескольких форм обучения создается несколько форм обучения для группы соответственно
|
||
{else}
|
||
<input type="RADIO" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ОФО" name="fo" value="ОФО" style=" width:32px;" {if $form.p.fo=="ОФО"}CHECKED{/if}/> <span style="font-size:18px;">очная</span>
|
||
<input type="RADIO" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ЗФО" name="fo" value="ЗФО" style=" width:32px;" {if $form.p.fo=="ЗФО"}CHECKED{/if} /> <span style="font-size:18px;">заочная</span>
|
||
<input type="RADIO" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ОЗФО" name="fo" value="ОЗФО" style=" width:32px;" {if $form.p.fo=="ОЗФО"}CHECKED{/if} /> <span style="font-size:18px;">очно-заочная</span>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
<!--div class="control-group">
|
||
<label class="control-label">Название группы</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Полное название группы (не более 255 символов)" name="name" value="{$form.p.name}" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Описание группы</label>
|
||
<div class="controls">
|
||
<textarea class="span12 tooltips" rows="3" data-trigger="hover" data-original-title="Опишите в кратце группу" name="descrip">{$form.p.descrip}</textarea>
|
||
</div>
|
||
</div-->
|
||
<div class="control-group">
|
||
<label class="control-label">Преподаватель</label>
|
||
<div class="controls">
|
||
<select data-placeholder="Укажите преподавателя для группы" class="chzn-select span12" tabindex="6" name="id_teacher">
|
||
<option value="0">нет преподавателя</option>
|
||
{foreach from=$form.p.id_teacher item=gr}
|
||
<option{if $gr.sel==1} selected{/if} value="{$gr.id}">{$gr.name}</option>
|
||
{/foreach}
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">Факультет</label>
|
||
<div class="controls">
|
||
<select data-placeholder="Укажите преподавателя для группы" class="chzn-select span12" tabindex="6" name="id_facult">
|
||
<option value="0">не указан</option>
|
||
{foreach from=$faculties item=fac}
|
||
<option{if $form.p.id_facult==$fac.id} selected{/if} value="{$fac.id}">{$fac.name}</option>
|
||
{/foreach}
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-actions">
|
||
{$form.id}
|
||
<button type="submit" name="{$form.btn_url}" class="btn btn-success">{$form.btn_name}</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div></div>
|
||
{/if}
|
||
{if $regim=='connect'}
|
||
<div class="row-fluid"><div class="span12">
|
||
<div class="widget red">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> {$form.title} </h4>
|
||
<span class="tools">
|
||
<a href="javascript:;" class="icon-chevron-down"></a>
|
||
</span>
|
||
</div>
|
||
<div class="widget-body">
|
||
{if count($form.err)}{foreach from=$form.err item=er}
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> {$er}
|
||
</div>
|
||
{/foreach}{/if}
|
||
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
||
<div class="control-group">
|
||
<label class="control-label">Выберите группы, в которых вы преподаете</label>
|
||
<div class="controls">
|
||
<select data-placeholder="Выберите группы в которых вы преподаете" class="chzn-select span12" multiple="multiple" tabindex="6" name="l_g[]">
|
||
<option value=""></option>
|
||
{foreach from=$form.p.sel_grupp item=gr}
|
||
<option{if $gr.sel==1} selected{/if} value="{$gr.id}">{$gr.sokr}-{$gr.kurs} {$gr.fo} </option>
|
||
{/foreach}
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-actions">
|
||
{$form.id}
|
||
<button type="submit" name="{$form.btn_url}" class="btn btn-success">{$form.btn_name}</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div></div>
|
||
{/if}
|
||
{if $regim=='pass'}
|
||
<div class="row-fluid"><div class="span12">
|
||
<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">
|
||
{if count($form.err)}{foreach from=$form.err item=er}
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> {$er}
|
||
</div>
|
||
{/foreach}{/if}
|
||
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
||
<div class="control-group">
|
||
<label class="control-label">Группа</label>
|
||
<div class="controls">
|
||
<select data-placeholder="Укажите группу" class="chzn-select span12" multiple="multiple" tabindex="6" name="l_g[]">
|
||
<option value=""></option>
|
||
{foreach from=$form.p.grupp item=gr}
|
||
<option{if $gr.sel==1} selected{/if} value="{$gr.id}">{$gr.sokr}-{$gr.kurs}</option>
|
||
{/foreach}
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-actions">
|
||
<button type="submit" name="{$form.btn_url}" class="btn btn-success">{$form.btn_name}</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div></div>
|
||
{/if}
|
||
{if count($passs)}
|
||
<div class="row-fluid"><div class="span12">
|
||
<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><i class="icon-bullhorn"></i> группа</th>
|
||
<th><i class="icon-bookmark"></i> ФИО</th>
|
||
<th><i class="icon-bookmark"></i> e-mail</th>
|
||
<th><i class="icon-bookmark"></i> Пароль</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{foreach from=$passs item=lc}
|
||
<tr>
|
||
<td>{$lc.grupp}{$lc.num_grupp}</td>
|
||
<td>{$lc.fio}</td>
|
||
<td>{$lc.email}</td>
|
||
<td>{$lc.pass}</td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div></div>
|
||
{/if}
|
||
{if $regim=='import'}
|
||
<div class="row-fluid"><div class="span12">
|
||
<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">
|
||
<h3>Импортировать из расчета часов данные о группах</h3>
|
||
{if count($form.err)}{foreach from=$form.err item=er}
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> {$er}
|
||
</div>
|
||
{/foreach}{/if}
|
||
{if $form.html!=''}
|
||
{$form.html}
|
||
{/if}
|
||
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
||
{*<div class="control-group">
|
||
<label class="control-label">Группа</label>
|
||
<div class="controls">
|
||
<select data-placeholder="Укажите группу" class="chzn-select span12" multiple="multiple" tabindex="6" name="l_g[]">
|
||
<option value=""></option>
|
||
{foreach from=$form.p.grupp item=gr}
|
||
<option{if $gr.sel==1} selected{/if} value="{$gr.id}">{$gr.sokr}-{$gr.kurs}</option>
|
||
{/foreach}
|
||
</select>
|
||
</div>
|
||
</div>*}
|
||
|
||
<div class="form-actions">
|
||
<button type="submit" name="{$form.btn_url}" class="btn btn-success">{$form.btn_name}</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div></div>
|
||
{/if}
|
||
|
||
</div>
|
||
</div>
|