EIOS/inc/smarty/templates_c/9025754778fcc70914e59cb2734...

198 lines
7.1 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-04-14 10:01:42
compiled from "tpl/tpl_alneo_grupps.html" */ ?>
<?php /*%%SmartyHeaderCode:14094814156257c6d6d64961-80902021%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'9025754778fcc70914e59cb273403e786941c14c' =>
array (
0 => 'tpl/tpl_alneo_grupps.html',
1 => 1634205874,
2 => 'file',
),
),
'nocache_hash' => '14094814156257c6d6d64961-80902021',
'function' =>
array (
),
'variables' =>
array (
'msg' => 0,
'grupps' => 0,
'k' => 0,
'grupp' => 0,
'teachers' => 0,
'gr' => 0,
'teach' => 0,
'faculties' => 0,
'fac' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_6257c6d6dd75a1_62554881',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6257c6d6dd75a1_62554881')) {function content_6257c6d6dd75a1_62554881($_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/grupps/">Группы</a></li>
</ul>
</div>
</div>
<?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="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">
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th>№</th>
<th><i class="icon-bullhorn"></i> Группа</th>
<th><i class="icon-bullhorn"></i> Факультет</th>
<th>--</th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['grupp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['grupp']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['grupps']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['grupp']->key => $_smarty_tpl->tpl_vars['grupp']->value){
$_smarty_tpl->tpl_vars['grupp']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['grupp']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['grupp']->value['name'];?>
<?php echo $_smarty_tpl->tpl_vars['grupp']->value['fo'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['grupp']->value['fac'];?>
</td>
<td></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" >
<span style="color: red;">Все поля обязательны к заполнению!</span>
<form name="add_grupp" action="" class="form-horizontal" method="POST">
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Полное название группы (пример: ЛД-202)</label>
<div class="controls">
<div class="input-prepend" style="width: 90%;">
<input type="text" name="name" class="form-control" style="width: 90%;" required />
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Форма обучения:</label>
<div class="controls">
<div class="input-prepend" style="width: 90%;">
<select name="fo" class="form-control" style="width: 90%;" >
<option value="ОФО">Очная</option>
<option value="ЗФО">Заочная</option>
<option value="ОЗФО">Очно-заочная</option>
</select>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">Преподаватель/куратор группы</label>
<div class="controls">
<select data-placeholder="Укажите преподавателя для группы" class="chzn-select span12" tabindex="6" name="teacher" style="width: 300px;">
<option value="0">нет преподавателя</option>
<?php $_smarty_tpl->tpl_vars['teach'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['teach']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['teachers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['teach']->key => $_smarty_tpl->tpl_vars['teach']->value){
$_smarty_tpl->tpl_vars['teach']->_loop = true;
?>
<option<?php if ($_smarty_tpl->tpl_vars['gr']->value['sel']==1){?> selected<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['teach']->value['id_user'];?>
"><?php echo $_smarty_tpl->tpl_vars['teach']->value['fio'];?>
</option>
<?php } ?>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Факультет:</label>
<div class="controls">
<div class="input-prepend" style="width: 90%;">
<select name="fakultet" class="form-control" style="width: 90%;" >
<?php $_smarty_tpl->tpl_vars['fac'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fac']->_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['fac']->key => $_smarty_tpl->tpl_vars['fac']->value){
$_smarty_tpl->tpl_vars['fac']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['fac']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['fac']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
<input type="submit" name="add_grupp" value="Добавить" class="btn btn-success" />
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div><?php }} ?>