375 lines
22 KiB
PHP
375 lines
22 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2022-11-01 15:20:00
|
||
compiled from "tpl/tpl_iup_logs.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:145764298363610ef0dc6868-56674179%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'b33dd5eb3f037a533c49bf4c2938895de93f21d6' =>
|
||
array (
|
||
0 => 'tpl/tpl_iup_logs.html',
|
||
1 => 1544100528,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '145764298363610ef0dc6868-56674179',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'variables' =>
|
||
array (
|
||
'des' => 0,
|
||
'dzayavka' => 0,
|
||
'zayavka' => 0,
|
||
'it' => 0,
|
||
'statuses' => 0,
|
||
'k' => 0,
|
||
'sel_status' => 0,
|
||
'zayavks' => 0,
|
||
'naprav' => 0,
|
||
'st' => 0,
|
||
'napravlenie' => 0,
|
||
'nap' => 0,
|
||
'grup' => 0,
|
||
'tip' => 0,
|
||
'profile' => 0,
|
||
'prilogens' => 0,
|
||
'prf' => 0,
|
||
'fl' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_63610ef0e455b2_17211834',
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_63610ef0e455b2_17211834')) {function content_63610ef0e455b2_17211834($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("tpl_messager.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
||
|
||
<br><br>
|
||
<?php if ($_smarty_tpl->tpl_vars['des']->value=="view"){?>
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<h2>История изменений заявки №<?php echo $_smarty_tpl->tpl_vars['dzayavka']->value['id'];?>
|
||
"<?php echo $_smarty_tpl->tpl_vars['dzayavka']->value['fio'];?>
|
||
"</h2>
|
||
|
||
<div class="timeline-messages">
|
||
<div class="msg-time-chat">
|
||
<a class="message-img" href="#" style="font-size: 19px;padding: 2px;"><?php echo date('H:i',$_smarty_tpl->tpl_vars['dzayavka']->value['data_c']);?>
|
||
<br><?php echo date('d.m',$_smarty_tpl->tpl_vars['dzayavka']->value['data_c']);?>
|
||
</a>
|
||
<div class="message-body msg-in">
|
||
<span class="arrow"></span>
|
||
<div class="text">
|
||
<p class="attribution"><a href="#"><?php echo $_smarty_tpl->tpl_vars['dzayavka']->value['fio'];?>
|
||
</a> <?php echo date('H:i d.m.Y',$_smarty_tpl->tpl_vars['dzayavka']->value['data_c']);?>
|
||
</p>
|
||
<p>заявка создана</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['it']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['zayavka']->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;
|
||
?>
|
||
<div class="msg-time-chat">
|
||
<a class="message-img" href="#" style="font-size: 19px;padding: 2px;"><?php echo date('H:i',$_smarty_tpl->tpl_vars['it']->value['data_c']);?>
|
||
<br><?php echo date('d.m',$_smarty_tpl->tpl_vars['it']->value['data_c']);?>
|
||
</a>
|
||
<div class="message-body msg-in">
|
||
<span class="arrow"></span>
|
||
<div class="text">
|
||
<p class="attribution"><span class="label label-success"><?php echo $_smarty_tpl->tpl_vars['it']->value['fio'];?>
|
||
</span> <?php echo date('H:i d.m.Y',$_smarty_tpl->tpl_vars['it']->value['data_c']);?>
|
||
</p>
|
||
<p><?php echo $_smarty_tpl->tpl_vars['it']->value['descrip'];?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['it']->value['status_old']==$_smarty_tpl->tpl_vars['it']->value['status_new']){?>
|
||
<?php echo $_smarty_tpl->tpl_vars['statuses']->value[$_smarty_tpl->tpl_vars['it']->value['status_old']];?>
|
||
|
||
<?php }else{ ?>из <span class="label"><?php echo $_smarty_tpl->tpl_vars['statuses']->value[$_smarty_tpl->tpl_vars['it']->value['status_old']];?>
|
||
</span> в <span class="label label-info"><?php echo $_smarty_tpl->tpl_vars['statuses']->value[$_smarty_tpl->tpl_vars['it']->value['status_new']];?>
|
||
</span><?php }?></p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php } ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['des']->value=="show"){?>
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="span8" id="left_column"><h2>Список заявок</h2></div>
|
||
<div class="span4" id="right_column"><form method="POST"><select onchange="submit();" name="sel_status">
|
||
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['it']->_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['it']->key => $_smarty_tpl->tpl_vars['it']->value){
|
||
$_smarty_tpl->tpl_vars['it']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['it']->key;
|
||
?><option value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
||
"<?php if ($_smarty_tpl->tpl_vars['sel_status']->value==$_smarty_tpl->tpl_vars['k']->value){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['it']->value;?>
|
||
</option><?php } ?>
|
||
</select></form></div>
|
||
|
||
|
||
<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["naprav"] = new Smarty_variable('', null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['it']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['zayavks']->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;
|
||
?>
|
||
<?php if ($_smarty_tpl->tpl_vars['naprav']->value!=$_smarty_tpl->tpl_vars['it']->value['ppp'][2]){?>
|
||
<tr><td colspan="7"><b><?php echo $_smarty_tpl->tpl_vars['it']->value['ppp'][2];?>
|
||
</b></td></tr>
|
||
<?php $_smarty_tpl->tpl_vars["naprav"] = new Smarty_variable($_smarty_tpl->tpl_vars['it']->value['ppp'][2], null, 0);?>
|
||
<?php }?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
||
</td>
|
||
<td><?php echo date("H:i d.m.Y",$_smarty_tpl->tpl_vars['it']->value['data_c']);?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['fio'];?>
|
||
</td>
|
||
<td><span class="badge badge-<?php if ($_smarty_tpl->tpl_vars['it']->value['razd']<5){?>success<?php }?><?php if ($_smarty_tpl->tpl_vars['it']->value['razd']>=5&&$_smarty_tpl->tpl_vars['it']->value['razd']<8){?>warning<?php }?><?php if ($_smarty_tpl->tpl_vars['it']->value['razd']>8){?>important<?php }?>"><?php echo $_smarty_tpl->tpl_vars['it']->value['razd'];?>
|
||
</span></td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['pret_kurs'];?>
|
||
/<?php echo $_smarty_tpl->tpl_vars['it']->value['pret_fo'];?>
|
||
</td>
|
||
<td nowrap>
|
||
<?php echo $_smarty_tpl->tpl_vars['it']->value['kolst'];?>
|
||
|
||
<a class="btn btn-primary" href="/iup/logs/view/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
||
/"><i class="icon-eye-open"></i></a>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?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 span2">ФИО</label>
|
||
<div class="controls span3">
|
||
<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>
|
||
<label class="control-label span2">Номер телефона</label>
|
||
<div class="controls span5">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Номер сотового телефона, для связи" name="tel" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['tel'];?>
|
||
" placeholder="+79034332211" />
|
||
</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>
|
||
<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['fakid'] = 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['fakid']->value = $_smarty_tpl->tpl_vars['nap']->key;
|
||
?>
|
||
<option value="0" disabled style="color:red;font-weight:bold;">Факультет: <?php echo $_smarty_tpl->tpl_vars['nap']->value['fak'];?>
|
||
</option>
|
||
<?php $_smarty_tpl->tpl_vars['grup'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['grup']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['napravid'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['nap']->value['naprav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['grup']->key => $_smarty_tpl->tpl_vars['grup']->value){
|
||
$_smarty_tpl->tpl_vars['grup']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['napravid']->value = $_smarty_tpl->tpl_vars['grup']->key;
|
||
?>
|
||
<?php $_smarty_tpl->tpl_vars['tip'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tip']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['tipsid'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['grup']->value['tips']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['tip']->key => $_smarty_tpl->tpl_vars['tip']->value){
|
||
$_smarty_tpl->tpl_vars['tip']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['tipsid']->value = $_smarty_tpl->tpl_vars['tip']->key;
|
||
?>
|
||
<?php $_smarty_tpl->tpl_vars['profile'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['profile']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['profilesid'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['tip']->value['profiles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['profile']->key => $_smarty_tpl->tpl_vars['profile']->value){
|
||
$_smarty_tpl->tpl_vars['profile']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['profilesid']->value = $_smarty_tpl->tpl_vars['profile']->key;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['grup']->value['sname'];?>
|
||
:<?php echo $_smarty_tpl->tpl_vars['grup']->value['fname'];?>
|
||
:<?php echo $_smarty_tpl->tpl_vars['profile']->value;?>
|
||
:<?php echo $_smarty_tpl->tpl_vars['tip']->value['tname'];?>
|
||
"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_naprav']==((string)$_smarty_tpl->tpl_vars['grup']->value['sname']).":".((string)$_smarty_tpl->tpl_vars['grup']->value['fname']).":".((string)$_smarty_tpl->tpl_vars['profile']->value).":".((string)$_smarty_tpl->tpl_vars['tip']->value['tname'])){?> SELECTED<?php }?>>--<?php echo $_smarty_tpl->tpl_vars['grup']->value['fname'];?>
|
||
<?php if ($_smarty_tpl->tpl_vars['tip']->value['tname']!="Специалитет"){?>(профиль "<?php echo $_smarty_tpl->tpl_vars['profile']->value;?>
|
||
")<?php }?>, <?php echo $_smarty_tpl->tpl_vars['tip']->value['tname'];?>
|
||
</option>
|
||
<?php } ?>
|
||
<?php } ?>
|
||
<?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 }} ?>
|