767 lines
30 KiB
PHP
767 lines
30 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-05-11 19:57:31
|
|||
|
compiled from "tpl/tpl_alneo_university.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:1341041335627beafb628a71-05395198%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'fcb65aa7b699e6ba7f23c4185b048e2181ad2324' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_alneo_university.html',
|
|||
|
1 => 1583993646,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '1341041335627beafb628a71-05395198',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'user' => 0,
|
|||
|
'schools' => 0,
|
|||
|
'k' => 0,
|
|||
|
'school' => 0,
|
|||
|
'faculties' => 0,
|
|||
|
'facult' => 0,
|
|||
|
'kafedres' => 0,
|
|||
|
'kaf' => 0,
|
|||
|
'areas' => 0,
|
|||
|
'area' => 0,
|
|||
|
'profiles' => 0,
|
|||
|
'profile' => 0,
|
|||
|
'profiles_start' => 0,
|
|||
|
'start' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_627beafb68b9c2_92029882',
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_627beafb68b9c2_92029882')) {function content_627beafb68b9c2_92029882($_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/university/">Настройки вуза</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['user']->value['statuses'][99])){?>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="widget orange">
|
|||
|
<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">
|
|||
|
<h4>Добавление нового учебного заведения (например, филиала вуза или колледжа)</h4>
|
|||
|
<form name="add_school" method="post" action="#" onsubmit="return false;">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Полное название: </label>
|
|||
|
<div class="controls" >
|
|||
|
<input type="text" class="span8 tooltips" name="name" data-trigger="hover" data-original-title="Например: Майкопский государственный технологический университет " required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<input type="submit" class="btn btn-success add_school" value="Добавить" />
|
|||
|
</form>
|
|||
|
<hr />
|
|||
|
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>№</th>
|
|||
|
<th>Название направления</th>
|
|||
|
<th>Операции</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody class="load-schools">
|
|||
|
<?php $_smarty_tpl->tpl_vars['school'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['school']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['schools']->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;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['school']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['school']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td><span class="btn btn-danger delete-school" data-id="<?php echo $_smarty_tpl->tpl_vars['school']->value['id'];?>
|
|||
|
">Удалить</span></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="row-fluid">
|
|||
|
<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">
|
|||
|
<h4>Добавление нового факультета</h4>
|
|||
|
<form name="add_facult" method="post" action="#" onsubmit="return false;">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Привязка у учебному заведению: </label>
|
|||
|
<div class="controls">
|
|||
|
<select name="school" class="tooltips" data-trigger="hover" data-original-title="Выберите учебное заведение">
|
|||
|
<?php $_smarty_tpl->tpl_vars['school'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['school']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['schools']->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 echo $_smarty_tpl->tpl_vars['school']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Полное название: </label>
|
|||
|
<div class="controls" >
|
|||
|
<input type="text" class="span8 tooltips" name="name" data-trigger="hover" data-original-title="Например: Факультет информационных систем в экономике и юриспруденции" required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<input type="submit" class="btn btn-success add_facult" value="Добавить" />
|
|||
|
</form>
|
|||
|
<hr />
|
|||
|
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>№</th>
|
|||
|
<th>Название факультета</th>
|
|||
|
<th>Вуз</th>
|
|||
|
<th>Операции</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody class="load-faculties">
|
|||
|
<?php $_smarty_tpl->tpl_vars['facult'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['facult']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['faculties']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['facult']->key => $_smarty_tpl->tpl_vars['facult']->value){
|
|||
|
$_smarty_tpl->tpl_vars['facult']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['facult']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['facult']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['facult']->value['id_school'];?>
|
|||
|
</td>
|
|||
|
<td><span class="btn btn-danger delete-facult" data-id="<?php echo $_smarty_tpl->tpl_vars['facult']->value['id'];?>
|
|||
|
">Удалить</span></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="widget purple">
|
|||
|
<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">
|
|||
|
<h4>Добавление новой кафедры</h4>
|
|||
|
<form name="add_kaf" method="post" action="#" onsubmit="return false;">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Привязка к факультету: </label>
|
|||
|
<div class="controls">
|
|||
|
<select name="facult" class="tooltips" data-trigger="hover" data-original-title="Выберите факультет">
|
|||
|
<?php $_smarty_tpl->tpl_vars['facult'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['facult']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['faculties']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['facult']->key => $_smarty_tpl->tpl_vars['facult']->value){
|
|||
|
$_smarty_tpl->tpl_vars['facult']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['facult']->value['id'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['facult']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Полное название: </label>
|
|||
|
<div class="controls" >
|
|||
|
<input type="text" class="span8 tooltips" name="name" data-trigger="hover" data-original-title="Например: Прикладной информатики и информационной безопасти" required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Код кафедры: </label>
|
|||
|
<div class="controls" >
|
|||
|
<input type="text" class="span8 tooltips" name="code" data-trigger="hover" data-original-title="Например: 07" required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<input type="submit" class="btn btn-success add_kaf" value="Добавить" />
|
|||
|
</form>
|
|||
|
<hr />
|
|||
|
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>№</th>
|
|||
|
<th>Название кафедра</th>
|
|||
|
<th>Факультет</th>
|
|||
|
<th>Код кафедры</th>
|
|||
|
<th>Операции</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody class="load-kafedres">
|
|||
|
<?php $_smarty_tpl->tpl_vars['kaf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kaf']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['kafedres']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['kaf']->key => $_smarty_tpl->tpl_vars['kaf']->value){
|
|||
|
$_smarty_tpl->tpl_vars['kaf']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['kaf']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['kaf']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['kaf']->value['id_facult'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['kaf']->value['code'];?>
|
|||
|
</td>
|
|||
|
<td><span class="btn btn-danger delete-kafedra" data-id="<?php echo $_smarty_tpl->tpl_vars['kaf']->value['id'];?>
|
|||
|
">Удалить</span></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<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">
|
|||
|
<h4>Добавление нового направления</h4>
|
|||
|
<form name="add_areas" method="post" action="#" onsubmit="return false;">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Привязка к выпускающей кафедре: </label>
|
|||
|
<div class="controls">
|
|||
|
<select name="kafedra" class="tooltips" data-trigger="hover" data-original-title="Выберите кафедру">
|
|||
|
<?php $_smarty_tpl->tpl_vars['kaf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kaf']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['kafedres']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['kaf']->key => $_smarty_tpl->tpl_vars['kaf']->value){
|
|||
|
$_smarty_tpl->tpl_vars['kaf']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['kaf']->value['id'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['kaf']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Код направления: </label>
|
|||
|
<div class="controls" >
|
|||
|
<input type="text" class="span8 tooltips" name="code" data-trigger="hover" data-original-title="Например: 09.03.01 " required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Полное название: </label>
|
|||
|
<div class="controls" >
|
|||
|
<input type="text" class="span8 tooltips" name="name" data-trigger="hover" data-original-title="Например: Математика" required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<input type="submit" class="btn btn-success add_areas" value="Добавить" />
|
|||
|
</form>
|
|||
|
<hr />
|
|||
|
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>№</th>
|
|||
|
<th>Код направления</th>
|
|||
|
<th>Название направления</th>
|
|||
|
<th>Выпускающая кафедра</th>
|
|||
|
<th>Операции</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody class="load-areas">
|
|||
|
<?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;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['area']->value['i'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['area']->value['code'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['area']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['area']->value['id_kafedra'];?>
|
|||
|
</td>
|
|||
|
<td><span class="btn btn-danger delete-area" data-id="<?php echo $_smarty_tpl->tpl_vars['area']->value['id'];?>
|
|||
|
">Удалить</span></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<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">
|
|||
|
<h4>Добавление нового профиля подготовки</h4>
|
|||
|
<form name="add_areas_profile" method="post" action="#" onsubmit="return false;">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Направление подготовки: </label>
|
|||
|
<div class="controls">
|
|||
|
<select name="area" class="tooltips" data-trigger="hover" data-original-title="Выберите направление подготовку, к которому будет привязан данный профиль">
|
|||
|
<?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['id'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['area']->value['code'];?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['area']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Полное название: </label>
|
|||
|
<div class="controls" >
|
|||
|
<input type="text" class="span8 tooltips" name="name" data-trigger="hover" data-original-title="Например: Уголовно-правовая юриспруденция" required />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<input type="submit" class="btn btn-success add_areas_profile" value="Добавить" />
|
|||
|
</form>
|
|||
|
<hr />
|
|||
|
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>№</th>
|
|||
|
<th>Профиль подготовки</th>
|
|||
|
<th>Направление подготовки</th>
|
|||
|
<th>Операции</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody class="load-profiles">
|
|||
|
<?php $_smarty_tpl->tpl_vars['profile'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['profile']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['profile']->key => $_smarty_tpl->tpl_vars['profile']->value){
|
|||
|
$_smarty_tpl->tpl_vars['profile']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['profile']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['profile']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['profile']->value['id_areas'];?>
|
|||
|
</td>
|
|||
|
<td><span class="btn btn-danger delete-profile" data-id="<?php echo $_smarty_tpl->tpl_vars['profile']->value['id'];?>
|
|||
|
">Удалить</span></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<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">
|
|||
|
<h4>Добавление</h4>
|
|||
|
<form name="add_profile_start" method="post" action="#" onsubmit="return false;">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Направление подготовки: </label>
|
|||
|
<div class="controls">
|
|||
|
<select name="profile" class="tooltips" data-trigger="hover" data-original-title="Выберите направление подготовку, к которому будет привязан данный профиль">
|
|||
|
<?php $_smarty_tpl->tpl_vars['profile'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['profile']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['profile']->key => $_smarty_tpl->tpl_vars['profile']->value){
|
|||
|
$_smarty_tpl->tpl_vars['profile']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['profile']->value['id'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['profile']->value['code'];?>
|
|||
|
- <?php echo $_smarty_tpl->tpl_vars['profile']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Годы начала обучения: </label>
|
|||
|
<span class="btn btn-light year-start" data-id="2014">2014 год</span>
|
|||
|
<span class="btn btn-light year-start" data-id="2015">2015 год</span>
|
|||
|
<span class="btn btn-light year-start" data-id="2016">2016 год</span>
|
|||
|
<span class="btn btn-light year-start" data-id="2017">2017 год</span>
|
|||
|
<span class="btn btn-light year-start" data-id="2018">2018 год</span>
|
|||
|
<span class="btn btn-light year-start" data-id="2019">2019 год</span>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label span4">Формы обучения: </label>
|
|||
|
<div class="controls" >
|
|||
|
<span class="btn btn-light forma-education" data-id="1">Очная</span>
|
|||
|
<span class="btn btn-light forma-education" data-id="2">Заочная</span>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<input type="submit" class="btn btn-success add-profile-start" value="Добавить" />
|
|||
|
</form>
|
|||
|
<hr />
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>№</th>
|
|||
|
<th>Профиль подготовки</th>
|
|||
|
<th>Год обучения и форма обучения</th>
|
|||
|
<th>Операции</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody class="load-start">
|
|||
|
<?php $_smarty_tpl->tpl_vars['start'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['start']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['profiles_start']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['start']->key => $_smarty_tpl->tpl_vars['start']->value){
|
|||
|
$_smarty_tpl->tpl_vars['start']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['start']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['start']->value['code'];?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['start']->value['id_profile'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['start']->value['year'];?>
|
|||
|
(<?php echo $_smarty_tpl->tpl_vars['start']->value['forma'];?>
|
|||
|
)</td>
|
|||
|
<td><span class="btn btn-danger delete-profile-start" data-id="<?php echo $_smarty_tpl->tpl_vars['start']->value['id'];?>
|
|||
|
">Удалить</span></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<script type="text/javascript">
|
|||
|
|
|||
|
$(document).ready(function(){
|
|||
|
|
|||
|
//добавление нового учебного заведения
|
|||
|
$(".add_school").click(function(){
|
|||
|
var name = $("form[name=add_school] input[name=name]").val();
|
|||
|
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=add_school&name='+name,
|
|||
|
success: function(data){
|
|||
|
$('.load-schools').html(data.html);
|
|||
|
$("form[name=add_school] input[type=text]").val("");
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
|
|||
|
//удаление учебного заведения
|
|||
|
$(".delete-school").click(function(){
|
|||
|
var id = $(this).data("id");
|
|||
|
|
|||
|
var is = confirm("Вы уверены, что собираетесь удалить целое учебное подразделение из системы? К нему может быть привязаны факультеты, кафедры, направления подготовки и прочее. Если Вы не уверены в этом действии, лучше ничего не трогайте.");
|
|||
|
|
|||
|
if (is){ //подтверждение действия
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=delete_school&id='+id,
|
|||
|
success: function(data){
|
|||
|
$('.load-schools').html(data.html);
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
});
|
|||
|
|
|||
|
//добавление нового факультета в учебном заведении
|
|||
|
$(".add_facult").click(function(){
|
|||
|
var school = $("form[name=add_facult] select[name=school]").val();
|
|||
|
var name = $("form[name=add_facult] input[name=name]").val();
|
|||
|
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=add_facult&school='+school+'&name='+name,
|
|||
|
success: function(data){
|
|||
|
$('.load-faculties').html(data.html);
|
|||
|
$("form[name=add_facult] input[type=text]").val("");
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
|
|||
|
//удаление факультета
|
|||
|
$(".delete-facult").click(function(){
|
|||
|
var id = $(this).data("id");
|
|||
|
|
|||
|
var is = confirm("Вы уверены в этом действии? Возможно к факультету уже привязаны кафедры. Это действие необратимо.");
|
|||
|
|
|||
|
//подтверждение
|
|||
|
if (is){
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=delete_facult&id='+id,
|
|||
|
success: function(data){
|
|||
|
$('.load-faculties').html(data.html);
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
//добавление новой кафедры
|
|||
|
$(".add_kaf").click(function(){
|
|||
|
var name = $("form[name=add_kaf] input[name=name]").val();
|
|||
|
var facult = $("form[name=add_kaf] select[name=facult]").val();
|
|||
|
var code = $("form[name=add_kaf] input[name=code]").val();
|
|||
|
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=add_kaf&name='+name+'&facult='+facult+'&code='+code,
|
|||
|
success: function(data){
|
|||
|
$('.load-kafedres').html(data.html);
|
|||
|
$("form[name=add_kaf] input[type=text]").val("");
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
|
|||
|
//удаление кафедры
|
|||
|
$(".delete-kafedra").click(function(){
|
|||
|
var id = $(this).data("id");
|
|||
|
|
|||
|
var is = confirm("Вы уверены, что хотите удалить кафедру? Это действие невозможно отменить или восстановить его последствия.");
|
|||
|
if (is){
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=delete_kafedra&id='+id,
|
|||
|
success: function(data){
|
|||
|
$('.load-kafedres').html(data.html);
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
//добавление нового направления подготовки
|
|||
|
$(".add_areas").click(function(){
|
|||
|
var code = $("form[name=add_areas] input[name=code]").val();
|
|||
|
var name = $("form[name=add_areas] input[name=name]").val();
|
|||
|
var kafedra = $("form[name=add_areas] select[name=kafedra]").val();
|
|||
|
|
|||
|
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=add_areas&code='+code+'&name='+name+'&kafedra='+kafedra,
|
|||
|
success: function(data){
|
|||
|
$('.load-areas').html(data.html);
|
|||
|
$('.load-profiles').html(data.profiles);
|
|||
|
$("form[name=add_areas] input[type=text]").val("");
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
|
|||
|
//удаление направления подготовки
|
|||
|
$(".delete-area").click(function(){
|
|||
|
var id = $(this).data("id");
|
|||
|
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=delete_area&id='+id,
|
|||
|
success: function(data){
|
|||
|
$('.load-areas').html(data.html);
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
});
|
|||
|
|
|||
|
//добавление профиля подготовки
|
|||
|
$(".add_areas_profile").click(function(){
|
|||
|
var profile = $("form[name=add_areas_profile] select[name=area]").val();
|
|||
|
var name = $("form[name=add_areas_profile] input[name=name]").val();
|
|||
|
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=add_areas_profile&profile='+profile+'&name='+name,
|
|||
|
success: function (data){
|
|||
|
$('.load-profiles').html(data.html);
|
|||
|
$("form[name=add_areas_profile] input[type=text]").val("");
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
|
|||
|
//удаление профиля подготовки
|
|||
|
$(".delete-profile").click(function(){
|
|||
|
var id = $(this).data("id");
|
|||
|
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=delete_profile&id='+id,
|
|||
|
success: function(data){
|
|||
|
$('.load-profiles').html(data.html);
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
});
|
|||
|
|
|||
|
//пользователь выбирает года обучения, которые будут активны для семестра
|
|||
|
$(".year-start").click(function(){
|
|||
|
|
|||
|
if ($(this).hasClass("btn-light")){
|
|||
|
$(this).addClass("btn-success");
|
|||
|
$(this).removeClass("btn-light");
|
|||
|
}
|
|||
|
else{
|
|||
|
$(this).addClass("btn-light");
|
|||
|
$(this).removeClass("btn-success");
|
|||
|
}
|
|||
|
|
|||
|
});
|
|||
|
|
|||
|
//пользователь выбирает форму обучения
|
|||
|
$(".forma-education").click(function(){
|
|||
|
if ($(this).hasClass("btn-light")){
|
|||
|
$(this).addClass("btn-success");
|
|||
|
$(this).removeClass("btn-light");
|
|||
|
}
|
|||
|
else{
|
|||
|
$(this).addClass("btn-light");
|
|||
|
$(this).removeClass("btn-success");
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
//пользователь добавляет года обучения и форму обучения по каждому направлению подготовки
|
|||
|
$(".add-profile-start").click(function(){
|
|||
|
var profile = $("form[name=add_profile_start] select[name=profile]").val();
|
|||
|
var years = '';
|
|||
|
var forms = '';
|
|||
|
|
|||
|
//года обучения для выбранного направления
|
|||
|
$('.year-start').each(function(i,elem) {
|
|||
|
if ($(this).hasClass("btn-success")) {
|
|||
|
years = years + $(this).data("id") + ',';
|
|||
|
//alert($(this).data("id"));
|
|||
|
|
|||
|
//return false;
|
|||
|
} else {
|
|||
|
//alert(i + ': ' + $(elem).text());
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
//формы обучения для выбранного направления
|
|||
|
$('.forma-education').each(function(i, elem){
|
|||
|
if ($(this).hasClass("btn-success")) {
|
|||
|
forms = forms + $(this).data("id") + ',';
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
/*alert(profile);
|
|||
|
alert(years);
|
|||
|
alert(forms);*/
|
|||
|
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=add_profile_start&profile='+profile+'&years='+years+'&forms='+forms,
|
|||
|
success: function(data){
|
|||
|
$('.load-start').html(data.html);
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
});
|
|||
|
|
|||
|
//удаление года обучения и формы
|
|||
|
$(".delete-profile-start").click(function(){
|
|||
|
var id = $(this).data("id");
|
|||
|
|
|||
|
//перед этим спрашивает, действительно ли нужно удалить
|
|||
|
var is = confirm("Вы действительно собираетесь удалить данную запись? Она может быть связана с практикой и, возможно, с другими модулями системы. Это действие необратимо.");
|
|||
|
if (is){ //подтверждение
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=delete_profile_start&id='+id,
|
|||
|
success: function(data){
|
|||
|
$('.load-start').html(data.html);
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
});
|
|||
|
|
|||
|
|
|||
|
|
|||
|
});
|
|||
|
|
|||
|
|
|||
|
</script>
|
|||
|
<?php }else{ ?>
|
|||
|
<p>У Вас нет доступа для просмотра данного раздела!</p>
|
|||
|
<?php }?> <?php }} ?>
|