adminbereich weitergemacht

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

View File

@ -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>