Angemeldet bleiben

This commit is contained in:
aschwarz
2023-03-29 16:22:45 +02:00
parent a675b295e7
commit 670599777b
62 changed files with 1668 additions and 14210 deletions

View File

@ -0,0 +1,74 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-29 07:51:08
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\error.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_6423d1cc31fec2_36900291',
'has_nocache_code' => false,
'file_dependency' =>
array (
'1eab88de3a8f7e0713e4fc445f180dd3b5f4785e' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\error.html',
1 => 1680067901,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6423d1cc31fec2_36900291 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html lang="en">
<head>
<title>JU & MI Startseite</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
>
</head>
<body class="sb-nav-fixed">
<div id="navtop"></div>
<?php echo '<script'; ?>
>
$(function(){
// im Navbar muss der toggle in der Callbackfunktion definiert werden. Sonst findet jquery getelementbyID nicht
$("#navtop").load('navtop.php', null, function(){$.getScript('js/scripts.js');});
$("#navleft").load("nav.php");
$("#footer").load("footer.php");
});
<?php echo '</script'; ?>
>
<div id="layoutSidenav">
<!-- Navigation left -->
<div id="navleft"></div>
<div id="layoutSidenav_content">
<main>
<div id="global_rechte"><div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> Sie haben keinen Zugriff auf diese Seite</div></div>
</main>
<!-- footer -->
<div id="footer"></div>
</div>
</div>
<?php echo '<script'; ?>
src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"><?php echo '</script'; ?>
>
</body>
</html><?php }
}

View File

@ -0,0 +1,176 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-29 16:02:35
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\login.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_642444fb108e38_88581849',
'has_nocache_code' => false,
'file_dependency' =>
array (
'2c7573aca5bcffa232f4e19fd56675ada4969120' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\login.html',
1 => 1680098552,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_642444fb108e38_88581849 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>JU & MI Administration</title>
<link href="css/styles.css" rel="stylesheet" />
<?php echo '<script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
>
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<?php echo '<script'; ?>
src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../js/lottie_bodymovin/lottie.min.js"><?php echo '</script'; ?>
>
<style type="text/css">
.lottie-container {
justify-content: center;
top: 40px;
left: 0;
right: 0;
bottom: 20px;
height: 180px;
pointer-events: none;
}
</style>
<?php echo '<script'; ?>
>
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
});
<?php echo '</script'; ?>
>
</head>
<body>
<div id="navtop"></div>
<?php echo '<script'; ?>
>
$(function() {
$("#mail").focus();
});
$(function(){
$("#footer").load("footer.php");
});
<?php echo '</script'; ?>
>
<div id="layoutAuthentication">
<div id="layoutAuthentication_content">
<main>
<!--Anwendung-->
<?php echo '<script'; ?>
src="../js/components/admin_login.js"><?php echo '</script'; ?>
>
<div class="lottie-container" id="lottie-container"></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-5">
<div class="card shadow-lg border-0 rounded-lg mt-5">
<div class="card-header">
<h3 class="text-center font-weight-light my-4">Login</h3>
</div>
<div class="card-body">
<div class="form-floating mb-3">
<input class="form-control" name="mail" id="mail" type="email" onkeydown="keysave(this)" placeholder="Mailadresse" />
<label for="inputEmail">Mailadresse</label>
</div>
<div class="form-floating mb-3">
<input class="form-control" name="password" id="password" type="password" onkeydown="keysave(this)" placeholder="Passwort" />
<label for="inputPassword">Passwort</label>
</div>
<!--<div class="form-check mb-3">
<input class="form-check-input" id="inputRememberPassword" type="checkbox" value="" />
<label class="form-check-label" for="inputRememberPassword">Remember Password</label>
</div>
-->
<div class="d-flex align-items-center justify-content-between mt-4 mb-0">
<!--<a class="small" href="password.html">Forgot Password?</a>-->
<label><input type="checkbox" name="angemeldet_bleiben" id="angemeldet_bleiben" value="1"> Angemeldet bleiben
<button type="button" class="btn btn-info btn-sm" data-bs-toggle="popover" data-bs-html="true" data-bs-trigger="hover"
title="Angemeldet bleiben"
data-bs-content="Durch das Markieren dieses Feldes wird beim n&auml;chsten Besuch die Anmeldemaske nicht erscheinen.<br>
<b>Die Anwendung speichert lokal Cookies in Ihrem Browser.</b><br>
Sobald Sie in der Anwendung einen Logout machen, werden die Cookies gel&ouml;scht und ein Login ist wieder erforderlich.">
<i class="fas fa fa-info"></i>
</button>
</label><br>
&nbsp;
<input type='submit' class="btn btn-primary" onclick="login();" name='senden' value="Login">
</div>
</div>
<div class="card-footer text-center py-3">
<!--<div class="small"><a href="register.html">Need an account? Sign up!</a></div>-->
</div>
</div>
<div id="msg"></div>
</div>
</div>
</div>
<div class="lottie-container" id="lottie-container"></div>
<?php echo '<script'; ?>
type="text/javascript">
var item = bodymovin.loadAnimation({
wrapper: document.getElementById('lottie-container'),
animType: 'svg',
loop: true,
autoplay: true,
path: '../media/data.json'
});
<?php echo '</script'; ?>
>
</main>
<?php echo '<script'; ?>
type="text/javascript">
function keysave(ele) {
if(event.key === 'Enter') {
login();
}
}
<?php echo '</script'; ?>
>
</div>
<div id="layoutAuthentication_footer">
<!-- footer -->
<div id="footer"></div>
</div>
</div>
<?php echo '<script'; ?>
>
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
return new bootstrap.Popover(popoverTriggerEl)
})
<?php echo '</script'; ?>
>
</body>
</html>
<?php }
}
}

View File

@ -0,0 +1,197 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-29 08:26:07
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\edit_user.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_6423d9ff130713_79890602',
'has_nocache_code' => false,
'file_dependency' =>
array (
'53fa4cc610a7b23725efdc6cd814773eca7ba82c' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\edit_user.html',
1 => 1680067901,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6423d9ff130713_79890602 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!DOCTYPE html>
<html lang="de">
<head>
<title>JU & MI Benutzer bearbeiten</title>
<link rel="stylesheet" href="../jquery/jquery-ui.css">
<link rel="stylesheet" href="../jquery/jquery.timepicker.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<?php echo '<script'; ?>
src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"><?php echo '</script'; ?>
>
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<!-- data Table: https://datatables.net/ -->
<?php echo '<script'; ?>
src="../bootstrap/data-table/jquery.min.js"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/data-table/dataTables.bootstrap5.min.css"></style>
<link rel="stylesheet" href="../bootstrap/data-table/rowReorder.dataTables.min.css"></style>
<?php echo '<script'; ?>
type="text/javascript" src="../bootstrap/data-table/jquery.dataTables.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="../bootstrap/data-table/dataTables.rowReorder.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="../bootstrap/data-table/dataTables.bootstrap5.min.js"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/data-table/jumistyle.css"></style>
<?php echo '<script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
</head>
<body class="sb-nav-fixed">
<div id="navtop"></div>
<?php echo '<script'; ?>
>
$(function(){
// im Navbar muss der toggle in der Callbackfunktion definiert werden. Sonst findet jquery getelementbyID nicht
$("#navtop").load('navtop.php', null, function(){$.getScript('js/scripts.js');});
$("#navleft").load("nav.php");
$("#footer").load("footer.php");
});
<?php echo '</script'; ?>
>
<div id="layoutSidenav">
<!-- Navigation left -->
<div id="navleft"></div>
<div id="layoutSidenav_content">
<main>
<!--Anwendung-->
<?php echo '<script'; ?>
src="../js/components/admin_create_user.js"><?php echo '</script'; ?>
>
<div class="container-fluid">
<div class="card">
<div class="card-header">
<i class="fas fa-edit me-1"></i>
Benutzer bearbeiten
</div>
<div class="card-body">
<!-- https://datatables.net/download/release -->
<table id="myTable" class="table table-striped table-bordered table-responsive table-hover" >
<thead>
<tr>
<th>Vorname</th>
<th>Nachname</th>
<th class="d-none d-lg-table-cell"> Mail</th>
<th class="d-none d-lg-table-cell">Letzter Login</th>
<th class="d-none d-lg-table-cell">Status</th>
<th>Aktion</th>
</tr>
</thead>
<tbody>
<?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']++){
?>
<tr>
<td><?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)]['vorname'];?>
</td>
<td><?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)]['nachname'];?>
</td>
<td class="d-none d-lg-table-cell"><?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)]['mail'];?>
</td>
<td class="d-none d-lg-table-cell"><?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)]['last_login'];?>
</td>
<td class="d-none d-lg-table-cell">
<!--
# 4 Neu
# 3 Deaktiviert
# 2 Inaktiv
# 1 Aktiv
-->
<?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)]['status'] == '4') {?>
<span class="status text-secondary">&bull;</span> Neu
<?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)]['status'] == '3') {?>
<span class="status text-danger">&bull;</span> Deaktiviert
<?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)]['status'] == '2') {?>
<span class="status text-danger">&bull;</span> Inaktiv
<?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)]['status'] == '1') {?>
<span class="status text-success">&bull;</span> Aktiv
<?php }?>
</td>
<td>
<a href="create_user.php?edituid=<?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)]['uid'];?>
" class="settings" title="Edit User" data-toggle="tooltip"><i class="fas fa fa-cog"></i></a>
&nbsp;
<?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)]['aktiv'] == 1) {?>
<a href="#" class="settings text-danger" id="disable" onclick="disableuser(<?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)]['uid'];?>
);" title="Lock User" data-toggle="tooltip"><i class="fas fa fa-lock"></i></a>
<?php } else { ?>
<a href="#" class="settings text-success" id="enable" onclick="enableuser(<?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)]['uid'];?>
);" title="Unlock User" data-toggle="tooltip"><i class="fas fa fa-unlock"></i></a>
<?php }?>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<div id="msg"></div>
</main>
<!-- footer -->
<div id="footer"></div>
</div>
</div>
</body>
<?php echo '<script'; ?>
>
$(document).ready(function(){
var table = new DataTable('#myTable', {
rowReorder: true,
pageLength: 5,
language: {
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
search: "",
lengthMenu: "_MENU_ Zeilen",
},
});
});
<?php echo '</script'; ?>
>
</html>
<?php }
}
}

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-24 07:26:23
/* Smarty version 3.1.39, created on 2023-03-29 12:13:17
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\survey_edit.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_641d428fde7110_72373996',
'unifunc' => 'content_64240f3dba78e4_01027232',
'has_nocache_code' => false,
'file_dependency' =>
array (
'5473cec3045fdc71e0e4856581f2d1efb812d964' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\survey_edit.html',
1 => 1679639182,
1 => 1680067902,
2 => 'file',
),
),
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_641d428fde7110_72373996 (Smarty_Internal_Template $_smarty_tpl) {
function content_64240f3dba78e4_01027232 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!DOCTYPE html>
<html lang="de">
@ -40,7 +40,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="all.js" crossorigin="anonymous"><?php echo '</script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
@ -138,7 +138,6 @@ $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__sec
</div>
</div>
</div>
<hr>
<!-- Lösen Sie das Modal mit einem Button aus -->

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-24 07:25:15
/* Smarty version 3.1.39, created on 2023-03-29 08:26:02
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\parameter.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_641d424b5e7026_88417519',
'unifunc' => 'content_6423d9faf1a394_28187497',
'has_nocache_code' => false,
'file_dependency' =>
array (
'60770e4a66f5636533d9cacf91dcf9d3cb1e51bf' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\parameter.html',
1 => 1679639113,
1 => 1680067901,
2 => 'file',
),
),
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_641d424b5e7026_88417519 (Smarty_Internal_Template $_smarty_tpl) {
function content_6423d9faf1a394_28187497 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!DOCTYPE html>
<html lang="en">
@ -35,7 +35,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="all.js" crossorigin="anonymous"><?php echo '</script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
@ -83,7 +83,8 @@ for ($__section_table_data1_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_se
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
<div class="col-12 col-md-4"><?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['beschreibung'];?>
</div>
<div class="col-12 col-md-8"><input type="text" class="form-control" name="parameter[]" value="<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['wert'];?>
<div class="col-12 col-md-8"><input type="text" class="form-control" name="<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['pid'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['wert'];?>
"></div>
</div>
<?php
@ -94,7 +95,9 @@ for ($__section_table_data1_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_se
</div>
</div>
<div class="col-12 btn-group">
<a class="btn btn-primary mt-3" onclick="onClickSaveParameter()"><i class="fa fa-save" style="width:18px;"></i></a>
<a class="btn btn-primary mt-3" onclick="onClickSaveParameter()"><i class="fa fa-save" style="width:18px;"></i></a>
</div>
<div id="msg"></div>
</main>
<!-- footer -->
<div id="footer"></div>

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-24 07:23:18
/* Smarty version 3.1.39, created on 2023-03-29 13:34:44
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\index.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_641d41d6339c56_97883781',
'unifunc' => 'content_64242254290e23_08078591',
'has_nocache_code' => false,
'file_dependency' =>
array (
'61084ee676a3c91a4b41c7e50fa536cf9cd1daac' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\index.html',
1 => 1679638068,
1 => 1680089585,
2 => 'file',
),
),
@ -20,128 +20,107 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_641d41d6339c56_97883781 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!DOCTYPE html>
<html lang="de">
<head>
function content_64242254290e23_08078591 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html lang="en">
<head>
<title>JU & MI Startseite</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>JU & MI Administration</title>
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="all.js" crossorigin="anonymous"><?php echo '</script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../js/lottie_bodymovin/lottie.min.js"><?php echo '</script'; ?>
>
<style type="text/css">
.lottie-container {
justify-content: center;
top: 40px;
left: 0;
right: 0;
bottom: 20px;
height: 180px;
pointer-events: none;
}
</style>
</head>
<body>
<body class="sb-nav-fixed">
<div id="navtop"></div>
<?php echo '<script'; ?>
>
$(function(){
// im Navbar muss der toggle in der Callbackfunktion definiert werden. Sonst findet jquery getelementbyID nicht
$("#navtop").load('navtop.php', null, function(){$.getScript('js/scripts.js');});
$("#navleft").load("nav.php");
$("#footer").load("footer.php");
});
<?php echo '</script'; ?>
>
<div id="layoutAuthentication">
<div id="layoutAuthentication_content">
<div id="layoutSidenav">
<!-- Navigation left -->
<div id="navleft"></div>
<div id="layoutSidenav_content">
<main>
<?php if ($_smarty_tpl->tpl_vars['index_error']->value == '1') {?>
<div class="alert alert-warning" role="alert">
<?php echo $_smarty_tpl->tpl_vars['index_error_text']->value;?>
<div class="container-fluid">
<div class="card">
<div class="card-header">
<i class="fas fa-user me-1"></i>
Herzlich willkommen <?php echo $_smarty_tpl->tpl_vars['startseite_name']->value;?>
</div>
<?php }?>
<div class="lottie-container" id="lottie-container"></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-5">
<div class="card shadow-lg border-0 rounded-lg mt-5">
<div class="card-header">
<h3 class="text-center font-weight-light my-4">Login</h3>
</div>
<div class="card-body">
<form action=?action=anmeld method="POST" name="login">
<div class="form-floating mb-3">
<input class="form-control" id="inputEmail" name="mail" type="email" placeholder="Mailadresse" />
<label for="inputEmail">Mailadresse</label>
</div>
<div class="form-floating mb-3">
<input class="form-control" id="inputPassword" name="password" type="password" placeholder="Passwort" />
<label for="inputPassword">Passwort</label>
</div>
<!--<div class="form-check mb-3">
<input class="form-check-input" id="inputRememberPassword" type="checkbox" value="" />
<label class="form-check-label" for="inputRememberPassword">Remember Password</label>
</div>
<div class="card-body">
<p class="card-text">Herzlich willkommen zur Administration von Jugendchor & Miteinander.<br><br>
</p>
<!--
<div class="row">
<div class="col-xl-3 col-md-6">
<div class="card bg-primary text-white mb-4">
<div class="card-body">Primary Card</div>
</div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-warning text-white mb-4">
<div class="card-body">Warning Card</div>
<div class="card-footer d-flex align-items-center justify-content-between">
<a class="small text-white stretched-link" href="#">View Details</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
</div>
-->
<div class="d-flex align-items-center justify-content-between mt-4 mb-0">
<!--<a class="small" href="password.html">Forgot Password?</a>-->
&nbsp;
<input type='submit' class="btn btn-primary" name='senden' value="Login">
</div>
</form>
</div>
<div class="card-footer text-center py-3">
<!--<div class="small"><a href="register.html">Need an account? Sign up!</a></div>-->
</div>
</div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-success text-white mb-4">
<div class="card-body">Success Card</div>
<div class="card-footer d-flex align-items-center justify-content-between">
<a class="small text-white stretched-link" href="#">View Details</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
</div>
</div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-danger text-white mb-4">
<div class="card-body">Danger Card</div>
<div class="card-footer d-flex align-items-center justify-content-between">
<a class="small text-white stretched-link" href="#">View Details</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
</div>
</div>
</div>
</div>
-->
</div>
</div>
</div>
<div class="lottie-container" id="lottie-container"></div>
<?php echo '<script'; ?>
type="text/javascript">
var item = bodymovin.loadAnimation({
wrapper: document.getElementById('lottie-container'),
animType: 'svg',
loop: true,
autoplay: true,
path: '../media/data.json'
});
<?php echo '</script'; ?>
>
</main>
</div>
<div id="layoutAuthentication_footer">
<!-- footer -->
<div id="footer"></div>
</div>
</div>
<?php echo '<script'; ?>
src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="js/scripts.js"><?php echo '</script'; ?>
src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"><?php echo '</script'; ?>
>
</body>
</html>
<?php }
if ($_smarty_tpl->tpl_vars['action']->value == 'anmeld') {?>
<?php if ($_smarty_tpl->tpl_vars['index_login']->value == '1') {?>
<meta http-equiv="refresh" content="0; URL=startseite.php">
<?php }
}
}
</html><?php }
}

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-24 13:04:30
/* Smarty version 3.1.39, created on 2023-03-29 08:48:53
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\changepwd.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_641d91ce46b972_67242621',
'unifunc' => 'content_6423df554708f9_79056658',
'has_nocache_code' => false,
'file_dependency' =>
array (
'6db6f41f0bc02f7e26e3e95225e982b8df03345b' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\changepwd.html',
1 => 1679659219,
1 => 1680072531,
2 => 'file',
),
),
@ -20,12 +20,12 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_641d91ce46b972_67242621 (Smarty_Internal_Template $_smarty_tpl) {
function content_6423df554708f9_79056658 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!DOCTYPE html>
<html lang="de">
<head>
<title>JU & MI Benutzer erstellen</title>
<title>JU & MI Passwort</title>
<link rel="stylesheet" href="../jquery/jquery-ui.css">
<link rel="stylesheet" href="../jquery/jquery.timepicker.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
@ -37,54 +37,22 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="all.js" crossorigin="anonymous"><?php echo '</script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
<style>
<?php echo '<script'; ?>
>
function keysave(ele) {
if(event.key === 'Enter') {
changepwd();
}
}
<?php echo '</script'; ?>
>
::-ms-reveal {
display: none;
}
button#toggle-password {
position: absolute;
top: 3px;
right: 4px;
z-index: 9;
width: 28px;
height: 30px;
background: 0;
border: 0;
}
button#toggle-password:active,
button#toggle-password:focus,
button#toggle-password:hover {
cursor: pointer;
}
button#toggle-password:focus {
outline: none !important;
}
.input-password {
padding-right: calc(1.5em + 0.75rem);
background-repeat: no-repeat;
background-position: right calc(0.375em + 0.1875rem) center;
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.input-password[type=text]:valid {
background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z'/%3E%3Cpath d='M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299l.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z'/%3E%3Cpath d='M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709z'/%3E%3Cpath fill-rule='evenodd' d='M13.646 14.354l-12-12 .708-.708 12 12-.708.708z'/%3E%3C/svg%3E") !important;
}
.input-password[type=password]:valid {
background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.134 13.134 0 0 0 1.66 2.043C4.12 11.332 5.88 12.5 8 12.5c2.12 0 3.879-1.168 5.168-2.457A13.134 13.134 0 0 0 14.828 8a13.133 13.133 0 0 0-1.66-2.043C11.879 4.668 10.119 3.5 8 3.5c-2.12 0-3.879 1.168-5.168 2.457A13.133 13.133 0 0 0 1.172 8z'/%3E%3Cpath fill-rule='evenodd' d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/%3E%3C/svg%3E") !important;
}
</style>
</head>
<body class="sb-nav-fixed">
<div id="navtop"></div>
@ -121,36 +89,20 @@ button#toggle-password:focus {
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
<div class="col-12 col-md-4">Altes Passwort:</div>
<div class="col-12 col-md-8">
<div class="input-group">
<input type="password" id="password" class="form-control rounded-right" required>
<button id="toggle-password" type="button" class="d-none"
aria-label="Show password as plain text. Warning: this will display your password on the screen.">
</button>
</div>
<input type="password" id="password" class="form-control rounded-right" required onkeydown="keysave(this)">
</div>
</div>
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
<div class="col-12 col-md-4">Neues Passwort:</div>
<div class="col-12 col-md-8">
<div class="input-group">
<input type="password" id="password_new1" class="form-control rounded-right" required>
<button id="toggle-password" type="button" class="d-none"
aria-label="Show password as plain text. Warning: this will display your password on the screen.">
</button>
</div>
<input type="password" id="password_new1" class="form-control rounded-right" required onkeydown="keysave(this)">
</div>
</div>
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
<div class="col-12 col-md-4">Passwortwiederholung:</div>
<div class="col-12 col-md-8">
<div class="input-group">
<input type="password" id="password_new2" class="form-control rounded-right" required>
<button id="toggle-password" type="button" class="d-none"
aria-label="Show password as plain text. Warning: this will display your password on the screen.">
</button>
</div>
<input type="password" id="password_new2" class="form-control rounded-right" required onkeydown="keysave(this)">
</div>
</div>
</div>
@ -161,9 +113,6 @@ button#toggle-password:focus {
</div>
</div>
<div id="msg"></div>
<?php echo '<script'; ?>
src="../js/show-password-toggle.js" async><?php echo '</script'; ?>
>
</main>
<!-- footer -->
<div id="footer"></div>

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-24 07:44:53
/* Smarty version 3.1.39, created on 2023-03-29 07:50:59
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\nav.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_641d46e5766180_99358598',
'unifunc' => 'content_6423d1c386cc23_65117232',
'has_nocache_code' => false,
'file_dependency' =>
array (
'81c00a8c5d0bbd7d154ad2d8777ef2d3d8c3a749' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\nav.html',
1 => 1679640055,
1 => 1680067901,
2 => 'file',
),
),
@ -20,94 +20,79 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_641d46e5766180_99358598 (Smarty_Internal_Template $_smarty_tpl) {
function content_6423d1c386cc23_65117232 (Smarty_Internal_Template $_smarty_tpl) {
?><div id="layoutSidenav_nav">
<nav class="bg-juandmi sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
<div class="sb-sidenav-menu">
<div class="nav">
<!--<div class="sb-sidenav-menu-heading">Core</div>-->
<a class="nav-link" href="startseite.php">
<div class="sb-nav-link-icon"><i class="fas fa-house"></i></div>
Home
</a>
<div class="sb-sidenav-menu-heading">Umfrage</div>
<a class="nav-link" href="survey_erfassen.php?new=1">
<div class="sb-nav-link-icon"><i class="fas fa-pie-chart"></i></div>
Erstellen
</a>
<a class="nav-link" href="survey_edit.php?new=1">
<div class="sb-nav-link-icon"><i class="fas fa-edit"></i></div>
Bearbeiten
</a>
<!--
<a class="nav-link collapsed" href="#" data-bs-toggle="collapse" data-bs-target="#collapseLayouts" aria-expanded="false" aria-controls="collapseLayouts">
<div class="sb-nav-link-icon"><i class="fas fa-columns"></i></div>
Erstellen
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="collapseLayouts" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link" href="layout-static.html">Static Navigation</a>
<a class="nav-link" href="layout-sidenav-light.html">Light Sidenav</a>
</nav>
</div>
<a class="nav-link collapsed" href="#" data-bs-toggle="collapse" data-bs-target="#collapsePages" aria-expanded="false" aria-controls="collapsePages">
<div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
Pages
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="collapsePages" aria-labelledby="headingTwo" data-bs-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
<a class="nav-link collapsed" href="#" data-bs-toggle="collapse" data-bs-target="#pagesCollapseAuth" aria-expanded="false" aria-controls="pagesCollapseAuth">
Authentication
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="pagesCollapseAuth" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordionPages">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link" href="login.html">Login</a>
<a class="nav-link" href="register.html">Register</a>
<a class="nav-link" href="password.html">Forgot Password</a>
</nav>
</div>
<a class="nav-link collapsed" href="#" data-bs-toggle="collapse" data-bs-target="#pagesCollapseError" aria-expanded="false" aria-controls="pagesCollapseError">
Error
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="pagesCollapseError" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordionPages">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link" href="401.html">401 Page</a>
<a class="nav-link" href="404.html">404 Page</a>
<a class="nav-link" href="500.html">500 Page</a>
</nav>
</div>
</nav>
</div>
-->
<div class="sb-sidenav-menu-heading">Administration</div>
<a class="nav-link" href="parameter.php">
<div class="sb-nav-link-icon"><i class="fas fa-cog"></i></div>
Systemparameter
</a>
<a class="nav-link collapsed" href="#" data-bs-toggle="collapse" data-bs-target="#collapseLayouts" aria-expanded="false" aria-controls="collapseLayouts">
<div class="sb-nav-link-icon"><i class="fas fa-user"></i></div>
Benutzerverwaltung
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="collapseLayouts" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link" href="create_user.php">Benutzer erstellen</a>
<!--<a class="nav-link" href="layout-sidenav-light.html">Light Sidenav</a>-->
</nav>
</div>
<?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']++){
?>
<?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)]['visible'] > 0) {?>
<div class="sb-sidenav-menu-heading"><?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)]['headline'];?>
</div>
<?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']++){
$_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)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['link'] == '#') {?>
<a class="nav-link collapsed" href="#" data-bs-toggle="collapse" data-bs-target="#collapse<?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] : null);?>
" aria-expanded="false" aria-controls="collapse<?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] : null);?>
">
<?php } else { ?>
<a class="nav-link" href="<?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)]['link'];?>
">
<?php }?>
<div class="sb-nav-link-icon"><i class="<?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)]['fontawesome'];?>
"></i></div>
<?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)]['headline'];?>
<!--
<a class="nav-link" href="tables.html">
<div class="sb-nav-link-icon"><i class="fas fa-table"></i></div>
Tables
</a>
-->
<?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)]['link'] == '#') {?>
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
<?php }?>
</a>
<?php
$__section_inner2_2_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'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['inner2']) ? count($_loop) : max(0, (int) $_loop));
$__section_inner2_2_total = $__section_inner2_2_loop;
$_smarty_tpl->tpl_vars['__smarty_section_inner2'] = new Smarty_Variable(array());
if ($__section_inner2_2_total !== 0) {
for ($__section_inner2_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['index'] = 0; $__section_inner2_2_iteration <= $__section_inner2_2_total; $__section_inner2_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['index']++){
$_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['rownum'] = $__section_inner2_2_iteration;
$_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['last'] = ($__section_inner2_2_iteration === $__section_inner2_2_total);
?>
<?php if ((isset($_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['rownum'] : null) == 1) {?>
<div class="collapse" id="collapse<?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['rownum'] : null);?>
" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordion">
<?php }?>
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link" href="<?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)]['inner2'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['index'] : null)]['link'];?>
"><?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)]['inner2'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['index'] : null)]['headline'];?>
</a>
</nav>
<?php if ((isset($_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner2']->value['last'] : null)) {?>
</div>
<?php }?>
<?php
}
}
?>
<?php
}
}
?>
<?php
}
}
?>
</div>
</div>
<div class="bg-juandmi sb-sidenav-footer">

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-24 12:01:27
/* Smarty version 3.1.39, created on 2023-03-29 08:26:04
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\create_user.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_641d83072c7a20_98229386',
'unifunc' => 'content_6423d9fccd0fb7_29452305',
'has_nocache_code' => false,
'file_dependency' =>
array (
'b24e1617a419553123f2d87b2d94e4b5ba1c4358' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\create_user.html',
1 => 1679655638,
1 => 1680067901,
2 => 'file',
),
),
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_641d83072c7a20_98229386 (Smarty_Internal_Template $_smarty_tpl) {
function content_6423d9fccd0fb7_29452305 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!DOCTYPE html>
<html lang="de">
@ -37,7 +37,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="all.js" crossorigin="anonymous"><?php echo '</script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
@ -197,7 +197,11 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<div class="card">
<div class="card-header">
<i class="fas fa-edit me-1"></i>
Benutzer erstellen
<?php if ($_smarty_tpl->tpl_vars['create_edit']->value == '') {?>
Benutzer erstellen
<?php } else { ?>
Benutzer bearbeiten
<?php }?>
</div>
<div class="card-body">
<div class="row">
@ -228,7 +232,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']++){
?>
<option 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)]['rid'];?>
"><?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)]['bezeichnung'];?>
" <?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)]['selected'] == 1) {?> selected <?php }?>><?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)]['bezeichnung'];?>
</option>
<?php
}
@ -236,9 +240,22 @@ for ($__section_table_data_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_sec
?>
</select>
</div>
<?php if ($_smarty_tpl->tpl_vars['create_edit']->value != '') {?>
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
<div class="col-12 col-md-4">Passwort zur&uuml;cksetzen:</div>
<div class="col-12 col-md-8">
<input class="form-check-input" type="checkbox" name="pwdback" id="pwdback" value="1">
</div>
</div>
<?php }?>
</div>
<p align='center'>
<?php if ($_smarty_tpl->tpl_vars['create_edit']->value == '') {?>
<button class="col-6 btn btn-primary btn-sm mt-3" id="save" onclick="usersave();">Speichern</button>
<?php } else { ?>
<button class="col-6 btn btn-primary btn-sm mt-3" id="save" onclick="userupdate(<?php echo $_smarty_tpl->tpl_vars['create_edit']->value;?>
);">Update</button>
<?php }?>
</p>
</div>
</div>

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-24 09:07:50
/* Smarty version 3.1.39, created on 2023-03-29 08:34:22
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\survey_erfassen.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_641d5a563f9774_23770210',
'unifunc' => 'content_6423dbee61a9f0_40086453',
'has_nocache_code' => false,
'file_dependency' =>
array (
'b3a308ee2af3bf7c7926a28ad9259929ec1e5ab1' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\survey_erfassen.html',
1 => 1679645265,
1 => 1680071657,
2 => 'file',
),
),
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_641d5a563f9774_23770210 (Smarty_Internal_Template $_smarty_tpl) {
function content_6423dbee61a9f0_40086453 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!DOCTYPE html>
<html lang="de">
@ -55,7 +55,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="all.js" crossorigin="anonymous"><?php echo '</script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
<style type="text/css">
@ -252,7 +252,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="all.js" crossorigin="anonymous"><?php echo '</script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
<?php echo '<script'; ?>
@ -310,7 +310,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
function(data){
var a = data.split('|***|');
if(a[1]=="update"){
$('#msg').show().delay(5000).fadeOut(500);
$('#msg').show().delay(1000).fadeOut(500);
$('#msg').html(a[0]);
}
}
@ -344,6 +344,15 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
</head>
<!--<body onload="if(document.erfassen)document.erfassen.<?php echo $_smarty_tpl->tpl_vars['umfrageerf_focus']->value;?>
.focus();return false;">-->
<?php echo '<script'; ?>
type="text/javascript">
$(function() {
$("#<?php echo $_smarty_tpl->tpl_vars['umfrageerf_focus']->value;?>
").focus();
})
<?php echo '</script'; ?>
>
<body class="sb-nav-fixed">
<div id="navtop"></div>

View File

@ -0,0 +1,229 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-29 15:57:03
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\rollen.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_642443af4711e5_78506409',
'has_nocache_code' => false,
'file_dependency' =>
array (
'bd5096a73e573183754922867cfe39b849c92a94' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\rollen.html',
1 => 1680098220,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_642443af4711e5_78506409 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="description" content="Scrollable tab for Bootstrap 5">
<meta name="keywords" content="Bootstrap, Bootstrap 5, Tabs">
<meta name="author" content="Federico Navarrete">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<?php echo '<script'; ?>
src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"><?php echo '</script'; ?>
>
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
>
<!-- jQuery UI CSS
<?php echo '<script'; ?>
src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"><?php echo '</script'; ?>
>
-->
<?php echo '<script'; ?>
src="../jquery/jquery-ui.js"><?php echo '</script'; ?>
>
<style>
.btn-group > .btn{
margin-bottom:20px;
border-radius:20px !important;
}
</style>
<?php echo '<script'; ?>
type="text/javascript">
function keysave(ele) {
if(event.key === 'Enter') {
rollesave();
}
}
<?php echo '</script'; ?>
>
<style type="text/css">
.ui-sortable tr {
cursor:pointer;
}
.ui-sortable tr:hover {
background:rgba(244,251,17,0.45);
}
</style>
<?php echo '<script'; ?>
>
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
});
<?php echo '</script'; ?>
>
</head>
<!--<body onload="if(document.erfassen)document.erfassen.<?php echo $_smarty_tpl->tpl_vars['umfrageerf_focus']->value;?>
.focus();return false;">-->
<body class="sb-nav-fixed">
<div id="navtop"></div>
<?php echo '<script'; ?>
>
$(function(){
// im Navbar muss der toggle in der Callbackfunktion definiert werden. Sonst findet jquery getelementbyID nicht
$("#navtop").load('navtop.php', null, function(){$.getScript('js/scripts.js');});
$("#navleft").load("nav.php");
$("#footer").load("footer.php");
});
<?php echo '</script'; ?>
>
<div id="layoutSidenav">
<!-- Navigation left -->
<div id="navleft"></div>
<div id="layoutSidenav_content">
<main>
<!--Anwendung-->
<?php echo '<script'; ?>
src="../js/components/admin_rollen.js"><?php echo '</script'; ?>
>
<div class="container-fluid">
<div class="card">
<div class="card-header">
<i class="fas fa-table me-1"></i>
Rollen erfassen
</div>
<div class="row mt-1 mt-sm-1 mb-1 mb-sm-1">
<div class="col-4 col-md-4">Rollenname:</div>
<div class="col-8 col-md-8"><input class="form-control" type="text" name="rollenname" id="rollenname" value="<?php echo $_smarty_tpl->tpl_vars['umfrageerf_value_frage']->value;?>
" size="60" onkeydown="keysave(this)"></div>
</div>
</div>
<div class="row">
<div class="row col-3"></div>
<div class="row col-6"><button class="btn btn-primary btn-sm mt-3" id="save" onclick="rollesave();">Speichern</button></div>
<div class="row col-3"></div>
</div>
<br>
<div class="card">
<div class="card-header">
<i class="fas fa-table me-1"></i>
Vorhandene Rollen
</div>
<div class="card-body">
<div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
<div class="row mt-0 mb-0">
<div class="d-none col-md-10 d-md-block"><b>Rolle</b></div>
<div class="d-none col-md-2 d-md-block"><b>Aktion</b></div>
</div>
<?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="row mt-0 mt-sm-1 mb-0 mb-sm-1">
<div class="col-6 col-md-10"><?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)]['bezeichnung'];?>
</div>
<div class="col-6 col-md-2">
<a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" 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)]['rid'];?>
|rollenzuordnung.php" onclick="ShowZuordnung(this)" data-bs-target="#ZuordnungModal"><i class="fa fa-eye" style="width:18px;"></i></a>
<a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" 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)]['rid'];?>
|userzuordnung.php" onclick="ShowZuordnung(this)" data-bs-target="#ZuordnungModal"><i class="fa fa-user" style="width:18px;"></i></a>
<a class="btn btn-danger btn-rounded btn-icon btn-sm" onclick="delRole(<?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)]['rid'];?>
)"><i class="fa fa-trash" style="width:18px;"></i></a>
</div>
</div>
<?php
}
}
?>
<!-- Modal -->
<div class="modal" id="ZuordnungModal" tabindex="-1" aria-labelledby="ZuordnungModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<!--<h5 class="modal-title" id="ZuordnungModalLabel">Rollenübersicht</h5>-->
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<!--<button type="button" class="btn btn-primary">Save changes</button>-->
</div>
</div>
</div>
</div>
<!-- Lösen Sie das Modal mit einem Button aus -->
<?php echo '<script'; ?>
>
function ShowZuordnung(a){
let receive = a.getAttribute("value");
var a = receive.split('|');
var value = a[0];
var file = a[1];
$( '.modal-body' ).load( file+'?edit='+value , function () {
$( '#ZuordnungModal' ).modal({show: true });
});
}
<?php echo '</script'; ?>
>
</div>
</div>
</div>
<div id="msg"></div>
</main>
<!--
<button type="button" class="btn btn-primary" data-bs-toggle="popover" title="Popover Header" data-bs-content="Some content inside the popover">
Toggle popover
</button>
-->
<!-- footer -->
<div id="footer"></div>
</div>
</div>
<!--
<?php echo '<script'; ?>
>
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
return new bootstrap.Popover(popoverTriggerEl)
})
<?php echo '</script'; ?>
>
-->
</body>
</html>
<?php }?>
<?php }
}

View File

@ -0,0 +1,232 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-29 07:51:04
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\userzuordnung.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_6423d1c8cb73b7_95154832',
'has_nocache_code' => false,
'file_dependency' =>
array (
'e890b780b2ea3c1806623c4b8afdbf6ddb585671' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\userzuordnung.html',
1 => 1680067903,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6423d1c8cb73b7_95154832 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="description" content="Scrollable tab for Bootstrap 5">
<meta name="keywords" content="Bootstrap, Bootstrap 5, Tabs">
<meta name="author" content="Federico Navarrete">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<?php echo '<script'; ?>
src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"><?php echo '</script'; ?>
>
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<!-- data Table: https://datatables.net/ -->
<?php echo '<script'; ?>
src="../bootstrap/data-table/jquery.min.js"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/data-table/dataTables.bootstrap5.min.css"></style>
<link rel="stylesheet" href="../bootstrap/data-table/rowReorder.dataTables.min.css"></style>
<?php echo '<script'; ?>
type="text/javascript" src="../bootstrap/data-table/jquery.dataTables.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="../bootstrap/data-table/dataTables.rowReorder.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="../bootstrap/data-table/dataTables.bootstrap5.min.js"><?php echo '</script'; ?>
>
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
>
<!-- jQuery UI CSS
<?php echo '<script'; ?>
src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"><?php echo '</script'; ?>
>
-->
<?php echo '<script'; ?>
src="../jquery/jquery-ui.js"><?php echo '</script'; ?>
>
<style>
.btn-group > .btn{
margin-bottom:20px;
border-radius:20px !important;
}
.ui-sortable tr {
cursor:pointer;
}
.ui-sortable tr:hover {
background:rgba(244,251,17,0.45);
}
.table>:not(caption)>*>* {
padding: 0.1rem 0.1rem;
}
p {
margin: 0;
}
</style>
</head>
<!--<body onload="if(document.erfassen)document.erfassen.<?php echo $_smarty_tpl->tpl_vars['umfrageerf_focus']->value;?>
.focus();return false;">-->
<body class="sb-nav-fixed">
<main>
<!--Anwendung-->
<?php echo '<script'; ?>
src="../js/components/admin_rollen.js"><?php echo '</script'; ?>
>
<p class="text-center"><b><?php echo $_smarty_tpl->tpl_vars['rollenzuordnung_bezeichnung']->value;?>
</b></p>
<div class="container-fluid">
<div class="card">
<div class="card-header">
<i class="fas fa-table me-1"></i>
Nicht zugewiesene Benutzer
</div>
<div class="card-body">
<table id="notassigned" class="table table-striped table-bordered table-responsive table-hover" >
<thead class="d-none">
<tr>
<th>Vorname</th>
<th>Nachname</th>
<th>Aktion</th>
</tr>
</thead>
<tbody>
<?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']++){
?>
<tr>
<td><?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)]['vorname'];?>
</td>
<td><?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)]['nachname'];?>
</td>
<td>
<p class="text-center">
<a class="btn btn-success btn-rounded btn-icon btn-sm" onclick="erfuser('<?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)]['uid'];?>
|<?php echo $_smarty_tpl->tpl_vars['rollen_edit']->value;?>
')"><i class="fa-solid fa-plus" style="width:18px;"></i></a>
</p>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
<br>
<div class="card">
<div class="card-header">
<i class="fas fa-table me-1"></i>
Zugewiesene Benutzer
</div>
<div class="card-body">
<table id="assigned" class="table table-striped table-bordered table-responsive table-hover" >
<thead class="d-none">
<tr>
<th>Vorname</th>
<th>Nachname</th>
<th>Aktion</th>
</tr>
</thead>
<tbody>
<?php
$__section_table_data1_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data1_1_total = $__section_table_data1_1_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array());
if ($__section_table_data1_1_total !== 0) {
for ($__section_table_data1_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_1_iteration <= $__section_table_data1_1_total; $__section_table_data1_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['vorname'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['nachname'];?>
</td>
<td>
<p class="text-center">
<a class="btn btn-danger btn-rounded btn-icon btn-sm" onclick="deluser('<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['uid'];?>
|<?php echo $_smarty_tpl->tpl_vars['rollen_edit']->value;?>
')"><i class="fa-solid fa-minus" style="width:18px;"></i></a>
</p>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
<div id="msg"></div>
</main>
</div>
<?php echo '<script'; ?>
src="../bootstrap/node_modules/move-js/move.js"><?php echo '</script'; ?>
>
<link href="../bootstrap/dist/scrollable-tabs.min.css" rel="stylesheet">
<?php echo '<script'; ?>
src="../bootstrap/dist/scrollable-tabs.min.js"><?php echo '</script'; ?>
>
</body>
<?php echo '<script'; ?>
>
$(document).ready(function(){
var table = new DataTable('#notassigned', {
rowReorder: true,
pageLength: 5,
language: {
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
search: "",
lengthMenu: "_MENU_ Zeilen",
},
});
var table2 = new DataTable('#assigned', {
rowReorder: true,
pageLength: 5,
language: {
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
search: "",
lengthMenu: "_MENU_ Zeilen",
},
});
});
<?php echo '</script'; ?>
>
</html>
<?php }
}
}

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-24 07:23:23
/* Smarty version 3.1.39, created on 2023-03-29 07:50:59
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\startseite.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_641d41db4693a5_86181476',
'unifunc' => 'content_6423d1c34fde15_77685382',
'has_nocache_code' => false,
'file_dependency' =>
array (
'eefbc054a71eb9a54ff5facb15ab71dc63db3dcc' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\startseite.html',
1 => 1679638069,
1 => 1680067902,
2 => 'file',
),
),
@ -20,10 +20,10 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_641d41db4693a5_86181476 (Smarty_Internal_Template $_smarty_tpl) {
function content_6423d1c34fde15_77685382 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html lang="en">
<head>
<head>
<title>JU & MI Startseite</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
@ -35,7 +35,7 @@ function content_641d41db4693a5_86181476 (Smarty_Internal_Template $_smarty_tpl)
<link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?>
src="all.js" crossorigin="anonymous"><?php echo '</script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
@ -60,7 +60,6 @@ function content_641d41db4693a5_86181476 (Smarty_Internal_Template $_smarty_tpl)
<div id="navleft"></div>
<div id="layoutSidenav_content">
<main>
<br>
<div class="container-fluid">
<div class="card">
<div class="card-header">
@ -70,8 +69,46 @@ function content_641d41db4693a5_86181476 (Smarty_Internal_Template $_smarty_tpl)
</div>
<div class="card-body">
<p class="card-text">Herzlich willkommen zur Administration von Jugendchor & Miteinander.<br><br>
Bitte Treffen Sie im Menü eine Auswahl!
</p>
<!--
<div class="row">
<div class="col-xl-3 col-md-6">
<div class="card bg-primary text-white mb-4">
<div class="card-body">Primary Card</div>
</div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-warning text-white mb-4">
<div class="card-body">Warning Card</div>
<div class="card-footer d-flex align-items-center justify-content-between">
<a class="small text-white stretched-link" href="#">View Details</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
</div>
</div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-success text-white mb-4">
<div class="card-body">Success Card</div>
<div class="card-footer d-flex align-items-center justify-content-between">
<a class="small text-white stretched-link" href="#">View Details</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
</div>
</div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-danger text-white mb-4">
<div class="card-body">Danger Card</div>
<div class="card-footer d-flex align-items-center justify-content-between">
<a class="small text-white stretched-link" href="#">View Details</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
</div>
</div>
</div>
</div>
-->
</div>
</div>
</div>

View File

@ -1,18 +1,18 @@
<?php
/* Smarty version 3.1.39, created on 2023-03-24 12:24:07
/* Smarty version 3.1.39, created on 2023-03-29 07:50:59
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\navtop.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_641d88573d5123_95321232',
'unifunc' => 'content_6423d1c372b676_57439701',
'has_nocache_code' => false,
'file_dependency' =>
array (
'fbe82feaa632818ff9ecad86ba177b47f9b345b0' =>
array (
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\navtop.html',
1 => 1679657038,
1 => 1680067901,
2 => 'file',
),
),
@ -20,8 +20,25 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array (
),
),false)) {
function content_641d88573d5123_95321232 (Smarty_Internal_Template $_smarty_tpl) {
function content_6423d1c372b676_57439701 (Smarty_Internal_Template $_smarty_tpl) {
?><!--Navigation top-->
<style>
<!-- abweichend von original styles.css -->
.sb-sidenav-dark .sb-sidenav-menu .nav-link {
color: rgba(255, 255, 255, 0.8);
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-nav-link-icon {
color: rgba(255, 255, 255, 0.8);
}
.sb-sidenav-dark {
background-color: #212529;
color: rgba(255, 255, 255, 0.8);
}
.navbar-dark {
--bs-navbar-color: rgba(255, 255, 255, 0.8)
}
</style>
<nav class="bg-juandmi sb-topnav navbar navbar-expand navbar-dark">
<!-- Navbar Brand-->
<a class="navbar-brand ps-3" href="startseite.php">Administration JU & MI</a>
@ -51,5 +68,6 @@ function content_641d88573d5123_95321232 (Smarty_Internal_Template $_smarty_tpl)
</ul>
</li>
</ul>
</nav><?php }
</nav>
<br><?php }
}