Fehlerbereinigungen
This commit is contained in:
parent
797310c5ff
commit
a675b295e7
@ -19,6 +19,10 @@ if($uid == "" AND $login_dateiname !='index.php'){
|
||||
$template = "modern";
|
||||
|
||||
function rechte($curpage, $uid){
|
||||
if($curpage == '__noright__'){
|
||||
return true;
|
||||
exit;
|
||||
}
|
||||
$db = dbconnect();
|
||||
$result_rechte = $db->query("SELECT count(*) Anz
|
||||
FROM jumi_menu_entries
|
||||
@ -30,8 +34,10 @@ function rechte($curpage, $uid){
|
||||
$row_rechte = $result_rechte->fetch_array();
|
||||
if($row_rechte['Anz'] > 0){
|
||||
return true;
|
||||
exit;
|
||||
}else{
|
||||
return false;
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
if(!rechte('__noright__', $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ if (isset($_GET['action'])) {
|
||||
|
||||
|
||||
if ($action == '') {
|
||||
$query1 = "SELECT umid, date_format(datum_von, '%d.%m.%Y (%h:%i)') datum_von, date_format(datum_bis, '%d.%m.%Y (%h:%i)') datum_bis, headline
|
||||
$query1 = "SELECT umid, date_format(datum_von, '%d.%m.%Y (%H:%i)') datum_von, date_format(datum_bis, '%d.%m.%Y (%H:%i)') datum_bis, headline
|
||||
FROM jumi_umfragen
|
||||
ORDER BY umid DESC";
|
||||
|
||||
|
@ -126,6 +126,8 @@ var table = new DataTable('#myTable', {
|
||||
pageLength: 5,
|
||||
language: {
|
||||
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
|
||||
search: "",
|
||||
lengthMenu: "_MENU_ Zeilen",
|
||||
},
|
||||
});
|
||||
});
|
||||
|
@ -74,9 +74,9 @@ $(document).ready(function(){
|
||||
<i class="fas fa-table me-1"></i>
|
||||
Rollen erfassen
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
|
||||
<div class="col-12 col-md-4">Rollenname:</div>
|
||||
<div class="col-12 col-md-8"><input class="form-control" type="text" name="rollenname" id="rollenname" value="{$umfrageerf_value_frage}" size="60" onkeydown="keysave(this)"></div>
|
||||
<div class="row mt-1 mt-sm-1 mb-1 mb-sm-1">
|
||||
<div class="col-4 col-md-4">Rollenname:</div>
|
||||
<div class="col-8 col-md-8"><input class="form-control" type="text" name="rollenname" id="rollenname" value="{$umfrageerf_value_frage}" size="60" onkeydown="keysave(this)"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@ -98,8 +98,8 @@ $(document).ready(function(){
|
||||
</div>
|
||||
{section name=table_data loop=$table_data}
|
||||
<div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
|
||||
<div class="col-8 col-md-10">{$table_data[table_data].bezeichnung}</div>
|
||||
<div class="col-4 col-md-2">
|
||||
<div class="col-6 col-md-10">{$table_data[table_data].bezeichnung}</div>
|
||||
<div class="col-6 col-md-2">
|
||||
<a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" value="{$table_data[table_data].rid}|rollenzuordnung.php" onclick="ShowZuordnung(this)" data-bs-target="#ZuordnungModal"><i class="fa fa-eye" style="width:18px;"></i></a>
|
||||
<a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" value="{$table_data[table_data].rid}|userzuordnung.php" onclick="ShowZuordnung(this)" data-bs-target="#ZuordnungModal"><i class="fa fa-user" style="width:18px;"></i></a>
|
||||
<a class="btn btn-danger btn-rounded btn-icon btn-sm" onclick="delRole({$table_data[table_data].rid})"><i class="fa fa-trash" style="width:18px;"></i></a>
|
||||
@ -112,7 +112,7 @@ $(document).ready(function(){
|
||||
<div class="modal-dialog modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="ZuordnungModalLabel">Rollenübersicht</h5>
|
||||
<!--<h5 class="modal-title" id="ZuordnungModalLabel">Rollenübersicht</h5>-->
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
@ -60,7 +60,7 @@
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table me-1"></i>
|
||||
Nicht zugewiesene Rechte
|
||||
Nicht zugewiesene Benutzer
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="notassigned" class="table table-striped table-bordered table-responsive table-hover" >
|
||||
@ -91,7 +91,7 @@
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table me-1"></i>
|
||||
Zugewiesene Rechte
|
||||
Zugewiesene Benutzer
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="assigned" class="table table-striped table-bordered table-responsive table-hover" >
|
||||
@ -132,6 +132,8 @@ var table = new DataTable('#notassigned', {
|
||||
pageLength: 5,
|
||||
language: {
|
||||
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
|
||||
search: "",
|
||||
lengthMenu: "_MENU_ Zeilen",
|
||||
},
|
||||
});
|
||||
|
||||
@ -140,6 +142,8 @@ var table2 = new DataTable('#assigned', {
|
||||
pageLength: 5,
|
||||
language: {
|
||||
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
|
||||
search: "",
|
||||
lengthMenu: "_MENU_ Zeilen",
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-28 13:28:55
|
||||
/* Smarty version 3.1.39, created on 2023-03-28 18:51:21
|
||||
from 'F:\git\survey\templates\modern\dashboard\rollen.html' */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.39',
|
||||
'unifunc' => 'content_6422cf77bc2191_44742864',
|
||||
'unifunc' => 'content_64231b09d9f379_62984178',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'5e39749cb1a64f7b81c95621b910340c1aee6ae0' =>
|
||||
array (
|
||||
0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\rollen.html',
|
||||
1 => 1680002934,
|
||||
1 => 1680022279,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_6422cf77bc2191_44742864 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
function content_64231b09d9f379_62984178 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
@ -116,9 +116,9 @@ $(document).ready(function(){
|
||||
<i class="fas fa-table me-1"></i>
|
||||
Rollen erfassen
|
||||
</div>
|
||||
<div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
|
||||
<div class="col-12 col-md-4">Rollenname:</div>
|
||||
<div class="col-12 col-md-8"><input class="form-control" type="text" name="rollenname" id="rollenname" value="<?php echo $_smarty_tpl->tpl_vars['umfrageerf_value_frage']->value;?>
|
||||
<div class="row mt-1 mt-sm-1 mb-1 mb-sm-1">
|
||||
<div class="col-4 col-md-4">Rollenname:</div>
|
||||
<div class="col-8 col-md-8"><input class="form-control" type="text" name="rollenname" id="rollenname" value="<?php echo $_smarty_tpl->tpl_vars['umfrageerf_value_frage']->value;?>
|
||||
" size="60" onkeydown="keysave(this)"></div>
|
||||
</div>
|
||||
</div>
|
||||
@ -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']++){
|
||||
?>
|
||||
<div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
|
||||
<div class="col-8 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-10"><?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['bezeichnung'];?>
|
||||
</div>
|
||||
<div class="col-4 col-md-2">
|
||||
<div class="col-6 col-md-2">
|
||||
<a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['rid'];?>
|
||||
|rollenzuordnung.php" onclick="ShowZuordnung(this)" data-bs-target="#ZuordnungModal"><i class="fa fa-eye" style="width:18px;"></i></a>
|
||||
<a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['rid'];?>
|
||||
@ -168,7 +168,7 @@ for ($__section_table_data_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_sec
|
||||
<div class="modal-dialog modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="ZuordnungModalLabel">Rollenübersicht</h5>
|
||||
<!--<h5 class="modal-title" id="ZuordnungModalLabel">Rollenübersicht</h5>-->
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-28 10:33:00
|
||||
/* Smarty version 3.1.39, created on 2023-03-28 18:40:17
|
||||
from 'F:\git\survey\templates\modern\dashboard\edit_user.html' */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.39',
|
||||
'unifunc' => 'content_6422a63c5b0501_72223624',
|
||||
'unifunc' => 'content_64231871f064b3_97258353',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'79043b0398a7fe1f928c28aa43fc5b429e06493b' =>
|
||||
array (
|
||||
0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\edit_user.html',
|
||||
1 => 1679992372,
|
||||
1 => 1680021613,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_6422a63c5b0501_72223624 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
function content_64231871f064b3_97258353 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
@ -184,6 +184,8 @@ var table = new DataTable('#myTable', {
|
||||
pageLength: 5,
|
||||
language: {
|
||||
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
|
||||
search: "",
|
||||
lengthMenu: "_MENU_ Zeilen",
|
||||
},
|
||||
});
|
||||
});
|
||||
|
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-28 12:17:15
|
||||
/* Smarty version 3.1.39, created on 2023-03-28 18:38:19
|
||||
from 'F:\git\survey\templates\modern\dashboard\userzuordnung.html' */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.39',
|
||||
'unifunc' => 'content_6422beab4ef474_64190224',
|
||||
'unifunc' => 'content_642317fb844f24_46217213',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'ede0fde7d4e03354fe52af80288b249d058551a4' =>
|
||||
array (
|
||||
0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\userzuordnung.html',
|
||||
1 => 1679998632,
|
||||
1 => 1680021494,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_6422beab4ef474_64190224 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
function content_642317fb844f24_46217213 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
@ -105,7 +105,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table me-1"></i>
|
||||
Nicht zugewiesene Rechte
|
||||
Nicht zugewiesene Benutzer
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="notassigned" class="table table-striped table-bordered table-responsive table-hover" >
|
||||
@ -149,7 +149,7 @@ for ($__section_table_data_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_sec
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table me-1"></i>
|
||||
Zugewiesene Rechte
|
||||
Zugewiesene Benutzer
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="assigned" class="table table-striped table-bordered table-responsive table-hover" >
|
||||
@ -208,6 +208,8 @@ var table = new DataTable('#notassigned', {
|
||||
pageLength: 5,
|
||||
language: {
|
||||
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
|
||||
search: "",
|
||||
lengthMenu: "_MENU_ Zeilen",
|
||||
},
|
||||
});
|
||||
|
||||
@ -216,6 +218,8 @@ var table2 = new DataTable('#assigned', {
|
||||
pageLength: 5,
|
||||
language: {
|
||||
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
|
||||
search: "",
|
||||
lengthMenu: "_MENU_ Zeilen",
|
||||
},
|
||||
});
|
||||
|
||||
|
3
todo.txt
3
todo.txt
@ -6,9 +6,12 @@ todo
|
||||
-- unlock im Login berücksichtigen
|
||||
-- Rechte einbauen
|
||||
-- Rechteverwaltung
|
||||
-- Bezeichnungen DataTable Suchen etc
|
||||
-- Bearbeiten 12 Uhr statt 24 Uhr
|
||||
|
||||
Rolle löschen Erfolgstext zu schnell
|
||||
Kacheln Startseite
|
||||
Passwortvorschau
|
||||
Fragen erfassen Probleme
|
||||
Focus beim Frage erfassen
|
||||
Direkte Seite anspringen und nach Login wieder dahin zurück
|
||||
|
Loading…
x
Reference in New Issue
Block a user