EIOS/tpl/tpl_information_skills.html

222 lines
7.9 KiB
HTML
Raw Permalink 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">
<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><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=$skills item=skill key=k}
<tr id="row{$skill.id}">
<td>{$k+1}</td>
<td>{$skill.type}</td>
<td>{$skill.year} год</td>
<td contenteditable="true" id="name">{$skill.name}</td>
<td contenteditable="true" id="place">{$skill.place} </td>
<td contenteditable="true" id="organization">{$skill.organization}</td>
<td>{$skill.date_pr}</td>
<td contenteditable="true" id="docs">{$skill.number_docs}</td>
<td>
<span class="btn btn-success save-skill" data-id="{$skill.id}">Обновить</span>
<span class="btn btn-danger del-skill" data-id="{$skill.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_skills" 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%;">
<select name="type" class="form-control">
<option value="1">Удостоверение о повышении квалификации</option>
<option value="2">Свидетельство</option>
<option value="3">Сертификат</option>
<option value="4">Диплом о переподготовке</option>
</select>
</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="1930" max="2050" name="year" 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="name" 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="place" 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="organization" 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="date" name="date_pr" 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="number_docs" class="form-control" style="width: 90%;" required />
</div>
</div>
</div>
<input type="submit" name="add_skills" value="Добавить" class="btn btn-success" />
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
//обновление информации
$('.save-skill').click(function(){
var id = $(this).data("id");
var name = $('tr#row'+id+' td#name').html();
var place = $('tr#row'+id+' td#place').html();
var organization = $('tr#row'+id+' td#organization').html();
var docs = $('tr#row'+id+' td#docs').html();
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=save_skill&id='+id+'&name='+name+'&place='+place+'&organization='+organization+'&docs='+docs,
success: function(data){
location.href='/information/skills/';
}
});
/*alert(name);
alert(place);
alert(organization);
alert(docs);*/
});
//удаление курса
$('.del-skill').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_skill&id='+id,
success: function(data){
location.href='/information/skills/';
}
});
}
});
});
</script>