274 lines
9.1 KiB
PHP
274 lines
9.1 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-14 15:22:31
|
|||
|
compiled from "tpl/tpl_alneo_audit.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:1067801388625812072b3527-34068130%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'03948543ffc1abee8a3d5981e7e2100adf55dd18' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_alneo_audit.html',
|
|||
|
1 => 1638265509,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '1067801388625812072b3527-34068130',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'msg' => 0,
|
|||
|
'corpuses' => 0,
|
|||
|
'k' => 0,
|
|||
|
'corp' => 0,
|
|||
|
'audits' => 0,
|
|||
|
'aud' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_625812072f1566_78606748',
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_625812072f1566_78606748')) {function content_625812072f1566_78606748($_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/audit/">Корпусы/учебные аудитории</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-bookmark"></i> Адрес</th>
|
|||
|
<th>--</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<?php $_smarty_tpl->tpl_vars['corp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['corp']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['corpuses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['corp']->key => $_smarty_tpl->tpl_vars['corp']->value){
|
|||
|
$_smarty_tpl->tpl_vars['corp']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['corp']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['corp']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['corp']->value['address'];?>
|
|||
|
</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-up"></a>
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
<div class="widget-body" style="display: none;">
|
|||
|
<span style="color: red;">Все поля обязательны к заполнению!</span>
|
|||
|
|
|||
|
<form name="add_corp" action="" class="form-horizontal" method="POST">
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label" style="min-width: 200px!important;">Название/номер корпуса</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%;">
|
|||
|
<input type="text" name="address" class="form-control" style="width: 90%;" required />
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<input type="submit" name="add_corp" value="Добавить" class="btn btn-success" />
|
|||
|
|
|||
|
</form>
|
|||
|
</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">
|
|||
|
<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-bookmark"></i> Корпус</th>
|
|||
|
<th><i class="icon-bookmark"></i> URL</th>
|
|||
|
<th>--</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<?php $_smarty_tpl->tpl_vars['aud'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['aud']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['audits']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['aud']->key => $_smarty_tpl->tpl_vars['aud']->value){
|
|||
|
$_smarty_tpl->tpl_vars['aud']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['aud']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['aud']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['aud']->value['corpus'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['aud']->value['urls'];?>
|
|||
|
</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-up"></a>
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
<div class="widget-body" style="display: none;">
|
|||
|
<span style="color: red;">Все поля обязательны к заполнению!</span>
|
|||
|
|
|||
|
<form name="add_aud" action="" class="form-horizontal" method="POST">
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label" style="min-width: 200px!important;">Название/номер</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;">URL (если нужно)</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="input-prepend" style="width: 90%;">
|
|||
|
<input type="url" name="url" class="form-control" style="width: 90%;" />
|
|||
|
</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="id_corp" class="form-control">
|
|||
|
<?php $_smarty_tpl->tpl_vars['corp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['corp']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['corpuses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['corp']->key => $_smarty_tpl->tpl_vars['corp']->value){
|
|||
|
$_smarty_tpl->tpl_vars['corp']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['corp']->key;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['corp']->value['id'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['corp']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<input type="submit" name="add_aud" value="Добавить" class="btn btn-success" />
|
|||
|
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div><?php }} ?>
|