EIOS/tpl/tpl_information_education.html

159 lines
5.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Сведения о научно-педагогическом работнике</h3>
<ul class="breadcrumb">
<li class="active"><a href="/information/education/" class="btn btn-primary">Образование</a></li>
<li class="active"><a href="/information/skills/" class="btn btn-primary">Повышение квалификации</a></li>
<li class="active"><a href="/information/staj/" class="btn btn-primary">Стаж работы</a></li>
</ul>
</div>
</div>
{if ($msg == 1)}
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Информация об образовании сохранена!</strong>
</div>
{/if}
<div class="row-fluid">
<div class="span12">
<!--Договоры на кафедры о практике-->
<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">
<p>Должность: {$teach.dolgnost}</p>
<p>Ученая степень: {$teach.stepen}</p>
<p>Ученое звание: {$teach.zvanie}</p>
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th></th>
<th><i class="icon-bullhorn"></i> Специальность</th>
<th><i class="icon-bookmark"></i> Квалификация</th>
<th><i class="icon-bookmark"></i> Вуз</th>
<th><i class="icon-bookmark"></i> Год</th>
<th>--</th>
</tr>
</thead>
<tbody>
{foreach from=$educations item=edu key=k}
<tr>
<td>{$k+1}</td>
<td>{$edu.profession}</td>
<td>{$edu.qualification}</td>
<td>{$edu.vuz}</td>
<td>{$edu.year} год</td>
<td><span class="btn btn-danger del-education" data-id="{$edu.id}">Удалить</span></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--ДОБАЛЕНИЕ-->
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<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">
<span style="color: red;">Все поля обязательны к заполнению!</span>
<form name="add_education" action="" class="form-horizontal" method="POST">
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Специальность</label>
<div class="controls">
<div class="input-prepend" style="width: 90%;">
<input type="text" name="profession" class="form-control" style="width: 90%;" required />
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Квалификация</label>
<div class="controls">
<div class="input-prepend" style="width: 90%;">
<input type="text" name="qualification" class="form-control" style="width: 90%;" required />
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Вуз</label>
<div class="controls">
<div class="input-prepend" style="width: 90%;">
<input type="text" name="vyz" class="form-control" style="width: 90%;" required />
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Год окончания</label>
<div class="controls">
<div class="input-prepend" style="width: 90%;">
<input type="number" min="1900" max="2050" name="year" class="form-control" style="width: 90%;" required />
</div>
</div>
</div>
<input type="submit" name="add_education" value="Добавить" class="btn btn-success" />
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
//удаление курса
$('.del-education').click(function(){
var id = $(this).data("id");
var is = confirm("Вы уверены, что хотите удалить данную запись?");
if (is){
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=del_education&id='+id,
success: function(data){
location.href='/information/education/';
}
});
}
});
});
</script>