Ä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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

BIN
media/jumi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -1,182 +1,257 @@
<?php <?php
## INDEX gegen DB ## INDEX gegen DB
if(!isset($_SESSION)) { session_start(); } if (!isset($_SESSION)) {
session_start();
}
#$_SESSION['sessionid'] = session_id(); #$_SESSION['sessionid'] = session_id();
include_once '../classes/TestProjektSmarty.class_subdir.php'; include_once '../classes/TestProjektSmarty.class_subdir.php';
#require_once("../config.inc.php"); #require_once("../config.inc.php");
require_once("../config/datenbankanbindung.php"); require_once("../config/datenbankanbindung.php");
$smarty = new SmartyAdmin(); $smarty = new SmartyAdmin();
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html"; $templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
require_once "../language/german.inc.php"; require_once "../language/german.inc.php";
$action = $_GET['action']; $action = $_GET['action'];
if($action == ''){
$db = dbconnect();
if ($action == '') {
// Datendefinition $db = dbconnect();
$start = (isset($_POST['start'])) ? abs((int)$_POST['start']) : 0; $datum=date("Y-m-d H:i:s");
$ip = $_SERVER["REMOTE_ADDR"]; $query_umid = $db->query("SELECT max(umid) umid
$limit = 1; // Fragen pro Seite FROM jumi_umfragen
WHERE datum_von < '$datum'
############################################################################# AND datum_bis > '$datum'
$umid=1; ");
############################################################################# $row_umid = $query_umid->fetch_array();
if($row_umid['umid'] == NULL ){
####################### Speichern der Antworten ############################# $smarty->assign('umfrage_anzeigen', "0");
if(isset($_POST['save'])){ }else{
$frage = $_POST['save']; $smarty->assign('umfrage_anzeigen', "1");
$result_multiple = $db->query("SELECT multiple $smarty->assign('umfrage_umid', "$row_umid[umid]");
FROM jumi_umfragen_fragen
WHERE ufid = $frage;");
$row_multiple = $result_multiple->fetch_array();
if($row_multiple['multiple'] == '0'){
# echo "Antwort: $_POST[antwort]<br>";
}
if($row_multiple['multiple'] == '1'){
$query = "SELECT uaid
FROM jumi_umfragen_antworten
WHERE ufid = $frage
ORDER BY ufid ASC";
$result = $db->query( $query);
while ($row = $result->fetch_array()){
$antwort = $_POST['antwort_'.$row['uaid']];
if($antwort != ''){
# echo "Antwort: $antwort<br>";
}
}
} }
} }
if ($action == 'umfrage') {
$db = dbconnect();
$rowperpage = 1;
$row1234 = 0; // Datendefinition
// Previous Button $limit = 1; // Fragen pro Seite
if(isset($_POST['but_prev'])){
$row1234 = $_POST['row']; #############################################################################
$row1234 -= $rowperpage; if (isset($_POST['umid'])) {
if( $row1234 < 0 ){ $umid = $_POST['umid'];
$row1234 = 0; $_SESSION['umid'] = $umid;
}else{
$umid = $_SESSION['umid'];
}
####################### Abfrage, ob Umfrage schon teilgenommen ##############
####################### Speichern der Antworten #############################
if (isset($_POST['but_next'])) {
$frage = $_POST['save'];
$session = session_id();
$ip = $_SERVER["REMOTE_ADDR"];
if (!isset($_POST['freitext'])) {
$result_multiple = $db->query("SELECT multiple
FROM jumi_umfragen_fragen
WHERE ufid = $frage");
$row_multiple = $result_multiple->fetch_array();
$del1 = $db->query("DELETE FROM jumi_umfragen_ergebnisse WHERE ufid = $frage AND ip='$ip' AND session='$session'");
if ($row_multiple['multiple'] == '0') {
# echo "Antwort: $_POST[antwort]<br>";
$antwort = $_POST['antwort'];
$sql1 = $db->query("INSERT INTO jumi_umfragen_ergebnisse (ip, session, ufid, uaid)
VALUES ('$ip', '$session', '$frage', '$antwort')
");
}
if ($row_multiple['multiple'] == '1') {
$query = "SELECT uaid
FROM jumi_umfragen_antworten
WHERE ufid = $frage
ORDER BY ufid ASC";
$result = $db->query($query);
while ($row = $result->fetch_array()) {
$antwort = $_POST['antwort_' . $row['uaid']];
if ($antwort != '') {
# echo "Antwort: $antwort<br>";
$sql1 = $db->query("INSERT INTO jumi_umfragen_ergebnisse (ip, session, ufid, uaid)
VALUES ('$ip', '$session', '$frage', '$antwort')
");
}
} }
} }
}
// Next Button if (isset($_POST['freitext'])) {
if(isset($_POST['but_next'])){ $freitext = $_POST['freitext'];
$row1234 = $_POST['row']; $del1 = $db->query("DELETE FROM jumi_umfragen_erg_freitext WHERE ip='$ip' AND session='$session'");
$allcount = $_POST['allcount']; $sql1 = $db->query("INSERT INTO jumi_umfragen_erg_freitext (umid, ip, session, freitext)
VALUES ('$umid', '$ip', '$session', '$freitext')
$val = $row1234 + $rowperpage; ");
if( $val < $allcount ){ }
$row1234 = $val;
} if ($_POST['exit'] == '1') {
} $smarty->assign('umfrage_showende', "1");
}
}
$smarty->assign('pagination_row', $row1234);
$rowperpage = 1;
$row_page = 0;
// Previous Button
if (isset($_POST['but_prev'])) {
####################### Ausgabe der Fragen #####################################
$row_page = $_POST['row'];
$last = floor($total/$limit)*$limit; //Sprungziel zur letzten Seite BSP abrunden(1954/13)*13 ==> 150*13=1950 Sprungmarke auf Zeile 1950, 4 DS werden angezeigt $row_page -= $rowperpage;
$akt = round((($start-$limit)/$limit+2),0); if ($row_page < 0) {
$row_page = 0;
$result0 = $db->query("SELECT headline $smarty->assign('umfrage_start0', "2");
} else {
$smarty->assign('umfrage_start0', "1");
}
}
// Next Button
if (isset($_POST['but_next'])) {
$row_page = $_POST['row'];
$allcount = $_POST['allcount'];
$val = $row_page + $rowperpage;
if ($val < $allcount) {
$row_page = $val;
}
}
$smarty->assign('pagination_row', $row_page);
####################### Ausgabe der Fragen #####################################
# $last = floor($total/$limit)*$limit; //Sprungziel zur letzten Seite BSP abrunden(1954/13)*13 ==> 150*13=1950 Sprungmarke auf Zeile 1950, 4 DS werden angezeigt
$akt = round((($row_page - $limit) / $limit + 2), 0);
$result0 = $db->query("SELECT headline, freitext
FROM jumi_umfragen FROM jumi_umfragen
WHERE umid = $umid;"); WHERE umid = $umid;");
$row0 = $result0->fetch_array(); $row0 = $result0->fetch_array();
$smarty->assign('umfrage_headline', $row0['headline']); if ($row0['freitext'] == '0') {
$freitext = 0;
$result = $db->query("SELECT count(*)-1 Anz_limit, round(100/count(*)*$akt,1) progress, count(*) total } else {
$freitext = 1;
}
$smarty->assign('umfrage_headline', $row0['headline']);
$result = $db->query("SELECT count(*)-1 Anz_limit, round(100/(count(*)+$freitext)*$akt,1) progress, count(*) total
FROM jumi_umfragen_fragen FROM jumi_umfragen_fragen
WHERE umid = $umid;"); WHERE umid = $umid;");
$row = $result->fetch_array(); $row = $result->fetch_array();
$smarty->assign('umfrage_progress', $row['progress']); $smarty->assign('umfrage_progress', $row['progress']);
$allcount = $row['total'];
$smarty->assign('pagination_allcount', $allcount); if ($row0['freitext'] == '0') {
$allcount = $row['total'];
#$show = ceil($total/$limit); //Seitenzahlen aufrunden } else {
$allcount = $row['total'] + $freitext;
if(isset($_POST['start'])){ }
#echo "hier|$total|$limit|$start";
$start = ($_POST['start'] >= $total) ? $total - $limit : $start;
}else{ $smarty->assign('pagination_allcount', $allcount);
$start = 0; // Zurück- und Vorblättern Buttons
} if ($row_page > 0) {
$smarty->assign('umfrage_start0', "1");
#echo "$row[Anz_limit]<br>"; } else {
$smarty->assign('umfrage_start0', "2");
// Datenbankabfrage ausführen. }
$query = "SELECT ufid, frage, multiple
if ($row_page + $limit < $allcount) {
$smarty->assign('umfrage_end0', "1");
} else {
$smarty->assign('umfrage_end0', "2");
}
#echo "$row[Anz_limit]<br>";
// Datenbankabfrage ausführen.
$query = "SELECT ufid, frage, multiple
FROM jumi_umfragen_fragen FROM jumi_umfragen_fragen
WHERE umid = 1 WHERE umid = 1
ORDER BY ufid ASC ORDER BY ufid ASC
LIMIT ".$row1234.",1"; LIMIT " . $row_page . ",1";
$result = $db->query( $query); $result = $db->query($query);
// Ergebnisse lesen und an den Client ausgeben # Letzte Frage ggf. Freitext, wenn Ergebnis der Abfrage 0 ist und Freitext=1
if (mysqli_num_rows($result) == '0' AND $row0['freitext'] == '1') {
while ($row = $result->fetch_array()){ # Jetzt Freitext einblenden, auf letzter Seite
$value2 = ''; $smarty->assign('umfrage_showfreitext', "1");
$result_antw = $db->query("SELECT freitext
$query2 = "SELECT uaid, antwort FROM jumi_umfragen_erg_freitext
WHERE umid = $umid
AND ip = '$ip'
AND session = '$session'");
$row_antw = $result_antw->fetch_array();
$smarty->assign('umfrage_value_freitext', "$row_antw[freitext]");
} else {
$smarty->assign('umfrage_showfreitext', "0");
}
// Ergebnisse lesen und an den Client ausgeben
while ($row = $result->fetch_array()) {
$value2 = '';
$query2 = "SELECT uaid, antwort
FROM jumi_umfragen_antworten FROM jumi_umfragen_antworten
WHERE ufid = $row[ufid] WHERE ufid = $row[ufid]
ORDER BY userorder ASC ORDER BY userorder ASC
"; ";
$result2 = $db->query( $query2) $result2 = $db->query($query2) or die("Cannot execute query2");
or die ("Cannot execute query2"); $ln2 = 0;
$ln2 = 0; while ($row2 = $result2->fetch_array()) {
while ($row2 = $result2->fetch_array()){ $session = session_id();
$inner1[$ln2]['uaid'] = $row2['uaid']; $ip = $_SERVER["REMOTE_ADDR"];
$inner1[$ln2]['antwort'] = $row2['antwort'];
$value2 = $inner1; $result_antw = $db->query("SELECT count(*) Anz
$ln2++; FROM jumi_umfragen_ergebnisse
} WHERE ufid = $row[ufid]
$row['inner'] = $value2; AND uaid = $row2[uaid]
AND ip = '$ip'
AND session = '$session'");
$table_data[] = $row; $row_antw = $result_antw->fetch_array();
} if ($row_antw['Anz'] == '0') {
$smarty->assign('table_data', $table_data); $selected = 0;
} else {
#echo"<pre>"; $selected = 1;
#print_r($table_data); }
#echo"</pre>";
$inner1[$ln2]['selected'] = $selected;
// Zurück- und Vorblättern $inner1[$ln2]['uaid'] = $row2['uaid'];
if ($start > 0){ $inner1[$ln2]['antwort'] = $row2['antwort'];
$newStart = ($start - $limit < 0) ? 0 : ($start-$limit); // wenn $start-$limit kleiner 0 dann $newstart=0 sonst $start-$limit $value2 = $inner1;
echo "<br>1: ".$newStart; $ln2++;
$smarty->assign('umfrage_start0', "1"); }
$smarty->assign('umfrage_start_newstart', "$newStart"); $row['inner'] = $value2;
}else{
$smarty->assign('umfrage_start0', "2");
} $table_data[] = $row;
}
$smarty->assign('table_data', $table_data);
if ($start + $limit < $total){
$newStart = $start + $limit; #echo"<pre>";
echo "<br>2: ".$newStart; #print_r($table_data);
$smarty->assign('umfrage_end0', "1"); #echo"</pre>";
$smarty->assign('umfrage_end_newstart', "$newStart");
$smarty->assign('umfrage_end_last', "$last");
}else{
$smarty->assign('umfrage_end0', "2");
}
} }
$smarty->assign('action', "$action"); $smarty->assign('action', "$action");
$smarty->display("modern/survey/$templatename"); $smarty->display("modern/survey/$templatename");
?> ?>

View File

@ -1,3 +1,4 @@
{if $action == ''}
<!doctype html> <!doctype html>
<html lang="de"> <html lang="de">
<head> <head>
@ -9,7 +10,58 @@
<!-- <!--
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous"> <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'>
{if $umfrage_anzeigen == '0'}
<div class="col-12 ">
<h4>
<p class="text-center">Aktuell sind keine Umfragen verfügbar</p>
</h4>
</div>
{/if}
{if $umfrage_anzeigen == '1'}
<input type="hidden" name="umid" value="{$umfrage_umid}">
<script type="text/javascript">
window.onload=function(){
window.setTimeout(document.start.submit.bind(document.start), 5000);
};
</script>
</form>
{/if}
</div>
</div>
</body>
</html>
{/if}
{if $action == '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"> <style type="text/css">
body { body {
background-color : #FFF; background-color : #FFF;
@ -35,7 +87,6 @@
padding-bottom: 20px; padding-bottom: 20px;
padding-left: 20px; padding-left: 20px;
} }
.prog-col { .prog-col {
background-color: #35B6BB; background-color: #35B6BB;
} }
@ -88,6 +139,7 @@
<body > <body >
<!-- hier kommt der Inhalt der Seite hin --> <!-- hier kommt der Inhalt der Seite hin -->
<div class="container"> <div class="container">
{if $umfrage_showende != '1'}
<div class="progress" style="height: 5px;"> <div class="progress" style="height: 5px;">
<div class="progress-bar prog-col" role="progressbar" style="width:{$umfrage_progress}%" aria-valuenow="{$umfrage_progress}" aria-valuemin="0" aria-valuemax="100"></div> <div class="progress-bar prog-col" role="progressbar" style="width:{$umfrage_progress}%" aria-valuenow="{$umfrage_progress}" aria-valuemin="0" aria-valuemax="100"></div>
</div> </div>
@ -97,65 +149,96 @@
<p class="text-center">{$umfrage_headline}</p> <p class="text-center">{$umfrage_headline}</p>
</h2> </h2>
</div> </div>
<form action="" method='post' name='erfassen'> <form action="?action=umfrage" method='post' name='erfassen'>
{section name=table_data loop=$table_data} {if $umfrage_showfreitext == '0'}
<div class="question col-12 "> {section name=table_data loop=$table_data}
<h4> <div class="question col-12 ">
<p class="text-center">{$table_data[table_data].frage}</p> <h4>
</h4> <p class="text-center">{$table_data[table_data].frage}</p>
{if $table_data[table_data].multiple == '1'}<p class="text-center small">Mehrfachantworten möglich</p>{/if} </h4>
{if $table_data[table_data].multiple == '1'}
</div> <p class="text-center small">Mehrfachantworten möglich</p>
<br> {/if}
<div class="col-12 btn-group-vertical btn-toolbar" role="group" aria-label="Basic radio toggle button group"> </div>
{section name=inner loop=$table_data[table_data].inner} <br>
{if $table_data[table_data].multiple == '0'} <div class="col-12 btn-group-vertical btn-toolbar" role="group" aria-label="Basic radio toggle button group">
<input value="{$table_data[table_data].inner[inner].uaid}" type="radio" class="btn-check" name="antwort" id="btnradio{$smarty.section.inner.rownum}" autocomplete="off"> {section name=inner loop=$table_data[table_data].inner}
{else} {if $table_data[table_data].multiple == '0'}
<input value="{$table_data[table_data].inner[inner].uaid}" type="checkbox" class="btn-check" name="antwort_{$table_data[table_data].inner[inner].uaid}" id="btnradio{$smarty.section.inner.rownum}" autocomplete="off"> <input value="{$table_data[table_data].inner[inner].uaid}" type="radio" class="btn-check" name="antwort" id="btnradio{$smarty.section.inner.rownum}" autocomplete="off" {if $table_data[table_data].inner[inner].selected == '1'} checked {/if}>
{/if} {else}
<label class="answer btn btn-outline-primary" for="btnradio{$smarty.section.inner.rownum}">{$table_data[table_data].inner[inner].antwort}</label> <input value="{$table_data[table_data].inner[inner].uaid}" type="checkbox" class="btn-check" name="antwort_{$table_data[table_data].inner[inner].uaid}" id="btnradio{$smarty.section.inner.rownum}" autocomplete="off" {if $table_data[table_data].inner[inner].selected == '1'} checked {/if}>
{/if}
<label class="answer btn btn-outline-primary" for="btnradio{$smarty.section.inner.rownum}">{$table_data[table_data].inner[inner].antwort}</label>
{/section}
</div>
<div class="col-12 btn-group">
<input type="hidden" name="row" value="{$pagination_row}">
<input type="hidden" name="allcount" value="{$pagination_allcount}">
{if $umfrage_start0 == '1'}
<input type="submit" class="btn btn-light" name="but_prev" value="Zurück">
{/if}
{if $umfrage_start0 == '2'}
<a disabled class="btn btn-light">Zurück</a>
{/if}
{if $umfrage_end0 == '1'}
<input type="hidden" name="save" value="{$table_data[table_data].ufid}">
<input type="hidden" name="exit" value="0">
<input type="submit" class="btn btn-primary" name="but_next" value="Weiter">
{/if}
{if $umfrage_end0 == '2'}
<input type="hidden" name="save" value="{$table_data[table_data].ufid}">
<input type="hidden" name="exit" value="1">
<input type="submit" class="btn btn-primary" name="but_next" value="Umfrage beenden">
{/if}
</div>
{/section} {/section}
</div>
<!--
<div class="col-12 btn-group">
{if $umfrage_start0 == '1'}
<input type="hidden" name="start" value="{$umfrage_start_newstart}">
{$umfrage_start_newstart}
<input type='submit' class="btn btn-light" name='senden' value="Zurück">
{/if} {/if}
{if $umfrage_start0 == '2'} {if $umfrage_showfreitext == '1'}
<a disabled class="btn btn-light">Zurück</a> <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">{$umfrage_value_freitext}</textarea>
</div>
<div class="col-12 btn-group">
<input type="hidden" name="row" value="{$pagination_row}">
<input type="hidden" name="allcount" value="{$pagination_allcount}">
{if $umfrage_start0 == '1'}
<input type="submit" class="btn btn-light" name="but_prev" value="Zurück">
{/if}
{if $umfrage_start0 == '2'}
<a disabled class="btn btn-light">Zurück</a>
{/if}
{if $umfrage_end0 == '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">
{/if}
{if $umfrage_end0 == '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">
{/if}
</div>
{/if} {/if}
{if $umfrage_end0 == '1'}
<input type="hidden" name="start" value="{$umfrage_end_newstart}">
<input type="hidden" name="save" value="{$table_data[table_data].ufid}">
{$umfrage_end_newstart}
<input type='submit' class="btn btn-primary" name='senden' value="Weiter">
{/if}
{if $umfrage_end0 == '2'}
<input type="hidden" name="start" value="{$umfrage_end_newstart}">
{$umfrage_end_newstart}
<input type="hidden" name="save" value="{$table_data[table_data].ufid}">
<input type="hidden" name="exit" value="1">
<input type='submit' class="btn btn-primary" name='senden' value="Umfrage beenden">
{/if}
</div>
-->
<div id="div_pagination">
{$pagination_row} / {$pagination_allcount}
<input type="hidden" name="row" value="{$pagination_row}">
<input type="hidden" name="allcount" value="{$pagination_allcount}">
<input type="submit" class="button" name="but_prev" value="Previous">
<input type="submit" class="button" name="but_next" value="Next">
</div>
{/section}
</div> </div>
</form> </form>
{/if}
{if $umfrage_showende == '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>
{/if}
</div> </div>
<!-- <!--
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
@ -167,3 +250,4 @@
<script src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script> <script src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
</body> </body>
</html> </html>
{/if}

View File

@ -1,18 +1,18 @@
<?php <?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' */ from 'F:\git\survey\templates\modern\survey\index.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */ /* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39', 'version' => '3.1.39',
'unifunc' => 'content_6415a5253b6db4_22747192', 'unifunc' => 'content_64175b626c3dc2_11111328',
'has_nocache_code' => false, 'has_nocache_code' => false,
'file_dependency' => 'file_dependency' =>
array ( array (
'2b06f8f36ebdb45c10ebd7bf157223e300660449' => '2b06f8f36ebdb45c10ebd7bf157223e300660449' =>
array ( array (
0 => 'F:\\git\\survey\\templates\\modern\\survey\\index.html', 0 => 'F:\\git\\survey\\templates\\modern\\survey\\index.html',
1 => 1679140131, 1 => 1679252315,
2 => 'file', 2 => 'file',
), ),
), ),
@ -20,8 +20,9 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array ( array (
), ),
),false)) { ),false)) {
function content_6415a5253b6db4_22747192 (Smarty_Internal_Template $_smarty_tpl) { function content_64175b626c3dc2_11111328 (Smarty_Internal_Template $_smarty_tpl) {
?><!doctype html> if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!doctype html>
<html lang="de"> <html lang="de">
<head> <head>
<meta charset="utf-8"> <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"> <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"> <style type="text/css">
body { body {
background-color : #FFF; background-color : #FFF;
@ -58,7 +113,6 @@ function content_6415a5253b6db4_22747192 (Smarty_Internal_Template $_smarty_tpl)
padding-bottom: 20px; padding-bottom: 20px;
padding-left: 20px; padding-left: 20px;
} }
.prog-col { .prog-col {
background-color: #35B6BB; background-color: #35B6BB;
} }
@ -111,6 +165,7 @@ function content_6415a5253b6db4_22747192 (Smarty_Internal_Template $_smarty_tpl)
<body > <body >
<!-- hier kommt der Inhalt der Seite hin --> <!-- hier kommt der Inhalt der Seite hin -->
<div class="container"> <div class="container">
<?php if ($_smarty_tpl->tpl_vars['umfrage_showende']->value != '1') {?>
<div class="progress" style="height: 5px;"> <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;?> <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;?> %" 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> </p>
</h2> </h2>
</div> </div>
<form action="" method='post' name='erfassen'> <form action="?action=umfrage" method='post' name='erfassen'>
<?php <?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_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; $__section_table_data_0_total = $__section_table_data_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data'] = new Smarty_Variable(array()); $_smarty_tpl->tpl_vars['__smarty_section_table_data'] = new Smarty_Variable(array());
if ($__section_table_data_0_total !== 0) { 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']++){ 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 "> <div class="question col-12 ">
<h4> <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 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> </p>
</h4> </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 }?> <?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>
</div> <?php }?>
<br> </div>
<div class="col-12 btn-group-vertical btn-toolbar" role="group" aria-label="Basic radio toggle button group"> <br>
<?php <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_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; $__section_inner_1_total = $__section_inner_1_loop;
$_smarty_tpl->tpl_vars['__smarty_section_inner'] = new Smarty_Variable(array()); $_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']++){ 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; $_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') {?> <?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'];?> <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);?> " 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"> " 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 { ?> <?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'];?> <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'];?> " 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);?> " 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"> " 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 }?> <?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);?> <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'];?> "><?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> </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 <?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 }?>
<?php if ($_smarty_tpl->tpl_vars['umfrage_start0']->value == '2') {?> <?php if ($_smarty_tpl->tpl_vars['umfrage_showfreitext']->value == '1') {?>
<a disabled class="btn btn-light">Zurück</a> <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 }?>
<?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> </div>
</form> </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> </div>
<!-- <!--
<?php echo '<script'; ?> <?php echo '<script'; ?>
@ -246,3 +327,4 @@ $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] = $__section_i
</html> </html>
<?php } <?php }
} }
}