136 lines
5.2 KiB
PHP
136 lines
5.2 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2022-11-22 15:37:14
|
||
compiled from "tpl/tpl_library_recovery.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:674157284635a706a41d3f8-77725550%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'bbb57c6649cdda9cd83dc3581c51260489adfb63' =>
|
||
array (
|
||
0 => 'tpl/tpl_library_recovery.html',
|
||
1 => 1669120629,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '674157284635a706a41d3f8-77725550',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_635a706a4a4492_07951331',
|
||
'variables' =>
|
||
array (
|
||
'msg' => 0,
|
||
'users' => 0,
|
||
'user' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_635a706a4a4492_07951331')) {function content_635a706a4a4492_07951331($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/admin/web/eios.mkgtu.ru/public_html/inc/smarty/plugins/modifier.date_format.php';
|
||
?><!-- BEGIN PAGE HEADER-->
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<h3 class="page-title">Восстановление доступа к ЭИОС студентам</h3>
|
||
<ul class="breadcrumb">
|
||
<li><form method="POST" action="/library/recovery/" 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="" required /></form></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="alert alert-primary">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong></strong>
|
||
</div>
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
|
||
<?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="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">
|
||
<tr>
|
||
<th>Дата авторизации<br />Дата регистрации</th>
|
||
<th>ФИО студента</th>
|
||
<th>Email</th>
|
||
<th>Группа</th>
|
||
<th>Операции</th>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value){
|
||
$_smarty_tpl->tpl_vars['user']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['user']->key;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['user']->value['data_u'];?>
|
||
<br /><?php echo $_smarty_tpl->tpl_vars['user']->value['data_c'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['user']->value['fio'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['user']->value['email'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['user']->value['student']['sokr'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['user']->value['student']['fo'];?>
|
||
</td>
|
||
<td>
|
||
|
||
<?php if (($_smarty_tpl->tpl_vars['user']->value['status']=="-1")){?><span class="btn btn-danger">заблокирован</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['user']->value['teacher']['status']==1)){?><span class="btn btn-danger">преподаватель</span><?php }else{ ?><?php if ((smarty_modifier_date_format(time(),"%d.%m.%Y")==$_smarty_tpl->tpl_vars['user']->value['data_u'])){?><span class="btn btn-danger">недавно был в сети</span><?php }else{ ?><span class="btn btn-success send-pass" data-id="<?php echo $_smarty_tpl->tpl_vars['user']->value['id'];?>
|
||
">Выслать новый пароль на почту</span><?php }?><?php }?><?php }?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
$(document).ready(function(){
|
||
|
||
//отправить письмо на почту с новым паролем
|
||
$(".send-pass").click(function(){
|
||
var id = $(this).data("id");
|
||
|
||
//$(this).text('ПАРОЛЬ СБРОШЕН УЖЕ');
|
||
|
||
$(this).remove();
|
||
|
||
$.ajax({
|
||
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=reset_password&id='+id,
|
||
success: function(data){
|
||
|
||
$('.alert-primary strong').text('Новый пароль отправлен на почту ' + data.html.email);
|
||
//$(this).text('ПАРОЛЬ СБРОШЕН УЖЕ');
|
||
alert("Пароль отправлен на почту");
|
||
|
||
//$(this).text('1');
|
||
//$(this).text(data.html);
|
||
}
|
||
});
|
||
|
||
|
||
|
||
});
|
||
|
||
|
||
});
|
||
</script><?php }} ?>
|