684 lines
38 KiB
PHP
684 lines
38 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2023-08-09 12:32:12
|
||
compiled from "tpl/tpl_setting_users.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:10953798236254693bbd1c12-85254962%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'f1223f4cc2e92a6e6eec3ade9772f161df4128cc' =>
|
||
array (
|
||
0 => 'tpl/tpl_setting_users.html',
|
||
1 => 1691562716,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '10953798236254693bbd1c12-85254962',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_6254693bc36c77_64319756',
|
||
'variables' =>
|
||
array (
|
||
'st_users_s' => 0,
|
||
'st_email_s' => 0,
|
||
'regim' => 0,
|
||
'form' => 0,
|
||
'er' => 0,
|
||
'users' => 0,
|
||
'lc' => 0,
|
||
'pagination' => 0,
|
||
'p' => 0,
|
||
'id_user' => 0,
|
||
'grupps' => 0,
|
||
'gr' => 0,
|
||
'message' => 0,
|
||
'logs' => 0,
|
||
'log' => 0,
|
||
'passgenerate' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_6254693bc36c77_64319756')) {function content_6254693bc36c77_64319756($_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="/alneo/users/">Пользователи сайта</a></li>
|
||
<li><a class="btn btn-warning" href="/alneo/users/add/"><i class="icon-plus icon-white"></i> Добавить</a></li>
|
||
<li><a class="btn btn-danger" href="/alneo/users/addUsers/"><i class="icon-file icon-white"></i> Загрузка пользователей</a></li>
|
||
<li><a class="btn btn-info" href="/alneo/users/exportStudents/"><i class="icon-external-link icon-export"></i> Выгрузка пользователей</a></li>
|
||
<li><form method="POST" action="/alneo/users/" style="padding: 0px;margin: 0px;">Поиск по ФИО <input type="TEXT" name="st_users_s" onkeydown="if (event.keyCode==13){ this.form.submit(); return false;}" style="margin: 0px;" minlength="5" placeholder="по фамилии, не менее 5 символов" value="<?php echo $_smarty_tpl->tpl_vars['st_users_s']->value;?>
|
||
"></form></li>
|
||
|
||
<li><form method="POST" action="/alneo/users/" style="padding: 0px;margin: 0px;">по email <input type="TEXT" name="st_email_s" onkeydown="if (event.keyCode==13){ this.form.submit(); return false;}" style="margin: 0px;" minlength="5" placeholder="по email" value="<?php echo $_smarty_tpl->tpl_vars['st_email_s']->value;?>
|
||
"></form></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='show'){?>
|
||
<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>Кликнув по номеру, можно сразу написать пользователю на Whatsapp</p>
|
||
<?php if (count($_smarty_tpl->tpl_vars['form']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['form']->value['err']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['er']->key => $_smarty_tpl->tpl_vars['er']->value){
|
||
$_smarty_tpl->tpl_vars['er']->_loop = true;
|
||
?>
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> <?php echo $_smarty_tpl->tpl_vars['er']->value;?>
|
||
|
||
</div>
|
||
<?php } ?><?php }?>
|
||
<?php if (isset($_smarty_tpl->tpl_vars['form']->value['msg'])){?>
|
||
<div class="alert alert-success">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Успешно!</strong> <?php echo $_smarty_tpl->tpl_vars['form']->value['msg'];?>
|
||
|
||
</div>
|
||
<?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['users']->value)){?>
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr >
|
||
<th>Посл.вход <br /> Дата рег.</th>
|
||
<th><i class="icon-question-sign"></i> ФИО</th>
|
||
<th class="hidden-phone"><i class="icon-bookmark"></i> статус</th>
|
||
<th><i class="icon-bookmark"></i> Email/Телефон</th>
|
||
<th>Препод/Студент</th>
|
||
<th>Доп.инфо</th>
|
||
<th><i class=" icon-edit"></i> </th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['lc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lc']->_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['lc']->key => $_smarty_tpl->tpl_vars['lc']->value){
|
||
$_smarty_tpl->tpl_vars['lc']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_u'];?>
|
||
<br /><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_c'];?>
|
||
</td>
|
||
<td ><?php echo $_smarty_tpl->tpl_vars['lc']->value['fio'];?>
|
||
</td>
|
||
<td class="hidden-phone"><?php echo $_smarty_tpl->tpl_vars['lc']->value['status_name'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['email'];?>
|
||
<br /><a href="https://api.whatsapp.com/send/?phone=<?php echo $_smarty_tpl->tpl_vars['lc']->value['phone'];?>
|
||
&text=Здравствуйте!+Вас+беспокоят+из+ИТ-отдела." target="_blank"><?php echo $_smarty_tpl->tpl_vars['lc']->value['phone'];?>
|
||
</a></td>
|
||
<td nowarp>
|
||
<?php if ($_smarty_tpl->tpl_vars['lc']->value['teacher']!=0){?><a class="btn btn-success" href="/alneo/teacher/edit/<?php echo $_smarty_tpl->tpl_vars['lc']->value['teacher'];?>
|
||
/" title="Зареган как преподаватель"><i class="icon-user"></i></a><?php }else{ ?><a class="btn btn-default" href="#" title="Не зареган как преподаватель"><i class="icon-user"></i></a><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['lc']->value['student']!=0){?><a class="btn btn-success" href="#" title="Зареган как студент"><i class="icon-user"></i></a><?php }else{ ?><a class="btn btn-default" href="#" title="Не зареган как студент"><i class="icon-user"></i></a><?php }?>
|
||
</td>
|
||
<td>
|
||
<?php if (count($_smarty_tpl->tpl_vars['lc']->value['teacherall'])){?><?php echo $_smarty_tpl->tpl_vars['lc']->value['teacherall']['fakultet'];?>
|
||
-<?php echo $_smarty_tpl->tpl_vars['lc']->value['teacherall']['kafedra'];?>
|
||
<?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['lc']->value['studentall'])){?><?php echo $_smarty_tpl->tpl_vars['lc']->value['studentall']['sokr'];?>
|
||
-<?php echo $_smarty_tpl->tpl_vars['lc']->value['studentall']['kurs'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['lc']->value['studentdopnom'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['lc']->value['studentall']['fo'];?>
|
||
<?php }?>
|
||
</td>
|
||
<td nowrap>
|
||
<a class="btn btn-primary" href="/alneo/users/edit/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-pencil"></i></a>
|
||
<a class="btn btn-primary" href="/alneo/users/password/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/" style="background: #4c3a3a;"><i class="icon-lock"></i></a>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['lc']->value['status']=="-1"){?>
|
||
<a class="btn btn-danger" href="/alneo/users/del/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-trash "></i></a>
|
||
<?php }else{ ?>
|
||
<a class="btn btn-danger" href="/alneo/users/ban/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-ban-circle "></i></a>
|
||
<?php }?>
|
||
<a class="btn btn-success" href="/alneo/users/auth/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-key" aria-hidden="true"></i></a>
|
||
<a class="btn btn-warning" href="/pm/writeuser/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-envelope-alt"></i></a>
|
||
<?php if ($_smarty_tpl->tpl_vars['lc']->value['student']==0){?><a class="btn <?php if ($_smarty_tpl->tpl_vars['lc']->value['student']==0){?>btn-info<?php }else{ ?>btn-purple<?php }?>" href="/alneo/users/editgroup/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-tags"></i></a>
|
||
|
||
<?php }?>
|
||
<a class="btn btn-primary" href="/it/order/us<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-file"></i></a>
|
||
<a class="btn btn-info" style="background: #1e3ac1!important;" href="/alneo/users/logs/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-search "></i></i></a>
|
||
<a class="btn btn-info" style="background: #7163b3!important;" href="/alneo/users/lms/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/">LMS</i></a>
|
||
|
||
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php if (isset($_smarty_tpl->tpl_vars['pagination']->value)){?>
|
||
<div class="pagination pagination-large">
|
||
<ul>
|
||
<?php if ($_smarty_tpl->tpl_vars['pagination']->value['kol']<=15){?>
|
||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? $_smarty_tpl->tpl_vars['pagination']->value['kol']+1 - (1) : 1-($_smarty_tpl->tpl_vars['pagination']->value['kol'])+1)/abs($_smarty_tpl->tpl_vars['p']->step));
|
||
if ($_smarty_tpl->tpl_vars['p']->total > 0){
|
||
for ($_smarty_tpl->tpl_vars['p']->value = 1, $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
|
||
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
|
||
<li><a href="/alneo/users/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
||
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
||
</a></li>
|
||
<?php }} ?>
|
||
<?php }else{ ?>
|
||
<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']>4){?>
|
||
<li><a href="/alneo/users/p1/">1</a></li>
|
||
<li><a href="#">...</a></li>
|
||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? ($_smarty_tpl->tpl_vars['pagination']->value['page']+3)+1 - (($_smarty_tpl->tpl_vars['pagination']->value['page']-3)) : ($_smarty_tpl->tpl_vars['pagination']->value['page']-3)-(($_smarty_tpl->tpl_vars['pagination']->value['page']+3))+1)/abs($_smarty_tpl->tpl_vars['p']->step));
|
||
if ($_smarty_tpl->tpl_vars['p']->total > 0){
|
||
for ($_smarty_tpl->tpl_vars['p']->value = ($_smarty_tpl->tpl_vars['pagination']->value['page']-3), $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
|
||
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
|
||
<li><a href="/alneo/users/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
||
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
||
</a></li>
|
||
<?php }} ?>
|
||
<li><a href="#">...</a></li>
|
||
<li><a href="/alneo/users/p<?php echo $_smarty_tpl->tpl_vars['pagination']->value['kol'];?>
|
||
/"><?php echo $_smarty_tpl->tpl_vars['pagination']->value['kol'];?>
|
||
</a></li>
|
||
<?php }else{ ?>
|
||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? 5+1 - (1) : 1-(5)+1)/abs($_smarty_tpl->tpl_vars['p']->step));
|
||
if ($_smarty_tpl->tpl_vars['p']->total > 0){
|
||
for ($_smarty_tpl->tpl_vars['p']->value = 1, $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
|
||
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
|
||
<li><a href="/alneo/users/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
||
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
||
</a></li>
|
||
<?php }} ?>
|
||
<li><a href="#">...</a></li>
|
||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? $_smarty_tpl->tpl_vars['pagination']->value['kol']+1 - (($_smarty_tpl->tpl_vars['pagination']->value['kol']-5)) : ($_smarty_tpl->tpl_vars['pagination']->value['kol']-5)-($_smarty_tpl->tpl_vars['pagination']->value['kol'])+1)/abs($_smarty_tpl->tpl_vars['p']->step));
|
||
if ($_smarty_tpl->tpl_vars['p']->total > 0){
|
||
for ($_smarty_tpl->tpl_vars['p']->value = ($_smarty_tpl->tpl_vars['pagination']->value['kol']-5), $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
|
||
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
|
||
<li><a href="/alneo/users/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
||
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
||
</a></li>
|
||
<?php }} ?>
|
||
<?php }?>
|
||
<?php }?>
|
||
</ul>
|
||
</div>
|
||
<?php }?>
|
||
<?php }?>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='editgroup'){?>
|
||
<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">
|
||
<form name="editgroup" action="/alneo/users/" method="post">
|
||
<input type="hidden" name="id_user" value="<?php echo $_smarty_tpl->tpl_vars['id_user']->value;?>
|
||
" />
|
||
Выберите группу:
|
||
<select name="grupp">
|
||
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['grupps']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['gr']->key => $_smarty_tpl->tpl_vars['gr']->value){
|
||
$_smarty_tpl->tpl_vars['gr']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['gr']->value['id'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
|
||
-<?php echo $_smarty_tpl->tpl_vars['gr']->value['kurs'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
|
||
(<?php echo $_smarty_tpl->tpl_vars['gr']->value['year_start'];?>
|
||
год набора)</option>
|
||
<?php } ?>
|
||
</select>
|
||
<input class="btn btn-success" type="submit" name="edit_group" value="Сохранить" />
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='exportStudents'){?> <!-- ЭКСПОРТ студентов определенного года набора -->
|
||
<div class="span12">
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['message']->value!=''){?>
|
||
<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">
|
||
|
||
|
||
<?php echo $_smarty_tpl->tpl_vars['message']->value;?>
|
||
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
|
||
|
||
<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 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="span6 " name="year" value="2022" required />
|
||
<span class="help-inline">Все поля обязательно должны быть заполнены!</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-actions">
|
||
<?php echo $_smarty_tpl->tpl_vars['form']->value['id'];?>
|
||
|
||
<button type="submit" name="<?php echo $_smarty_tpl->tpl_vars['form']->value['btn_url'];?>
|
||
" class="btn btn-success"><?php echo $_smarty_tpl->tpl_vars['form']->value['btn_name'];?>
|
||
</button>
|
||
</div>
|
||
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='addUsers'){?> <!--Добавление СПИСКА ПОЛЬЗОВАТЕЛЕЙ-->
|
||
|
||
<div class="span12">
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['message']->value!=''){?>
|
||
<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>Красным цветом подсвечиваются студенты, которые возможно есть в системе. Их нужно проверить вручную - возможно соответствие частичное. Или они могли обучаться в колледже, в таком случае достаточно актуализировать информацию и перевести человека в новую вузовскую группу.</p>
|
||
<p>Год набора групп(ы) - текущий.</p>
|
||
|
||
<?php echo $_smarty_tpl->tpl_vars['message']->value;?>
|
||
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
|
||
|
||
<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 action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
||
|
||
<p><a href="/upload/lections/7632_545_14285815092022_0.xlsx" class="btn btn-info">Скачать шаблон</a> - заполните образец данными. Одна строка - один студент, все столбцы обязательны к заполнению, кроме первого поля - это идентификатор 1С. При отсутствии его указывать необязательно (например, колледжу) </p>
|
||
<p>Примечания: </p>
|
||
<ul>
|
||
<li>ФИО указывается полное, т.е. без сокращений. Если в системе есть уже человек с таким ФИО, то его регистрация в системе отклоняется</li>
|
||
<li>Электронная почта указывается действующая. При дубле - регистрация отклоняется</li>
|
||
<li>Столбец курс - всегда первый</li>
|
||
<li>Форма обучения: очная, заочная и очно-заочная</li>
|
||
<li>СНИЛС для граждан РФ обязателен. Иностранцам - при наличии. При дубле - регистрация отклоняется</li>
|
||
<li>Телефон обязателен, при дубле - регистрация отменяется.</li>
|
||
<li>Первая строка - названия столбцов, дополнительных строк НЕ нужно. Все, как в примере</li>
|
||
</ul>
|
||
<hr />
|
||
<div class="control-group">
|
||
<label class="control-label">Excel-файл с заполненными данными о группе</label>
|
||
<div class="controls">
|
||
<input type="file" class="span6 " name="file_xls" />
|
||
<span class="help-inline">Все поля обязательно должны быть заполнены!</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Параметры загрузки</label>
|
||
<div class="controls">
|
||
<input type="checkbox" class="" name="test_mode" checked />
|
||
<span class="help-inline">Тестовый режим</span>
|
||
</div>
|
||
<div class="controls">
|
||
<input type="checkbox" class="" name="head_read" />
|
||
<span class="help-inline">Читать шапку - определим столбцы сами (GUID, ФИО, Номер зачетной книжки, Курс, Эл.почта, Факультет, Группа, Код специальности, Форма обучения, Основа обучения, СНИЛС, Телефон, Дата приказа)</span>
|
||
</div>
|
||
<div class="controls">
|
||
<input type="checkbox" class="" name="send_email" />
|
||
<span class="help-inline">Отправлять письма</span>
|
||
</div>
|
||
|
||
<div class="controls">
|
||
<input type="checkbox" class="" name="grupp_add" />
|
||
<span class="help-inline">Зачислять в группы студентов</span>
|
||
</div>
|
||
<div class="controls">
|
||
<input type="checkbox" class="" name="gen_email" />
|
||
<span class="help-inline">Генерировать емаил всем в домене students.mkgtu.ru</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-actions">
|
||
<?php echo $_smarty_tpl->tpl_vars['form']->value['id'];?>
|
||
|
||
<button type="submit" name="<?php echo $_smarty_tpl->tpl_vars['form']->value['btn_url'];?>
|
||
" class="btn btn-success"><?php echo $_smarty_tpl->tpl_vars['form']->value['btn_name'];?>
|
||
</button>
|
||
</div>
|
||
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='lms'){?>
|
||
<div class="span12">
|
||
<div class="widget blue">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> LMS. Данные для входа</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['form']->value['p']['email'];?>
|
||
</p>
|
||
<p>Пароль: Mgtu<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['id'];?>
|
||
pw!</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='logs'){?>
|
||
<div class="span12">
|
||
<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">
|
||
|
||
<table class="table table-bordered">
|
||
<?php $_smarty_tpl->tpl_vars['log'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['log']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['logs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['log']->key => $_smarty_tpl->tpl_vars['log']->value){
|
||
$_smarty_tpl->tpl_vars['log']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['log']->key;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['log']->value['data_c'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['log']->value['message'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['log']->value['ipa'];?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='aded'){?>
|
||
<div class="span12">
|
||
<div class="widget red">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> <?php echo $_smarty_tpl->tpl_vars['form']->value['title'];?>
|
||
</h4>
|
||
<span class="tools">
|
||
<a href="javascript:;" class="icon-chevron-down"></a>
|
||
</span>
|
||
</div>
|
||
<div class="widget-body">
|
||
<?php if (count($_smarty_tpl->tpl_vars['form']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['form']->value['err']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['er']->key => $_smarty_tpl->tpl_vars['er']->value){
|
||
$_smarty_tpl->tpl_vars['er']->_loop = true;
|
||
?>
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> <?php echo $_smarty_tpl->tpl_vars['er']->value;?>
|
||
|
||
</div>
|
||
<?php } ?><?php }?>
|
||
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
||
<div class="control-group">
|
||
<label class="control-label">email*</label>
|
||
<div class="controls">
|
||
<input type="email" required class="span12 tooltips" data-trigger="hover" data-original-title="email пользователя" name="email" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['email'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<!--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="pass" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['pass'];?>
|
||
" />
|
||
<input type="text" required class="span12 tooltips" data-trigger="hover" data-original-title="Пароль пользователя" name="pass" value="<?php echo $_smarty_tpl->tpl_vars['passgenerate']->value;?>
|
||
" />
|
||
<span style="display: block;"><input type="checkbox" name="resetPass" value="yes" checked/> Если стоит галочка, то пароль изменится, в противном случае - останется без изменений </span>
|
||
<span style="color: red; text-align: right; display: block;">Админу: пароль генерируется автоматически, для сохранения нужно нажать кнопку "Редактировать", иначе пароль останется прежним</span>
|
||
</div>
|
||
</div-->
|
||
<div class="control-group">
|
||
<label class="control-label">ФИО*</label>
|
||
<div class="controls">
|
||
<input type="text" required class="span12 tooltips" data-trigger="hover" data-original-title="Фамилия имя отчество пользователя" name="fio" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['fio'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Моб. телефон*</label>
|
||
<div class="controls">
|
||
<input type="text" required class="span12 tooltips" data-trigger="hover" data-original-title="Телефон" name="phone" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['phone'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<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="polis" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['polis'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<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="snils" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['snils'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Идентификатор 1C (guid)</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="GUID" name="guid" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['guid'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Фотография</label>
|
||
<div class="controls">
|
||
<input type="file" class="span6 " name="foto" />
|
||
<span class="help-inline">Фотография в формате jpg размером не более 800 Кб.</span>
|
||
</div>
|
||
</div>
|
||
<!--div class="control-group">
|
||
<label class="control-label">Группа обучающегося<br /><b>(ПОКА НЕ ТРОГАТЬ!)</b></label>
|
||
<div class="controls">
|
||
<select name="grupp" class="span6 ">
|
||
<option value="0">Не выбрали</option>
|
||
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['grupps']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['gr']->key => $_smarty_tpl->tpl_vars['gr']->value){
|
||
$_smarty_tpl->tpl_vars['gr']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['gr']->value['id'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
|
||
-<?php echo $_smarty_tpl->tpl_vars['gr']->value['kurs'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
<span class="help-inline">Если группа не указана, то студенческий профиль не создается</span>
|
||
</div>
|
||
</div-->
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['form']->value['p']['foto']!=''){?>
|
||
<div class="control-group">
|
||
<label class="control-label">текущее фото</label>
|
||
<div class="controls">
|
||
<div class="span6 "><img src="/upload/users/ava/<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['id'];?>
|
||
_ava_orig.jpg" width="300" /></div>
|
||
<span class="help-inline">при загрузки новой фотографии текущая удаляется</span>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<div class="control-group">
|
||
<label class="control-label">Статус</label>
|
||
<div class="controls">
|
||
<select class="chzn-select span12" tabindex="6" name="status">
|
||
<option value=""></option>
|
||
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['form']->value['p']['status_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['gr']->key => $_smarty_tpl->tpl_vars['gr']->value){
|
||
$_smarty_tpl->tpl_vars['gr']->_loop = true;
|
||
?>
|
||
<option<?php if ($_smarty_tpl->tpl_vars['gr']->value['sel']==1){?> selected<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['gr']->value['id'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['gr']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Дополнительные статусы</label>
|
||
<div class="controls"><div class="row-fluid">
|
||
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['form']->value['p']['status_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['gr']->key => $_smarty_tpl->tpl_vars['gr']->value){
|
||
$_smarty_tpl->tpl_vars['gr']->_loop = true;
|
||
?>
|
||
<div class="span4"><input type="CHECKBOX" name="sels[<?php echo $_smarty_tpl->tpl_vars['gr']->value['id'];?>
|
||
]" <?php if (isset($_smarty_tpl->tpl_vars['form']->value['p']['sels'][$_smarty_tpl->tpl_vars['gr']->value['id']])){?>CHECKED<?php }?>><?php echo $_smarty_tpl->tpl_vars['gr']->value['name'];?>
|
||
<input type="HIDDEN" name="selsold[<?php echo $_smarty_tpl->tpl_vars['gr']->value['id'];?>
|
||
]" value="<?php if (isset($_smarty_tpl->tpl_vars['form']->value['p']['sels'][$_smarty_tpl->tpl_vars['gr']->value['id']])){?>1<?php }else{ ?>0<?php }?>"></div>
|
||
<?php } ?>
|
||
</div></div>
|
||
</div>
|
||
|
||
<div class="form-actions">
|
||
<?php echo $_smarty_tpl->tpl_vars['form']->value['id'];?>
|
||
|
||
<button type="submit" name="<?php echo $_smarty_tpl->tpl_vars['form']->value['btn_url'];?>
|
||
" class="btn btn-success"><?php echo $_smarty_tpl->tpl_vars['form']->value['btn_name'];?>
|
||
</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='password'){?>
|
||
<div class="span12">
|
||
<div class="widget red">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> <?php echo $_smarty_tpl->tpl_vars['form']->value['title'];?>
|
||
</h4>
|
||
<span class="tools">
|
||
<a href="javascript:;" class="icon-chevron-down"></a>
|
||
</span>
|
||
</div>
|
||
<div class="widget-body">
|
||
<?php if (count($_smarty_tpl->tpl_vars['form']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['form']->value['err']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['er']->key => $_smarty_tpl->tpl_vars['er']->value){
|
||
$_smarty_tpl->tpl_vars['er']->_loop = true;
|
||
?>
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> <?php echo $_smarty_tpl->tpl_vars['er']->value;?>
|
||
|
||
</div>
|
||
<?php } ?><?php }?>
|
||
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
||
<div class="control-group">
|
||
<label class="control-label"><b>ФИО: </b></label>
|
||
<div class="controls"><?php echo $_smarty_tpl->tpl_vars['form']->value['p']['fio'];?>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label"><b>Логин: </b></label>
|
||
<div class="controls"><?php echo $_smarty_tpl->tpl_vars['form']->value['p']['email'];?>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Пароль*</label>
|
||
<div class="controls">
|
||
<input type="text" required class="span12 tooltips" data-trigger="hover" data-original-title="Пароль пользователя" name="pass" value="<?php echo $_smarty_tpl->tpl_vars['passgenerate']->value;?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="form-actions">
|
||
<?php echo $_smarty_tpl->tpl_vars['form']->value['id'];?>
|
||
|
||
<button type="submit" name="<?php echo $_smarty_tpl->tpl_vars['form']->value['btn_url'];?>
|
||
" class="btn btn-success"><?php echo $_smarty_tpl->tpl_vars['form']->value['btn_name'];?>
|
||
</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }} ?>
|