Vor zurückbutton
This commit is contained in:
parent
f0a0848c5d
commit
15ec7a0a34
12
survey/config.php
Normal file
12
survey/config.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
$host = "localhost"; /* Host name */
|
||||
$user = "root"; /* User */
|
||||
$password = ""; /* Password */
|
||||
$dbname = "survey"; /* Database name */
|
||||
|
||||
$con = mysqli_connect($host, $user, $password,$dbname);
|
||||
// Check connection
|
||||
if (!$con) {
|
||||
die("Connection failed: " . mysqli_connect_error());
|
||||
}
|
||||
?>
|
@ -34,7 +34,7 @@ if(isset($_POST['save'])){
|
||||
WHERE ufid = $frage;");
|
||||
$row_multiple = $result_multiple->fetch_array();
|
||||
if($row_multiple['multiple'] == '0'){
|
||||
echo "Antwort: $_POST[antwort]<br>";
|
||||
# echo "Antwort: $_POST[antwort]<br>";
|
||||
}
|
||||
if($row_multiple['multiple'] == '1'){
|
||||
$query = "SELECT uaid
|
||||
@ -45,7 +45,7 @@ if(isset($_POST['save'])){
|
||||
while ($row = $result->fetch_array()){
|
||||
$antwort = $_POST['antwort_'.$row['uaid']];
|
||||
if($antwort != ''){
|
||||
echo "Antwort: $antwort<br>";
|
||||
# echo "Antwort: $antwort<br>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -55,10 +55,31 @@ if(isset($_POST['save'])){
|
||||
|
||||
|
||||
|
||||
$rowperpage = 1;
|
||||
$row1234 = 0;
|
||||
|
||||
// Previous Button
|
||||
if(isset($_POST['but_prev'])){
|
||||
$row1234 = $_POST['row'];
|
||||
$row1234 -= $rowperpage;
|
||||
if( $row1234 < 0 ){
|
||||
$row1234 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Next Button
|
||||
if(isset($_POST['but_next'])){
|
||||
$row1234 = $_POST['row'];
|
||||
$allcount = $_POST['allcount'];
|
||||
|
||||
$val = $row1234 + $rowperpage;
|
||||
if( $val < $allcount ){
|
||||
$row1234 = $val;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$smarty->assign('pagination_row', $row1234);
|
||||
|
||||
|
||||
|
||||
@ -80,22 +101,18 @@ if(isset($_POST['save'])){
|
||||
WHERE umid = $umid;");
|
||||
$row = $result->fetch_array();
|
||||
$smarty->assign('umfrage_progress', $row['progress']);
|
||||
$total = $row['total'];
|
||||
$allcount = $row['total'];
|
||||
$smarty->assign('pagination_allcount', $allcount);
|
||||
|
||||
#$show = ceil($total/$limit); //Seitenzahlen aufrunden
|
||||
|
||||
if(isset($_POST['start'])){
|
||||
echo "hier|$total|$limit|$start";
|
||||
#echo "hier|$total|$limit|$start";
|
||||
$start = ($_POST['start'] >= $total) ? $total - $limit : $start;
|
||||
}else{
|
||||
|
||||
$start = 0;
|
||||
}
|
||||
echo"
|
||||
<hr>
|
||||
$start
|
||||
<hr>
|
||||
";
|
||||
|
||||
#echo "$row[Anz_limit]<br>";
|
||||
|
||||
@ -104,7 +121,7 @@ $query = "SELECT ufid, frage, multiple
|
||||
FROM jumi_umfragen_fragen
|
||||
WHERE umid = 1
|
||||
ORDER BY ufid ASC
|
||||
LIMIT ".$start.",1";
|
||||
LIMIT ".$row1234.",1";
|
||||
$result = $db->query( $query);
|
||||
|
||||
// Ergebnisse lesen und an den Client ausgeben
|
||||
@ -141,6 +158,7 @@ $smarty->assign('table_data', $table_data);
|
||||
// Zurück- und Vorblättern
|
||||
if ($start > 0){
|
||||
$newStart = ($start - $limit < 0) ? 0 : ($start-$limit); // wenn $start-$limit kleiner 0 dann $newstart=0 sonst $start-$limit
|
||||
echo "<br>1: ".$newStart;
|
||||
$smarty->assign('umfrage_start0', "1");
|
||||
$smarty->assign('umfrage_start_newstart', "$newStart");
|
||||
}else{
|
||||
@ -150,6 +168,7 @@ $smarty->assign('table_data', $table_data);
|
||||
|
||||
if ($start + $limit < $total){
|
||||
$newStart = $start + $limit;
|
||||
echo "<br>2: ".$newStart;
|
||||
$smarty->assign('umfrage_end0', "1");
|
||||
$smarty->assign('umfrage_end_newstart', "$newStart");
|
||||
$smarty->assign('umfrage_end_last', "$last");
|
||||
|
54
survey/style.css
Normal file
54
survey/style.css
Normal file
@ -0,0 +1,54 @@
|
||||
.container{
|
||||
border:1px solid darkgrey;
|
||||
border-radius:3px;
|
||||
padding:5px;
|
||||
width: 60%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Table */
|
||||
#emp_table {
|
||||
border:3px solid lavender;
|
||||
border-radius:3px;
|
||||
}
|
||||
|
||||
/* Table header */
|
||||
.tr_header{
|
||||
background-color:dodgerblue;
|
||||
}
|
||||
.tr_header th{
|
||||
color:white;
|
||||
padding:10px 0px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
/* Table rows and columns */
|
||||
#emp_table td{
|
||||
padding:10px;
|
||||
}
|
||||
#emp_table tr:nth-child(even){
|
||||
background-color:lavender;
|
||||
color:black;
|
||||
}
|
||||
|
||||
/* */
|
||||
#div_pagination{
|
||||
width:100%;
|
||||
margin-top:5px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.button{
|
||||
border-radius:3px;
|
||||
border:0px;
|
||||
background-color:mediumpurple;
|
||||
color:white;
|
||||
padding:10px 20px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.divnum_rows{
|
||||
display: inline-block;
|
||||
text-align: right;
|
||||
width: 30%;
|
||||
}
|
85
survey/sw.php
Normal file
85
survey/sw.php
Normal file
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
## INDEX gegen DB
|
||||
if(!isset($_SESSION)) { session_start(); }
|
||||
#$_SESSION['sessionid'] = session_id();
|
||||
|
||||
|
||||
|
||||
$action = $_GET['action'];
|
||||
if($action == ''){
|
||||
|
||||
|
||||
|
||||
// Datendefinition
|
||||
$start = (isset($_POST['start'])) ? abs((int)$_POST['start']) : 0;
|
||||
echo $start."<br>";
|
||||
|
||||
if(isset($_GET['start'])){
|
||||
$start = $_GET['start'];
|
||||
}
|
||||
unset($_GET['start']);
|
||||
$limit = 1; // Fragen pro Seite
|
||||
$total = 8;
|
||||
$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
|
||||
echo "$start<br>";
|
||||
$akt = round((($start-$limit)/$limit+2),0);
|
||||
|
||||
|
||||
|
||||
// Zurück- und Vorblättern
|
||||
if ($start > 0){
|
||||
$newStart = ($start - $limit < 0) ? 0 : ($start-$limit); // wenn $start-$limit kleiner 0 dann $newstart=0 sonst $start-$limit
|
||||
|
||||
$umfrage_start0 = 1;
|
||||
$umfrage_start_newstart = $newStart;
|
||||
}else{
|
||||
$umfrage_start0 = 2;
|
||||
}
|
||||
|
||||
|
||||
if ($start + $limit < $total){
|
||||
$newStart = $start + $limit;
|
||||
|
||||
$umfrage_end0 = 1;
|
||||
$umfrage_end_newstart = $newStart;
|
||||
$umfrage_end_last = $last;
|
||||
}else{
|
||||
$umfrage_end0=2;
|
||||
}
|
||||
|
||||
echo "<form action=\"\" method='post' name='erfassen'>";
|
||||
|
||||
if($umfrage_start0 == '1'){
|
||||
echo"
|
||||
<input type=\"hidden\" name=\"start\" value=\"$umfrage_start_newstart\">
|
||||
<a href=\"?start=$umfrage_start_newstart\">Zurück -> $umfrage_start_newstart</a>
|
||||
";
|
||||
}
|
||||
if($umfrage_start0 == '2'){
|
||||
echo"
|
||||
<a disabled class=\"btn btn-light\">Zurück</a>
|
||||
";
|
||||
}
|
||||
if($umfrage_end0 == '1'){
|
||||
echo"
|
||||
<input type=\"hidden\" name=\"start\" value=\"$umfrage_end_newstart\">
|
||||
<input type=\"hidden\" name=\"save\" value=\"$table_data[table_data].ufid\">
|
||||
<input type='submit' class=\"btn btn-primary\" name='senden' value=\"Weiter -> $umfrage_end_newstart\">
|
||||
";
|
||||
}
|
||||
if($umfrage_end0 == '2'){
|
||||
echo"
|
||||
<input type=\"hidden\" name=\"start\" value=\"$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 -> $umfrage_end_newstart\">
|
||||
";
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo "</form>";
|
||||
|
||||
}
|
||||
|
||||
?>
|
12
survey/test.php
Normal file
12
survey/test.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
$transport = array('1', '2', '4');
|
||||
$mode = current($transport); // $mode = 'foot';
|
||||
echo $mode."<br>";
|
||||
|
||||
$mode = next($transport); // $mode = 'bike';
|
||||
echo $mode."<br>";
|
||||
|
||||
$mode = prev($transport); // $mode = 'bike';
|
||||
echo $mode."<br>";
|
||||
|
||||
?>
|
76
survey/test2.php
Normal file
76
survey/test2.php
Normal file
@ -0,0 +1,76 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<!-- https://makitweb.com/create-pagination-with-php/ -->
|
||||
<head>
|
||||
<link href="style.css" type="text/css" rel="stylesheet">
|
||||
<?php
|
||||
include("config.php");
|
||||
|
||||
$rowperpage = 1;
|
||||
$row = 0;
|
||||
|
||||
// Previous Button
|
||||
if(isset($_POST['but_prev'])){
|
||||
$row = $_POST['row'];
|
||||
$row -= $rowperpage;
|
||||
if( $row < 0 ){
|
||||
$row = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Next Button
|
||||
if(isset($_POST['but_next'])){
|
||||
$row = $_POST['row'];
|
||||
$allcount = $_POST['allcount'];
|
||||
|
||||
$val = $row + $rowperpage;
|
||||
if( $val < $allcount ){
|
||||
$row = $val;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<table width="100%" id="emp_table" border="0">
|
||||
<tr class="tr_header">
|
||||
<th>S.no</th>
|
||||
<th>Name</th>
|
||||
<th>Salary</th>
|
||||
</tr>
|
||||
<?php
|
||||
// count total number of rows
|
||||
$sql = "SELECT COUNT(*) AS cntrows FROM jumi_adminlog";
|
||||
$result = mysqli_query($con,$sql);
|
||||
$fetchresult = mysqli_fetch_array($result);
|
||||
$allcount = $fetchresult['cntrows'];
|
||||
|
||||
// selecting rows
|
||||
$sql = "SELECT * FROM jumi_adminlog ORDER BY lid ASC limit $row,".$rowperpage;
|
||||
$result = mysqli_query($con,$sql);
|
||||
$sno = $row + 1;
|
||||
while($fetch = mysqli_fetch_array($result)){
|
||||
$name = $fetch['ip'];
|
||||
$salary = $fetch['user_agent'];
|
||||
?>
|
||||
<tr>
|
||||
<td align='center'><?php echo $sno; ?></td>
|
||||
<td align='center'><?php echo $name; ?></td>
|
||||
<td align='center'><?php echo $salary; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sno ++;
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<form method="post" action="">
|
||||
<div id="div_pagination">
|
||||
<input type="hidden" name="row" value="<?php echo $row; ?>">
|
||||
<input type="hidden" name="allcount" value="<?php echo $allcount; ?>">
|
||||
<input type="submit" class="button" name="but_prev" value="Previous">
|
||||
<input type="submit" class="button" name="but_next" value="Next">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -119,31 +119,39 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
<div class="col-12 btn-group">
|
||||
{if $umfrage_start0 == '1'}
|
||||
<!--<a href="?start={$umfrage_start_newstart}" class="btn btn-light">Zurück</a>-->
|
||||
<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 $umfrage_start0 == '2'}
|
||||
<a disabled class="btn btn-light">Zurück</a>
|
||||
{/if}
|
||||
{if $umfrage_end0 == '1'}
|
||||
<!--<a href="?start={$umfrage_end_newstart}&save={$table_data[table_data].ufid}" class="btn btn-primary">Weiter</a>-->
|
||||
<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'}
|
||||
<!--<a href="?start={$umfrage_end_newstart}&save={$table_data[table_data].ufid}&exit=1" class="btn btn-primary">Umfrage beenden</a>-->
|
||||
<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>
|
||||
|
@ -0,0 +1,248 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-18 12:48:53
|
||||
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',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'2b06f8f36ebdb45c10ebd7bf157223e300660449' =>
|
||||
array (
|
||||
0 => 'F:\\git\\survey\\templates\\modern\\survey\\index.html',
|
||||
1 => 1679140131,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_6415a5253b6db4_22747192 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?><!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;
|
||||
}
|
||||
.headline {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
.question {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 1px;
|
||||
padding-left: 10px;
|
||||
border-top-left-radius: 10px;
|
||||
border-top-right-radius: 10px;
|
||||
border-bottom-right-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
color: #FFF;
|
||||
background-color: #35B6BB;
|
||||
}
|
||||
.answer {
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.prog-col {
|
||||
background-color: #35B6BB;
|
||||
}
|
||||
.btn-outline-primary{
|
||||
--bs-btn-color: #0D7377;
|
||||
--bs-btn-border-color: #0D7377;
|
||||
--bs-btn-hover-color: #fff;
|
||||
--bs-btn-hover-bg: #0D7377;
|
||||
--bs-btn-hover-border-color: #0D7377;
|
||||
--bs-btn-focus-shadow-rgb: 13, 110, 253;
|
||||
--bs-btn-active-color: #fff;
|
||||
--bs-btn-active-bg: #0D7377;
|
||||
--bs-btn-active-border-color: #0D7377;
|
||||
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--bs-btn-disabled-color: #0D7377;
|
||||
--bs-btn-disabled-bg: transparent;
|
||||
--bs-btn-disabled-border-color: #0D7377;
|
||||
--bs-gradient: none;
|
||||
background-color: #F8F9F9;
|
||||
}
|
||||
.btn-group-vertical > .btn{
|
||||
margin-bottom:20px;
|
||||
border-radius:20px !important;
|
||||
}
|
||||
.btn-group > .btn{
|
||||
margin-bottom:20px;
|
||||
border-radius:20px !important;
|
||||
}
|
||||
.btn-primary {
|
||||
--bs-btn-color: #fff;
|
||||
--bs-btn-bg: #0D7377;
|
||||
--bs-btn-border-color: #0D7377;
|
||||
--bs-btn-hover-color: #fff;
|
||||
--bs-btn-hover-bg: #35B6BB;
|
||||
--bs-btn-hover-border-color: #0BA7AD;
|
||||
--bs-btn-focus-shadow-rgb: 49, 132, 253;
|
||||
--bs-btn-active-color: #fff;
|
||||
--bs-btn-active-bg: #0BA7AD;
|
||||
--bs-btn-active-border-color: #0a53be;
|
||||
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--bs-btn-disabled-color: #fff;
|
||||
--bs-btn-disabled-bg: #0D7377;
|
||||
--bs-btn-disabled-border-color: #0D7377;
|
||||
}
|
||||
.smaller{
|
||||
font-size: 0.6em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body >
|
||||
<!-- hier kommt der Inhalt der Seite hin -->
|
||||
<div class="container">
|
||||
<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;?>
|
||||
" aria-valuemin="0" aria-valuemax="100"></div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="headline col-12 bg-white">
|
||||
<h2>
|
||||
<p class="text-center"><?php echo $_smarty_tpl->tpl_vars['umfrage_headline']->value;?>
|
||||
</p>
|
||||
</h2>
|
||||
</div>
|
||||
<form action="" method='post' name='erfassen'>
|
||||
<?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'];?>
|
||||
</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
|
||||
$__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']++){
|
||||
$_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'];?>
|
||||
" 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'];?>
|
||||
" 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);?>
|
||||
"><?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">
|
||||
<?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 }?>
|
||||
<?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>
|
||||
</div>
|
||||
<!--
|
||||
<?php echo '<script'; ?>
|
||||
src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"><?php echo '</script'; ?>
|
||||
>
|
||||
<?php echo '<script'; ?>
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"><?php echo '</script'; ?>
|
||||
>
|
||||
<?php echo '<script'; ?>
|
||||
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-a5N7Y/aK3qNeh15eJKGWxsqtnX/wWdSZSKp+81YjTmS15nvnvxKHuzaWwXHDli+4" crossorigin="anonymous"><?php echo '</script'; ?>
|
||||
>
|
||||
-->
|
||||
<?php echo '<script'; ?>
|
||||
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
|
||||
>
|
||||
<?php echo '<script'; ?>
|
||||
src="../bootstrap/node_modules/@popperjs/core/dist/umd/popper.min.js"><?php echo '</script'; ?>
|
||||
>
|
||||
<?php echo '<script'; ?>
|
||||
src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"><?php echo '</script'; ?>
|
||||
>
|
||||
</body>
|
||||
</html>
|
||||
<?php }
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user