280 lines
12 KiB
HTML
280 lines
12 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="/alneo/teacher/">Преподаватели сайта</a></li>
|
|||
|
<li><a class="btn btn-warning" href="/alneo/teacher/add/"><i class="icon-plus icon-white"></i> Добавить</a></li>
|
|||
|
<li><form method="POST" style="padding: 0px;margin: 0px;"><select name="st_teacher" onchange="submit();" style="margin: 0px;"><option value="0">Статистика</option>{foreach from=$st_teacher item=slc}<option value="{$slc.id_user}">{$slc.fio}</option>{/foreach}</select></form></li>
|
|||
|
<li><form method="POST" style="padding: 0px;margin: 0px;">Поиск <input type="TEXT" name="st_teacher_s" onkeydown="if (event.keyCode==13){ this.form.submit(); return false;}" style="margin: 0px;" placeholder="по фамилии, не менее 3 символов" value="{$st_teacher_s}"></form></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
|
|||
|
{if $regim=='show'}
|
|||
|
{if count($sti)>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">
|
|||
|
<h3>Преподаватель: <b>{$sti.user.fio}</b><br>рег.: {$sti.user.data_c} последний визит: {$sti.user.data_u} </h3>
|
|||
|
{if count($sti.grupp)}
|
|||
|
<h3>Группы</h3>
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Даты</th>
|
|||
|
<th>Группа</th>
|
|||
|
<th>описание</th>
|
|||
|
<th>Спец. курс. фо</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
{foreach from=$sti.grupp item=sg}
|
|||
|
<tr>
|
|||
|
<td>{$sg.data_c}<br>{$sg.data_u}</td>
|
|||
|
<td>{$sg.name}<bR>{$sg.specialnost}</td>
|
|||
|
<td>{$sg.descrip}</td>
|
|||
|
<td>{$sg.sokr} - {$sg.kurs}<bR>{$sg.fo}</td>
|
|||
|
</tr>
|
|||
|
{/foreach}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
{/if}
|
|||
|
{if count($sti.lections)}
|
|||
|
<h3>Лекции</h3>
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Даты</th>
|
|||
|
<th>Название</th>
|
|||
|
<th>описание</th>
|
|||
|
<th>Спец. курс. фо</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
{foreach from=$sti.lections item=sgl}
|
|||
|
<tr>
|
|||
|
<td width="15%">{$sgl.data_c}<br>{$sgl.data_u}</td>
|
|||
|
<td width="40%">
|
|||
|
{$sgl.name}
|
|||
|
{if count($sgl.controln)}
|
|||
|
<br>Контрольные:<ul>{foreach from=$sgl.controln item=sglp}
|
|||
|
<li>{$sglp.name} {if $sglp.file!=""}<span class="label label-success">файл есть</span>{else}<span class="label label-important">файла нет</span>{/if}</li>
|
|||
|
{/foreach}</ul>
|
|||
|
{/if}
|
|||
|
{if count($sgl.practich)}
|
|||
|
<br>Практические:<ul>{foreach from=$sgl.practich item=sglp}
|
|||
|
<li>{$sglp.name} {if $sglp.file!=""}<span class="label label-success">файл есть</span>{else}<span class="label label-important">файла нет</span>{/if}</li>
|
|||
|
{/foreach}</ul>
|
|||
|
{/if}
|
|||
|
</td>
|
|||
|
<td width="35%">{$sgl.descrip}{if $sgl.file!=""}<br>файл есть{/if}</td>
|
|||
|
<td width="10%">{$sgl.specialnost} - {$sgl.kurs}/{$sgl.semestr}</td>
|
|||
|
</tr>
|
|||
|
{/foreach}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
{/if}
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
{/if}
|
|||
|
<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="{if count($sti)>0}icon-chevron-up{else}icon-chevron-down{/if}"></a>
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
<div class="widget-body"{if count($sti)>0} style="display: none;"{/if}>
|
|||
|
{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($teacher)}
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Посл.вход</th><th>Дата рег.</th>
|
|||
|
<th class="hidden-phone"><i class="icon-question-sign"></i> ФИО</th>
|
|||
|
<th><i class="icon-bookmark"></i> статус</th>
|
|||
|
<th><i class="icon-bookmark"></i> Email</th>
|
|||
|
<th><i class=" icon-edit"></i> </th>
|
|||
|
<th></th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
{foreach from=$teacher item=lc}
|
|||
|
<tr>
|
|||
|
<td>{$lc.data_u}</td><td>{$lc.data_c}</td>
|
|||
|
<td class="hidden-phone">{$lc.fio}</td>
|
|||
|
<td>{$lc.status_name}</td>
|
|||
|
<td>{$lc.email}</td>
|
|||
|
<td nowrap>
|
|||
|
<a class="btn btn-success" href="/alneo/teacher/active/{$lc.id}/"><i class="icon-ok"></i></a>
|
|||
|
<a class="btn btn-warning" href="/alneo/users/edit/{$lc.id_user}/"><i class="icon-user"></i></a>
|
|||
|
<a class="btn btn-primary" href="/alneo/teacher/edit/{$lc.id}/"><i class="icon-pencil"></i></a>
|
|||
|
|
|||
|
{if $lc.status=="-1"}
|
|||
|
<a class="btn btn-danger" href="/alneo/teacher/del/{$lc.id}/"><i class="icon-trash "></i></a>
|
|||
|
{else}
|
|||
|
<a class="btn btn-danger" href="/alneo/teacher/ban/{$lc.id}/"><i class="icon-ban-circle "></i></a>
|
|||
|
{/if}
|
|||
|
</td>
|
|||
|
<td></td>
|
|||
|
</tr>
|
|||
|
{/foreach}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
{if isset($pagination)}
|
|||
|
<div class="pagination pagination-large">
|
|||
|
<ul>
|
|||
|
{if $pagination.kol<=15}
|
|||
|
{for $p=1 to $pagination.kol}
|
|||
|
<li><a href="/alneo/teacher/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
|||
|
{/for}
|
|||
|
{else}
|
|||
|
{if $pagination.page>4}
|
|||
|
<li><a href="/alneo/teacher/p1/">1</a></li>
|
|||
|
<li><a href="#">...</a></li>
|
|||
|
{for $p=($pagination.page-3) to ($pagination.page+3)}
|
|||
|
<li><a href="/alneo/teacher/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
|||
|
{/for}
|
|||
|
<li><a href="#">...</a></li>
|
|||
|
<li><a href="/alneo/teacher/p{$pagination.kol}/">{$pagination.kol}</a></li>
|
|||
|
{else}
|
|||
|
{for $p=1 to 5}
|
|||
|
<li><a href="/alneo/teacher/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
|||
|
{/for}
|
|||
|
<li><a href="#">...</a></li>
|
|||
|
{for $p=($pagination.kol-5) to $pagination.kol}
|
|||
|
<li><a href="/alneo/teacher/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
|||
|
{/for}
|
|||
|
{/if}
|
|||
|
{/if}
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
{/if}
|
|||
|
{/if}
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
{/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 data-placeholder="Укажите пользователя" class="chzn-select span12" tabindex="6" name="id_user">
|
|||
|
<option value=""></option>
|
|||
|
{foreach from=$form.p.id_user 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="status">
|
|||
|
<option value=""></option>
|
|||
|
{foreach from=$form.p.status_name item=gr}
|
|||
|
<option{if $gr.sel==1} selected{/if} value="{$gr.id}">{$gr.name}</option>
|
|||
|
{/foreach}
|
|||
|
</select>
|
|||
|
<input type="HIDDEN" name="status_old" value="{$form.p.status}" />
|
|||
|
</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="zvanie" value="{$form.p.zvanie}" />
|
|||
|
</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="dolgnost" value="{$form.p.dolgnost}" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Факультет</label>
|
|||
|
<div class="controls">
|
|||
|
<select class="span6 " data-placeholder="Выбор Факультета" tabindex="1" name="fakultet">
|
|||
|
<option value="0">Выберите</option>
|
|||
|
{foreach from=$fakultets item=fk}
|
|||
|
<option value="{$fk.fakult}"{if $form.p.fakultet==$fk.fakult} SELECTED{/if}>{$fk.fakult}</option>
|
|||
|
{/foreach}
|
|||
|
</select>
|
|||
|
<span class="help-inline">выберите факультет к которому вы принадлежите, список факультетов берется из расчета часов!</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Кафедра</label>
|
|||
|
<div class="controls">
|
|||
|
<select class="span6 " data-placeholder="Выбор кафедры" tabindex="1" name="kafedra">
|
|||
|
<option value="0">Выберите</option>
|
|||
|
{foreach from=$kafedras item=fk}
|
|||
|
<option value="{$fk.name}"{if $form.p.kafedra==$fk.name} SELECTED{/if}>{$fk.name}</option>
|
|||
|
{/foreach}
|
|||
|
</select>
|
|||
|
<span class="help-inline">выберите кафедру к которому вы принадлежите, список кафедр берется из расчета часов!</span>
|
|||
|
</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}
|
|||
|
</div>
|
|||
|
</div>
|