577 lines
30 KiB
PHP
577 lines
30 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2023-08-29 16:52:17
|
|||
|
compiled from "tpl/tpl_user_profile.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:110752227064bf71fb472670-80337443%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'3a450e444e6830175024390cee28314601440dc7' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_user_profile.html',
|
|||
|
1 => 1693306335,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '110752227064bf71fb472670-80337443',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_64bf71fb5185b6_49794170',
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'msg' => 0,
|
|||
|
'err' => 0,
|
|||
|
'er' => 0,
|
|||
|
'profile' => 0,
|
|||
|
'vyz' => 0,
|
|||
|
'school' => 0,
|
|||
|
'id_vyz' => 0,
|
|||
|
'student' => 0,
|
|||
|
'group' => 0,
|
|||
|
'gp' => 0,
|
|||
|
'areas' => 0,
|
|||
|
'area' => 0,
|
|||
|
'Jnew_kaf' => 0,
|
|||
|
'Jnew_fakult' => 0,
|
|||
|
'Jfakultets' => 0,
|
|||
|
'teacher' => 0,
|
|||
|
'uch_zv' => 0,
|
|||
|
'fak' => 0,
|
|||
|
'k' => 0,
|
|||
|
'uch' => 0,
|
|||
|
'uch_step' => 0,
|
|||
|
'new_fakult' => 0,
|
|||
|
'new_kaf' => 0,
|
|||
|
'fk' => 0,
|
|||
|
'tg' => 0,
|
|||
|
'tg1' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_64bf71fb5185b6_49794170')) {function content_64bf71fb5185b6_49794170($_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="/user/profile/">Профайл</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="row-fluid">
|
|||
|
<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">
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['msg']->value)){?>
|
|||
|
<div class="alert alert-success">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>Успешно!</strong> <?php echo $_smarty_tpl->tpl_vars['msg']->value;?>
|
|||
|
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['err']->value)){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['err']->value; 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">
|
|||
|
<div class="input-prepend">
|
|||
|
<span class="add-on">@</span><input type="text" class="" name="email" value="<?php echo $_smarty_tpl->tpl_vars['profile']->value['email'];?>
|
|||
|
" disabled/>
|
|||
|
</div>
|
|||
|
<span class="help-inline">Ваш email для контакта с Вами</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">ФИО</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="text" class="span6 " name="fio" value="<?php echo $_smarty_tpl->tpl_vars['profile']->value['fio'];?>
|
|||
|
" readonly />
|
|||
|
<span class="help-inline">Фамилия Имя Отчество (полностью)</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Текущий пароль</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="PASSWORD" class="span6 " name="pass" value="" />
|
|||
|
<span class="help-inline">для изменения пароля введите текущий пароль</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Новый пароль</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="PASSWORD" class="span6 " name="pass1" value="" />
|
|||
|
<span class="help-inline">для изменения введите новый пароль</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Повторить новый пароль</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="PASSWORD" class="span6 " name="pass2" value="" />
|
|||
|
<span class="help-inline">для изменения пароля введите повторно новый пароль</span>
|
|||
|
</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>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['profile']->value['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['profile']->value['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">
|
|||
|
<div class="span12">
|
|||
|
<select name="school" class="span6">
|
|||
|
<!--option value="0">МГТУ (Учебное заведение явно не указано)</option-->
|
|||
|
<?php $_smarty_tpl->tpl_vars['school'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['school']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['vyz']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['school']->key => $_smarty_tpl->tpl_vars['school']->value){
|
|||
|
$_smarty_tpl->tpl_vars['school']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['school']->value['id'];?>
|
|||
|
" <?php if ($_smarty_tpl->tpl_vars['id_vyz']->value==$_smarty_tpl->tpl_vars['school']->value['id']){?>SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['school']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<hr />
|
|||
|
<h4>Дополнительные сведения</h4>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Номер телефона</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="text" class="span6 " name="phone" value="<?php echo $_smarty_tpl->tpl_vars['profile']->value['phone'];?>
|
|||
|
" required class="phone" readonly/>
|
|||
|
<span class="help-inline">+79...</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Полис ОМС</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="text" class="span6 " name="polis" value="<?php echo $_smarty_tpl->tpl_vars['profile']->value['polis'];?>
|
|||
|
" readonly />
|
|||
|
<span class="help-inline">номер (16 цифр)</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">СНИЛС</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="text" class="span6 " name="snils" value="<?php echo $_smarty_tpl->tpl_vars['profile']->value['snils'];?>
|
|||
|
" readonly />
|
|||
|
<span class="help-inline"></span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-actions">
|
|||
|
<button type="submit" name="profile_save" class="btn btn-success">Сохранить</button>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
<!-- END FORM-->
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="widget yellow">
|
|||
|
<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 if (isset($_smarty_tpl->tpl_vars['student']->value['msg'])){?>
|
|||
|
<div class="alert alert-success">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>Успешно!</strong> <?php echo $_smarty_tpl->tpl_vars['student']->value['msg'];?>
|
|||
|
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['student']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['student']->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">Выбор группы</label>
|
|||
|
<div class="controls">
|
|||
|
<?php if ((($_smarty_tpl->tpl_vars['group']->value=='0')||(!isset($_smarty_tpl->tpl_vars['group']->value)))){?><select class="span6 " data-placeholder="Выбор группы" tabindex="1" name="id_grupp" >
|
|||
|
<option value="0">Выберите</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['gp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gp']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['student']->value['grupps']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['gp']->key => $_smarty_tpl->tpl_vars['gp']->value){
|
|||
|
$_smarty_tpl->tpl_vars['gp']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['gp']->value['id'];?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['gp']->value['active']==1){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['gp']->value['sokr'];?>
|
|||
|
-<?php echo $_smarty_tpl->tpl_vars['gp']->value['kurs'];?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['gp']->value['fo'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
<span class="help-inline">Выберите группу, в которой Вы числитесь</span>
|
|||
|
|
|||
|
<?php }else{ ?>
|
|||
|
|
|||
|
<?php $_smarty_tpl->tpl_vars['gp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gp']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['student']->value['grupps']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['gp']->key => $_smarty_tpl->tpl_vars['gp']->value){
|
|||
|
$_smarty_tpl->tpl_vars['gp']->_loop = true;
|
|||
|
?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['gp']->value['active']==1){?><input type="hidden" name="id_grupp" value="<?php echo $_smarty_tpl->tpl_vars['gp']->value['id'];?>
|
|||
|
" /><?php echo $_smarty_tpl->tpl_vars['gp']->value['sokr'];?>
|
|||
|
-<?php echo $_smarty_tpl->tpl_vars['gp']->value['kurs'];?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['gp']->value['fo'];?>
|
|||
|
<?php }?>
|
|||
|
<?php } ?>
|
|||
|
<span class="help-inline">Группу может сменить только деканат</span>
|
|||
|
<!--select class="span6 " data-placeholder="Выбор группы" tabindex="1" name="id_grupp" readonly>
|
|||
|
<option value="0">Выберите</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['gp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gp']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['student']->value['grupps']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['gp']->key => $_smarty_tpl->tpl_vars['gp']->value){
|
|||
|
$_smarty_tpl->tpl_vars['gp']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['gp']->value['id'];?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['gp']->value['active']==1){?> SELECTED<?php }?> ><?php echo $_smarty_tpl->tpl_vars['gp']->value['sokr'];?>
|
|||
|
-<?php echo $_smarty_tpl->tpl_vars['gp']->value['kurs'];?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['gp']->value['fo'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select-->
|
|||
|
<?php }?>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Доп. к номеру группы</label>
|
|||
|
<div class="controls">
|
|||
|
<?php if ((($_smarty_tpl->tpl_vars['student']->value['num_grupp']=="0")||(($_smarty_tpl->tpl_vars['student']->value['num_grupp']=='')))){?><input type="text" class="span6" name="num_grupp" value="<?php echo $_smarty_tpl->tpl_vars['student']->value['num_grupp'];?>
|
|||
|
" />
|
|||
|
<?php }else{ ?><input type="text" class="span6" name="num_grupp" value="<?php echo $_smarty_tpl->tpl_vars['student']->value['num_grupp'];?>
|
|||
|
" readonly /><?php }?>
|
|||
|
<span class="help-inline">Если Ваша группа ЛД-108, выберите группу ЛД-1 оч, а здесь напишите "08"</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Номер зачетной книжки</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="text" class="span6" name="num_zach" value="<?php echo $_smarty_tpl->tpl_vars['student']->value['num_zach'];?>
|
|||
|
" <?php if (($_smarty_tpl->tpl_vars['student']->value['num_zach']!='')){?>readonly<?php }?> />
|
|||
|
<span class="help-inline">ИЛИ СТУДЕНЧЕСКОГО БИЛЕТА</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Код направления подготовки</label>
|
|||
|
<div class="controls">
|
|||
|
<select class="span6 " tabindex="1" name="kod_podgotovki" id="kod_podgotovki">
|
|||
|
<option value="0">Выберите</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['area'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['area']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['areas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['area']->key => $_smarty_tpl->tpl_vars['area']->value){
|
|||
|
$_smarty_tpl->tpl_vars['area']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['area']->value['code'];?>
|
|||
|
" data-idkafedra="<?php echo $_smarty_tpl->tpl_vars['area']->value['id_kafedra'];?>
|
|||
|
" <?php if ($_smarty_tpl->tpl_vars['area']->value['code']==$_smarty_tpl->tpl_vars['student']->value['kod_podgotovki']){?> SELECTED<?php }?> >
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['area']->value['code'];?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['area']->value['name'];?>
|
|||
|
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
<script>$(document).ready(function(){
|
|||
|
var sel_idkafedra = $( "#kod_podgotovki option:selected" ).data('idkafedra');
|
|||
|
get_fak_kaf(sel_idkafedra);
|
|||
|
$("#kod_podgotovki").change(function(){
|
|||
|
var sel_idkafedra = $( "#kod_podgotovki option:selected" ).data('idkafedra');
|
|||
|
get_fak_kaf(sel_idkafedra);
|
|||
|
});
|
|||
|
function get_fak_kaf(sel_idkafedra) {
|
|||
|
var kafedras = '<?php echo $_smarty_tpl->tpl_vars['Jnew_kaf']->value;?>
|
|||
|
';
|
|||
|
var kafedrasObj = JSON.parse(kafedras);
|
|||
|
var fakultets_new = '<?php echo $_smarty_tpl->tpl_vars['Jnew_fakult']->value;?>
|
|||
|
';
|
|||
|
var fakultets_newObj = JSON.parse(fakultets_new);
|
|||
|
var fakultets = '<?php echo $_smarty_tpl->tpl_vars['Jfakultets']->value;?>
|
|||
|
';
|
|||
|
var fakultetsObj = JSON.parse(fakultets);
|
|||
|
var kafedraCode = kafedrasObj[sel_idkafedra].code;
|
|||
|
var kafedraName = kafedrasObj[sel_idkafedra].name;
|
|||
|
var kafedraIDFAK = kafedrasObj[sel_idkafedra].id_facult;
|
|||
|
var fakultName = fakultets_newObj[kafedraIDFAK].name;
|
|||
|
var fakultABBR = fakultets_newObj[kafedraIDFAK].abbreviated;
|
|||
|
|
|||
|
$(".kod_podgotovki_mes").html("Код направления подготовки относится к:<br>Кафедре \"<b>" + kafedraCode + " " + kafedraName + "</b>\" Факультету: \"<b>" + fakultName + "</b>\" <u>" + fakultABBR+"</u>");
|
|||
|
}
|
|||
|
});</script>
|
|||
|
<!--input type="text" class="span6" name="kod_podgotovki" value="<?php echo $_smarty_tpl->tpl_vars['student']->value['kod_podgotovki'];?>
|
|||
|
" /-->
|
|||
|
<span class="help-inline kod_podgotovki_mes"></span>
|
|||
|
<span class="help-inline">Обращайте внимание на цифры по середине кода специальности (03 - бакалавриат, 04 - магистратура)</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['student']->value['data_u'])){?>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">дата обновления</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="span6 "><?php echo $_smarty_tpl->tpl_vars['student']->value['data_u'];?>
|
|||
|
</div>
|
|||
|
<span class="help-inline">время и дата обновления данных</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">статус студента</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="span6 "><?php echo $_smarty_tpl->tpl_vars['student']->value['status'];?>
|
|||
|
</div>
|
|||
|
<span class="help-inline">Пожалуйста, будьте внимательны при заполнении анкеты!</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="form-actions">
|
|||
|
<button type="submit" name="student_save" class="btn btn-success">Сохранить</button>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
|
|||
|
</div>
|
|||
|
</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">
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['teacher']->value['msg'])){?>
|
|||
|
<div class="alert alert-success">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>Успешно!</strong> <?php echo $_smarty_tpl->tpl_vars['teacher']->value['msg'];?>
|
|||
|
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['teacher']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['teacher']->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">Звание</label>
|
|||
|
<div class="controls">
|
|||
|
<select class="span6 " data-placeholder="Выбор" tabindex="1" name="zvanie">
|
|||
|
<option value="нет">нет</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['uch'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['uch']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['uch_zv']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['uch']->key => $_smarty_tpl->tpl_vars['uch']->value){
|
|||
|
$_smarty_tpl->tpl_vars['uch']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['uch']->key;
|
|||
|
?>
|
|||
|
<!--option value="<?php echo $_smarty_tpl->tpl_vars['fak']->value['fakult'];?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['teacher']->value['fakultet']==$_smarty_tpl->tpl_vars['fak']->value['fakult']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['fak']->value['fakult'];?>
|
|||
|
</option-->
|
|||
|
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['teacher']->value['zvanie']==$_smarty_tpl->tpl_vars['k']->value){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['uch']->value;?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
<!--input type="text" class="span6" name="zvanie" value="<?php echo $_smarty_tpl->tpl_vars['teacher']->value['zvanie'];?>
|
|||
|
" /-->
|
|||
|
<span class="help-inline">Ваше звание</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Должность</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="text" class="span6 " name="dolgnost" value="<?php echo $_smarty_tpl->tpl_vars['teacher']->value['dolgnost'];?>
|
|||
|
" />
|
|||
|
<span class="help-inline">Ваша должность</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Ученая степень</label>
|
|||
|
<div class="controls">
|
|||
|
<select class="span6 " data-placeholder="Выбор" tabindex="1" name="stepen">
|
|||
|
<option value="нет">нет</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['uch'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['uch']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['uch_step']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['uch']->key => $_smarty_tpl->tpl_vars['uch']->value){
|
|||
|
$_smarty_tpl->tpl_vars['uch']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['uch']->key;
|
|||
|
?>
|
|||
|
<!--option value="<?php echo $_smarty_tpl->tpl_vars['fak']->value['fakult'];?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['teacher']->value['fakultet']==$_smarty_tpl->tpl_vars['fak']->value['fakult']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['fak']->value['fakult'];?>
|
|||
|
</option-->
|
|||
|
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['teacher']->value['stepen']==$_smarty_tpl->tpl_vars['k']->value){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['uch']->value;?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
<!--input type="text" class="span6 " name="stepen" value="<?php echo $_smarty_tpl->tpl_vars['teacher']->value['stepen'];?>
|
|||
|
" /-->
|
|||
|
<span class="help-inline">Ваша ученая степень <?php echo $_smarty_tpl->tpl_vars['teacher']->value['stepen'];?>
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Факультет</label>
|
|||
|
<div class="controls">
|
|||
|
<select class="span6 " data-placeholder="Выбор Факультета" tabindex="1" name="fakultet">
|
|||
|
<option value="0">Выберите</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['fak'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fak']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['new_fakult']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['fak']->key => $_smarty_tpl->tpl_vars['fak']->value){
|
|||
|
$_smarty_tpl->tpl_vars['fak']->_loop = true;
|
|||
|
?>
|
|||
|
<!--option value="<?php echo $_smarty_tpl->tpl_vars['fak']->value['fakult'];?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['teacher']->value['fakultet']==$_smarty_tpl->tpl_vars['fak']->value['fakult']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['fak']->value['fakult'];?>
|
|||
|
</option-->
|
|||
|
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['fak']->value['name'];?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['teacher']->value['fakultet']==$_smarty_tpl->tpl_vars['fak']->value['name']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['fak']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
<span class="help-inline">Выберите свой факультет, список факультетов берется из расчета часов!</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Кафедра</label>
|
|||
|
<div class="controls">
|
|||
|
<select class="span6 " data-placeholder="Выбор кафедры" tabindex="1" name="kafedra">
|
|||
|
<option value="0">Выберите</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['fk'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fk']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['new_kaf']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['fk']->key => $_smarty_tpl->tpl_vars['fk']->value){
|
|||
|
$_smarty_tpl->tpl_vars['fk']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['fk']->value['name'];?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['teacher']->value['kafedra']==$_smarty_tpl->tpl_vars['fk']->value['name']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['fk']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
<option value="Политехнический колледж МГТУ"<?php if ($_smarty_tpl->tpl_vars['teacher']->value['kafedra']=="Политехнический колледж МГТУ"){?> SELECTED<?php }?>>Политехнический колледж МГТУ</option>
|
|||
|
<option value="Политехнический колледж филиала МГТУ в посёлке Яблоновском"<?php if ($_smarty_tpl->tpl_vars['teacher']->value['kafedra']=="Политехнический колледж филиала МГТУ в посёлке Яблоновском"){?> SELECTED<?php }?>>Политехнический колледж филиала МГТУ в посёлке Яблоновском</option>
|
|||
|
</select>
|
|||
|
<span class="help-inline">Выберите свою кафедру, список кафедр берется из расчета часов!</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['teacher']->value['data_u'])){?>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">дата обновления</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="span6 "><?php echo $_smarty_tpl->tpl_vars['teacher']->value['data_u'];?>
|
|||
|
</div>
|
|||
|
<span class="help-inline">время и дата обновления данных</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">статус учителя</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="span6 "><?php echo $_smarty_tpl->tpl_vars['teacher']->value['status'];?>
|
|||
|
</div>
|
|||
|
<span class="help-inline">преподаватель должен быть активирован для получения полного доступа</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="form-actions">
|
|||
|
<button type="submit" name="teacher_save" class="btn btn-success">Сохранить</button>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="widget blue">
|
|||
|
<div class="widget-title">
|
|||
|
<h4><i class="icon-reorder"></i> Telegram связь </h4>
|
|||
|
<span class="tools">
|
|||
|
<a href="javascript:;" class="icon-chevron-down"></a>
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
<div class="widget-body">
|
|||
|
<p>Для авторизации в телеграм боте <a href="https://t.me/EIOSnew_bot" target="_blank">@EIOSnew_bot</a>, необходимо:</p>
|
|||
|
<ul>
|
|||
|
<li>Найти бота в телеграм по имени @EIOSnew_bot или перейти по ссылке <a href="https://t.me/EIOSnew_bot" target="_blank">@EIOSnew_bot</a></li>
|
|||
|
<li>В самом боте нажать кнопку <b>Старт</b> или отправить команду <b>/start</b></li>
|
|||
|
<li>Отправить боту команду <b>/auth <?php echo $_smarty_tpl->tpl_vars['tg']->value['passfraze'];?>
|
|||
|
</b></li>
|
|||
|
<li>Далее следовать инструкциям бота, можно отправить команду <b>/menu</b></li>
|
|||
|
</ul>
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['tg']->value['dops'])&&isset($_smarty_tpl->tpl_vars['tg']->value['dops']['telegram'])&&count($_smarty_tpl->tpl_vars['tg']->value['dops']['telegram'])){?>
|
|||
|
<p>Зафиксированы следующие авторизации через телеграм:</p>
|
|||
|
<ol>
|
|||
|
<?php $_smarty_tpl->tpl_vars['tg1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tg1']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['tg']->value['dops']['telegram']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['tg1']->key => $_smarty_tpl->tpl_vars['tg1']->value){
|
|||
|
$_smarty_tpl->tpl_vars['tg1']->_loop = true;
|
|||
|
?><li><b><?php echo date('H:i d.m.Y',$_smarty_tpl->tpl_vars['tg1']->value['data_c']);?>
|
|||
|
</b>: <?php echo $_smarty_tpl->tpl_vars['tg1']->value['user_fio'];?>
|
|||
|
<!--<?php echo $_smarty_tpl->tpl_vars['tg1']->value['user_id'];?>
|
|||
|
--></li><?php } ?>
|
|||
|
</ol>
|
|||
|
<?php }else{ ?>
|
|||
|
<p>Входов через Telegram не зафиксировано</p>
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }} ?>
|