688 lines
33 KiB
PHP
688 lines
33 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2023-06-05 14:24:19
|
|||
|
compiled from "tpl/tpl_it_order.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:166479581363ca5c6faaf021-72593218%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'2f4404ab6a2962a9151c22b8c9ae4e2414af2243' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_it_order.html',
|
|||
|
1 => 1685964258,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '166479581363ca5c6faaf021-72593218',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_63ca5c6fafe4a4_17935400',
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'msg' => 0,
|
|||
|
'order' => 0,
|
|||
|
'us' => 0,
|
|||
|
'categoryTicket' => 0,
|
|||
|
'category' => 0,
|
|||
|
'corpuses' => 0,
|
|||
|
'corp' => 0,
|
|||
|
'user' => 0,
|
|||
|
'ordersAll' => 0,
|
|||
|
'team' => 0,
|
|||
|
'orders' => 0,
|
|||
|
'des' => 0,
|
|||
|
'elem' => 0,
|
|||
|
'itUsers' => 0,
|
|||
|
'sotr' => 0,
|
|||
|
'mes' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_63ca5c6fafe4a4_17935400')) {function content_63ca5c6fafe4a4_17935400($_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>
|
|||
|
|
|||
|
</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">
|
|||
|
<?php if (!(isset($_smarty_tpl->tpl_vars['order']->value))){?>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="widget blue">
|
|||
|
<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">
|
|||
|
<form name="order_ticket" action="/it/order/" method="post" class="form-horizontal" enctype="multipart/form-data">
|
|||
|
|
|||
|
<input type="hidden" name="id_user" value="<?php echo $_smarty_tpl->tpl_vars['us']->value['id'];?>
|
|||
|
" />
|
|||
|
|
|||
|
<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="fio" class="form-control" style="width: 90%;" value="<?php echo $_smarty_tpl->tpl_vars['us']->value['fio'];?>
|
|||
|
" readonly required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label" style="min-width: 200px!important;">Email</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="input-prepend" style="width: 90%;">
|
|||
|
<input type="email" name="email" class="form-control" style="width: 90%;" value="<?php echo $_smarty_tpl->tpl_vars['us']->value['email'];?>
|
|||
|
" required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label" style="min-width: 200px!important;">Телефон (Whatsapp)</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="input-prepend" style="width: 90%;">
|
|||
|
<input type="tel" name="phone" class="form-control" style="width: 90%;" value="<?php echo $_smarty_tpl->tpl_vars['us']->value['phone'];?>
|
|||
|
" />
|
|||
|
</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%;">
|
|||
|
<select class="form-control" name="rol" style="width: 90%;">
|
|||
|
<option value="Студент">Студент</option>
|
|||
|
<option value="Сотрудник">Сотрудник</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="doljnost" class="form-control" style="width: 90%;" />
|
|||
|
</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%;">
|
|||
|
<select class="form-control" name="category" style="width: 90%;">
|
|||
|
<?php $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['category']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['categoryTicket']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value){
|
|||
|
$_smarty_tpl->tpl_vars['category']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['category']->key;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['category']->value;?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</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%;">
|
|||
|
<select class="form-control" name="corpuses" style="width: 90%;">
|
|||
|
<option value="Онлайн">Можно решить онлайн (если нет, выберите другой пункт)</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['corp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['corp']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['corpuses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['corp']->key => $_smarty_tpl->tpl_vars['corp']->value){
|
|||
|
$_smarty_tpl->tpl_vars['corp']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['corp']->key;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['corp']->value['name'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['corp']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
<option value="Общежитие/столовая">Общежитие/столовая</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="aud" class="form-control" style="width: 90%;" placeholder="Если проблема решаема онлайн, оставьте поле пустым" />
|
|||
|
</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%;">
|
|||
|
<textarea name="about" rows="4" style="width:90%;" class="form-control" required ></textarea>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<div class="control-group" style="display: none;">
|
|||
|
<label class="control-label" style="min-width: 200px!important;">Приоритет</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="input-prepend" style="width: 90%;">
|
|||
|
<div class="btn-group" data-toggle="buttons">
|
|||
|
<label class="btn btn-info tooltips" data-placement="top" data-original-title="НЕ ОПРЕДЕЛЕН">
|
|||
|
<input type="radio" name="prioritet[]" value="Не определен" autocomplete="off" class="pred_checkbox" checked > НЕ ОПРЕДЕЛЕН
|
|||
|
</label>
|
|||
|
<!--label class="btn btn-success tooltips" data-placement="top" data-original-title="НИЗКИЙ">
|
|||
|
<input type="radio" name="prioritet[]" value="Низкий" autocomplete="off" class="pred_checkbox" > НИЗКИЙ
|
|||
|
</label>
|
|||
|
<label class="btn btn-info tooltips" data-placement="top" data-original-title="ОБЫЧНЫЙ">
|
|||
|
<input type="radio" name="prioritet[]" value="Обычный" autocomplete="off" class="pred_checkbox" checked /> ОБЫЧНЫЙ
|
|||
|
</label>
|
|||
|
<label class="btn btn-danger tooltips" data-placement="top" data-original-title="ВЫСОКИЙ">
|
|||
|
<input type="radio" name="prioritet[]" value="Высокий" autocomplete="off" class="pred_checkbox" > ВЫСОКИЙ
|
|||
|
</label-->
|
|||
|
|
|||
|
</div>
|
|||
|
</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" />
|
|||
|
|
|||
|
</div>
|
|||
|
<span style="color:red;">Если файлов много, рекомендуется загружать их на отдельный сервис, а в письме указывать ссылки на файлы.</span>
|
|||
|
</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="m_date" class="form-control" style="width: 90%;" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<input type="hidden" name="j_date" value="0" />
|
|||
|
|
|||
|
<!--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="j_date" class="form-control" style="width: 90%;" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div-->
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<br />
|
|||
|
|
|||
|
<input type="submit" class="btn btn-primary" name="order_ticket" value="Отправить заявку на рассмотрение" />
|
|||
|
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['user']->value['statuses'][77])){?>
|
|||
|
<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">
|
|||
|
<p>Крупные задачи (на которые нужно более 8-10 часов) нужно разбивать на несколько более мелких.</p>
|
|||
|
<p><i class=" icon-male"></i> - означает, что Вы исполнитель задачи.</p>
|
|||
|
|
|||
|
<span class="btn btn-info order-sort" data-status="Все">Все</span>
|
|||
|
<span class="btn btn-info order-sort" data-status="на рассмотрении">на рассмотрении</span>
|
|||
|
<span class="btn btn-info order-sort" data-status="в работе">в работе</span>
|
|||
|
<span class="btn btn-info order-sort" data-status="на проверке">на проверке</span>
|
|||
|
<span class="btn btn-info order-sort" data-status="на доработке">на доработке</span>
|
|||
|
<span class="btn btn-info order-sort" data-status="выполнено">выполнено</span>
|
|||
|
<span class="btn btn-info order-sort" data-status="одобрено">одобрено</span>
|
|||
|
<span class="btn btn-info order-sort" data-status="архив">архив</span>
|
|||
|
<br /><br />
|
|||
|
|
|||
|
<table class="table table-bordered">
|
|||
|
<tr bgcolor="lightgray">
|
|||
|
<th>№ заявки</th>
|
|||
|
<th>Дата открытия/<br />Дата сдачи работы</th>
|
|||
|
<th>Контакты</th>
|
|||
|
<th>Категория<br /> Краткое описание</th>
|
|||
|
<th>Сроки</th>
|
|||
|
<th>Прочая информация</th>
|
|||
|
<th>Действия</th>
|
|||
|
</tr>
|
|||
|
<?php $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['order']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['ordersAll']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['order']->key => $_smarty_tpl->tpl_vars['order']->value){
|
|||
|
$_smarty_tpl->tpl_vars['order']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['order']->key;
|
|||
|
?>
|
|||
|
<tr style="background-color: <?php echo $_smarty_tpl->tpl_vars['order']->value['color'];?>
|
|||
|
;" class="status-tr" data-print="<?php echo $_smarty_tpl->tpl_vars['order']->value['status'];?>
|
|||
|
">
|
|||
|
<td>
|
|||
|
<span class="badge badge-<?php if (($_smarty_tpl->tpl_vars['order']->value['prioritet']=='Высокий')){?>important<?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['order']->value['prioritet']=='Обычный')){?>info<?php }else{ ?>success<?php }?><?php }?>"><?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
|
|||
|
</span>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['user']->value['fio']==$_smarty_tpl->tpl_vars['order']->value['worker']['fio'])){?><span style="font-size: 18px;"><i class=" icon-male"></i> </span> <?php }?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['date_create'];?>
|
|||
|
<br /><?php if ($_smarty_tpl->tpl_vars['order']->value['date_end']!="01.01.1970 03:00:00"){?><?php echo $_smarty_tpl->tpl_vars['order']->value['date_end'];?>
|
|||
|
<?php }?></td>
|
|||
|
<td>
|
|||
|
<b>ФИО:</b> <?php echo $_smarty_tpl->tpl_vars['order']->value['fio'];?>
|
|||
|
<br />
|
|||
|
<b>Должность:</b> <?php echo $_smarty_tpl->tpl_vars['order']->value['doljnost'];?>
|
|||
|
<br />
|
|||
|
<b>Телефон:</b> <?php echo $_smarty_tpl->tpl_vars['order']->value['phone'];?>
|
|||
|
<br />
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['order']->value['category']!="Telegram"){?><b>Email: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['email'];?>
|
|||
|
<?php }else{ ?>Эта заявка из телеграм<!--b>Telegram: </b><a href="tg://user?id=<?php echo $_smarty_tpl->tpl_vars['order']->value['email'];?>
|
|||
|
">написать</a--><?php }?></b> <br />
|
|||
|
<b>Место проблемы:</b> <?php echo $_smarty_tpl->tpl_vars['order']->value['place'];?>
|
|||
|
<br />
|
|||
|
</td>
|
|||
|
<td><span class="badge badge-<?php if ($_smarty_tpl->tpl_vars['order']->value['category']=='Telegram'){?>info<?php }else{ ?>warning<?php }?>"><?php echo $_smarty_tpl->tpl_vars['order']->value['category'];?>
|
|||
|
</span><br /><?php echo mb_substr($_smarty_tpl->tpl_vars['order']->value['about'],0,100);?>
|
|||
|
...</td>
|
|||
|
<td><b><font color="blue">Мероприятие - <?php echo $_smarty_tpl->tpl_vars['order']->value['m_date'];?>
|
|||
|
</font><br /><font color="red">Работу выполнить до: <?php echo $_smarty_tpl->tpl_vars['order']->value['j_date'];?>
|
|||
|
</font></b><br /> <!--<?php echo $_smarty_tpl->tpl_vars['order']->value['raznica'];?>
|
|||
|
--></td>
|
|||
|
<td><b>Исполнитель: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['worker']['fio'];?>
|
|||
|
<br /><b>Статус заявки: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['status'];?>
|
|||
|
<br /><hr />
|
|||
|
<?php if ((strstr($_smarty_tpl->tpl_vars['order']->value['teams_id'],","))){?><b>Команда:</b><br />
|
|||
|
<ul>
|
|||
|
<?php $_smarty_tpl->tpl_vars['team'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['team']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['order']->value['teams']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['team']->key => $_smarty_tpl->tpl_vars['team']->value){
|
|||
|
$_smarty_tpl->tpl_vars['team']->_loop = true;
|
|||
|
?>
|
|||
|
<li><?php echo $_smarty_tpl->tpl_vars['team']->value['fio'];?>
|
|||
|
</li>
|
|||
|
<?php } ?>
|
|||
|
</ul><?php }?>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<a class="btn btn-primary" href="/it/order/<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
|
|||
|
/"><i class="icon-pencil icon-white"></i> В заявку</a>
|
|||
|
<br /><?php if ($_smarty_tpl->tpl_vars['order']->value['status']=='одобрено'){?><h4 align="center" style="color: blue;"><?php echo $_smarty_tpl->tpl_vars['order']->value['score'];?>
|
|||
|
</h4><?php }?><?php if ($_smarty_tpl->tpl_vars['order']->value['status']=='выполнено'){?><h3 align="center" style="color: green;"><?php echo $_smarty_tpl->tpl_vars['order']->value['score'];?>
|
|||
|
</h3><?php }?>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<?php }?>
|
|||
|
|
|||
|
<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-bordered">
|
|||
|
<tr bgcolor="lightgray">
|
|||
|
<th>№ заявки</th>
|
|||
|
<th>Дата открытия</th>
|
|||
|
<th>Ваши контакты</th>
|
|||
|
<th>Категория</th>
|
|||
|
<th>Сроки</th>
|
|||
|
<th>Прочая информация</th>
|
|||
|
<th>Действия</th>
|
|||
|
</tr>
|
|||
|
<?php $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['order']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['order']->key => $_smarty_tpl->tpl_vars['order']->value){
|
|||
|
$_smarty_tpl->tpl_vars['order']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['order']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
|
|||
|
<br /><font color="blue">(<?php echo $_smarty_tpl->tpl_vars['order']->value['prioritet'];?>
|
|||
|
)</font></td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['date_create'];?>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<b>Телефон:</b> <?php echo $_smarty_tpl->tpl_vars['order']->value['phone'];?>
|
|||
|
<br />
|
|||
|
<b>Email:</b> <?php echo $_smarty_tpl->tpl_vars['order']->value['email'];?>
|
|||
|
<br />
|
|||
|
<b>Место проблемы:</b> <?php echo $_smarty_tpl->tpl_vars['order']->value['place'];?>
|
|||
|
<br />
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['category'];?>
|
|||
|
</td>
|
|||
|
<td><b><font color="orange">Мягкий дедлайн: <?php echo $_smarty_tpl->tpl_vars['order']->value['m_date'];?>
|
|||
|
</font><br /><font color="red">Жесткий дедлайн: <?php echo $_smarty_tpl->tpl_vars['order']->value['j_date'];?>
|
|||
|
</font></b></td>
|
|||
|
<td><b>Исполнитель: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['worker']['fio'];?>
|
|||
|
<br /><b>Статус заявки: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['status'];?>
|
|||
|
<br /></td>
|
|||
|
<td><a class="btn btn-primary" href="/it/order/<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
|
|||
|
/"><i class="icon-pencil icon-white"></i> В заявку</a></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }else{ ?> <!--ОТКРЫЛИ ЗАЯВКУ КОНКРЕТНУЮ-->
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="widget green">
|
|||
|
<div class="widget-title">
|
|||
|
<h4><i class="icon-reorder"></i> Заявка #<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
</h4>
|
|||
|
<span class="tools">
|
|||
|
<a href="javascript:;" class="icon-chevron-down"></a>
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
<div class="widget-body">
|
|||
|
<?php $_smarty_tpl->tpl_vars['elem'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['elem']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['order']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['elem']->key => $_smarty_tpl->tpl_vars['elem']->value){
|
|||
|
$_smarty_tpl->tpl_vars['elem']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['elem']->key;
|
|||
|
?>
|
|||
|
<table class="table table-bordered">
|
|||
|
<tr bgcolor="lightgray">
|
|||
|
<th>№ заявки</th>
|
|||
|
<th>Дата открытия</th>
|
|||
|
<th>Ваши контакты</th>
|
|||
|
<th>Категория</th>
|
|||
|
<th>Сроки</th>
|
|||
|
<th>Прочая информация</th>
|
|||
|
<th>Файлы</th>
|
|||
|
</tr>
|
|||
|
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['elem']->value['id'];?>
|
|||
|
<br /><font color="blue">(<?php echo $_smarty_tpl->tpl_vars['elem']->value['prioritet'];?>
|
|||
|
)</font></td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['elem']->value['date_create'];?>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<b>ФИО:</b> <?php echo $_smarty_tpl->tpl_vars['elem']->value['fio'];?>
|
|||
|
<br />
|
|||
|
<b>Телефон:</b> <?php echo $_smarty_tpl->tpl_vars['elem']->value['phone'];?>
|
|||
|
<br />
|
|||
|
<!--b>Email:</b> <?php echo $_smarty_tpl->tpl_vars['elem']->value['email'];?>
|
|||
|
<br /-->
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['elem']->value['category']!="Telegram"){?><b>Email: </b><?php echo $_smarty_tpl->tpl_vars['elem']->value['email'];?>
|
|||
|
<?php }else{ ?>Эта заявка из телеграм<!--b>Telegram: </b><a href="tg://user?id=<?php echo $_smarty_tpl->tpl_vars['elem']->value['email'];?>
|
|||
|
">написать</a--><?php }?></b> <br />
|
|||
|
<b>Место проблемы:</b> <?php echo $_smarty_tpl->tpl_vars['elem']->value['place'];?>
|
|||
|
<br />
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['elem']->value['category'];?>
|
|||
|
</td>
|
|||
|
<td><b><font color="blue">Мероприятие - <?php echo $_smarty_tpl->tpl_vars['elem']->value['m_date'];?>
|
|||
|
</font><br /><font color="red">Работу выполнить до: <?php echo $_smarty_tpl->tpl_vars['elem']->value['j_date'];?>
|
|||
|
</font></b></td>
|
|||
|
<td><b>Исполнитель: </b><?php echo $_smarty_tpl->tpl_vars['elem']->value['worker']['fio'];?>
|
|||
|
<br /><b>Статус заявки: </b><?php echo $_smarty_tpl->tpl_vars['elem']->value['status'];?>
|
|||
|
<br /></td>
|
|||
|
<td></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td colspan="7"><b>Описание проблемы/задачи</b><br /><?php echo $_smarty_tpl->tpl_vars['elem']->value['about'];?>
|
|||
|
<hr />
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['elem']->value['file']!='')){?><a href="/<?php echo $_smarty_tpl->tpl_vars['elem']->value['file'];?>
|
|||
|
" class="btn btn-info" id="add-without-image">Скачать/открыть файл</a><?php }?>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
|
|||
|
</table>
|
|||
|
<hr />
|
|||
|
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['user']->value['statuses'][76])){?>
|
|||
|
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['elem']->value['status']=="на рассмотрении"){?>
|
|||
|
<h4 align="center">Действия руководителя</h4>
|
|||
|
|
|||
|
<form name="order_work" action="#" method="post">
|
|||
|
<input type="hidden" name="id_order" value="<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
" />
|
|||
|
|
|||
|
<p>Указать приоритет задачи: </p>
|
|||
|
<select name="prioritet" class="form-control">
|
|||
|
<option value="Обычный">Обычный</option>
|
|||
|
<option value="Низкий">Низкий</option>
|
|||
|
<option value="Высокий">Высокий</option>
|
|||
|
</select>
|
|||
|
|
|||
|
<p>Указать срок выполнения до: </p>
|
|||
|
<input type="date" name="j_date" class="form-control" />
|
|||
|
|
|||
|
<h4>Назначить исполнителя:</h4>
|
|||
|
<?php $_smarty_tpl->tpl_vars['sotr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sotr']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['itUsers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['sotr']->key => $_smarty_tpl->tpl_vars['sotr']->value){
|
|||
|
$_smarty_tpl->tpl_vars['sotr']->_loop = true;
|
|||
|
?>
|
|||
|
<input type="radio" name="worker" value="<?php echo $_smarty_tpl->tpl_vars['sotr']->value['id_user'];?>
|
|||
|
" /> <?php echo $_smarty_tpl->tpl_vars['sotr']->value['fio'];?>
|
|||
|
<br />
|
|||
|
<?php } ?>
|
|||
|
|
|||
|
<br />
|
|||
|
<input type="submit" name="order_work" class="btn btn-success" value="Отправить в работу" />
|
|||
|
|
|||
|
</form>
|
|||
|
|
|||
|
<!--a href="/it/order/<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
/1/" role="button" class="btn btn-success">Взять в работу</a-->
|
|||
|
<a href="/it/order/<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
/0/" role="button" class="btn btn-warning">Отправить в архив (отклонить)</a>
|
|||
|
<?php }?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['elem']->value['status']=="на проверке"){?>
|
|||
|
<h4 align="center">Действия руководителя</h4>
|
|||
|
<form name="success_order" action="#" method="post">
|
|||
|
<input type="hidden" name="id_order" value="<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
" />
|
|||
|
|
|||
|
<p>Начислить баллы (учитываются для всех участников задачи): </p>
|
|||
|
<input type="number" name="score" min="0.1" max="10" step="0.1" value="0.5" class="form-control" />
|
|||
|
|
|||
|
<br /><br />
|
|||
|
<input type="submit" class="btn btn-success" name="success_order" value="Одобрить работу" />
|
|||
|
</form>
|
|||
|
|
|||
|
<a href="/it/order/<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
/3/" role="button" class="btn btn-warning">Вернуть на доработку</a> - в сообщениях обязательно укажите комментарии, почему.
|
|||
|
<?php }?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['elem']->value['status']=="одобрено"){?>
|
|||
|
<a href="/it/order/<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
/3/" role="button" class="btn btn-warning">Вернуть на доработку</a> - в сообщениях обязательно укажите комментарии, почему.
|
|||
|
<?php }?>
|
|||
|
|
|||
|
<?php }?>
|
|||
|
|
|||
|
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['user']->value['statuses'][77])){?>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['elem']->value['status']=="в работе")||($_smarty_tpl->tpl_vars['elem']->value['status']=="на доработке")){?> <!--ДОСТУПНЫ ТОЛЬКО ИСПОЛНИТЕЛЮ-->
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['user']->value['fio']==$_smarty_tpl->tpl_vars['elem']->value['worker']['fio']){?>
|
|||
|
<h4 align="center">ДЕЙСТВИЯ НАД ЗАЯВКОЙ </h4>
|
|||
|
<table width="100%">
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
<h4>Включить в команду для решения задачи:</h4>
|
|||
|
<form name="team_save" action="#" method="post">
|
|||
|
<?php $_smarty_tpl->tpl_vars['sotr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sotr']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['itUsers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['sotr']->key => $_smarty_tpl->tpl_vars['sotr']->value){
|
|||
|
$_smarty_tpl->tpl_vars['sotr']->_loop = true;
|
|||
|
?>
|
|||
|
<input type="checkbox" name="it_users[]" value="<?php echo $_smarty_tpl->tpl_vars['sotr']->value['id_user'];?>
|
|||
|
" <?php if (strstr($_smarty_tpl->tpl_vars['elem']->value['teams_id'],$_smarty_tpl->tpl_vars['sotr']->value['id_user'])){?> checked<?php }?> /> <?php echo $_smarty_tpl->tpl_vars['sotr']->value['fio'];?>
|
|||
|
<br />
|
|||
|
<?php } ?>
|
|||
|
<br />
|
|||
|
<input type="submit" name="team_save" class="btn btn-success" value="Сохранить команду" />
|
|||
|
</form>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<a href="/it/order/<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
/2/" role="button" class="btn btn-primary">Отправить на проверку</a><br /><br />
|
|||
|
<a href="/it/order/<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
/0/" role="button" class="btn btn-warning">Задача отменена (в архив)</a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
<?php }?>
|
|||
|
<?php }?>
|
|||
|
<hr />
|
|||
|
<?php }?>
|
|||
|
|
|||
|
<h4>Общение по теме проблемы/задачи</h4>
|
|||
|
<?php $_smarty_tpl->tpl_vars['elem'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['elem']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['order']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['elem']->key => $_smarty_tpl->tpl_vars['elem']->value){
|
|||
|
$_smarty_tpl->tpl_vars['elem']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['elem']->key;
|
|||
|
?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['mes'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mes']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k2'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['elem']->value['message']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['mes']->key => $_smarty_tpl->tpl_vars['mes']->value){
|
|||
|
$_smarty_tpl->tpl_vars['mes']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k2']->value = $_smarty_tpl->tpl_vars['mes']->key;
|
|||
|
?>
|
|||
|
<b><?php if (($_smarty_tpl->tpl_vars['mes']->value['id_user']>0)){?><?php echo $_smarty_tpl->tpl_vars['mes']->value['user']['fio'];?>
|
|||
|
<?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['elem']->value['fio'];?>
|
|||
|
<?php }?> (<?php echo $_smarty_tpl->tpl_vars['mes']->value['date_create'];?>
|
|||
|
): </b> <?php echo $_smarty_tpl->tpl_vars['mes']->value['comment'];?>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['mes']->value['file']!='')){?>(<a href="/<?php echo $_smarty_tpl->tpl_vars['mes']->value['file'];?>
|
|||
|
">Посмотреть файл</a>)<?php }?><br />
|
|||
|
<?php } ?>
|
|||
|
<?php } ?>
|
|||
|
|
|||
|
<br />
|
|||
|
<?php if (!(($_smarty_tpl->tpl_vars['elem']->value['status']=="на рассмотрении")||($_smarty_tpl->tpl_vars['elem']->value['status']=="архив")||($_smarty_tpl->tpl_vars['elem']->value['status']=="выполнено"))){?>
|
|||
|
<form name="message_add" action="#" method="post" class="form-horizontal" 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" >
|
|||
|
<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" />
|
|||
|
</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="hidden" name="des" value="<?php echo $_smarty_tpl->tpl_vars['des']->value;?>
|
|||
|
" />
|
|||
|
<input type="text" name="message" class="form-control" style="width: 90%;"/>
|
|||
|
|
|||
|
<input type="submit" name="message_add" class="btn btn-success" value="Отправить" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</form>
|
|||
|
<?php }else{ ?>
|
|||
|
<p>Нельзя написать сообщение, если задание не принято в работу или в архиве, или уже выполнено (т.е. считается закрытым).</p>
|
|||
|
<?php }?>
|
|||
|
<?php } ?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<?php }?>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<script type="text/javascript">
|
|||
|
$(document).ready(function(){
|
|||
|
|
|||
|
|
|||
|
//сортировка по направлениям
|
|||
|
$(".order-sort").click(function(){
|
|||
|
var status = $(this).data("status");
|
|||
|
//alert(status);
|
|||
|
|
|||
|
//красим
|
|||
|
$('.order-sort').addClass('btn-info');
|
|||
|
$('.order-sort').removeClass('btn-danger');
|
|||
|
$(this).addClass('btn-danger');
|
|||
|
$(this).removeClass('btn-info');
|
|||
|
|
|||
|
|
|||
|
$('tr.status-tr').css("display","none");
|
|||
|
|
|||
|
//$('tr.napr-tr[data-print="'+status+'"]').css("display","table-row");
|
|||
|
if (status == 'Все') $('tr.status-tr').css("display","table-row"); //все
|
|||
|
else $('tr.status-tr[data-print="'+status+'"]').css("display","table-row"); //только распечатанные*/
|
|||
|
|
|||
|
});
|
|||
|
|
|||
|
});
|
|||
|
</script><?php }} ?>
|