EIOS/inc/smarty/templates_c/dbbb45b5961174547c124e99325...

140 lines
5.7 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php /* Smarty version Smarty-3.1.13, created on 2022-11-18 12:07:23
compiled from "tpl/tpl_learn_elective.html" */ ?>
<?php /*%%SmartyHeaderCode:1045162478635bb9a8266685-35637218%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'dbbb45b5961174547c124e99325736c0fddff810' =>
array (
0 => 'tpl/tpl_learn_elective.html',
1 => 1668757540,
2 => 'file',
),
),
'nocache_hash' => '1045162478635bb9a8266685-35637218',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_635bb9a8267453_99324761',
'variables' =>
array (
'message' => 0,
'student' => 0,
'gruppa' => 0,
'plan' => 0,
'error_change_profile' => 0,
'kurs' => 0,
'predmets' => 0,
'predmet' => 0,
'pk' => 0,
'bl' => 0,
'count' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_635bb9a8267453_99324761')) {function content_635bb9a8267453_99324761($_smarty_tpl) {?><!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Дисциплины по выбору</h3>
<ul class="breadcrumb">
<li><a href="/">Главная</a><span class="divider">/</span></li>
</ul>
</div>
</div>
<?php if (($_smarty_tpl->tpl_vars['message']->value!='')){?>
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong><?php echo $_smarty_tpl->tpl_vars['message']->value;?>
</strong>
</div>
<?php }?>
<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">
<p>Уважаемый студент! </p>
<p>Ваша группа: <?php echo $_smarty_tpl->tpl_vars['student']->value['sokr'];?>
<br />
Форма обучения: <?php echo $_smarty_tpl->tpl_vars['student']->value['fo'];?>
<br />
Год набора: <?php echo $_smarty_tpl->tpl_vars['gruppa']->value['year_start'];?>
<br />
Код специальности: <?php echo $_smarty_tpl->tpl_vars['gruppa']->value['specialnost'];?>
<br />
Направление подготовки: <?php echo $_smarty_tpl->tpl_vars['plan']->value[1]['nappodgo'];?>
<br />
Профиль обучения (всего <?php echo $_smarty_tpl->tpl_vars['plan']->value[0];?>
): <?php echo $_smarty_tpl->tpl_vars['plan']->value[1]['propodgo'];?>
<br /></p>
<hr />
<?php if (($_smarty_tpl->tpl_vars['error_change_profile']->value==0)){?>
<?php $_smarty_tpl->tpl_vars["count"] = new Smarty_variable(0, null, 0);?> <!--счетчик выбранных вариантов-->
<h4><?php echo $_smarty_tpl->tpl_vars['kurs']->value;?>
курс (<?php echo $_smarty_tpl->tpl_vars['kurs']->value*2-1;?>
-<?php echo $_smarty_tpl->tpl_vars['kurs']->value*2;?>
семестры), Вам доступно для выбора: </h4>
<form name="order_elective" method="post" action="#">
<?php $_smarty_tpl->tpl_vars['predmet'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['predmet']->_loop = false;
$_smarty_tpl->tpl_vars['pk'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['predmets']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['predmet']->key => $_smarty_tpl->tpl_vars['predmet']->value){
$_smarty_tpl->tpl_vars['predmet']->_loop = true;
$_smarty_tpl->tpl_vars['pk']->value = $_smarty_tpl->tpl_vars['predmet']->key;
?>
<p> <b><?php echo $_smarty_tpl->tpl_vars['predmet']->value['discid'];?>
<?php echo $_smarty_tpl->tpl_vars['predmet']->value['discip'];?>
</b><br />
<?php $_smarty_tpl->tpl_vars['bl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['bl']->_loop = false;
$_smarty_tpl->tpl_vars['kb'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['predmet']->value['block']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['bl']->key => $_smarty_tpl->tpl_vars['bl']->value){
$_smarty_tpl->tpl_vars['bl']->_loop = true;
$_smarty_tpl->tpl_vars['kb']->value = $_smarty_tpl->tpl_vars['bl']->key;
?>
<input type="radio" name="predmet[<?php echo $_smarty_tpl->tpl_vars['pk']->value;?>
]" value="<?php echo $_smarty_tpl->tpl_vars['bl']->value['id'];?>
" required <?php if (($_smarty_tpl->tpl_vars['bl']->value['is_click']==0)){?>disabled<?php }?> /> <?php echo $_smarty_tpl->tpl_vars['bl']->value['discid'];?>
<?php echo $_smarty_tpl->tpl_vars['bl']->value['discip'];?>
<?php if (($_smarty_tpl->tpl_vars['bl']->value['sel']==1)){?><?php $_smarty_tpl->tpl_vars["count"] = new Smarty_variable($_smarty_tpl->tpl_vars['count']->value+1, null, 0);?>(<font color="blue">ВЫБРАНО</font>)<?php }?><br />
<?php } ?>
</p>
<?php } ?>
<?php if (($_smarty_tpl->tpl_vars['count']->value>$_smarty_tpl->tpl_vars['pk']->value)){?>
<p><b>Внесение изменений невозможно!</b></p>
<?php }else{ ?>
<input type="submit" class="btn btn-success" value="Сделать выбор" name="changed" />
<?php }?>
</form>
<?php }else{ ?>
<p><font color="red">НЕ ВЫБРАН ПРОФИЛЬ ОБУЧЕНИЯ!</font></p>
<?php }?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }} ?>