Änderungen vom Wochenende

This commit is contained in:
aschwarz
2023-03-19 19:59:36 +01:00
parent 15ec7a0a34
commit a6850ffff8
5 changed files with 521 additions and 280 deletions

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-18 12:48:53
/* Smarty version 3.1.39, created on 2023-03-19 19:58:42
from 'F:\git\survey\templates\modern\survey\index.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_6415a5253b6db4_22747192',
'unifunc' => 'content_64175b626c3dc2_11111328',
'has_nocache_code' => false,
'file_dependency' =>
array (
'2b06f8f36ebdb45c10ebd7bf157223e300660449' =>
array (
0 => 'F:\\git\\survey\\templates\\modern\\survey\\index.html',
1 => 1679140131,
1 => 1679252315,
2 => 'file',
),
),
@ -20,8 +20,9 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_6415a5253b6db4_22747192 (Smarty_Internal_Template $_smarty_tpl) {
?><!doctype html>
function content_64175b626c3dc2_11111328 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
@ -32,7 +33,61 @@ function content_6415a5253b6db4_22747192 (Smarty_Internal_Template $_smarty_tpl)
<!--
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
-->
<style type="text/css">
body {
background-color : #FFF;
}
.headline {
padding-top: 10px;
padding-bottom: 10px;
padding-left: 20px;
}
</style>
</head>
<body>
<div class="container">
<div class="grid">
<div class="headline col-12 bg-white">
<p class="text-center"><img width="200" src="../media/jumi.png" class="rounded float-right" alt="JU & MI"></p>
</div>
<form action="?action=umfrage" method='post' name='start'>
<?php if ($_smarty_tpl->tpl_vars['umfrage_anzeigen']->value == '0') {?>
<div class="col-12 ">
<h4>
<p class="text-center">Aktuell sind keine Umfragen verfügbar</p>
</h4>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_anzeigen']->value == '1') {?>
<input type="hidden" name="umid" value="<?php echo $_smarty_tpl->tpl_vars['umfrage_umid']->value;?>
">
<?php echo '<script'; ?>
type="text/javascript">
window.onload=function(){
window.setTimeout(document.start.submit.bind(document.start), 5000);
};
<?php echo '</script'; ?>
>
</form>
<?php }?>
</div>
</div>
</body>
</html>
<?php }
if ($_smarty_tpl->tpl_vars['action']->value == 'umfrage') {?>
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Umfrage</title>
<!-- https://www.budde-mediendesign.de/blog/programmierung/das-bootstrap-4-grid-system-->
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.ali.css" rel="stylesheet">
<!--
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
-->
<style type="text/css">
body {
background-color : #FFF;
@ -58,7 +113,6 @@ function content_6415a5253b6db4_22747192 (Smarty_Internal_Template $_smarty_tpl)
padding-bottom: 20px;
padding-left: 20px;
}
.prog-col {
background-color: #35B6BB;
}
@ -111,6 +165,7 @@ function content_6415a5253b6db4_22747192 (Smarty_Internal_Template $_smarty_tpl)
<body >
<!-- hier kommt der Inhalt der Seite hin -->
<div class="container">
<?php if ($_smarty_tpl->tpl_vars['umfrage_showende']->value != '1') {?>
<div class="progress" style="height: 5px;">
<div class="progress-bar prog-col" role="progressbar" style="width:<?php echo $_smarty_tpl->tpl_vars['umfrage_progress']->value;?>
%" aria-valuenow="<?php echo $_smarty_tpl->tpl_vars['umfrage_progress']->value;?>
@ -123,25 +178,27 @@ function content_6415a5253b6db4_22747192 (Smarty_Internal_Template $_smarty_tpl)
</p>
</h2>
</div>
<form action="" method='post' name='erfassen'>
<?php
<form action="?action=umfrage" method='post' name='erfassen'>
<?php if ($_smarty_tpl->tpl_vars['umfrage_showfreitext']->value == '0') {?>
<?php
$__section_table_data_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data_0_total = $__section_table_data_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data'] = new Smarty_Variable(array());
if ($__section_table_data_0_total !== 0) {
for ($__section_table_data_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] = 0; $__section_table_data_0_iteration <= $__section_table_data_0_total; $__section_table_data_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']++){
?>
<div class="question col-12 ">
<h4>
<p class="text-center"><?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['frage'];?>
<div class="question col-12 ">
<h4>
<p class="text-center"><?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['frage'];?>
</p>
</h4>
<?php if ($_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['multiple'] == '1') {?><p class="text-center small">Mehrfachantworten möglich</p><?php }?>
</div>
<br>
<div class="col-12 btn-group-vertical btn-toolbar" role="group" aria-label="Basic radio toggle button group">
<?php
</h4>
<?php if ($_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['multiple'] == '1') {?>
<p class="text-center small">Mehrfachantworten möglich</p>
<?php }?>
</div>
<br>
<div class="col-12 btn-group-vertical btn-toolbar" role="group" aria-label="Basic radio toggle button group">
<?php
$__section_inner_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['inner']) ? count($_loop) : max(0, (int) $_loop));
$__section_inner_1_total = $__section_inner_1_loop;
$_smarty_tpl->tpl_vars['__smarty_section_inner'] = new Smarty_Variable(array());
@ -149,78 +206,102 @@ if ($__section_inner_1_total !== 0) {
for ($__section_inner_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] = 0; $__section_inner_1_iteration <= $__section_inner_1_total; $__section_inner_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']++){
$_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] = $__section_inner_1_iteration;
?>
<?php if ($_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['multiple'] == '0') {?>
<input value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['uaid'];?>
<?php if ($_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['multiple'] == '0') {?>
<input value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['uaid'];?>
" type="radio" class="btn-check" name="antwort" id="btnradio<?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] : null);?>
" autocomplete="off">
<?php } else { ?>
<input value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['uaid'];?>
" autocomplete="off" <?php if ($_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['selected'] == '1') {?> checked <?php }?>>
<?php } else { ?>
<input value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['uaid'];?>
" type="checkbox" class="btn-check" name="antwort_<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['uaid'];?>
" id="btnradio<?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] : null);?>
" autocomplete="off">
<?php }?>
<label class="answer btn btn-outline-primary" for="btnradio<?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] : null);?>
" autocomplete="off" <?php if ($_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['selected'] == '1') {?> checked <?php }?>>
<?php }?>
<label class="answer btn btn-outline-primary" for="btnradio<?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] : null);?>
"><?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['antwort'];?>
</label>
<?php
}
}
?>
</div>
<div class="col-12 btn-group">
<input type="hidden" name="row" value="<?php echo $_smarty_tpl->tpl_vars['pagination_row']->value;?>
">
<input type="hidden" name="allcount" value="<?php echo $_smarty_tpl->tpl_vars['pagination_allcount']->value;?>
">
<?php if ($_smarty_tpl->tpl_vars['umfrage_start0']->value == '1') {?>
<input type="submit" class="btn btn-light" name="but_prev" value="Zurück">
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_start0']->value == '2') {?>
<a disabled class="btn btn-light">Zurück</a>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_end0']->value == '1') {?>
<input type="hidden" name="save" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['ufid'];?>
">
<input type="hidden" name="exit" value="0">
<input type="submit" class="btn btn-primary" name="but_next" value="Weiter">
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_end0']->value == '2') {?>
<input type="hidden" name="save" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['ufid'];?>
">
<input type="hidden" name="exit" value="1">
<input type="submit" class="btn btn-primary" name="but_next" value="Umfrage beenden">
<?php }?>
</div>
<?php
}
}
?>
</div>
<!--
<div class="col-12 btn-group">
<?php if ($_smarty_tpl->tpl_vars['umfrage_start0']->value == '1') {?>
<input type="hidden" name="start" value="<?php echo $_smarty_tpl->tpl_vars['umfrage_start_newstart']->value;?>
">
<?php echo $_smarty_tpl->tpl_vars['umfrage_start_newstart']->value;?>
<input type='submit' class="btn btn-light" name='senden' value="Zurück">
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_start0']->value == '2') {?>
<a disabled class="btn btn-light">Zurück</a>
<?php if ($_smarty_tpl->tpl_vars['umfrage_showfreitext']->value == '1') {?>
<div class="question col-12 ">
<h4>
<p class="text-center">Raum für Hinweise/Bemerkungen</p>
</h4>
</div>
<br>
<div class="col-12 btn-group-vertical btn-toolbar" role="group" aria-label="Basic radio toggle button group">
<textarea class="form-control" id="freitext" name="freitext" rows="6"><?php echo $_smarty_tpl->tpl_vars['umfrage_value_freitext']->value;?>
</textarea>
</div>
<div class="col-12 btn-group">
<input type="hidden" name="row" value="<?php echo $_smarty_tpl->tpl_vars['pagination_row']->value;?>
">
<input type="hidden" name="allcount" value="<?php echo $_smarty_tpl->tpl_vars['pagination_allcount']->value;?>
">
<?php if ($_smarty_tpl->tpl_vars['umfrage_start0']->value == '1') {?>
<input type="submit" class="btn btn-light" name="but_prev" value="Zurück">
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_start0']->value == '2') {?>
<a disabled class="btn btn-light">Zurück</a>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_end0']->value == '1') {?>
<input type="hidden" name="save" value="freitext">
<input type="hidden" name="exit" value="0">
<input type="submit" class="btn btn-primary" name="but_next" value="Weiter">
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_end0']->value == '2') {?>
<input type="hidden" name="save" value="freitext">
<input type="hidden" name="exit" value="1">
<input type="submit" class="btn btn-primary" name="but_next" value="Umfrage beenden">
<?php }?>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_end0']->value == '1') {?>
<input type="hidden" name="start" value="<?php echo $_smarty_tpl->tpl_vars['umfrage_end_newstart']->value;?>
">
<input type="hidden" name="save" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['ufid'];?>
">
<?php echo $_smarty_tpl->tpl_vars['umfrage_end_newstart']->value;?>
<input type='submit' class="btn btn-primary" name='senden' value="Weiter">
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_end0']->value == '2') {?>
<input type="hidden" name="start" value="<?php echo $_smarty_tpl->tpl_vars['umfrage_end_newstart']->value;?>
">
<?php echo $_smarty_tpl->tpl_vars['umfrage_end_newstart']->value;?>
<input type="hidden" name="save" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['ufid'];?>
">
<input type="hidden" name="exit" value="1">
<input type='submit' class="btn btn-primary" name='senden' value="Umfrage beenden">
<?php }?>
</div>
-->
<div id="div_pagination">
<?php echo $_smarty_tpl->tpl_vars['pagination_row']->value;?>
/ <?php echo $_smarty_tpl->tpl_vars['pagination_allcount']->value;?>
<input type="hidden" name="row" value="<?php echo $_smarty_tpl->tpl_vars['pagination_row']->value;?>
">
<input type="hidden" name="allcount" value="<?php echo $_smarty_tpl->tpl_vars['pagination_allcount']->value;?>
">
<input type="submit" class="button" name="but_prev" value="Previous">
<input type="submit" class="button" name="but_next" value="Next">
</div>
<?php
}
}
?>
</div>
</form>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_showende']->value == '1') {?>
<div class="grid">
<div class="headline col-12 bg-white">
<p class="text-center"><img width="200" src="../media/jumi.png" class="rounded float-right" alt="JU & MI"></p>
</div>
<div class="col-12 ">
<h4>
<p class="text-center">Herzlichen Dank für deine Teilnahme</p>
</h4>
</div>
</div>
<?php }?>
</div>
<!--
<?php echo '<script'; ?>
@ -246,3 +327,4 @@ $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] = $__section_i
</html>
<?php }
}
}