adminbereich weitergemacht

This commit is contained in:
aschwarz
2023-03-21 17:41:51 +01:00
parent b9e9f89a3d
commit 1b02e82b86
9 changed files with 733 additions and 156 deletions

View File

@ -0,0 +1,181 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-21 17:40:38
from 'F:\git\survey\templates\modern\auswertung\index.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_6419de06ee1188_42882475',
'has_nocache_code' => false,
'file_dependency' =>
array (
'5809790bf8a6b339517c1d2a3b615761167522d1' =>
array (
0 => 'F:\\git\\survey\\templates\\modern\\auswertung\\index.html',
1 => 1679416098,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6419de06ee1188_42882475 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!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>Auswertung</title>
<!-- https://www.budde-mediendesign.de/blog/programmierung/das-bootstrap-4-grid-system-->
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.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;
}
.headline {
padding-top: 10px;
padding-bottom: 10px;
}
.container2 {
width: 80%;
}
.progress {
height: 28px;
}
.progress-bar {
background-color: #0BA7AD;
font-size: 16px;
line-height: 28px;
}
span {
position: absolute;
right: 20px;
color: #002C6C;
}
p {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div class="container">
<div class="grid">
<div class="headline col-12 bg-white">
<h2>
<p class="text-center"><?php echo $_smarty_tpl->tpl_vars['result_headline']->value;?>
</p>
</h2>
<p class="text-center small">(<?php echo $_smarty_tpl->tpl_vars['result_datum_von']->value;?>
bis <?php echo $_smarty_tpl->tpl_vars['result_datum_bis']->value;?>
)</p>
</div>
<div class="col-12 ">
<table class="table table-sm">
<tbody>
<tr>
<th scope="row">Vollständige Teilnehmer</th>
<td><?php echo $_smarty_tpl->tpl_vars['result_anz_fertige']->value;?>
</td>
<tr>
<th scope="row">Teilweise beantwortet</th>
<td><?php echo $_smarty_tpl->tpl_vars['result_anz_angefangen']->value;?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="container">
<?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']++){
?>
<p class="text-primary"><?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'];?>
<br>(<?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)]['anz_userfrage'];?>
Personen)</p>
<?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="small">(Multiple Choice Frage)</p>
<?php }?>
<?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());
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']++){
?>
<div class="row">
<div class="col-5">
<label>
<p class="small"><?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'];?>
</p>
</label>
</div>
<div class="col-7">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<?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)]['prozent'];?>
" aria-valuemin="0" aria-valuemax="100" style="width: <?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)]['prozent'];?>
%;"><span><?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)]['prozent'];?>
%</span></div>
</div>
</div>
</div>
<?php
}
}
?>
<br>
<?php
}
}
?>
</div>
<div class="container">
<div class="grid">
<div class="col-12 ">
<table class="table table-striped">
<?php
$__section_table_data3_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data3_2_total = $__section_table_data3_2_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array());
if ($__section_table_data3_2_total !== 0) {
for ($__section_table_data3_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_2_iteration <= $__section_table_data3_2_total; $__section_table_data3_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){
$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_2_iteration;
?>
<?php if ((isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) == 1) {?>
<thead>
<tr>
<th scope="col"><p class="text-primary">Bemerkungen</p></th>
</tr>
</thead>
<tbody>
<?php }?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['freitext'];?>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>
<?php }
}
}

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-20 19:31:32
/* Smarty version 3.1.39, created on 2023-03-21 17:38:48
from 'F:\git\survey\templates\modern\admin\result_latest.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_6418a684be5836_46614688',
'unifunc' => 'content_6419dd98b6cbe6_24717974',
'has_nocache_code' => false,
'file_dependency' =>
array (
'ac93cbaf5f60a3d3489e5f0b05d04c66ce346410' =>
array (
0 => 'F:\\git\\survey\\templates\\modern\\admin\\result_latest.html',
1 => 1679337091,
1 => 1679400243,
2 => 'file',
),
),
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_6418a684be5836_46614688 (Smarty_Internal_Template $_smarty_tpl) {
function content_6419dd98b6cbe6_24717974 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!doctype html>
<html lang="de">
@ -101,7 +101,7 @@ 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']++){
?>
<p class="text-primary"><?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'];?>
(<?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)]['anz_userfrage'];?>
<br>(<?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)]['anz_userfrage'];?>
Personen)</p>
<?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="small">(Multiple Choice Frage)</p>

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-21 14:00:44
/* Smarty version 3.1.39, created on 2023-03-21 17:17:48
from 'F:\git\survey\templates\modern\admin\survey_erfassen.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_6419aa7c4f4e92_26012688',
'unifunc' => 'content_6419d8ac51df14_26022447',
'has_nocache_code' => false,
'file_dependency' =>
array (
'f5d4a0b4fbdc268efcb11fce31782046bfefabac' =>
array (
0 => 'F:\\git\\survey\\templates\\modern\\admin\\survey_erfassen.html',
1 => 1679403631,
1 => 1679415462,
2 => 'file',
),
),
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_6419aa7c4f4e92_26012688 (Smarty_Internal_Template $_smarty_tpl) {
function content_6419d8ac51df14_26022447 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<html>
<head>
@ -342,6 +342,11 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
function keysave(ele) {
if(event.key === 'Enter') {
erfassensave();
}
}
$(document).ready(function() {
@ -434,7 +439,9 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
src="../js/components/admin_erfassen.js"><?php echo '</script'; ?>
>
<form action="?action=save" method='post' name='erfassen'>
<!-- <form action="?action=save" method='post' name='erfassen'>
-->
<?php if ($_smarty_tpl->tpl_vars['umfrageerf_error']->value == '1') {?>
<table width="70%" class="errorTable" align="center">
<tr>
@ -463,7 +470,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
</td>
<td valign="top">
<input class="form-control" type="text" name="frage" id="frage" value="<?php echo $_smarty_tpl->tpl_vars['umfrageerf_value_frage']->value;?>
" size="60">
" size="60" onkeydown="keysave(this)">
</td>
</tr>
<tr>
@ -478,7 +485,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
</td>
<td valign="top">
<input class="form-control" type="text" name="antwort" id="antwort" value="<?php echo $_smarty_tpl->tpl_vars['umfrageerf_value_antwort']->value;?>
" size="60">
" size="60" onkeydown="keysave(this)">
</td>
</tr>
<tr>
@ -492,7 +499,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
Mehrfachantworten erlauben:
</td>
<td valign="top">
<input class="form-check-input" type="checkbox" name="multiple" id="multiple" value="1" <?php if ($_smarty_tpl->tpl_vars['umfrageerf_value_multiple']->value == 1) {?> checked <?php }?>>
<input class="form-check-input" type="checkbox" name="multiple" id="multiple" value="1" onclick="erf_multiple();" <?php if ($_smarty_tpl->tpl_vars['umfrageerf_value_multiple']->value == 1) {?> checked <?php }?>>
</td>
</tr>
@ -502,7 +509,10 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
<p align='center'>
<div class="col-12 btn-group">
<a type="submit" href="?" class="btn btn-light">Zurück - Stammdaten bearbeiten</a>
<input type='submit' class="btn btn-primary" name='senden' value="Frage/Antwort Speichern">
<!-- <input type='submit' class="btn btn-primary" name='senden' value="Frage/Antwort Speichern">
-->
<button class="btn btn-primary" id="save" onclick="erfassensave();">Frage/Antwort Speichern</button>
</div>
</p>
<br />
@ -584,10 +594,13 @@ $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__sec
?>
</table>
<div id="msg"></div>
</form>
<?php }?>
<!--
</form>
-->
<p align='center'><button class="btn btn-delete btn-danger" onclick="onClickDeleteQuestion(<?php echo $_smarty_tpl->tpl_vars['umfrageerf_value_ufid']->value;?>
)">Frage Löschen</button></p>
<?php }?>
</div>
<div class="tab-pane fade mt-2" id="neuefrage" role="tabpanel" aria-labelledby="group-dropdown2-tab" >
</div>