Änderungen admin

This commit is contained in:
aschwarz
2023-03-20 17:22:01 +01:00
parent 83ce22c602
commit 4bb21bf23c
600 changed files with 112525 additions and 615 deletions

View File

@ -15,7 +15,7 @@
<div class="accordion2">
<h3><span>{$menu_survey_head1}</span></h3>
<ul>
<li class="abstand"><a href="survey_erfassen.php" target="eingabe_haupt"><span>{$menu_survey_head1_sub1}</span></a></li>
<li class="abstand"><a href="survey_erfassen.php?new=1" target="eingabe_haupt"><span>{$menu_survey_head1_sub1}</span></a></li>
</ul>

View File

@ -0,0 +1,78 @@
{if $action == ''}
<!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.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;
}
.headline {
padding-top: 10px;
padding-bottom: 10px;
}
</style>
</head>
<body>
<div class="container">
<div class="grid">
<div class="headline col-12 bg-white">
<h2><p class="text-center">{$result_headline}</p></h2>
<p class="text-center small">({$result_datum_von} bis {$result_datum_bis})</p>
</div>
<div class="col-12 ">
<table class="table table-sm">
<tbody>
<tr>
<th scope="row">Vollständige Teilnehmer</th>
<td>{$result_anz_fertige}</td>
<tr>
<th scope="row">Teilweise beantwortet</th>
<td>{$result_anz_angefangen}</td>
</tr>
</tbody>
</table>
<div class="question col-12 ">
{section name=table_data loop=$table_data}
<table class="table table-striped">
<thead>
<tr>
<th scope="col" colspan="2">
{$table_data[table_data].frage}
{if $table_data[table_data].multiple == '1'}
<br>
<p class="small">(Multiple Choice Frage)</p>
{/if}
</th>
</tr>
</thead>
{section name=inner loop=$table_data[table_data].inner}
<tbody>
<tr>
<th scope="row">
<div class="progress" style="height: 20px;">
<div class="progress-bar" role="progressbar" style="width: {$table_data[table_data].inner[inner].prozent}%;" aria-valuenow="{$table_data[table_data].inner[inner].prozent}" aria-valuemin="0.1" aria-valuemax="100"></div>
{$table_data[table_data].inner[inner].antwort} ({$table_data[table_data].inner[inner].prozent}%)
</div>
</th>
</tr>
</tbody>
{/section}
</table>
{/section}
</div>
</div>
</div>
</div>
</body>
</html>
{/if}

View File

@ -23,6 +23,10 @@
height: 15px;
font-size: 12px !important;
}
.btn-group > .btn{
margin-bottom:20px;
border-radius:20px !important;
}
</style>
<script>
$( function() {
@ -125,6 +129,7 @@
.form-control{
width:50%;
}
</style>
</head>
<body>
@ -213,6 +218,22 @@
<input class="form-control" type="text" name="headline" id="headline" value="{$umfrageerf_value_headline}" size="60">
</td>
</tr>
<tr>
<td width="30%">&nbsp;
</td>
<td>&nbsp;
</td>
</tr>
<tr>
<td>
Bemerkungsfeld am Ende der Umfrage:
</td>
<td valign="top">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" name="freitext" id="freitext" value="{$umfrageerf_value_freitext}" {if $umfrageerf_value_freitext == 1} checked {/if}>
</div>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
@ -222,7 +243,9 @@
</table>
<br />
<p align='center'>
<div class="col-12 btn-group">
<input type='submit' class="btn btn-primary" name='senden' value="Weiter - Fragen erfassen">
</div>
</p>
<br />
</fieldset>
@ -247,6 +270,12 @@
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
-->
<script src="../jquery/jquery-ui.js"></script>
<style>
.btn-group > .btn{
margin-bottom:20px;
border-radius:20px !important;
}
</style>
<script type="text/javascript">
{literal}
@ -381,10 +410,29 @@
<input class="form-control" type="text" name="antwort" id="antwort" value="{$umfrageerf_value_antwort}" size="60">
</td>
</tr>
<tr>
<td>&nbsp;
</td>
<td>&nbsp;
</td>
</tr>
<tr>
<td>
Mehrfachantworten erlauben:
</td>
<td valign="top">
<input class="form-check-input" type="checkbox" name="multiple" id="multiple" value="1" {if $umfrageerf_value_multiple == 1} checked {/if}>
</td>
</tr>
</table>
<br />
<p align='center'>
<input type='submit' class="btn btn-primary" name='senden' value="Speichern">
<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">
</div>
</p>
<br />
</fieldset>
@ -400,7 +448,7 @@
<div class="wrapper-nav">
<nav class="nav nav-tabs list mt-2" id="myTab" role="tablist">
{section name=table_data1 loop=$table_data1}
<a {if $table_data1[table_data1].ufid == $umfrageerf_gesp_werte_value_ufid2} class="nav-item nav-link pointer active" {else} class="nav-item nav-link pointer" {/if} data-bs-target="#tab{$table_data1[table_data1].ufid}" href="?action=fragen&tabufid={$table_data1[table_data1].ufid}"role="tab" aria-controls="public" {if $smarty.section.table_data1.rownum == $umfrageerf_gesp_werte_value_ufid2} aria-selected="true" {/if}>Frage {$smarty.section.table_data1.rownum}</a>
<a {if $table_data1[table_data1].ufid == $umfrageerf_gesp_werte_value_ufid2} class="nav-item nav-link pointer active" {else} class="nav-item nav-link pointer" {/if} data-bs-target="#tab{$table_data1[table_data1].ufid}" href="?action=fragen&tabufid={$table_data1[table_data1].ufid}&erfassen=1"role="tab" aria-controls="public" {if $smarty.section.table_data1.rownum == $umfrageerf_gesp_werte_value_ufid2} aria-selected="true" {/if}>Frage {$smarty.section.table_data1.rownum}</a>
<!--
<a class="nav-item nav-link pointer active" data-bs-toggle="tab" data-bs-target="#tab1" role="tab" aria-controls="public" aria-selected="true">Tab1</a>
<a class="nav-item nav-link pointer" data-bs-target="#tab2" role="tab" data-bs-toggle="tab">Tab 2</a>
@ -410,7 +458,7 @@
<a class="nav-item nav-link pointer" data-bs-target="#tab6" role="tab" data-bs-toggle="tab">Tab 6</a>
-->
{/section}
<a class="nav-item nav-link pointer" data-bs-target="#neuefrage" href="?action=fragen&tabufid=neuefrage" role="tab">Neue Frage</a>
<a class="nav-item nav-link pointer" data-bs-target="#neuefrage" href="?action=fragen&tabufid=neuefrage&erfassen=1" role="tab">Neue Frage</a>
</nav>
</div>
<div class="tab-content p-3" id="myTabContent">

View File

@ -7,7 +7,7 @@
<frameset rows="1*" cols="300, 76%" border="0">
<frame name="menu_eingabe" scrolling="auto" marginwidth="10" marginheight="14" src="menu_survey.php">
<frame name="eingabe_haupt" scrolling="yes" marginwidth="0" marginheight="0" src="survey_erfassen.php">
<frame name="eingabe_haupt" scrolling="yes" marginwidth="0" marginheight="0" src="survey_erfassen.php?new=1">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

View File

@ -35,7 +35,14 @@
</h4>
</div>
{/if}
{if $umfrage_anzeigen == '1'}
{if $umfrage_ende == '1'}
<div class="col-12 ">
<h4>
<p class="text-center">Vielen Dank für Deine Abstimmung!</p>
</h4>
</div>
{/if}
{if $umfrage_anzeigen == '1' AND $umfrage_ende == 0}
<input type="hidden" name="umid" value="{$umfrage_umid}">
<script type="text/javascript">
window.onload=function(){