EIOS/inc/smarty/templates_c/ca376e8e2351077b2b397eea6db...

218 lines
8.6 KiB
PHP
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.

<?php /* Smarty version Smarty-3.1.13, created on 2022-10-28 15:29:18
compiled from "tpl/tpl_kafedra_treaties.html" */ ?>
<?php /*%%SmartyHeaderCode:19804010206256714e5ae4c4-83635595%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'ca376e8e2351077b2b397eea6db9aabe4c2678bc' =>
array (
0 => 'tpl/tpl_kafedra_treaties.html',
1 => 1666960158,
2 => 'file',
),
),
'nocache_hash' => '19804010206256714e5ae4c4-83635595',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_6256714e5d8b92_68210932',
'variables' =>
array (
'msg' => 0,
'treaties' => 0,
'k' => 0,
'treat' => 0,
'areas' => 0,
'area' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6256714e5d8b92_68210932')) {function content_6256714e5d8b92_68210932($_smarty_tpl) {?><!-- 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="/kafedra/treaties/">Договоры о практической подготовке</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 class="hidden-phone"> Наименование основной образовательной программы</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>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['treat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['treat']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['treaties']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['treat']->key => $_smarty_tpl->tpl_vars['treat']->value){
$_smarty_tpl->tpl_vars['treat']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['treat']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['treat']->value['code_napr'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['treat']->value['name_area'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['treat']->value['year'];?>
год</td>
<td><?php echo $_smarty_tpl->tpl_vars['treat']->value['name_tr'];?>
</td>
<td><a href="/<?php echo $_smarty_tpl->tpl_vars['treat']->value['file'];?>
" class="badge badge-success">Скачать</a></td>
<td><span data-id="<?php echo $_smarty_tpl->tpl_vars['treat']->value['id_tr'];?>
" class="badge badge-warning del-treat">Удалить</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_napr" action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Наименование основной образовательной программы</label>
<div class="controls">
<div class="input-prepend">
<select name="area" class="form-control">
<?php $_smarty_tpl->tpl_vars['area'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['area']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['areas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['area']->key => $_smarty_tpl->tpl_vars['area']->value){
$_smarty_tpl->tpl_vars['area']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['area']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['area']->value['code'];?>
- <?php echo $_smarty_tpl->tpl_vars['area']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
<span class="help-inline"> Выберите из списка</span>
</div>
</div>
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Год начала подготовки</label>
<div class="controls">
<div class="input-prepend">
<input type="text" name="year" class="form-control" value="2022" required />
<!--select name="year" class="form-control">
<option value="2021">2021 год</option>
<option value="2020">2020 год</option>
<option value="2019">2019 год</option>
<option value="2018">2018 год</option>
<option value="2017">2017 год</option>
<option value="2016">2016 год</option>
<option value="2015">2015 год</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="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" >
<input type="hidden" name="max_file_size" value="20971520">
<input type="file" class=" tooltips" data-trigger="hover" data-original-title="Загрузить файл (не более 20 Мб)" name="file" accept=".zip,.rar,.pdf,.doc,.docx,image/jpeg,image/png,image/gif" required />
</div>
</div>
</div>
<input type="submit" name="add_treaties" value="Загрузить договор" class="btn btn-success" />
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
//удаление договора о практической подготовке
$(".del-treat").click(function(){
var id = $(this).data("id");
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=delete_treat&id='+id,
success: function(data){
alert('Договор удален!');
location.href='/kafedra/treaties/';
}
});
});
});
</script><?php }} ?>