Änderungen mit Speicherpfad in Uploads

This commit is contained in:
aschwarz 2023-03-31 17:20:44 +02:00
parent 3f48a78140
commit 4a85775303
7 changed files with 83 additions and 110 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
templates_c

View File

@ -72,7 +72,7 @@ if(isset($_POST) && $_SERVER['REQUEST_METHOD'] == "POST")
) )
VALUES VALUES
( $jndid ( $jndid
, '$vpb_file_name' , '$vpb_final_location'
, '$originalname' , '$originalname'
, $uid , $uid
, '$datum' , '$datum'

View File

@ -1,18 +1,18 @@
<?php <?php
/* Smarty version 3.1.39, created on 2023-03-27 10:33:49 /* Smarty version 3.1.39, created on 2023-03-31 17:05:08
from 'F:\git\survey\templates\modern\dashboard\navtop.html' */ from 'F:\git\survey\templates\modern\dashboard\navtop.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */ /* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39', 'version' => '3.1.39',
'unifunc' => 'content_642154eddee429_56546947', 'unifunc' => 'content_6426f6a4c943e1_05184068',
'has_nocache_code' => false, 'has_nocache_code' => false,
'file_dependency' => 'file_dependency' =>
array ( array (
'15b779282fc1667ebc65227c3ff810b1d3ec06fd' => '15b779282fc1667ebc65227c3ff810b1d3ec06fd' =>
array ( array (
0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\navtop.html', 0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\navtop.html',
1 => 1679906028, 1 => 1680274932,
2 => 'file', 2 => 'file',
), ),
), ),
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array ( array (
), ),
),false)) { ),false)) {
function content_642154eddee429_56546947 (Smarty_Internal_Template $_smarty_tpl) { function content_6426f6a4c943e1_05184068 (Smarty_Internal_Template $_smarty_tpl) {
?><!--Navigation top--> ?><!--Navigation top-->
<style> <style>
<!-- abweichend von original styles.css --> <!-- abweichend von original styles.css -->
@ -41,7 +41,7 @@ function content_642154eddee429_56546947 (Smarty_Internal_Template $_smarty_tpl)
</style> </style>
<nav class="bg-juandmi sb-topnav navbar navbar-expand navbar-dark"> <nav class="bg-juandmi sb-topnav navbar navbar-expand navbar-dark">
<!-- Navbar Brand--> <!-- Navbar Brand-->
<a class="navbar-brand ps-3" href="startseite.php">Administration JU & MI</a> <a class="navbar-brand ps-3" href="index.php">Administration JU & MI</a>
<!-- Sidebar Toggle: js/scripts.js in der callbackfunktion vom Load aufrufen beim einbetten--> <!-- 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> <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--> <!-- Navbar Search-->

View File

@ -1,18 +1,18 @@
<?php <?php
/* Smarty version 3.1.39, created on 2023-03-28 18:51:21 /* Smarty version 3.1.39, created on 2023-03-31 17:05:13
from 'F:\git\survey\templates\modern\dashboard\rollen.html' */ from 'F:\git\survey\templates\modern\dashboard\rollen.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */ /* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39', 'version' => '3.1.39',
'unifunc' => 'content_64231b09d9f379_62984178', 'unifunc' => 'content_6426f6a98853d7_89857417',
'has_nocache_code' => false, 'has_nocache_code' => false,
'file_dependency' => 'file_dependency' =>
array ( array (
'5e39749cb1a64f7b81c95621b910340c1aee6ae0' => '5e39749cb1a64f7b81c95621b910340c1aee6ae0' =>
array ( array (
0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\rollen.html', 0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\rollen.html',
1 => 1680022279, 1 => 1680274933,
2 => 'file', 2 => 'file',
), ),
), ),
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array ( array (
), ),
),false)) { ),false)) {
function content_64231b09d9f379_62984178 (Smarty_Internal_Template $_smarty_tpl) { function content_6426f6a98853d7_89857417 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?> if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<!doctype html> <!doctype html>
<html lang="de"> <html lang="de">
@ -136,8 +136,8 @@ $(document).ready(function(){
<div class="card-body"> <div class="card-body">
<div class="row mt-0 mt-sm-1 mb-0 mb-sm-1"> <div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
<div class="row mt-0 mb-0"> <div class="row mt-0 mb-0">
<div class="d-none col-md-10 d-md-block"><b>Rolle</b></div> <div class="d-none col-md-7 d-md-block"><b>Rolle</b></div>
<div class="d-none col-md-2 d-md-block"><b>Aktion</b></div> <div class="d-none col-md-5 d-md-block"><b>Aktion</b></div>
</div> </div>
<?php <?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_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data']->value) ? count($_loop) : max(0, (int) $_loop));
@ -147,9 +147,9 @@ 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']++){ for ($__section_table_data_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] = 0; $__section_table_data_0_iteration <= $__section_table_data_0_total; $__section_table_data_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']++){
?> ?>
<div class="row mt-0 mt-sm-1 mb-0 mb-sm-1"> <div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
<div class="col-6 col-md-10"><?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['bezeichnung'];?> <div class="col-6 col-md-7"><?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['bezeichnung'];?>
</div> </div>
<div class="col-6 col-md-2"> <div class="col-6 col-md-5">
<a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['rid'];?> <a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['rid'];?>
|rollenzuordnung.php" onclick="ShowZuordnung(this)" data-bs-target="#ZuordnungModal"><i class="fa fa-eye" style="width:18px;"></i></a> |rollenzuordnung.php" onclick="ShowZuordnung(this)" data-bs-target="#ZuordnungModal"><i class="fa fa-eye" style="width:18px;"></i></a>
<a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['rid'];?> <a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['rid'];?>

View File

@ -1,18 +1,18 @@
<?php <?php
/* Smarty version 3.1.39, created on 2023-03-28 06:12:35 /* Smarty version 3.1.39, created on 2023-03-31 17:04:53
from 'F:\git\survey\templates\modern\dashboard\index.html' */ from 'F:\git\survey\templates\modern\dashboard\index.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */ /* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39', 'version' => '3.1.39',
'unifunc' => 'content_642269335a1849_37187460', 'unifunc' => 'content_6426f695136e94_48182210',
'has_nocache_code' => false, 'has_nocache_code' => false,
'file_dependency' => 'file_dependency' =>
array ( array (
'bf479f21e7ad507ad2c2c30536bdf206de07b30e' => 'bf479f21e7ad507ad2c2c30536bdf206de07b30e' =>
array ( array (
0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\index.html', 0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\index.html',
1 => 1679910276, 1 => 1680274932,
2 => 'file', 2 => 'file',
), ),
), ),
@ -20,135 +20,107 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
array ( array (
), ),
),false)) { ),false)) {
function content_642269335a1849_37187460 (Smarty_Internal_Template $_smarty_tpl) { function content_6426f695136e94_48182210 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?> ?><!DOCTYPE html>
<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>JU & MI Startseite</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <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="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" /> <meta name="description" content="" />
<meta name="author" content="" /> <meta name="author" content="" />
<title>JU & MI Administration</title> <link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
<link href="css/styles.css" rel="stylesheet" /> <link href="css/styles.css" rel="stylesheet" />
<!-- icons in nav-->
<?php echo '<script'; ?> <?php echo '<script'; ?>
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?> src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
> >
<?php echo '<script'; ?> <?php echo '<script'; ?>
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?> src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
> >
<?php echo '<script'; ?>
src="../js/lottie_bodymovin/lottie.min.js"><?php echo '</script'; ?>
>
<style type="text/css">
.lottie-container {
justify-content: center;
top: 40px;
left: 0;
right: 0;
bottom: 20px;
height: 180px;
pointer-events: none;
}
</style>
</head> </head>
<body> <body class="sb-nav-fixed">
<div id="navtop"></div> <div id="navtop"></div>
<?php echo '<script'; ?> <?php echo '<script'; ?>
> >
$(function() {
$("#mail").focus();
});
$(function(){ $(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"); $("#footer").load("footer.php");
}); });
<?php echo '</script'; ?> <?php echo '</script'; ?>
> >
<div id="layoutAuthentication"> <div id="layoutSidenav">
<div id="layoutAuthentication_content"> <!-- Navigation left -->
<div id="navleft"></div>
<div id="layoutSidenav_content">
<main> <main>
<!--Anwendung--> <div class="container-fluid">
<?php echo '<script'; ?> <div class="card">
src="../js/components/admin_login.js"><?php echo '</script'; ?> <div class="card-header">
> <i class="fas fa-user me-1"></i>
<div class="lottie-container" id="lottie-container"></div> Herzlich willkommen <?php echo $_smarty_tpl->tpl_vars['startseite_name']->value;?>
<div class="container">
<div class="row justify-content-center"> </div>
<div class="col-lg-5"> <div class="card-body">
<div class="card shadow-lg border-0 rounded-lg mt-5"> <p class="card-text">Herzlich willkommen zur Administration von Jugendchor & Miteinander.<br><br>
<div class="card-header"> </p>
<h3 class="text-center font-weight-light my-4">Login</h3>
</div> <!--
<div class="card-body">
<div class="form-floating mb-3"> <div class="row">
<input class="form-control" name="mail" id="mail" type="email" onkeydown="keysave(this)" placeholder="Mailadresse" /> <div class="col-xl-3 col-md-6">
<label for="inputEmail">Mailadresse</label> <div class="card bg-primary text-white mb-4">
</div> <div class="card-body">Primary Card</div>
<div class="form-floating mb-3"> </div>
<input class="form-control" name="password" id="password" type="password" onkeydown="keysave(this)" placeholder="Passwort" /> </div>
<label for="inputPassword">Passwort</label> <div class="col-xl-3 col-md-6">
</div> <div class="card bg-warning text-white mb-4">
<!--<div class="form-check mb-3"> <div class="card-body">Warning Card</div>
<input class="form-check-input" id="inputRememberPassword" type="checkbox" value="" /> <div class="card-footer d-flex align-items-center justify-content-between">
<label class="form-check-label" for="inputRememberPassword">Remember Password</label> <a class="small text-white stretched-link" href="#">View Details</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
</div> </div>
--> </div>
<div class="d-flex align-items-center justify-content-between mt-4 mb-0"> </div>
<!--<a class="small" href="password.html">Forgot Password?</a>--> <div class="col-xl-3 col-md-6">
&nbsp; <div class="card bg-success text-white mb-4">
<input type='submit' class="btn btn-primary" onclick="login();" name='senden' value="Login"> <div class="card-body">Success Card</div>
</div> <div class="card-footer d-flex align-items-center justify-content-between">
</div> <a class="small text-white stretched-link" href="#">View Details</a>
<div class="card-footer text-center py-3"> <div class="small text-white"><i class="fas fa-angle-right"></i></div>
<!--<div class="small"><a href="register.html">Need an account? Sign up!</a></div>--> </div>
</div> </div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-danger text-white mb-4">
<div class="card-body">Danger Card</div>
<div class="card-footer d-flex align-items-center justify-content-between">
<a class="small text-white stretched-link" href="#">View Details</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
</div>
</div>
</div>
</div> </div>
<div id="msg"></div> -->
</div> </div>
</div> </div>
</div> </div>
<div class="lottie-container" id="lottie-container"></div>
<?php echo '<script'; ?>
type="text/javascript">
var item = bodymovin.loadAnimation({
wrapper: document.getElementById('lottie-container'),
animType: 'svg',
loop: true,
autoplay: true,
path: '../media/data.json'
});
<?php echo '</script'; ?>
>
</main> </main>
<?php echo '<script'; ?>
type="text/javascript">
function keysave(ele) {
if(event.key === 'Enter') {
login();
}
}
<?php echo '</script'; ?>
>
</div>
<div id="layoutAuthentication_footer">
<!-- footer --> <!-- footer -->
<div id="footer"></div> <div id="footer"></div>
</div> </div>
</div> </div>
<?php echo '<script'; ?> <?php echo '<script'; ?>
src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"><?php echo '</script'; ?> src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="js/scripts.js"><?php echo '</script'; ?>
> >
</body> </body>
</html> </html><?php }
<?php }
}
} }