adminbereich weitergemacht
This commit is contained in:
parent
b9e9f89a3d
commit
1b02e82b86
@ -290,74 +290,7 @@ if ($action == 'fragen') {
|
||||
}
|
||||
|
||||
|
||||
if ($action == 'save') {
|
||||
|
||||
|
||||
$umid = $_SESSION["umfrageerf_umid"];
|
||||
|
||||
if (isset($_POST['frage'])) {
|
||||
$frage = $_POST['frage'];
|
||||
}
|
||||
if (isset($_POST['antwort'])) {
|
||||
$antwort = $_POST['antwort'];
|
||||
}
|
||||
|
||||
if (isset($_POST['multiple'])) {
|
||||
if ($_POST['multiple'] == '1') {
|
||||
$multiple = '1';
|
||||
} else {
|
||||
$multiple = '0';
|
||||
}
|
||||
} else {
|
||||
$multiple = '0';
|
||||
}
|
||||
|
||||
# Gibt es die Frage schon
|
||||
$result = $db->query("SELECT count(*) Anz FROM jumi_umfragen_fragen WHERE umid='$umid' and frage='$frage'");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
if ($row['Anz'] == '0' and $frage != '') {
|
||||
$sql1 = $db->query("INSERT INTO jumi_umfragen_fragen ( umid
|
||||
, frage
|
||||
, multiple
|
||||
)
|
||||
VALUES
|
||||
( '$umid'
|
||||
, '$frage'
|
||||
, '$multiple'
|
||||
)
|
||||
");
|
||||
$ufid = $db->insert_id;
|
||||
$_SESSION["umfrageerf_ufid"] = $ufid;
|
||||
} else {
|
||||
$ufid = $_SESSION["umfrageerf_ufid"];
|
||||
$update = $db->query("UPDATE jumi_umfragen_fragen
|
||||
SET frage ='$frage'
|
||||
,multiple ='$multiple'
|
||||
WHERE ufid = $ufid
|
||||
");
|
||||
}
|
||||
$ufid = $_SESSION["umfrageerf_ufid"];
|
||||
|
||||
# Gibt es diese Antwort schon
|
||||
$result2 = $db->query("SELECT count(*) Anz FROM jumi_umfragen_antworten WHERE ufid='$ufid' and antwort='$antwort'");
|
||||
$row2 = $result2->fetch_array();
|
||||
if ($row2['Anz'] == '0' and $antwort != '') {
|
||||
$sql1 = $db->query("INSERT INTO jumi_umfragen_antworten ( ufid
|
||||
, antwort
|
||||
)
|
||||
VALUES
|
||||
( '$ufid'
|
||||
, '$antwort'
|
||||
)
|
||||
");
|
||||
$uaid = $db->insert_id;
|
||||
$_SESSION["umfrageerf_uaid"] = $uaid;
|
||||
}
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=" . $_SERVER['PHP_SELF'] . "?action=fragen&erfassen=1\">";
|
||||
|
||||
|
||||
}
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/admin/$templatename");
|
||||
|
||||
|
149
auswertung/index.php
Normal file
149
auswertung/index.php
Normal file
@ -0,0 +1,149 @@
|
||||
<?php
|
||||
## INDEX gegen DB
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
#$_SESSION['sessionid'] = session_id();
|
||||
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
#require_once("../config.inc.php");
|
||||
require_once("../config/datenbankanbindung.php");
|
||||
$smarty = new SmartyAdmin();
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
$action = $_GET['action'];
|
||||
|
||||
if ($action == '') {
|
||||
$db = dbconnect();
|
||||
|
||||
$query_umid = $db->query("SELECT max(umid) umid
|
||||
FROM jumi_umfragen
|
||||
WHERE datum_von < now()
|
||||
");
|
||||
$row_umid = $query_umid->fetch_array();
|
||||
|
||||
$query_umid_detail = $db->query("SELECT headline, date_format(datum_von, '%d.%m.%Y - %H:%i') datum_von, date_format(datum_bis, '%d.%m.%Y - %H:%i') datum_bis, freitext
|
||||
FROM jumi_umfragen
|
||||
WHERE umid=$row_umid[umid]
|
||||
");
|
||||
$row_umid_detail = $query_umid_detail->fetch_array();
|
||||
$smarty->assign('result_headline', "$row_umid_detail[headline]");
|
||||
$smarty->assign('result_datum_von', "$row_umid_detail[datum_von]");
|
||||
$smarty->assign('result_datum_bis', "$row_umid_detail[datum_bis]");
|
||||
|
||||
# Anzahl abgeschlossene Umfragen
|
||||
$query_fertige = $db->query("SELECT count(*) Anz_abgeschlossen
|
||||
FROM jumi_umfragen_ende
|
||||
WHERE umid =$row_umid[umid]
|
||||
");
|
||||
$row_fertige = $query_fertige->fetch_array();
|
||||
$smarty->assign('result_anz_fertige', "$row_fertige[Anz_abgeschlossen]");
|
||||
|
||||
# Anzahl angefangener Teilnehmer
|
||||
$query_angefangen = $db->query("SELECT count(distinct concat(ip,session))-$row_fertige[Anz_abgeschlossen] Anz_angefangen
|
||||
FROM jumi_umfragen_ergebnisse
|
||||
WHERE ufid in (select ufid from jumi_umfragen_fragen where umid =$row_umid[umid])
|
||||
");
|
||||
$row_angefangen = $query_angefangen->fetch_array();
|
||||
$smarty->assign('result_anz_angefangen', "$row_angefangen[Anz_angefangen]");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$query = "SELECT ufid, frage, multiple
|
||||
FROM jumi_umfragen_fragen
|
||||
WHERE umid = $row_umid[umid]";
|
||||
$result = $db->query($query);
|
||||
|
||||
|
||||
// Ergebnisse lesen und an den Client ausgeben
|
||||
while ($row = $result->fetch_array()) {
|
||||
$value2 = '';
|
||||
unset($inner1);
|
||||
|
||||
# Wie viele User haben Frage 1 beantwortet
|
||||
$result_anz_userfrage = $db->query("SELECT count(distinct concat(ip,session)) Anz
|
||||
FROM jumi_umfragen_ergebnisse
|
||||
WHERE ufid = $row[ufid]
|
||||
");
|
||||
$row_anz_userfrage = $result_anz_userfrage->fetch_array();
|
||||
|
||||
# Wie viele Antworten gibt es zur Frage: Das sind 100%
|
||||
$result_anz_antworten = $db->query("SELECT count(ufid) Anz
|
||||
FROM jumi_umfragen_ergebnisse
|
||||
WHERE ufid = $row[ufid]
|
||||
");
|
||||
$row_anz_antworten = $result_anz_antworten->fetch_array();
|
||||
|
||||
|
||||
$query2 = "SELECT uaid, antwort
|
||||
FROM jumi_umfragen_antworten
|
||||
WHERE ufid=$row[ufid]
|
||||
ORDER BY userorder ASC, uaid ASC
|
||||
";
|
||||
|
||||
|
||||
$result2 = $db->query($query2) or die("Cannot execute query2");
|
||||
$ln2 = 0;
|
||||
|
||||
while ($row2 = $result2->fetch_array()) {
|
||||
|
||||
# Wie viele haben Antwort auf aktuelle Frage gegeben
|
||||
$result_cur_antw = $db->query("SELECT count(*) Anz
|
||||
FROM jumi_umfragen_ergebnisse
|
||||
WHERE uaid = $row2[uaid]");
|
||||
$row_cur_antw = $result_cur_antw->fetch_array();
|
||||
|
||||
if($row_anz_antworten['Anz'] != '0'){
|
||||
$prozent = round(100/$row_anz_antworten['Anz']*$row_cur_antw['Anz'],0);
|
||||
}else{
|
||||
$prozent = 0;
|
||||
}
|
||||
|
||||
$inner1[$ln2]['prozent'] = $prozent;
|
||||
$inner1[$ln2]['uaid'] = $row2['uaid'];
|
||||
$inner1[$ln2]['antwort'] = $row2['antwort'];
|
||||
$value2 = $inner1;
|
||||
$ln2++;
|
||||
}
|
||||
if($row_anz_userfrage['Anz'] != 0){
|
||||
$anz_userfrage = $row_anz_userfrage['Anz'];
|
||||
}else{
|
||||
$anz_userfrage = 0;
|
||||
}
|
||||
$row['inner'] = $value2;
|
||||
$row['anz_userfrage'] = $anz_userfrage;
|
||||
$row['anz_antworten_frage'] = $row_anz_antworten['Anz'];
|
||||
$table_data[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $table_data);
|
||||
|
||||
# echo"<pre>";
|
||||
# print_r($table_data);
|
||||
# echo"</pre>";
|
||||
|
||||
|
||||
$query3 = "SELECT freitext
|
||||
FROM jumi_umfragen_erg_freitext
|
||||
WHERE umid = $row_umid[umid]
|
||||
ORDER BY uefid desc";
|
||||
$result3 = $db->query($query3);
|
||||
|
||||
|
||||
// Ergebnisse lesen und an den Client ausgeben
|
||||
while ($row3 = $result3->fetch_array()) {
|
||||
$table_data3[] = $row3;
|
||||
}
|
||||
$smarty->assign('table_data3', $table_data3);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("modern/auswertung/$templatename");
|
||||
?>
|
@ -2,36 +2,139 @@
|
||||
require_once("../config.inc.php");
|
||||
$function = $_POST['function'];
|
||||
|
||||
if($function == 'delete'){
|
||||
$tabelle = $_POST['tabelle'];
|
||||
$spalte = $_POST['spalte'];
|
||||
$id = $_POST['id'];
|
||||
$stmt = $db->query("DELETE FROM $tabelle WHERE $spalte = $id");
|
||||
if($stmt){
|
||||
echo "success: DELETE FROM $tabelle WHERE $spalte = $id";
|
||||
}else{
|
||||
echo "error: DELETE FROM $tabelle WHERE $spalte = $id";
|
||||
}
|
||||
if ($function == 'erfmultiple') {
|
||||
$multiple = $_POST['multiple'];
|
||||
$umid = $_SESSION["umfrageerf_umid"];
|
||||
$ufid = $_SESSION["umfrageerf_ufid"];
|
||||
if($ufid != ''){
|
||||
if (isset($multiple)) {
|
||||
if ($multiple == '1') {
|
||||
$multiple = '1';
|
||||
} else {
|
||||
$multiple = '0';
|
||||
}
|
||||
} else {
|
||||
$multiple = '0';
|
||||
}
|
||||
|
||||
$update = $db->query("UPDATE jumi_umfragen_fragen
|
||||
SET multiple ='$multiple'
|
||||
WHERE ufid = $ufid
|
||||
");
|
||||
if($update){
|
||||
echo "success";
|
||||
}else{
|
||||
echo -1;
|
||||
}
|
||||
|
||||
}else{
|
||||
echo -1;
|
||||
}
|
||||
}
|
||||
|
||||
if ($function == 'save') {
|
||||
$frage = $_POST['frage'];
|
||||
$antwort = $_POST['antwort'];
|
||||
$multiple = $_POST['multiple'];
|
||||
|
||||
|
||||
$umid = $_SESSION["umfrageerf_umid"];
|
||||
|
||||
if (isset($_POST['frage'])) {
|
||||
$frage = $_POST['frage'];
|
||||
}
|
||||
if (isset($_POST['antwort'])) {
|
||||
$antwort = $_POST['antwort'];
|
||||
}
|
||||
|
||||
if($function == 'deleteQuestion'){
|
||||
|
||||
$id2 = $_POST['id2'];
|
||||
|
||||
$stmt1 = $db->query("DELETE FROM jumi_umfragen_antworten WHERE ufid = $id2");
|
||||
$stmt2 = $db->query("DELETE FROM jumi_umfragen_fragen WHERE ufid = $id2");
|
||||
# ggf. bereis Abstimmergebnisse löschen
|
||||
|
||||
# Sonst werden keine neue Fragen erfasst
|
||||
# unset($_SESSION["umfrageerf_ufid"]);
|
||||
|
||||
|
||||
if($stmt1 and $stmt2){
|
||||
echo "DELETE FROM jumi_umfragen_antworten WHERE ufid = $id2 | DELETE FROM jumi_umfragen_fragen WHERE ufid = $id2";
|
||||
}else{
|
||||
echo "Nicht geklappt";
|
||||
}
|
||||
if (isset($multiple)) {
|
||||
if ($multiple == '1') {
|
||||
$multiple = '1';
|
||||
} else {
|
||||
$multiple = '0';
|
||||
}
|
||||
} else {
|
||||
$multiple = '0';
|
||||
}
|
||||
|
||||
# Gibt es die Frage schon
|
||||
$result = $db->query("SELECT count(*) Anz FROM jumi_umfragen_fragen WHERE umid='$umid' and frage='$frage'");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
?>
|
||||
if ($row['Anz'] == '0' and $frage != '') {
|
||||
$sql1 = $db->query("INSERT INTO jumi_umfragen_fragen ( umid
|
||||
, frage
|
||||
, multiple
|
||||
)
|
||||
VALUES
|
||||
( '$umid'
|
||||
, '$frage'
|
||||
, '$multiple'
|
||||
)
|
||||
");
|
||||
$ufid = $db->insert_id;
|
||||
$_SESSION["umfrageerf_ufid"] = $ufid;
|
||||
} else {
|
||||
$ufid = $_SESSION["umfrageerf_ufid"];
|
||||
$update = $db->query("UPDATE jumi_umfragen_fragen
|
||||
SET frage ='$frage'
|
||||
,multiple ='$multiple'
|
||||
WHERE ufid = $ufid
|
||||
");
|
||||
}
|
||||
$ufid = $_SESSION["umfrageerf_ufid"];
|
||||
|
||||
# Gibt es diese Antwort schon
|
||||
$result2 = $db->query("SELECT count(*) Anz FROM jumi_umfragen_antworten WHERE ufid='$ufid' and antwort='$antwort'");
|
||||
$row2 = $result2->fetch_array();
|
||||
if ($row2['Anz'] == '0' and $antwort != '') {
|
||||
$sql1 = $db->query("INSERT INTO jumi_umfragen_antworten ( ufid
|
||||
, antwort
|
||||
)
|
||||
VALUES
|
||||
( '$ufid'
|
||||
, '$antwort'
|
||||
)
|
||||
");
|
||||
$uaid = $db->insert_id;
|
||||
$_SESSION["umfrageerf_uaid"] = $uaid;
|
||||
}
|
||||
echo "success";
|
||||
#echo "<meta http-equiv=\"refresh\" content=\"0; URL=" . $_SERVER['PHP_SELF'] . "?action=fragen&erfassen=1\">";
|
||||
|
||||
}
|
||||
|
||||
|
||||
if ($function == 'delete') {
|
||||
$tabelle = $_POST['tabelle'];
|
||||
$spalte = $_POST['spalte'];
|
||||
$id = $_POST['id'];
|
||||
$stmt = $db->query("DELETE FROM $tabelle WHERE $spalte = $id");
|
||||
if ($stmt) {
|
||||
echo "success: DELETE FROM $tabelle WHERE $spalte = $id";
|
||||
} else {
|
||||
echo "error: DELETE FROM $tabelle WHERE $spalte = $id";
|
||||
}
|
||||
}
|
||||
|
||||
if ($function == 'deleteQuestion') {
|
||||
|
||||
$id2 = $_POST['id2'];
|
||||
|
||||
$stmt1 = $db->query("DELETE FROM jumi_umfragen_antworten WHERE ufid = $id2");
|
||||
$stmt2 = $db->query("DELETE FROM jumi_umfragen_fragen WHERE ufid = $id2");
|
||||
# ggf. bereis Abstimmergebnisse löschen
|
||||
|
||||
# Sonst werden keine neue Fragen erfasst
|
||||
# unset($_SESSION["umfrageerf_ufid"]);
|
||||
|
||||
|
||||
if ($stmt1 and $stmt2) {
|
||||
echo "DELETE FROM jumi_umfragen_antworten WHERE ufid = $id2 | DELETE FROM jumi_umfragen_fragen WHERE ufid = $id2";
|
||||
} else {
|
||||
echo "Nicht geklappt";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
@ -1,45 +1,114 @@
|
||||
function erf_multiple(){
|
||||
var checkBox = document.getElementById("multiple");
|
||||
|
||||
function onClickDelete(id){
|
||||
|
||||
document.getElementById("antwort").value= "";
|
||||
r = confirm('Antwort löschen1?');
|
||||
if(r) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_erfassen.php',
|
||||
data: {
|
||||
'function': 'delete',
|
||||
'tabelle': 'jumi_umfragen_antworten',
|
||||
'spalte': 'uaid',
|
||||
'id': id
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
alert(result);
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
console.log(xhr);
|
||||
}
|
||||
});
|
||||
if(checkBox.checked == true){
|
||||
var var_multiple = 1;
|
||||
}else{
|
||||
var var_multiple = 0;
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_erfassen.php',
|
||||
data: {
|
||||
'function': 'erfmultiple',
|
||||
'multiple': var_multiple
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
// if(result==-1){
|
||||
// alert("Bitte zunächst die Frage erfassen");
|
||||
// $(document).ajaxStop(function(){
|
||||
// window.location = "?action=fragen&erfassen=1";
|
||||
// });
|
||||
// }else{
|
||||
// $(document).ajaxStop(function(){
|
||||
// window.location = "?action=fragen&erfassen=1";
|
||||
// });
|
||||
// }
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
console.log(xhr);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function erfassensave(){
|
||||
var frage = document.getElementById("frage").value;
|
||||
var antwort = document.getElementById("antwort").value;
|
||||
var checkBox = document.getElementById("multiple");
|
||||
|
||||
function onClickDeleteQuestion(id2){
|
||||
document.getElementById("frage").value = "";
|
||||
document.getElementById("antwort").value= "";
|
||||
r = confirm('Gesamte Frage löschen?');
|
||||
if(r) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_erfassen.php',
|
||||
data: {
|
||||
'function': 'deleteQuestion',
|
||||
'id2': id2
|
||||
},
|
||||
success: function(result){
|
||||
// document.getElementById("del").innerHTML = "<strong>entfernt</strong>";
|
||||
//Text einblenden geht nicht, da ein Refresh gemacht wird. Dann sieht man den Text nicht
|
||||
}
|
||||
});
|
||||
if(checkBox.checked == true){
|
||||
var var_multiple = 1;
|
||||
}else{
|
||||
var var_multiple = 0;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_erfassen.php',
|
||||
data: {
|
||||
'function': 'save',
|
||||
'frage': frage,
|
||||
'antwort': antwort,
|
||||
'multiple': var_multiple
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
$(document).ajaxStop(function(){
|
||||
window.location = "?action=fragen&erfassen=1";
|
||||
});
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
console.log(xhr);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function onClickDelete(id) {
|
||||
|
||||
document.getElementById("antwort").value = "";
|
||||
r = confirm('Antwort löschen?');
|
||||
if (r) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_erfassen.php',
|
||||
data: {
|
||||
'function': 'delete',
|
||||
'tabelle': 'jumi_umfragen_antworten',
|
||||
'spalte': 'uaid',
|
||||
'id': id
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
$(document).ajaxStop(function(){
|
||||
window.location = "?action=fragen&erfassen=1";
|
||||
});
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
console.log(xhr);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function onClickDeleteQuestion(id2) {
|
||||
document.getElementById("frage").value = "";
|
||||
document.getElementById("antwort").value = "";
|
||||
r = confirm('Gesamte Frage löschen?');
|
||||
if (r) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_erfassen.php',
|
||||
data: {
|
||||
'function': 'deleteQuestion',
|
||||
'id2': id2
|
||||
},
|
||||
success: function(result) {
|
||||
// document.getElementById("del").innerHTML = "<strong>entfernt</strong>";
|
||||
//Text einblenden geht nicht, da ein Refresh gemacht wird. Dann sieht man den Text nicht
|
||||
$(document).ajaxStop(function(){
|
||||
window.location = "?action=fragen&erfassen=1";
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
@ -281,6 +281,11 @@
|
||||
{literal}
|
||||
|
||||
|
||||
function keysave(ele) {
|
||||
if(event.key === 'Enter') {
|
||||
erfassensave();
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
@ -368,7 +373,9 @@
|
||||
<!--Anwendung-->
|
||||
<script src="../js/components/admin_erfassen.js"></script>
|
||||
|
||||
<form action="?action=save" method='post' name='erfassen'>
|
||||
<!-- <form action="?action=save" method='post' name='erfassen'>
|
||||
-->
|
||||
|
||||
{if $umfrageerf_error == '1'}
|
||||
<table width="70%" class="errorTable" align="center">
|
||||
<tr>
|
||||
@ -394,7 +401,7 @@
|
||||
Frage:
|
||||
</td>
|
||||
<td valign="top">
|
||||
<input class="form-control" type="text" name="frage" id="frage" value="{$umfrageerf_value_frage}" size="60">
|
||||
<input class="form-control" type="text" name="frage" id="frage" value="{$umfrageerf_value_frage}" size="60" onkeydown="keysave(this)">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -408,7 +415,7 @@
|
||||
Antwort:
|
||||
</td>
|
||||
<td valign="top">
|
||||
<input class="form-control" type="text" name="antwort" id="antwort" value="{$umfrageerf_value_antwort}" size="60">
|
||||
<input class="form-control" type="text" name="antwort" id="antwort" value="{$umfrageerf_value_antwort}" size="60" onkeydown="keysave(this)">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -422,7 +429,7 @@
|
||||
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}>
|
||||
<input class="form-check-input" type="checkbox" name="multiple" id="multiple" value="1" onclick="erf_multiple();" {if $umfrageerf_value_multiple == 1} checked {/if}>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -432,7 +439,10 @@
|
||||
<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 />
|
||||
@ -485,9 +495,12 @@
|
||||
{/section}
|
||||
</table>
|
||||
<div id="msg"></div>
|
||||
</form>
|
||||
<p align='center'><button class="btn btn-delete btn-danger" onclick="onClickDeleteQuestion({$umfrageerf_value_ufid})">Frage Löschen</button></p>
|
||||
{/if}
|
||||
<!--
|
||||
</form>
|
||||
-->
|
||||
<p align='center'><button class="btn btn-delete btn-danger" onclick="onClickDeleteQuestion({$umfrageerf_value_ufid})">Frage Löschen</button></p>
|
||||
|
||||
</div>
|
||||
<div class="tab-pane fade mt-2" id="neuefrage" role="tabpanel" aria-labelledby="group-dropdown2-tab" >
|
||||
</div>
|
||||
|
116
templates/modern/auswertung/index.html
Normal file
116
templates/modern/auswertung/index.html
Normal file
@ -0,0 +1,116 @@
|
||||
{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.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">{$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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
{section name=table_data loop=$table_data}
|
||||
<p class="text-primary">{$table_data[table_data].frage}<br>({$table_data[table_data].anz_userfrage} Personen)</p>
|
||||
{if $table_data[table_data].multiple == '1'}
|
||||
<p class="small">(Multiple Choice Frage)</p>
|
||||
{/if}
|
||||
{section name=inner loop=$table_data[table_data].inner}
|
||||
<div class="row">
|
||||
<div class="col-5">
|
||||
<label>
|
||||
<p class="small">{$table_data[table_data].inner[inner].antwort}</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-7">
|
||||
<div class="progress">
|
||||
<div class="progress-bar" role="progressbar" aria-valuenow="{$table_data[table_data].inner[inner].prozent}" aria-valuemin="0" aria-valuemax="100" style="width: {$table_data[table_data].inner[inner].prozent}%;"><span>{$table_data[table_data].inner[inner].prozent}%</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/section}
|
||||
<br>
|
||||
{/section}
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="grid">
|
||||
|
||||
<div class="col-12 ">
|
||||
<table class="table table-striped">
|
||||
{section name=table_data3 loop=$table_data3}
|
||||
{if $smarty.section.table_data3.rownum == 1}
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><p class="text-primary">Bemerkungen</p></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{/if}
|
||||
<tr>
|
||||
<td>{$table_data3[table_data3].freitext}</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{/if}
|
@ -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 }
|
||||
}
|
||||
}
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user