EIOS/inc/smarty/templates_c/ed076acc8eeffd6673e06bd6197...

203 lines
7.2 KiB
PHP
Raw Normal View History

2023-12-28 15:39:22 +03:00
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-12 12:23:54
compiled from "tpl/tpl_information_education.html" */ ?>
<?php /*%%SmartyHeaderCode:11826361816255452a75bb78-83214419%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'ed076acc8eeffd6673e06bd61979555236981244' =>
array (
0 => 'tpl/tpl_information_education.html',
1 => 1638268003,
2 => 'file',
),
),
'nocache_hash' => '11826361816255452a75bb78-83214419',
'function' =>
array (
),
'variables' =>
array (
'msg' => 0,
'teach' => 0,
'educations' => 0,
'k' => 0,
'edu' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_6255452a78b1e8_32735092',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6255452a78b1e8_32735092')) {function content_6255452a78b1e8_32735092($_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">
<p>Должность: <?php echo $_smarty_tpl->tpl_vars['teach']->value['dolgnost'];?>
</p>
<p>Ученая степень: <?php echo $_smarty_tpl->tpl_vars['teach']->value['stepen'];?>
</p>
<p>Ученое звание: <?php echo $_smarty_tpl->tpl_vars['teach']->value['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>
<?php $_smarty_tpl->tpl_vars['edu'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['edu']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['educations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['edu']->key => $_smarty_tpl->tpl_vars['edu']->value){
$_smarty_tpl->tpl_vars['edu']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['edu']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['edu']->value['profession'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['edu']->value['qualification'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['edu']->value['vuz'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['edu']->value['year'];?>
год</td>
<td><span class="btn btn-danger del-education" data-id="<?php echo $_smarty_tpl->tpl_vars['edu']->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_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>
<?php }} ?>