267 lines
9.8 KiB
PHP
267 lines
9.8 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-12 15:13:35
|
||
compiled from "tpl/tpl_information_skills.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:94327617162556cef0d2a53-11481109%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'a9394ea307d7486cf606350341325a83e4f28973' =>
|
||
array (
|
||
0 => 'tpl/tpl_information_skills.html',
|
||
1 => 1646203117,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '94327617162556cef0d2a53-11481109',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'variables' =>
|
||
array (
|
||
'msg' => 0,
|
||
'skills' => 0,
|
||
'skill' => 0,
|
||
'k' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_62556cef0ff654_01012819',
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_62556cef0ff654_01012819')) {function content_62556cef0ff654_01012819($_smarty_tpl) {?><!-- 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>
|
||
|
||
<?php if (($_smarty_tpl->tpl_vars['msg']->value==1)){?>
|
||
<div class="alert alert-success">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Информация сохранена!</strong>
|
||
</div>
|
||
<?php }?>
|
||
|
||
<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>
|
||
<?php $_smarty_tpl->tpl_vars['skill'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['skill']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['skills']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['skill']->key => $_smarty_tpl->tpl_vars['skill']->value){
|
||
$_smarty_tpl->tpl_vars['skill']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['skill']->key;
|
||
?>
|
||
<tr id="row<?php echo $_smarty_tpl->tpl_vars['skill']->value['id'];?>
|
||
">
|
||
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['skill']->value['type'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['skill']->value['year'];?>
|
||
год</td>
|
||
<td contenteditable="true" id="name"><?php echo $_smarty_tpl->tpl_vars['skill']->value['name'];?>
|
||
</td>
|
||
<td contenteditable="true" id="place"><?php echo $_smarty_tpl->tpl_vars['skill']->value['place'];?>
|
||
</td>
|
||
<td contenteditable="true" id="organization"><?php echo $_smarty_tpl->tpl_vars['skill']->value['organization'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['skill']->value['date_pr'];?>
|
||
</td>
|
||
<td contenteditable="true" id="docs"><?php echo $_smarty_tpl->tpl_vars['skill']->value['number_docs'];?>
|
||
</td>
|
||
<td>
|
||
<span class="btn btn-success save-skill" data-id="<?php echo $_smarty_tpl->tpl_vars['skill']->value['id'];?>
|
||
">Обновить</span>
|
||
<span class="btn btn-danger del-skill" data-id="<?php echo $_smarty_tpl->tpl_vars['skill']->value['id'];?>
|
||
">Удалить</span>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</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>
|
||
<?php }} ?>
|