EIOS/inc/smarty/templates_c/764c4e9f115baab2bd18f553ed5...

391 lines
23 KiB
PHP
Raw Permalink Normal View History

2023-12-28 15:39:22 +03:00
<?php /* Smarty version Smarty-3.1.13, created on 2022-12-27 10:20:13
compiled from "tpl/tpl_iup_users1.html" */ ?>
<?php /*%%SmartyHeaderCode:144974504663aa9cad666920-58059698%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'764c4e9f115baab2bd18f553ed512ee97cbeaab7' =>
array (
0 => 'tpl/tpl_iup_users1.html',
1 => 1543403542,
2 => 'file',
),
),
'nocache_hash' => '144974504663aa9cad666920-58059698',
'function' =>
array (
),
'variables' =>
array (
'des' => 0,
'users' => 0,
'it' => 0,
'fakultets' => 0,
'fk' => 0,
'kafedras' => 0,
'statuses' => 0,
'k' => 0,
'ustatus' => 0,
'status' => 0,
'sel' => 0,
'zayavka' => 0,
'st' => 0,
'napravlenie' => 0,
'fak' => 0,
'nap' => 0,
'spec' => 0,
'nap1' => 0,
'prilogens' => 0,
'prf' => 0,
'fl' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_63aa9cad70d879_35922917',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_63aa9cad70d879_35922917')) {function content_63aa9cad70d879_35922917($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("tpl_messager.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php if ($_smarty_tpl->tpl_vars['des']->value=="show"){?>
<div class="row-fluid">
<div class="span12">
<div class="span12">
<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">
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th></th>
<th>ФИО</th>
<th>Факультет</th>
<th>Кафедра</th>
<th>Статусы</th>
<th></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['it']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['it']->key => $_smarty_tpl->tpl_vars['it']->value){
$_smarty_tpl->tpl_vars['it']->_loop = true;
?>
<tr>
<td><form method="POST" id="form_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['fio'];?>
<input type="HIDDEN" value="<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
" name="fioid" id="fioid_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
"></td>
<td>
<div id="noeditf_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['it']->value['fakultet'];?>
</div>
<div id="yseditf_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
" style="display:none;">
<select class="span12" id="fakultet_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
" name="fakultet">
<option value="0">Выберите</option>
<?php $_smarty_tpl->tpl_vars['fk'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fk']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['fakultets']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['fk']->key => $_smarty_tpl->tpl_vars['fk']->value){
$_smarty_tpl->tpl_vars['fk']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['fk']->value['fakult'];?>
"<?php if ($_smarty_tpl->tpl_vars['it']->value['fakultet']==$_smarty_tpl->tpl_vars['fk']->value['fakult']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['fk']->value['fakult'];?>
</option>
<?php } ?>
</select>
</div>
</td>
<td>
<div id="noeditk_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['it']->value['kafedra'];?>
</div>
<div id="yseditk_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
" style="display:none;">
<select class="span12" id="kafedra_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
" name="kafedra">
<option value="0">Выберите</option>
<?php $_smarty_tpl->tpl_vars['fk'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fk']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['kafedras']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['fk']->key => $_smarty_tpl->tpl_vars['fk']->value){
$_smarty_tpl->tpl_vars['fk']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['fk']->value['name'];?>
"<?php if ($_smarty_tpl->tpl_vars['it']->value['kafedra']==$_smarty_tpl->tpl_vars['fk']->value['name']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['fk']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
</td>
<td>
<div id="noedits_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
">
<?php $_smarty_tpl->tpl_vars['status'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['status']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['statuses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['status']->key => $_smarty_tpl->tpl_vars['status']->value){
$_smarty_tpl->tpl_vars['status']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['status']->key;
?>
<?php $_smarty_tpl->tpl_vars['ustatus'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ustatus']->_loop = false;
$_smarty_tpl->tpl_vars['uk'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['it']->value['statuses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ustatus']->key => $_smarty_tpl->tpl_vars['ustatus']->value){
$_smarty_tpl->tpl_vars['ustatus']->_loop = true;
$_smarty_tpl->tpl_vars['uk']->value = $_smarty_tpl->tpl_vars['ustatus']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['k']->value==$_smarty_tpl->tpl_vars['ustatus']->value){?><span class="label label<?php if ($_smarty_tpl->tpl_vars['k']->value==20){?><?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==21){?>-success<?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==22){?>-warning<?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==23){?>-important<?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==24){?>-info<?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==25){?>-inverse<?php }?>"><?php echo strip_tags($_smarty_tpl->tpl_vars['status']->value);?>
</span>; <?php }?>
<?php } ?>
<?php } ?>
</div>
<div id="ysedits_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
" style="display:none;">
<?php $_smarty_tpl->tpl_vars['status'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['status']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['statuses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['status']->key => $_smarty_tpl->tpl_vars['status']->value){
$_smarty_tpl->tpl_vars['status']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['status']->key;
?>
<?php $_smarty_tpl->tpl_vars["sel"] = new Smarty_variable("0", null, 0);?>
<?php $_smarty_tpl->tpl_vars['ustatus'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ustatus']->_loop = false;
$_smarty_tpl->tpl_vars['uk'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['it']->value['statuses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ustatus']->key => $_smarty_tpl->tpl_vars['ustatus']->value){
$_smarty_tpl->tpl_vars['ustatus']->_loop = true;
$_smarty_tpl->tpl_vars['uk']->value = $_smarty_tpl->tpl_vars['ustatus']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['k']->value==$_smarty_tpl->tpl_vars['ustatus']->value){?><?php $_smarty_tpl->tpl_vars["sel"] = new Smarty_variable("1", null, 0);?><?php }?>
<?php } ?>
<input type="CHECKBOX" name="statuses[]" value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['sel']->value==1){?>CHECKED<?php }?>> <span class="label label<?php if ($_smarty_tpl->tpl_vars['k']->value==20){?><?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==21){?>-success<?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==22){?>-warning<?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==23){?>-important<?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==24){?>-info<?php }?><?php if ($_smarty_tpl->tpl_vars['k']->value==25){?>-inverse<?php }?>"><?php echo strip_tags($_smarty_tpl->tpl_vars['status']->value);?>
</span>;
<?php } ?>
</div>
</td>
<td nowrap>
<div id="noeditb_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
">
<a class="btn btn-primary show_edit" href="#" id="<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
"><i class="icon-pencil"></i></a>
</div>
<div id="yseditb_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
" style="display:none;">
<a class="btn btn-primary send_edit" href="#" id="<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
"><i class="icon-mail-reply-all"></i></a>
</div>
</form>
<span id="mess_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
"></span>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script>$(document).ready(function(){
$(".show_edit").click(function(){
var id = $(this).attr("id");
$("#noeditf_"+id).toggle(); $("#yseditf_"+id).toggle();
$("#noeditk_"+id).toggle(); $("#yseditk_"+id).toggle();
$("#noedits_"+id).toggle(); $("#ysedits_"+id).toggle();
$("#noeditb_"+id).toggle(); $("#yseditb_"+id).toggle();
return false;
});
$(".send_edit").click(function(){
var id = $(this).attr("id");
var formdata = $("#form_"+id).serialize();
$.ajax({
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=change_iup_users&'+formdata,
success: function(data){
$("#mess_"+id).html(data.html);
}
});
return false;
});
});</script>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['des']->value=="add"||$_smarty_tpl->tpl_vars['des']->value=="edit"){?><!--1 Интерфейс студента добавление-->
<div class="row-fluid">
<div class="span12">
<div class="span12">
<div class="widget red">
<div class="widget-title">
<?php if ($_smarty_tpl->tpl_vars['des']->value=="add"){?><h4><i class="icon-reorder"></i>Добавление заявки на Индивидуальный учебный план</h4><?php }?>
<?php if ($_smarty_tpl->tpl_vars['des']->value=="edit"){?><h4><i class="icon-reorder"></i>Редактирование заявки на Индивидуальный учебный план</h4><?php }?>
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div>
<div class="widget-body">
<?php if (isset($_smarty_tpl->tpl_vars['zayavka']->value['statuses'])&&count($_smarty_tpl->tpl_vars['zayavka']->value['statuses'])){?><b>История изменения статусов заявки</b><ul>
<?php $_smarty_tpl->tpl_vars['st'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['st']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['zayavka']->value['statuses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['st']->key => $_smarty_tpl->tpl_vars['st']->value){
$_smarty_tpl->tpl_vars['st']->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['st']->value['data_c'];?>
Был статус: "<b><?php echo $_smarty_tpl->tpl_vars['statuses']->value[$_smarty_tpl->tpl_vars['st']->value['status_old']];?>
</b>" Стал статус: "<b><?php echo $_smarty_tpl->tpl_vars['statuses']->value[$_smarty_tpl->tpl_vars['st']->value['status_new']];?>
</b>" комментарий: <?php if ($_smarty_tpl->tpl_vars['st']->value['descrip']!=''){?><i><?php echo $_smarty_tpl->tpl_vars['st']->value['descrip'];?>
</i><?php }?></li>
<?php } ?></ul><?php }?>
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
<div class="control-group">
<label class="control-label">ФИО</label>
<div class="controls">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Фамилия имя отчество полное" name="fio" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['fio'];?>
" />
</div>
</div>
<div class="control-group">
<label class="control-label span2">Предыдущее образование</label>
<div class="controls span3">
<select data-placeholder="Выберите предыдущее образование" class="span12" tabindex="1" name="pred_obraz">
<option value="">Выберите</option>
<option value="высшее"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pred_obraz']=="высшее"){?> SELECTED<?php }?>>высшее</option>
<option value="среднее специальное"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pred_obraz']=="среднее специальное"){?> SELECTED<?php }?>>среднее специальное</option>
</select>
</div>
<label class="control-label span2">Образовательное учреждение</label>
<div class="controls span5">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Полное наименование образовательного учреждения" name="obraz_uchr" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['obraz_uchr'];?>
" />
</div>
</div>
<h4>Приложения к диплому:</h4>
<div class="control-group">
<label class="control-label span1">Серия</label>
<div class="controls span3">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Серия диплома" name="diplom_seriya" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['diplom_seriya'];?>
" />
</div>
<label class="control-label span1">Номер</label>
<div class="controls span3">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Номер диплома" name="diplom_nomer" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['diplom_nomer'];?>
" />
</div>
<label class="control-label span1">от</label>
<div class="controls span3">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Дата выдачи диплома" name="diplom_data" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['diplom_data'];?>
" />
</div>
</div>
<h4>Претендую на обучение:</h4>
<div class="control-group">
<label class="control-label span1">Направление</label>
<div class="controls span3">
<select data-placeholder="Выберите направление" class="span12" tabindex="1" name="pret_naprav">
<option value="">Выберите</option>
<?php $_smarty_tpl->tpl_vars['nap'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nap']->_loop = false;
$_smarty_tpl->tpl_vars['fak'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['napravlenie']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['nap']->key => $_smarty_tpl->tpl_vars['nap']->value){
$_smarty_tpl->tpl_vars['nap']->_loop = true;
$_smarty_tpl->tpl_vars['fak']->value = $_smarty_tpl->tpl_vars['nap']->key;
?>
<option value="0" disabled><?php echo $_smarty_tpl->tpl_vars['fak']->value;?>
</option>
<?php $_smarty_tpl->tpl_vars['nap1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nap1']->_loop = false;
$_smarty_tpl->tpl_vars['spec'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['nap']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['nap1']->key => $_smarty_tpl->tpl_vars['nap1']->value){
$_smarty_tpl->tpl_vars['nap1']->_loop = true;
$_smarty_tpl->tpl_vars['spec']->value = $_smarty_tpl->tpl_vars['nap1']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['spec']->value;?>
: <?php echo $_smarty_tpl->tpl_vars['nap1']->value;?>
"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_naprav']==((string)$_smarty_tpl->tpl_vars['spec']->value).": ".((string)$_smarty_tpl->tpl_vars['nap1']->value)){?> SELECTED<?php }?>>---<?php echo $_smarty_tpl->tpl_vars['nap1']->value;?>
</option>
<?php } ?>
<?php } ?>
</select>
</div>
<label class="control-label span1">Курс</label>
<div class="controls span3">
<select data-placeholder="Выберите курс" class="span12" tabindex="1" name="pret_kurs">
<option value="">Выберите</option>
<option value="1"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs']=="1"){?> SELECTED<?php }?>>1</option>
<option value="2"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs']=="2"){?> SELECTED<?php }?>>2</option>
<option value="3"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs']=="3"){?> SELECTED<?php }?>>3</option>
<option value="4"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs']=="4"){?> SELECTED<?php }?>>4</option>
<option value="5"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs']=="5"){?> SELECTED<?php }?>>5</option>
</select>
</div>
<label class="control-label span1">Форма обучения</label>
<div class="controls span3">
<select data-placeholder="Выберите форму обучения" class="span12" tabindex="1" name="pret_fo">
<option value="">Выберите</option>
<option value="очная"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_fo']=="очная"){?> SELECTED<?php }?>>очная</option>
<option value="заочная"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_fo']=="заочная"){?> SELECTED<?php }?>>заочная</option>
</select>
</div>
</div>
<h4>Приложения(прикрепить):</h4>
<div class="mestofiles">
<?php $_smarty_tpl->tpl_vars['prf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['prf']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['prilogens']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['prf']->key => $_smarty_tpl->tpl_vars['prf']->value){
$_smarty_tpl->tpl_vars['prf']->_loop = true;
?>
<div class="control-group mf_item">
<label class="control-label span4"><?php echo $_smarty_tpl->tpl_vars['prf']->value['title'];?>
</label>
<div class="controls span6">
<input type="file" class="span12 tooltips" data-trigger="hover" data-original-title="Загрузить файл <?php echo $_smarty_tpl->tpl_vars['prf']->value['title'];?>
, формат jpg (не более 8 Мб)" name="<?php echo $_smarty_tpl->tpl_vars['prf']->value['name'];?>
[]" />
</div>
<div class="controls span2">
<a class="btn btn-success tooltips faddfile" href="#" data-trigger="hover" data-original-title="Если необходимо загрузить еще один файл, нажмите для добавления такой возможности" data-placement="top"><i class="icon-plus"></i></a>
</div>
</div>
<?php } ?>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['zayavka']->value['files'])){?><div class="row-fluid">
<?php $_smarty_tpl->tpl_vars['fl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fl']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['zayavka']->value['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['fl']->key => $_smarty_tpl->tpl_vars['fl']->value){
$_smarty_tpl->tpl_vars['fl']->_loop = true;
?><div class="span3">
<img src="/<?php echo $_smarty_tpl->tpl_vars['fl']->value['file'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['fl']->value['tipfile'];?>
" class="img img-responsive" style="min-height:120px;max-height:120px;"/><p class="info"><span class="small"><?php echo $_smarty_tpl->tpl_vars['fl']->value['data_c'];?>
</span></p> <p class="info"><?php echo $_smarty_tpl->tpl_vars['fl']->value['tipfile'];?>
</p><p class="info"><input type="CHECKBOX" name="del_file[<?php echo $_smarty_tpl->tpl_vars['fl']->value['id'];?>
]" class="tooltips" data-trigger="hover" data-original-title="Удалить файл из заявки" data-placement="top" > - удалить файл</p>
</div><?php } ?>
</div><?php }?>
<div class="form-actions">
<input type="CHECKBOX" name="status" class="tooltips" data-trigger="hover" data-original-title="Сохранить заявку как черновик, для дальнейшего редактирования" data-placement="top" <?php if (isset($_smarty_tpl->tpl_vars['zayavka']->value['status'])){?><?php if ($_smarty_tpl->tpl_vars['zayavka']->value['status']=="-1"){?>CHECKED<?php }?><?php }else{ ?>CHECKED<?php }?>> - сохранить как черновик, иначе ваша заявка идет на проверку для дальнейшей работы
<?php if ($_smarty_tpl->tpl_vars['des']->value=="add"){?><button type="submit" name="iup_student_save" class="btn btn-success">Сохранить заявку</button><?php }?>
<?php if ($_smarty_tpl->tpl_vars['des']->value=="edit"){?><button type="submit" name="iup_student_edit" class="btn btn-success">Сохранить заявку</button><input type="HIDDEN" name="id" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['id'];?>
"><?php }?>
</div>
</form>
</div>
</div>
</div>
<script>$(document).ready(function(){
$(".faddfile").click(function(){
var title=$(this).parent().parent().find("label").html();
var name=$(this).parent().parent().find("input").attr("name");
console.log(title+"-"+name);
$(this).closest(".mf_item").after('<div class="control-group mf_item"><label class="control-label span4">'+title+'</label><div class="controls span6"><input type="file" class="span12" name="'+name+'" /></div><div class="controls span2"></div></div>');
return false;
});
});</script>
</div>
</div>
<?php }?><?php }} ?>