183 lines
6.4 KiB
PHP
183 lines
6.4 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-10-26 11:34:41
|
|||
|
compiled from "tpl/tpl_polls.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:1886128234633fc8a5817fd5-32764391%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'a66c35520b125e7ff35b1d6a6a49a2964d83c3f2' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_polls.html',
|
|||
|
1 => 1666773279,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '1886128234633fc8a5817fd5-32764391',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_633fc8a5818fb8_69737615',
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'message' => 0,
|
|||
|
'polls' => 0,
|
|||
|
'k' => 0,
|
|||
|
'poll' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_633fc8a5818fb8_69737615')) {function content_633fc8a5818fb8_69737615($_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>
|
|||
|
|
|||
|
</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 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_polls" action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
|||
|
|
|||
|
<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%;">
|
|||
|
<select name="status" class="form-control" style="width: 90%;">
|
|||
|
<option value="1">Доступен</option>
|
|||
|
<option value="0">Недоступен</option>
|
|||
|
</select>
|
|||
|
</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="access_fo" class="form-control" style="width: 90%;">
|
|||
|
<option value="0">Отсутствуют</option>
|
|||
|
<option value="ОФО">Только ОФО</option>
|
|||
|
<option value="ЗФО">Только ЗФО</option>
|
|||
|
<option value="ОЗФО">Только ОЗФО</option>
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<input type="submit" name="add_polls" 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-bordered">
|
|||
|
<tr>
|
|||
|
<th>№ п/п</th>
|
|||
|
<th>Название опроса</th>
|
|||
|
<th>Статус</th>
|
|||
|
<th>Дата создания</th>
|
|||
|
<th>Операции</th>
|
|||
|
</tr>
|
|||
|
|
|||
|
<?php $_smarty_tpl->tpl_vars['poll'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['poll']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['polls']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['poll']->key => $_smarty_tpl->tpl_vars['poll']->value){
|
|||
|
$_smarty_tpl->tpl_vars['poll']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['poll']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['poll']->value['name'];?>
|
|||
|
<br />
|
|||
|
<sub>Ограничения по форме обучения: <?php if (($_smarty_tpl->tpl_vars['poll']->value['access_fo']=="0")){?>нет<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['poll']->value['access_fo'];?>
|
|||
|
<?php }?></sub>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['poll']->value['status'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['poll']->value['date_create'];?>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<a class="btn btn-success tooltips" data-trigger="hover" data-original-title="Добавить/Редактировать вопросы" href="/polls/questions/<?php echo $_smarty_tpl->tpl_vars['poll']->value['id'];?>
|
|||
|
/"><i class="icon-question"></i></a>
|
|||
|
<a class="btn btn-primary tooltips" data-trigger="hover" data-original-title="Просмотр результатов опроса" href="/polls/result/<?php echo $_smarty_tpl->tpl_vars['poll']->value['id'];?>
|
|||
|
/"><i class="icon-eye-open"></i></a>
|
|||
|
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
|
|||
|
</table>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<?php }} ?>
|