Kennwortwechsel Benutzer anlegen
This commit is contained in:
parent
aba1af22ea
commit
9083662df8
40
controller/admin_changepwd.php
Normal file
40
controller/admin_changepwd.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
$function = $_POST['function'];
|
||||
|
||||
if ($function == 'changepwd') {
|
||||
$password = md5($_POST['password']);
|
||||
$password_new1 = $_POST['password_new1'];
|
||||
$password_new2 = $_POST['password_new2'];
|
||||
|
||||
$result = $db->query("SELECT count(*) Anz FROM jumi_admin WHERE uid=$uid AND passwort = '$password'");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
#Fehlercheck
|
||||
if ($row['Anz'] == "0") {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> Das alte Passwort ist nicht korrekt!</div>|***|error';
|
||||
exit;
|
||||
}elseif ($password_new1 != $password_new2) {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> Das neue Passwort stimmt nicht mit der Wiederholung überein!</div>|***|error';
|
||||
exit;
|
||||
}elseif (strlen($password_new1) < 8) {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> Das neue Passwort muss mindestens 8 Zeichen haben!</div>|***|error';
|
||||
exit;
|
||||
}else{
|
||||
$password_md5 = md5($password_new1);
|
||||
$update = $db->query("UPDATE jumi_admin
|
||||
SET passwort ='$password_md5'
|
||||
WHERE uid=$uid
|
||||
");
|
||||
if (!$update) {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> Es liegt ein Fehler in der Datenbank vor!</div>|***|error';
|
||||
exit;
|
||||
}else{
|
||||
echo '<div class="alert alert-success"><i class="fa fa-fw fa-thumbs-up"></i> Das Passwort wurde geändert!</div>|***|success';
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
161
controller/admin_create_user.php
Normal file
161
controller/admin_create_user.php
Normal file
@ -0,0 +1,161 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
$function = $_POST['function'];
|
||||
|
||||
if ($function == 'checkuser') {
|
||||
$mail = $_POST['mail'];
|
||||
|
||||
if (filter_var($mail, FILTER_VALIDATE_EMAIL)) {
|
||||
$mail = $_POST['mail'];
|
||||
$result = $db->query("SELECT count(*) Anz FROM jumi_admin WHERE mail = '$mail'");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
if ($row['Anz'] == "0") {
|
||||
echo '<div class="alert alert-success"><i class="fa fa-fw fa-thumbs-up"></i> User ist im System nicht vorhanden!</div>';
|
||||
} else {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> User ist im System bereits vorhanden!</div>';
|
||||
}
|
||||
#}else{
|
||||
# echo ""
|
||||
}
|
||||
}
|
||||
|
||||
#echo "Funktion: $function";
|
||||
if ($function == 'usersave') {
|
||||
require_once("func_genPwd.php");
|
||||
$vorname = trim($_POST['vorname']);
|
||||
$nachname = trim($_POST['nachname']);
|
||||
$mail = trim($_POST['mail']);
|
||||
$rollen = $_POST['rollen'];
|
||||
|
||||
$result = $db->query("SELECT count(*) Anz FROM jumi_admin WHERE mail = '$mail'");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
#Fehlercheck
|
||||
if ($row['Anz'] != "0") {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> User ist im System bereits vorhanden!</div>|***|error';
|
||||
}
|
||||
if ($rollen == '' or $vorname == '' or $nachname == '' or $mail == '') {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> Es müssen alle Felder ausgefüllt werden!</div>|***|error';
|
||||
exit;
|
||||
}
|
||||
if (!filter_var($mail, FILTER_VALIDATE_EMAIL)) {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> Geben Sie eine gültige Mailadresse ein!</div>|***|error';
|
||||
exit;
|
||||
}
|
||||
|
||||
$error = 0;
|
||||
$password = generateStrongPassword();
|
||||
$password_md5 = md5($password);
|
||||
|
||||
$sql1 = $db->query("INSERT INTO jumi_admin ( vorname
|
||||
, nachname
|
||||
, mail
|
||||
, passwort
|
||||
)
|
||||
VALUES
|
||||
( '$vorname'
|
||||
, '$nachname'
|
||||
, '$mail'
|
||||
, '$password_md5'
|
||||
)
|
||||
");
|
||||
$uid = $db->insert_id;
|
||||
if (!$sql1) {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> Es gab ein Fehler in der Datenbank: Insert User</div>|***|error';
|
||||
exit;
|
||||
$error++;
|
||||
}
|
||||
for ($i = 0; $i < sizeof($rollen); $i++) {
|
||||
$sql2 = $db->query("INSERT INTO jumi_admin_rollen_user_zuord ( rid
|
||||
, uid
|
||||
)
|
||||
VALUES
|
||||
( '$rollen[$i]'
|
||||
, '$uid'
|
||||
)
|
||||
");
|
||||
}
|
||||
if (!$sql2) {
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> Es gab ein Fehler in der Datenbank: Insert Rollenzuordnung</div>|***|error';
|
||||
exit;
|
||||
$error++;
|
||||
}
|
||||
|
||||
if ($error == 0) {
|
||||
$empfaenger = "$mail";
|
||||
$betreff = "Anmeldung JU & MI Portal";
|
||||
$text = "
|
||||
<html>
|
||||
<head>
|
||||
<title>Anmeldung JU & MI Portal</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face='Arial' size='2'>
|
||||
Guten Tag $vorname $nachname!<br><br>
|
||||
Sie wurden im JU & MI Portal registriert!<br>
|
||||
Nachfolgend finden Sie Ihre Zugangsdaten:
|
||||
<br>
|
||||
<br>
|
||||
<table>
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
Benutzerkennung:
|
||||
</font>
|
||||
</td>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
<b>$mail</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
Passwort:
|
||||
</font>
|
||||
</td>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
<b>$password</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
Bitte beachten Sie, dass das Passwort zwischen Groß- und<br>
|
||||
Kleinschreibung unterscheidet.
|
||||
<p>
|
||||
Ändern Sie bitte zu Ihrer eigenen Sicherheit das<br>
|
||||
Passwort nach dem ersten Login unter dem Benutzericon in der Kopfleiste.
|
||||
<p>
|
||||
Vielen Dank
|
||||
</body>
|
||||
</html>";
|
||||
$result_absender = $db->query("SELECT wert FROM jumi_parameter WHERE pid = 1");
|
||||
$row_absender = $result_absender->fetch_array();
|
||||
if ($row_absender['wert'] == '') {
|
||||
$absender = 'info@ju-and-mi.de';
|
||||
} else {
|
||||
$absender = $row_absender['wert'];
|
||||
}
|
||||
$headers = "MIME-Version: 1.0\n";
|
||||
$headers .= "Content-type: text/html; charset=utf-8\n";
|
||||
$headers .= "From: Info JU & MI <$absender>\n";
|
||||
|
||||
$return = @mail($empfaenger, $betreff, $text, $headers);
|
||||
|
||||
if ($return) { // Abfrage ob Mailversand funktioniert hat
|
||||
echo '<div class="alert alert-danger"><i class="fa fa-fw fa-thumbs-down"></i> BenutzerIn wurde angelegt. Es konnte allerdings <b>keine Mail</b> verschickt werden!</div>|***|success';
|
||||
exit;
|
||||
} else {
|
||||
echo '<div class="alert alert-success"><i class="fa fa-fw fa-thumbs-up"></i> BenutzerIn wurde angelegt. Eine Mail mit den Zugangsdaten wurde zugestellt.</div>|***|success';
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
51
controller/func_genPwd.php
Normal file
51
controller/func_genPwd.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?PHP
|
||||
// Generates a strong password of N length containing at least one lower case letter,
|
||||
// one uppercase letter, one digit, and one special character. The remaining characters
|
||||
// in the password are chosen at random from those four sets.
|
||||
//
|
||||
// The available characters in each set are user friendly - there are no ambiguous
|
||||
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option,
|
||||
// makes it much easier for users to manually type or speak their passwords.
|
||||
//
|
||||
// Note: the $add_dashes option will increase the length of the password by
|
||||
// floor(sqrt(N)) characters.
|
||||
|
||||
function generateStrongPassword($length = 8, $add_dashes = false, $available_sets = 'luds')
|
||||
{
|
||||
$sets = array();
|
||||
if(strpos($available_sets, 'l') !== false)
|
||||
$sets[] = 'abcdefghjkmnpqrstuvwxyz';
|
||||
if(strpos($available_sets, 'u') !== false)
|
||||
$sets[] = 'ABCDEFGHJKMNPQRSTUVWXYZ';
|
||||
if(strpos($available_sets, 'd') !== false)
|
||||
$sets[] = '23456789';
|
||||
if(strpos($available_sets, 's') !== false)
|
||||
$sets[] = '!@#$%&*?';
|
||||
|
||||
$all = '';
|
||||
$password = '';
|
||||
foreach($sets as $set)
|
||||
{
|
||||
$password .= $set[array_rand(str_split($set))];
|
||||
$all .= $set;
|
||||
}
|
||||
|
||||
$all = str_split($all);
|
||||
for($i = 0; $i < $length - count($sets); $i++)
|
||||
$password .= $all[array_rand($all)];
|
||||
|
||||
$password = str_shuffle($password);
|
||||
|
||||
if(!$add_dashes)
|
||||
return $password;
|
||||
|
||||
$dash_len = floor(sqrt($length));
|
||||
$dash_str = '';
|
||||
while(strlen($password) > $dash_len)
|
||||
{
|
||||
$dash_str .= substr($password, 0, $dash_len) . '-';
|
||||
$password = substr($password, $dash_len);
|
||||
}
|
||||
$dash_str .= $password;
|
||||
return $dash_str;
|
||||
}
|
41
dashboard/changepwd.php
Normal file
41
dashboard/changepwd.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*
|
||||
# Fuer debugging
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
#echo __LINE__."<br>";
|
||||
*/
|
||||
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
session_start();
|
||||
|
||||
#require_once "func_genUser.php";
|
||||
|
||||
// Rechteüberprüfung
|
||||
#$db = dbconnect();
|
||||
#if ($user_admin == ""){ require("index.php"); exit;} //Wenn man nicht angemeldet ist, darf man nicht auf die Seite
|
||||
#if(!rore($user_admin,'a_admanleg','RE')){require("lib/rechte.php");exit;}
|
||||
#// Rechteüberprüfung ende
|
||||
|
||||
if(isset($_GET['action'])){
|
||||
$action = $_GET['action'];
|
||||
}else{
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if($action == ''){
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/dashboard/$templatename");
|
||||
?>
|
75
dashboard/create_user.php
Normal file
75
dashboard/create_user.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/*
|
||||
# Fuer debugging
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
#echo __LINE__."<br>";
|
||||
*/
|
||||
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
session_start();
|
||||
|
||||
#require_once "func_genUser.php";
|
||||
|
||||
# Wenn Seite neu aufgerufen wird, dann alle Sessions, die mit "bearbeiten_" beginnen löschen
|
||||
if(isset($_GET['new']) AND $_GET['new'] == 1){;
|
||||
$search_prefix = 'anlegen_';
|
||||
$search_len = strlen($search_prefix);
|
||||
foreach( $_SESSION as $key => $value){
|
||||
if ( substr( $key, 0, $search_len) == $search_prefix) {
|
||||
unset( $_SESSION[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Rechteüberprüfung
|
||||
#$db = dbconnect();
|
||||
#if ($user_admin == ""){ require("index.php"); exit;} //Wenn man nicht angemeldet ist, darf man nicht auf die Seite
|
||||
#if(!rore($user_admin,'a_admanleg','RE')){require("lib/rechte.php");exit;}
|
||||
#// Rechteüberprüfung ende
|
||||
|
||||
if(isset($_GET['action'])){
|
||||
$action = $_GET['action'];
|
||||
}else{
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if($action == ''){
|
||||
/*
|
||||
# Daten aufbereiten für Zurückbutton
|
||||
if(isset($_SESSION["anlegen_vorname"])){
|
||||
$smarty->assign('user_anlegen_vorname', $_SESSION["anlegen_vorname"]);
|
||||
}
|
||||
|
||||
if(isset($_SESSION["anlegen_nachname"])){
|
||||
$smarty->assign('user_anlegen_nachname', $_SESSION["anlegen_nachname"]);
|
||||
}
|
||||
|
||||
if(isset($_SESSION["anlegen_mail"])){
|
||||
$smarty->assign('user_anlegen_mail', $_SESSION["anlegen_mail"]);
|
||||
}
|
||||
# Daten aufbereiten für Zurückbutton ENDE
|
||||
$query = "SELECT rid, bezeichnung FROM jumi_admin_rolle ORDER BY bezeichnung ASC";
|
||||
$result = $db->query( $query)
|
||||
or die ("Cannot execute query1");
|
||||
|
||||
while ($row = $result->fetch_array()){
|
||||
$value[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $value);
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/dashboard/$templatename");
|
||||
?>
|
32
js/components/admin_changepwd.js
Normal file
32
js/components/admin_changepwd.js
Normal file
@ -0,0 +1,32 @@
|
||||
function changepwd(){
|
||||
var password = document.getElementById("password").value;
|
||||
var password_new1 = document.getElementById("password_new1").value;
|
||||
var password_new2 = document.getElementById("password_new2").value;
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_changepwd.php',
|
||||
data: {
|
||||
'function': 'changepwd',
|
||||
'password': password,
|
||||
'password_new1': password_new1,
|
||||
'password_new2': password_new2
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
if(result!=''){
|
||||
var a = result.split('|***|');
|
||||
if(a[1]=="success"){
|
||||
document.getElementById("password").value ="";
|
||||
document.getElementById("password_new1").value ="";
|
||||
document.getElementById("password_new2").value ="";
|
||||
|
||||
}
|
||||
$('#msg').show().delay(10000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
console.log(xhr);
|
||||
}
|
||||
});
|
||||
}
|
62
js/components/admin_create_user.js
Normal file
62
js/components/admin_create_user.js
Normal file
@ -0,0 +1,62 @@
|
||||
function checkUser(){
|
||||
var mail = document.getElementById("mail").value;
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_create_user.php',
|
||||
data: {
|
||||
'function': 'checkuser',
|
||||
'mail': mail
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
if(result!=''){
|
||||
$('#msg').show().delay(5000).fadeOut(500);
|
||||
$('#msg').html(result);
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
console.log(xhr);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
function usersave(){
|
||||
var vorname = document.getElementById("vorname").value;
|
||||
var nachname = document.getElementById("nachname").value;
|
||||
var mail = document.getElementById("mail").value;
|
||||
//var my_data = $("form").serialize();
|
||||
|
||||
//komma getrennte Werte bei Mehrfachauswahl
|
||||
var rollen = $("#rollen").val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_create_user.php',
|
||||
data: {
|
||||
'function': 'usersave',
|
||||
'vorname': vorname,
|
||||
'nachname': nachname,
|
||||
'mail': mail,
|
||||
'rollen': rollen
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
if(result!=''){
|
||||
var a = result.split('|***|');
|
||||
if(a[1]=="success"){
|
||||
document.getElementById("vorname").value ="";
|
||||
document.getElementById("nachname").value ="";
|
||||
document.getElementById("mail").value ="";
|
||||
var elements = document.getElementById("rollen").options;
|
||||
for(var i = 0; i < elements.length; i++){
|
||||
elements[i].selected = false;
|
||||
}
|
||||
}
|
||||
$('#msg1').show().delay(10000).fadeOut(500);
|
||||
$('#msg1').html(a[0]);
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
console.log(xhr);
|
||||
}
|
||||
});
|
||||
}
|
23
js/show-password-toggle.js
Normal file
23
js/show-password-toggle.js
Normal file
@ -0,0 +1,23 @@
|
||||
var ShowPasswordToggle = document.querySelector("[type='password']");
|
||||
ShowPasswordToggle.onclick = function () {
|
||||
document.querySelector("[type='password']").classList.add("input-password");
|
||||
document.getElementById("toggle-password").classList.remove("d-none");
|
||||
|
||||
const passwordInput = document.querySelector("[type='password']");
|
||||
const togglePasswordButton = document.getElementById("toggle-password");
|
||||
|
||||
togglePasswordButton.addEventListener("click", togglePassword);
|
||||
function togglePassword() {
|
||||
if (passwordInput.type === "password") {
|
||||
passwordInput.type = "text";
|
||||
togglePasswordButton.setAttribute("aria-label", "Hide password.");
|
||||
} else {
|
||||
passwordInput.type = "password";
|
||||
togglePasswordButton.setAttribute(
|
||||
"aria-label",
|
||||
"Show password as plain text. " +
|
||||
"Warning: this will display your password on the screen."
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
422
sql/2023-03-24_survey.sql
Normal file
422
sql/2023-03-24_survey.sql
Normal file
@ -0,0 +1,422 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.1.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Erstellungszeit: 24. Mrz 2023 um 13:25
|
||||
-- Server-Version: 10.4.20-MariaDB
|
||||
-- PHP-Version: 8.0.9
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Datenbank: `survey`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_admin`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_admin` (
|
||||
`uid` int(11) NOT NULL,
|
||||
`vorname` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
|
||||
`nachname` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
|
||||
`mail` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`passwort` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Benutzer';
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_admin`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_admin` (`uid`, `vorname`, `nachname`, `mail`, `passwort`) VALUES
|
||||
(1, 'Alexander', 'Schwarz', 'ali@ju-and-mi.de', 'f5df16d9bd60b0894064b5777139de79'),
|
||||
(2, 'Anica', 'Müller', 'anica@ju-and-mi.de', 'e92adb8d4d6f37703623244fd5bb2e85'),
|
||||
(3, 'Jeannette', 'Schwarz', 'jeannette@ju-and-mi.de', '20167204606d3dbca85fb13be7e4d23f'),
|
||||
(4, 'Björn', 'Idler', 'bjoern@ju-and-mi.de', '91ce5643a63a77894b9ab8b280bf9462'),
|
||||
(5, 'Nadine', 'Schubert', 'nadine@ju-and-mi.de', 'a4f933c99bd0659a43136ed13d7dcbf4');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_adminlog`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_adminlog` (
|
||||
`lid` int(11) NOT NULL,
|
||||
`Datum` datetime NOT NULL,
|
||||
`IP` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
|
||||
`user_agent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`uid` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Logins der Anwender';
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_adminlog`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_adminlog` (`lid`, `Datum`, `IP`, `user_agent`, `uid`) VALUES
|
||||
(1, '2023-03-22 16:16:35', '::1', 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 0),
|
||||
(2, '2023-03-22 16:18:23', '::1', 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 1),
|
||||
(3, '2023-03-22 16:23:28', '::1', 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 1),
|
||||
(4, '2023-03-22 16:23:38', '::1', 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 1),
|
||||
(5, '2023-03-22 16:41:27', '::1', 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 1),
|
||||
(6, '2023-03-22 16:45:14', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0', 1),
|
||||
(7, '2023-03-22 16:45:56', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0', 2),
|
||||
(8, '2023-03-22 16:59:27', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0', 1),
|
||||
(9, '2023-03-23 07:11:29', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0', 1),
|
||||
(10, '2023-03-23 10:17:39', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36', 1),
|
||||
(11, '2023-03-23 13:57:28', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0', 1),
|
||||
(12, '2023-03-24 07:23:23', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0', 1),
|
||||
(13, '2023-03-24 07:39:58', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36', 1),
|
||||
(14, '2023-03-24 09:13:45', '::1', 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 1),
|
||||
(15, '2023-03-24 11:15:38', '::1', 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_admin_rolle`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_admin_rolle` (
|
||||
`rid` int(11) NOT NULL,
|
||||
`bezeichnung` varchar(200) COLLATE utf8mb4_bin NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_admin_rolle`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_admin_rolle` (`rid`, `bezeichnung`) VALUES
|
||||
(1, 'Administrator'),
|
||||
(2, 'Standardanwender');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_admin_rollen_user_zuord`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_admin_rollen_user_zuord` (
|
||||
`rozuid` int(11) NOT NULL,
|
||||
`rid` int(11) NOT NULL,
|
||||
`uid` int(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_admin_rollen_user_zuord`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_admin_rollen_user_zuord` (`rozuid`, `rid`, `uid`) VALUES
|
||||
(8, 2, 14),
|
||||
(9, 2, 15);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_parameter`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_parameter` (
|
||||
`pid` int(11) NOT NULL,
|
||||
`beschreibung` varchar(250) NOT NULL,
|
||||
`wert` varchar(250) NOT NULL,
|
||||
`sort` int(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_parameter`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_parameter` (`pid`, `beschreibung`, `wert`, `sort`) VALUES
|
||||
(1, 'Mailadressen Ansprechpartner', 'info@ju-and-mi.de', 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_umfragen`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_umfragen` (
|
||||
`umid` int(11) NOT NULL,
|
||||
`datum_von` datetime NOT NULL,
|
||||
`datum_bis` datetime NOT NULL,
|
||||
`headline` varchar(255) NOT NULL,
|
||||
`freitext` enum('0','1') NOT NULL DEFAULT '0' COMMENT '0=Kein Frextextfeld;1=Freitextfeld',
|
||||
`uid` int(11) NOT NULL,
|
||||
`datum_erfasst` datetime NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_umfragen`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_umfragen` (`umid`, `datum_von`, `datum_bis`, `headline`, `freitext`, `uid`, `datum_erfasst`) VALUES
|
||||
(5, '2023-03-23 00:00:00', '2023-04-07 00:00:00', 'Fragen zum Konzert', '1', 1, '2023-03-23 13:25:29');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_umfragen_antworten`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_umfragen_antworten` (
|
||||
`uaid` int(11) NOT NULL,
|
||||
`ufid` int(11) NOT NULL,
|
||||
`antwort` varchar(250) NOT NULL,
|
||||
`userorder` int(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_umfragen_antworten`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_umfragen_antworten` (`uaid`, `ufid`, `antwort`, `userorder`) VALUES
|
||||
(22, 7, 'jeder selbst', 0),
|
||||
(23, 7, 'Gemeinsam mit der Bahn', 1),
|
||||
(24, 7, 'Brauche Abholer', 2),
|
||||
(25, 8, 'Sonntag', 0),
|
||||
(26, 8, 'Freitag', 0),
|
||||
(27, 8, 'Samstag', 0);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_umfragen_ende`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_umfragen_ende` (
|
||||
`uenid` int(11) NOT NULL,
|
||||
`umid` int(11) NOT NULL,
|
||||
`ip` varchar(20) NOT NULL,
|
||||
`session` varchar(50) NOT NULL,
|
||||
`ende` enum('0','1') NOT NULL DEFAULT '0'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_umfragen_ende`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_umfragen_ende` (`uenid`, `umid`, `ip`, `session`, `ende`) VALUES
|
||||
(3, 5, '127.0.0.1', 'mhvvfj57p9kk4vsj7fh9hm8hej', '1');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_umfragen_ergebnisse`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_umfragen_ergebnisse` (
|
||||
`ueid` int(11) NOT NULL,
|
||||
`ip` varchar(20) NOT NULL,
|
||||
`session` varchar(50) NOT NULL,
|
||||
`ufid` int(11) NOT NULL,
|
||||
`uaid` int(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_umfragen_ergebnisse`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_umfragen_ergebnisse` (`ueid`, `ip`, `session`, `ufid`, `uaid`) VALUES
|
||||
(4, '127.0.0.1', 'mhvvfj57p9kk4vsj7fh9hm8hej', 7, 22),
|
||||
(5, '127.0.0.1', 'mhvvfj57p9kk4vsj7fh9hm8hej', 8, 25),
|
||||
(6, '127.0.0.1', 'mhvvfj57p9kk4vsj7fh9hm8hej', 8, 26),
|
||||
(7, '127.0.0.1', 'mhvvfj57p9kk4vsj7fh9hm8hej', 8, 27);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_umfragen_erg_freitext`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_umfragen_erg_freitext` (
|
||||
`uefid` int(11) NOT NULL,
|
||||
`umid` int(11) NOT NULL,
|
||||
`ip` varchar(20) CHARACTER SET utf8mb4 NOT NULL,
|
||||
`session` varchar(50) CHARACTER SET utf8mb4 NOT NULL,
|
||||
`freitext` text COLLATE utf8mb4_bin NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_umfragen_erg_freitext`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_umfragen_erg_freitext` (`uefid`, `umid`, `ip`, `session`, `freitext`) VALUES
|
||||
(3, 5, '127.0.0.1', 'mhvvfj57p9kk4vsj7fh9hm8hej', 'Danke');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `jumi_umfragen_fragen`
|
||||
--
|
||||
|
||||
CREATE TABLE `jumi_umfragen_fragen` (
|
||||
`ufid` int(11) NOT NULL,
|
||||
`umid` int(11) NOT NULL,
|
||||
`frage` varchar(255) NOT NULL,
|
||||
`multiple` enum('0','1') NOT NULL DEFAULT '0' COMMENT '0=Einfachantwort,1=Mehrfachantworten '
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `jumi_umfragen_fragen`
|
||||
--
|
||||
|
||||
INSERT INTO `jumi_umfragen_fragen` (`ufid`, `umid`, `frage`, `multiple`) VALUES
|
||||
(7, 5, 'Wie kommen wir nach Stuttgart-Ost', '0'),
|
||||
(8, 5, 'Welcher Probentag passt bei euch?', '1');
|
||||
|
||||
--
|
||||
-- Indizes der exportierten Tabellen
|
||||
--
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_admin`
|
||||
--
|
||||
ALTER TABLE `jumi_admin`
|
||||
ADD PRIMARY KEY (`uid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_adminlog`
|
||||
--
|
||||
ALTER TABLE `jumi_adminlog`
|
||||
ADD PRIMARY KEY (`lid`),
|
||||
ADD KEY `gd_adminlog_ibfk_1` (`uid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_admin_rolle`
|
||||
--
|
||||
ALTER TABLE `jumi_admin_rolle`
|
||||
ADD PRIMARY KEY (`rid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_admin_rollen_user_zuord`
|
||||
--
|
||||
ALTER TABLE `jumi_admin_rollen_user_zuord`
|
||||
ADD PRIMARY KEY (`rozuid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_parameter`
|
||||
--
|
||||
ALTER TABLE `jumi_parameter`
|
||||
ADD PRIMARY KEY (`pid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_umfragen`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen`
|
||||
ADD PRIMARY KEY (`umid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_umfragen_antworten`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_antworten`
|
||||
ADD PRIMARY KEY (`uaid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_umfragen_ende`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_ende`
|
||||
ADD PRIMARY KEY (`uenid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_umfragen_ergebnisse`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_ergebnisse`
|
||||
ADD PRIMARY KEY (`ueid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_umfragen_erg_freitext`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_erg_freitext`
|
||||
ADD PRIMARY KEY (`uefid`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `jumi_umfragen_fragen`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_fragen`
|
||||
ADD PRIMARY KEY (`ufid`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für exportierte Tabellen
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_admin`
|
||||
--
|
||||
ALTER TABLE `jumi_admin`
|
||||
MODIFY `uid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_adminlog`
|
||||
--
|
||||
ALTER TABLE `jumi_adminlog`
|
||||
MODIFY `lid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_admin_rolle`
|
||||
--
|
||||
ALTER TABLE `jumi_admin_rolle`
|
||||
MODIFY `rid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_admin_rollen_user_zuord`
|
||||
--
|
||||
ALTER TABLE `jumi_admin_rollen_user_zuord`
|
||||
MODIFY `rozuid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_parameter`
|
||||
--
|
||||
ALTER TABLE `jumi_parameter`
|
||||
MODIFY `pid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_umfragen`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen`
|
||||
MODIFY `umid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_umfragen_antworten`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_antworten`
|
||||
MODIFY `uaid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_umfragen_ende`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_ende`
|
||||
MODIFY `uenid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_umfragen_ergebnisse`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_ergebnisse`
|
||||
MODIFY `ueid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_umfragen_erg_freitext`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_erg_freitext`
|
||||
MODIFY `uefid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `jumi_umfragen_fragen`
|
||||
--
|
||||
ALTER TABLE `jumi_umfragen_fragen`
|
||||
MODIFY `ufid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
139
templates/modern/dashboard/changepwd.html
Normal file
139
templates/modern/dashboard/changepwd.html
Normal file
@ -0,0 +1,139 @@
|
||||
{if $action == ''}
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>JU & MI Benutzer erstellen</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">
|
||||
<script src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
|
||||
<link href="css/styles.css" rel="stylesheet" />
|
||||
<!-- icons in nav-->
|
||||
<script src="all.js" crossorigin="anonymous"></script>
|
||||
<script src="../jquery/jquery-3.4.1.min.js"></script>
|
||||
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
|
||||
<style>
|
||||
|
||||
::-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>
|
||||
{literal}
|
||||
<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");
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<div id="layoutSidenav">
|
||||
<!-- Navigation left -->
|
||||
<div id="navleft"></div>
|
||||
<div id="layoutSidenav_content">
|
||||
<main>
|
||||
<!--Anwendung-->
|
||||
<script src="../js/components/admin_changepwd.js"></script>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-edit me-1"></i>
|
||||
Passwortwechsel
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<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>
|
||||
</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>
|
||||
</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>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p align='center'>
|
||||
<button class="col-6 btn btn-primary btn-sm mt-3" id="save" onclick="changepwd();">Speichern</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="msg"></div>
|
||||
<script src="../js/show-password-toggle.js" async></script>
|
||||
</main>
|
||||
<!-- footer -->
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{/if}
|
208
templates/modern/dashboard/create_user.html
Normal file
208
templates/modern/dashboard/create_user.html
Normal file
@ -0,0 +1,208 @@
|
||||
{if $action == ''}
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>JU & MI Benutzer erstellen</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">
|
||||
<script src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
|
||||
<link href="css/styles.css" rel="stylesheet" />
|
||||
<!-- icons in nav-->
|
||||
<script src="all.js" crossorigin="anonymous"></script>
|
||||
<script src="../jquery/jquery-3.4.1.min.js"></script>
|
||||
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
|
||||
<style>
|
||||
.multiselect-container {
|
||||
position: absolute;
|
||||
list-style-type: none;
|
||||
margin: 5px 0 0 0;
|
||||
width: 100%;
|
||||
padding: 10px 0;
|
||||
border: none;
|
||||
-webkit-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
-moz-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14); }
|
||||
|
||||
.multiselect-container .input-group {
|
||||
margin: 5px; }
|
||||
|
||||
.multiselect-container > li {
|
||||
padding: 0;
|
||||
font-size: 14px; }
|
||||
|
||||
.multiselect-container > li > a.multiselect-all label {
|
||||
font-weight: 700;
|
||||
color: gray; }
|
||||
|
||||
.multiselect-container > li.multiselect-group label {
|
||||
margin: 0;
|
||||
padding: 3px 20px 3px 20px;
|
||||
height: 100%;
|
||||
font-weight: 700; }
|
||||
|
||||
.multiselect-container > li.multiselect-group-clickable label {
|
||||
cursor: pointer; }
|
||||
|
||||
.multiselect-container > li > a {
|
||||
padding: 5px 0;
|
||||
color: #000;
|
||||
display: block; }
|
||||
|
||||
.multiselect-container > li > a > label {
|
||||
display: block;
|
||||
position: relative;
|
||||
padding-left: 20px;
|
||||
margin-bottom: 12px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
.multiselect-container > li > a > label:before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
border: 2px solid rgba(0, 0, 0, 0.2);
|
||||
border-radius: 4px;
|
||||
background-color: transparent;
|
||||
margin-right: 15px;
|
||||
vertical-align: middle; }
|
||||
|
||||
.multiselect-container > li.active > a > label:before {
|
||||
font-family: 'fontAwesome';
|
||||
content: "\f00c";
|
||||
color: #fff;
|
||||
background-color: #52de97;
|
||||
border: 0;
|
||||
display: inline-block;
|
||||
padding: 0;
|
||||
line-height: 1.2;
|
||||
padding-left: 2px; }
|
||||
|
||||
.multiselect-container > li > a > label.radio, .multiselect-container > li > a > label.checkbox {
|
||||
margin: 0; }
|
||||
|
||||
.multiselect-container > li > a > label > input[type=checkbox] {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
height: 0;
|
||||
width: 0; }
|
||||
|
||||
.btn-group > .btn-group:nth-child(2) > .multiselect.btn {
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px; }
|
||||
|
||||
.form-inline .multiselect-container label.checkbox, .form-inline .multiselect-container label.radio {
|
||||
padding: 3px 20px 3px 40px; }
|
||||
|
||||
.form-inline .multiselect-container li a label.checkbox input[type=checkbox],
|
||||
.form-inline .multiselect-container li a label.radio input[type=radio] {
|
||||
margin-left: -20px;
|
||||
margin-right: 0; }
|
||||
|
||||
.btn-group {
|
||||
height: 52px;
|
||||
width: calc(100% - 150px); }
|
||||
.btn-group button {
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
-webkit-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
-moz-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
padding: 0 10px;
|
||||
text-align: left;
|
||||
position: relative; }
|
||||
.btn-group button:after {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 20px;
|
||||
-webkit-transform: translateY(-50%);
|
||||
-ms-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
color: #999999; }
|
||||
.btn-group button:focus {
|
||||
-webkit-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
-moz-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
padding: 0 10px; }
|
||||
|
||||
.sl {
|
||||
color: gray;
|
||||
width: 150px; }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body class="sb-nav-fixed">
|
||||
<div id="navtop"></div>
|
||||
{literal}
|
||||
<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");
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<div id="layoutSidenav">
|
||||
<!-- Navigation left -->
|
||||
<div id="navleft"></div>
|
||||
<div id="layoutSidenav_content">
|
||||
<main>
|
||||
<!--Anwendung-->
|
||||
<script src="../js/components/admin_create_user.js"></script>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-edit me-1"></i>
|
||||
Benutzer erstellen
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
<div class="col-12 col-md-4">Vorname:</div>
|
||||
<div class="col-12 col-md-8"><input type="text" class="form-control" name="vorname" id="vorname" value="{$user_anlegen_vorname}"></div>
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
<div class="col-12 col-md-4">Nachname:</div>
|
||||
<div class="col-12 col-md-8"><input type="text" class="form-control" name="nachname" id="nachname" value="{$user_anlegen_nachname}"></div>
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
<div class="col-12 col-md-4">Mailadresse:</div>
|
||||
<div class="col-12 col-md-8"><input type="email" class="form-control" name="mail" id="mail" value="{$user_anlegen_mail}" onkeyup="checkUser()"></div>
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
<div class="col-12 col-md-4">Rolle:</div>
|
||||
<div class="col-12 col-md-8">
|
||||
<select name="rollen[]"class="form-control" id="rollen" multiple="multiple">
|
||||
{section name=table_data loop=$table_data}
|
||||
<option value="{$table_data[table_data].rid}">{$table_data[table_data].bezeichnung}</option>
|
||||
{/section}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<p align='center'>
|
||||
<button class="col-6 btn btn-primary btn-sm mt-3" id="save" onclick="usersave();">Speichern</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="msg"></div>
|
||||
<div id="msg1"></div>
|
||||
</main>
|
||||
<!-- footer -->
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{/if}
|
@ -9,7 +9,7 @@
|
||||
</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 fa-pie-chart"></i></div>
|
||||
<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">
|
||||
@ -65,6 +65,20 @@
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
<a class="nav-link" href="tables.html">
|
||||
<div class="sb-nav-link-icon"><i class="fas fa-table"></i></div>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!--Navigation top-->
|
||||
<nav class="bg-juandmi sb-topnav navbar navbar-expand navbar-dark">
|
||||
<!-- Navbar Brand-->
|
||||
<a class="navbar-brand ps-3" href="index.html">Administration JU & MI</a>
|
||||
<a class="navbar-brand ps-3" href="startseite.php">Administration JU & MI</a>
|
||||
<!-- Sidebar Toggle: js/scripts.js in der callbackfunktion vom Load aufrufen beim einbetten-->
|
||||
<button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i class="fas fa-bars"></i></button>
|
||||
<!-- Navbar Search-->
|
||||
@ -23,6 +23,7 @@
|
||||
<li><a class="dropdown-item" href="#!">Activity Log</a></li>
|
||||
<li><hr class="dropdown-divider" /></li>
|
||||
-->
|
||||
<li><a class="dropdown-item" href="changepwd.php">Passwortwechsel</a></li>
|
||||
<li><a class="dropdown-item" href="logout.php">Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
@ -36,7 +36,7 @@
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table me-1"></i>
|
||||
<i class="fas fa-cog me-1"></i>
|
||||
Systemparameter
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
@ -40,7 +40,7 @@
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table me-1"></i>
|
||||
<i class="fas fa-edit me-1"></i>
|
||||
Erfasste Umfragen
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
@ -136,7 +136,7 @@
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table me-1"></i>
|
||||
<i class="fas fa-pie-chart me-1"></i>
|
||||
Zeitraum der Umfrage und Bezeichnung
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
|
@ -0,0 +1,181 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 07:23:31
|
||||
from 'C:\xampp_8.0.9\htdocs\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_641d41e38ce756_76114147',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'3b2e626d0d78175548e0a01f23ad605c15662631' =>
|
||||
array (
|
||||
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\admin\\result_latest.html',
|
||||
1 => 1679466762,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641d41e38ce756_76114147 (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 }
|
||||
}
|
||||
}
|
@ -0,0 +1,172 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 07:26:23
|
||||
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',
|
||||
'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,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641d428fde7110_72373996 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>JU & MI Umfragen 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">
|
||||
<?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'; ?>
|
||||
>
|
||||
<!-- 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'; ?>
|
||||
>
|
||||
|
||||
<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_edit.js"><?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-edit me-1"></i>
|
||||
Erfasste Umfragen
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<!-- bei mobilen Geäten ausblenden: d-none d-lg-block -->
|
||||
<div class="col-1 d-none d-lg-block"><b>Nr</b></div>
|
||||
<div class="col-5 d-none d-lg-block"><b>Überschrift</b></div>
|
||||
<div class="col-2 d-none d-lg-block"><b>Startdatum</b></div>
|
||||
<div class="col-2 d-none d-lg-block"><b>Enddatum</b></div>
|
||||
<div class="col-2 d-none d-lg-block"><b>Bearbeiten</b></div>
|
||||
</div>
|
||||
<?php
|
||||
$__section_table_data1_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_table_data1_0_total = $__section_table_data1_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array());
|
||||
if ($__section_table_data1_0_total !== 0) {
|
||||
for ($__section_table_data1_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_0_iteration <= $__section_table_data1_0_total; $__section_table_data1_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__section_table_data1_0_iteration;
|
||||
?>
|
||||
<div class="row mt-0 mb-0">
|
||||
<div class="col-1 col-lg-1 mb-2 mb-sm-3"><?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null);?>
|
||||
</div>
|
||||
<div class="col-9 col-lg-5 mb-2 mb-sm-3"><?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)]['headline'];?>
|
||||
|
||||
<div class="d-block d-lg-none"><?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)]['datum_von'];?>
|
||||
-</div>
|
||||
<div class="d-block d-lg-none"><?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)]['datum_bis'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-none d-lg-block col-lg-2 mb-2 mb-sm-3"><?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)]['datum_von'];?>
|
||||
</div>
|
||||
<div class="d-none d-lg-block col-lg-2 mb-2 mb-sm-3"><?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)]['datum_bis'];?>
|
||||
</div>
|
||||
<div class="col-2 col-lg-2 mb-2 mb-sm-3">
|
||||
<a href="survey_erfassen.php?edit=1&umid=<?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)]['umid'];?>
|
||||
" class="btn btn-primary btn-rounded btn-icon btn-sm"><i class="fa fa-edit" 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_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['umid'];?>
|
||||
" onclick="ShowDetails(this)" data-bs-target="#exampleModal"><i class="fa fa-eye" style="width:18px;"></i></a>
|
||||
<a class="btn btn-danger btn-rounded btn-icon btn-sm" onclick="onClickDeleteSurvey(<?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)]['umid'];?>
|
||||
)"><i class="fa fa-trash" style="width:18px;"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Umfrageergebnis</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>
|
||||
<hr>
|
||||
<!-- Lösen Sie das Modal mit einem Button aus -->
|
||||
|
||||
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
>
|
||||
function ShowDetails(a){
|
||||
let value = a.getAttribute("value");
|
||||
$( '.modal-body' ).load( 'result_latest.php?editumid='+value , function () {
|
||||
$( '#exampleModal' ).modal({show: true });
|
||||
});
|
||||
}
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<!-- footer -->
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php }
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 07:25:15
|
||||
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',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'60770e4a66f5636533d9cacf91dcf9d3cb1e51bf' =>
|
||||
array (
|
||||
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\parameter.html',
|
||||
1 => 1679639113,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641d424b5e7026_88417519 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>JU & MI Systemparameter</title>
|
||||
<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="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_parameter.js"><?php echo '</script'; ?>
|
||||
>
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-cog me-1"></i>
|
||||
Systemparameter
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
$__section_table_data1_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_table_data1_0_total = $__section_table_data1_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array());
|
||||
if ($__section_table_data1_0_total !== 0) {
|
||||
for ($__section_table_data1_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_0_iteration <= $__section_table_data1_0_total; $__section_table_data1_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){
|
||||
?>
|
||||
<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>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</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>
|
||||
</main>
|
||||
<!-- footer -->
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php }
|
||||
}
|
||||
}
|
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-22 17:02:58
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 07:23:18
|
||||
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_641b26b2c469e3_80177331',
|
||||
'unifunc' => 'content_641d41d6339c56_97883781',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'61084ee676a3c91a4b41c7e50fa536cf9cd1daac' =>
|
||||
array (
|
||||
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\index.html',
|
||||
1 => 1679500840,
|
||||
1 => 1679638068,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
@ -20,17 +20,17 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641b26b2c469e3_80177331 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
function content_641d41d6339c56_97883781 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="de">
|
||||
<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>Login - SB Admin</title>
|
||||
<title>JU & MI Administration</title>
|
||||
<link href="css/styles.css" rel="stylesheet" />
|
||||
<?php echo '<script'; ?>
|
||||
src="all.js" crossorigin="anonymous"><?php echo '</script'; ?>
|
||||
@ -73,12 +73,13 @@ if ($_smarty_tpl->tpl_vars['action']->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">JU & MI Login</h3>
|
||||
<h3 class="text-center font-weight-light my-4">Login</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action=?action=anmeld method="POST" name="login">
|
||||
|
@ -0,0 +1,176 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 13:04:30
|
||||
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',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'6db6f41f0bc02f7e26e3e95225e982b8df03345b' =>
|
||||
array (
|
||||
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\changepwd.html',
|
||||
1 => 1679659219,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641d91ce46b972_67242621 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>JU & MI Benutzer erstellen</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-->
|
||||
<?php echo '<script'; ?>
|
||||
src="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>
|
||||
|
||||
::-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>
|
||||
|
||||
<?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_changepwd.js"><?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-edit me-1"></i>
|
||||
Passwortwechsel
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<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>
|
||||
</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>
|
||||
</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>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p align='center'>
|
||||
<button class="col-6 btn btn-primary btn-sm mt-3" id="save" onclick="changepwd();">Speichern</button>
|
||||
</p>
|
||||
</div>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php }
|
||||
}
|
||||
}
|
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-22 17:02:30
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 07:44:53
|
||||
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_641b2696e1bf97_12480472',
|
||||
'unifunc' => 'content_641d46e5766180_99358598',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'81c00a8c5d0bbd7d154ad2d8777ef2d3d8c3a749' =>
|
||||
array (
|
||||
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\nav.html',
|
||||
1 => 1679500948,
|
||||
1 => 1679640055,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
@ -20,21 +20,25 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641b2696e1bf97_12480472 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
function content_641d46e5766180_99358598 (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-tachometer-alt"></i></div>
|
||||
<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-tachometer-alt"></i></div>
|
||||
<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>
|
||||
@ -80,10 +84,24 @@ function content_641b2696e1bf97_12480472 (Smarty_Internal_Template $_smarty_tpl)
|
||||
</div>
|
||||
-->
|
||||
<div class="sb-sidenav-menu-heading">Administration</div>
|
||||
<a class="nav-link" href="startseite.php">
|
||||
<div class="sb-nav-link-icon"><i class="fas fa-chart-area"></i></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>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
<a class="nav-link" href="tables.html">
|
||||
<div class="sb-nav-link-icon"><i class="fas fa-table"></i></div>
|
||||
|
@ -0,0 +1,257 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 12:01:27
|
||||
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',
|
||||
'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,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641d83072c7a20_98229386 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>JU & MI Benutzer erstellen</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-->
|
||||
<?php echo '<script'; ?>
|
||||
src="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>
|
||||
.multiselect-container {
|
||||
position: absolute;
|
||||
list-style-type: none;
|
||||
margin: 5px 0 0 0;
|
||||
width: 100%;
|
||||
padding: 10px 0;
|
||||
border: none;
|
||||
-webkit-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
-moz-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14); }
|
||||
|
||||
.multiselect-container .input-group {
|
||||
margin: 5px; }
|
||||
|
||||
.multiselect-container > li {
|
||||
padding: 0;
|
||||
font-size: 14px; }
|
||||
|
||||
.multiselect-container > li > a.multiselect-all label {
|
||||
font-weight: 700;
|
||||
color: gray; }
|
||||
|
||||
.multiselect-container > li.multiselect-group label {
|
||||
margin: 0;
|
||||
padding: 3px 20px 3px 20px;
|
||||
height: 100%;
|
||||
font-weight: 700; }
|
||||
|
||||
.multiselect-container > li.multiselect-group-clickable label {
|
||||
cursor: pointer; }
|
||||
|
||||
.multiselect-container > li > a {
|
||||
padding: 5px 0;
|
||||
color: #000;
|
||||
display: block; }
|
||||
|
||||
.multiselect-container > li > a > label {
|
||||
display: block;
|
||||
position: relative;
|
||||
padding-left: 20px;
|
||||
margin-bottom: 12px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
.multiselect-container > li > a > label:before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
border: 2px solid rgba(0, 0, 0, 0.2);
|
||||
border-radius: 4px;
|
||||
background-color: transparent;
|
||||
margin-right: 15px;
|
||||
vertical-align: middle; }
|
||||
|
||||
.multiselect-container > li.active > a > label:before {
|
||||
font-family: 'fontAwesome';
|
||||
content: "\f00c";
|
||||
color: #fff;
|
||||
background-color: #52de97;
|
||||
border: 0;
|
||||
display: inline-block;
|
||||
padding: 0;
|
||||
line-height: 1.2;
|
||||
padding-left: 2px; }
|
||||
|
||||
.multiselect-container > li > a > label.radio, .multiselect-container > li > a > label.checkbox {
|
||||
margin: 0; }
|
||||
|
||||
.multiselect-container > li > a > label > input[type=checkbox] {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
height: 0;
|
||||
width: 0; }
|
||||
|
||||
.btn-group > .btn-group:nth-child(2) > .multiselect.btn {
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px; }
|
||||
|
||||
.form-inline .multiselect-container label.checkbox, .form-inline .multiselect-container label.radio {
|
||||
padding: 3px 20px 3px 40px; }
|
||||
|
||||
.form-inline .multiselect-container li a label.checkbox input[type=checkbox],
|
||||
.form-inline .multiselect-container li a label.radio input[type=radio] {
|
||||
margin-left: -20px;
|
||||
margin-right: 0; }
|
||||
|
||||
.btn-group {
|
||||
height: 52px;
|
||||
width: calc(100% - 150px); }
|
||||
.btn-group button {
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
-webkit-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
-moz-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
padding: 0 10px;
|
||||
text-align: left;
|
||||
position: relative; }
|
||||
.btn-group button:after {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 20px;
|
||||
-webkit-transform: translateY(-50%);
|
||||
-ms-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
color: #999999; }
|
||||
.btn-group button:focus {
|
||||
-webkit-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
-moz-box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
box-shadow: 0px 10px 23px -16px rgba(0, 0, 0, 0.14);
|
||||
padding: 0 10px; }
|
||||
|
||||
.sl {
|
||||
color: gray;
|
||||
width: 150px; }
|
||||
|
||||
</style>
|
||||
</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 erstellen
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
<div class="col-12 col-md-4">Vorname:</div>
|
||||
<div class="col-12 col-md-8"><input type="text" class="form-control" name="vorname" id="vorname" value="<?php echo $_smarty_tpl->tpl_vars['user_anlegen_vorname']->value;?>
|
||||
"></div>
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
<div class="col-12 col-md-4">Nachname:</div>
|
||||
<div class="col-12 col-md-8"><input type="text" class="form-control" name="nachname" id="nachname" value="<?php echo $_smarty_tpl->tpl_vars['user_anlegen_nachname']->value;?>
|
||||
"></div>
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
<div class="col-12 col-md-4">Mailadresse:</div>
|
||||
<div class="col-12 col-md-8"><input type="email" class="form-control" name="mail" id="mail" value="<?php echo $_smarty_tpl->tpl_vars['user_anlegen_mail']->value;?>
|
||||
" onkeyup="checkUser()"></div>
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
<div class="col-12 col-md-4">Rolle:</div>
|
||||
<div class="col-12 col-md-8">
|
||||
<select name="rollen[]"class="form-control" id="rollen" multiple="multiple">
|
||||
<?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']++){
|
||||
?>
|
||||
<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'];?>
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<p align='center'>
|
||||
<button class="col-6 btn btn-primary btn-sm mt-3" id="save" onclick="usersave();">Speichern</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="msg"></div>
|
||||
<div id="msg1"></div>
|
||||
</main>
|
||||
<!-- footer -->
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php }
|
||||
}
|
||||
}
|
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-22 17:02:01
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 09:07:50
|
||||
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_641b26798c33f0_88033525',
|
||||
'unifunc' => 'content_641d5a563f9774_23770210',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'b3a308ee2af3bf7c7926a28ad9259929ec1e5ab1' =>
|
||||
array (
|
||||
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\survey_erfassen.html',
|
||||
1 => 1679500872,
|
||||
1 => 1679645265,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
@ -20,10 +20,12 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641b26798c33f0_88033525 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
function content_641d5a563f9774_23770210 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>JU & MI Umfragen erfassen</title>
|
||||
<link rel="stylesheet" href="../jquery/jquery-ui.css">
|
||||
<link rel="stylesheet" href="../jquery/jquery.timepicker.min.css">
|
||||
<?php echo '<script'; ?>
|
||||
@ -45,7 +47,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
src="../jquery/jquery.timepicker.min.js"><?php echo '</script'; ?>
|
||||
>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.ali.css" rel="stylesheet">
|
||||
<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'; ?>
|
||||
>
|
||||
@ -182,7 +184,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table me-1"></i>
|
||||
<i class="fas fa-pie-chart me-1"></i>
|
||||
Zeitraum der Umfrage und Bezeichnung
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
||||
@ -222,7 +224,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 btn-group">
|
||||
<input type='submit' class="btn btn-primary" name='senden' value="Weiter - Fragen erfassen">
|
||||
<input type='submit' class="btn btn-primary mt-3" name='senden' value="Weiter - Fragen erfassen">
|
||||
</div>
|
||||
</form>
|
||||
</main>
|
||||
@ -242,7 +244,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
|
||||
<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.ali.css" rel="stylesheet">
|
||||
<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'; ?>
|
||||
>
|
||||
@ -308,7 +310,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
|
||||
function(data){
|
||||
var a = data.split('|***|');
|
||||
if(a[1]=="update"){
|
||||
$('#msg').show().delay(1000).fadeOut(500);
|
||||
$('#msg').show().delay(5000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
}
|
||||
@ -388,8 +390,8 @@ if ($_smarty_tpl->tpl_vars['action']->value == 'fragen') {?>
|
||||
</div>
|
||||
<p align='center'>
|
||||
<div class="col-12">
|
||||
<a type="submit" href="?" class="btn btn-light btn-sm">Zurück</a>
|
||||
<button class="btn btn-primary btn-sm" id="save" onclick="erfassensave();">Speichern</button>
|
||||
<a type="submit" href="?" class="btn btn-light btn-sm mt-3">Zurück</a>
|
||||
<button class="btn btn-primary btn-sm mt-3" id="save" onclick="erfassensave();">Speichern</button>
|
||||
</div>
|
||||
</p>
|
||||
<div class="card">
|
||||
@ -432,8 +434,8 @@ $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__sec
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%">Sortierung</th>
|
||||
<th width="60%">Antwort</th>
|
||||
<th width="20%">Löschen</th>
|
||||
<th width="70%">Antwort</th>
|
||||
<th width="10%">Löschen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tb">
|
||||
@ -451,8 +453,8 @@ $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__sec
|
||||
</td>
|
||||
<td valign="middle"><?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['antwort'];?>
|
||||
</td>
|
||||
<td valign="middle"><button class="btn btn-delete btn-danger btn-sm" onclick="onClickDelete(<?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['uaid'];?>
|
||||
)">Löschen</button></td>
|
||||
<td valign="middle"><button class="btn btn-delete btn-danger btn-rounded btn-icon" onclick="onClickDelete(<?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['uaid'];?>
|
||||
)"><i class="fa fa-trash"></i></button></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-22 16:59:56
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 07:23:23
|
||||
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_641b25fca4ec71_29046760',
|
||||
'unifunc' => 'content_641d41db4693a5_86181476',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'eefbc054a71eb9a54ff5facb15ab71dc63db3dcc' =>
|
||||
array (
|
||||
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\startseite.html',
|
||||
1 => 1679500793,
|
||||
1 => 1679638069,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
@ -20,17 +20,17 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641b25fca4ec71_29046760 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
function content_641d41db4693a5_86181476 (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>Dashboard - SB Admin</title>
|
||||
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.ali.css" rel="stylesheet">
|
||||
<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-->
|
||||
|
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-22 17:01:58
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 12:24:07
|
||||
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_641b2676307511_36618138',
|
||||
'unifunc' => 'content_641d88573d5123_95321232',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'fbe82feaa632818ff9ecad86ba177b47f9b345b0' =>
|
||||
array (
|
||||
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\navtop.html',
|
||||
1 => 1679500891,
|
||||
1 => 1679657038,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
@ -20,11 +20,11 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641b2676307511_36618138 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
function content_641d88573d5123_95321232 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?><!--Navigation top-->
|
||||
<nav class="bg-juandmi sb-topnav navbar navbar-expand navbar-dark">
|
||||
<!-- Navbar Brand-->
|
||||
<a class="navbar-brand ps-3" href="index.html">Administration JU & MI</a>
|
||||
<a class="navbar-brand ps-3" href="startseite.php">Administration JU & MI</a>
|
||||
<!-- Sidebar Toggle: js/scripts.js in der callbackfunktion vom Load aufrufen beim einbetten-->
|
||||
<button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i class="fas fa-bars"></i></button>
|
||||
<!-- Navbar Search-->
|
||||
@ -46,6 +46,7 @@ function content_641b2676307511_36618138 (Smarty_Internal_Template $_smarty_tpl)
|
||||
<li><a class="dropdown-item" href="#!">Activity Log</a></li>
|
||||
<li><hr class="dropdown-divider" /></li>
|
||||
-->
|
||||
<li><a class="dropdown-item" href="changepwd.php">Passwortwechsel</a></li>
|
||||
<li><a class="dropdown-item" href="logout.php">Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user