EIOS/inc/smarty/templates_c/f9734389db1f284cbb6a92f7758...

192 lines
6.5 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-10-10 13:29:09
compiled from "tpl/tpl_polls_questions.html" */ ?>
<?php /*%%SmartyHeaderCode:12985753986343d04e172a53-92287668%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'f9734389db1f284cbb6a92f7758bdc5725192436' =>
array (
0 => 'tpl/tpl_polls_questions.html',
1 => 1665397631,
2 => 'file',
),
),
'nocache_hash' => '12985753986343d04e172a53-92287668',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_6343d04e1a1d04_75449362',
'variables' =>
array (
'anketa' => 0,
'message' => 0,
'questions' => 0,
'k' => 0,
'quest' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6343d04e1a1d04_75449362')) {function content_6343d04e1a1d04_75449362($_smarty_tpl) {?><!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Опрос. <?php echo $_smarty_tpl->tpl_vars['anketa']->value['name'];?>
</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_question" action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
<input type="hidden" name="id_anketa" value="<?php echo $_smarty_tpl->tpl_vars['anketa']->value['id'];?>
" />
<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="type" class="form-control" style="width: 90%;">
<option value="text">Короткий текст</option>
<option value="textarea">Большой текст</option>
<option value="select">Выбор из списка</option>
<option value="bool">Да/Нет</option>
<option value="title">Заголовок</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%;">
<textarea name="options" rows="5" class="form-control" style="width: 90%; "></textarea>
</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>
<input type="submit" name="add_question" 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['quest'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['quest']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['questions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['quest']->key => $_smarty_tpl->tpl_vars['quest']->value){
$_smarty_tpl->tpl_vars['quest']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['quest']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['quest']->value['name'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['quest']->value['type'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['quest']->value['options'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['quest']->value['status'];?>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php }} ?>