From 0b55c7d5cba8c728f8111b23b5a006244448da64 Mon Sep 17 00:00:00 2001 From: aschwarz Date: Tue, 28 Mar 2023 13:06:08 +0200 Subject: [PATCH] Rollen/Rechte --- bootstrap/data-table/jumistyle.css | 141 +++++++++++ controller/admin_rollen.php | 143 +++++++++++ dashboard/rollen.php | 45 ++++ dashboard/rollenzuordnung.php | 64 +++++ dashboard/userzuordnung.php | 64 +++++ js/components/admin_rollen.js | 229 ++++++++++++++++++ templates/modern/dashboard/edit_user.html | 145 +---------- templates/modern/dashboard/rollen.html | 166 +++++++++++++ .../modern/dashboard/rollenzuordnung.html | 93 +++++++ templates/modern/dashboard/startseite.html | 4 +- templates/modern/dashboard/userzuordnung.html | 149 ++++++++++++ ...401c286ca72b20b_0.file.startseite.html.php | 12 +- ...621b910340c1aee6ae0_0.file.rollen.html.php | 227 +++++++++++++++++ ...8213d73e68_0.file.rollenzuordnung.html.php | 160 ++++++++++++ ...43fc5b429e06493b_0.file.edit_user.html.php | 153 +----------- ...c30536bdf206de07b30e_0.file.index.html.php | 10 +- ...249d058551a4_0.file.userzuordnung.html.php | 228 +++++++++++++++++ todo.txt | 3 + 18 files changed, 1733 insertions(+), 303 deletions(-) create mode 100644 bootstrap/data-table/jumistyle.css create mode 100644 controller/admin_rollen.php create mode 100644 dashboard/rollen.php create mode 100644 dashboard/rollenzuordnung.php create mode 100644 dashboard/userzuordnung.php create mode 100644 js/components/admin_rollen.js create mode 100644 templates/modern/dashboard/rollen.html create mode 100644 templates/modern/dashboard/rollenzuordnung.html create mode 100644 templates/modern/dashboard/userzuordnung.html create mode 100644 templates_c/5e39749cb1a64f7b81c95621b910340c1aee6ae0_0.file.rollen.html.php create mode 100644 templates_c/5e7995984bd9e4f7369ac5c50001d68213d73e68_0.file.rollenzuordnung.html.php create mode 100644 templates_c/ede0fde7d4e03354fe52af80288b249d058551a4_0.file.userzuordnung.html.php diff --git a/bootstrap/data-table/jumistyle.css b/bootstrap/data-table/jumistyle.css new file mode 100644 index 0000000..f5f9c7a --- /dev/null +++ b/bootstrap/data-table/jumistyle.css @@ -0,0 +1,141 @@ +.table-responsive { + margin: 30px 0; +} +.table-wrapper { + min-width: 1000px; + background: #fff; + padding: 20px 25px; + border-radius: 3px; + box-shadow: 0 1px 1px rgba(0,0,0,.05); +} +.table-title { + padding-bottom: 15px; + background: #299be4; + color: #fff; + padding: 16px 30px; + margin: -20px -25px 10px; + border-radius: 3px 3px 0 0; +} +.table-title h2 { + margin: 5px 0 0; + font-size: 24px; +} +.table-title .btn { + color: #566787; + float: right; + font-size: 13px; + background: #fff; + border: none; + min-width: 50px; + border-radius: 2px; + border: none; + outline: none !important; + margin-left: 10px; +} +.table-title .btn:hover, .table-title .btn:focus { + color: #566787; + background: #f2f2f2; +} +.table-title .btn i { + float: left; + font-size: 21px; + margin-right: 5px; +} +.table-title .btn span { + float: left; + margin-top: 2px; +} +table.table tr th, table.table tr td { + border-color: #e9e9e9; + padding: 12px 15px; + vertical-align: middle; +} +table.table tr th:first-child { + width: 60px; +} +table.table tr th:last-child { + width: 100px; +} +table.table-striped tbody tr:nth-of-type(odd) { + background-color: #fcfcfc; +} +table.table-striped.table-hover tbody tr:hover { + background: #f5f5f5; +} +table.table th i { + font-size: 13px; + margin: 0 5px; + cursor: pointer; +} +table.table td:last-child i { + opacity: 0.9; + font-size: 22px; + margin: 0 5px; +} +table.table td a { + font-weight: bold; + color: #566787; + display: inline-block; + text-decoration: none; +} +table.table td a:hover { + color: #2196F3; +} +table.table td a.settings { + color: #2196F3; +} +table.table td a.delete { + color: #F44336; +} +table.table td i { + font-size: 19px; +} +table.table .avatar { + border-radius: 50%; + vertical-align: middle; + margin-right: 10px; +} +.status { + font-size: 30px; + margin: 2px 2px 0 0; + display: inline-block; + vertical-align: middle; + line-height: 10px; +} +.pagination { + float: right; + margin: 0 0 5px; +} +.pagination li a { + border: none; + font-size: 13px; + min-width: 30px; + min-height: 30px; + color: #999; + margin: 0 2px; + line-height: 30px; + border-radius: 2px !important; + text-align: center; + padding: 0 6px; +} +.pagination li a:hover { + color: #666; +} +.pagination li.active a, .pagination li.active a.page-link { + background: #03A9F4; +} +.pagination li.active a:hover { + background: #0397d6; +} +.pagination li.disabled i { + color: #ccc; +} +.pagination li i { + font-size: 16px; + padding-top: 6px +} +.hint-text { + float: left; + margin-top: 10px; + font-size: 13px; +} diff --git a/controller/admin_rollen.php b/controller/admin_rollen.php new file mode 100644 index 0000000..54871f2 --- /dev/null +++ b/controller/admin_rollen.php @@ -0,0 +1,143 @@ +query("SELECT count(*) Anz FROM jumi_admin_rolle WHERE upper(bezeichnung)=upper('$rollenname')"); + $row = $result->fetch_array(); + + if ($rollenname == ''){ //verschlüsseltes Passwort überprüfen + echo '
Der Rollenname darf nicht leer sein.
|***|error'; + exit; + }else if ($row['Anz'] > 0){ //verschlüsseltes Passwort überprüfen + echo '
Der Rollenname ist bereits vorhanden.
|***|error'; + exit; + }else{ + + $sql1 = $db->query("INSERT INTO jumi_admin_rolle ( bezeichnung ) VALUES ( '$rollenname' )"); + if($sql1){ + echo '
Der Rollenname wurde gespeichert!
|***|success'; + exit; + }else{ + echo '
Der Rollenname wurde nicht gespeichert: Insert Fehler Datenbank.
|***|error'; + exit; + } + } +} + + +if ($function == 'erfzuordnung') { + if (isset($_POST['rid'])) { + $rid = $_POST['rid']; + } + if (isset($_POST['meid'])) { + $meid = $_POST['meid']; + } + + $db = dbconnect(); + $sql1 = $db->query("INSERT INTO jumi_admin_rollen_rechte_zuord ( rid, meid) VALUES ( $rid, $meid )"); + if($sql1){ + echo '
Das Recht wurde zugewiesen!
|***|success|***|'.$rid; + exit; + }else{ + echo '
Das Recht wurde nicht zugewiesen: Insert Fehler Datenbank.
|***|error'; + exit; + } +} + +if ($function == 'delzuordnung') { + if (isset($_POST['rid'])) { + $rid = $_POST['rid']; + } + if (isset($_POST['meid'])) { + $meid = $_POST['meid']; + } + + $sql1 = $db->query("DELETE FROM jumi_admin_rollen_rechte_zuord WHERE rid='$rid' AND meid='$meid'"); + if($sql1){ + echo '
Das Recht wurde gelöscht!
|***|success|***|'.$rid; + exit; + }else{ + echo '
Das Recht wurde nicht gelöscht: DELETE Fehler Datenbank.
|***|error'; + exit; + } +} + + +if ($function == 'erfuser') { + if (isset($_POST['rid'])) { + $rid = $_POST['rid']; + } + if (isset($_POST['uid'])) { + $uid = $_POST['uid']; + } + + $db = dbconnect(); + $sql1 = $db->query("INSERT INTO jumi_admin_rollen_user_zuord ( rid, uid) VALUES ( $rid, $uid )"); + if($sql1){ + echo '
Der Benutzer wurde zugewiesen!
|***|success|***|'.$rid; + exit; + }else{ + echo '
Der Benutzer wurde nicht zugewiesen: Insert Fehler Datenbank.
|***|error'; + exit; + } +} + +if ($function == 'deluser') { + if (isset($_POST['rid'])) { + $rid = $_POST['rid']; + } + if (isset($_POST['uid'])) { + $uid = $_POST['uid']; + } + + $sql1 = $db->query("DELETE FROM jumi_admin_rollen_user_zuord WHERE rid='$rid' AND uid='$uid'"); + if($sql1){ + echo '
Der Benutzer wurde gelöscht!
|***|success|***|'.$rid; + exit; + }else{ + echo '
Der Benutzer wurde nicht gelöscht: DELETE Fehler Datenbank.
|***|error'; + exit; + } +} + +/* + +if ($function == 'delete') { + $tabelle = $_POST['tabelle']; + $spalte = $_POST['spalte']; + $id = $_POST['id']; + $stmt = $db->query("DELETE FROM $tabelle WHERE $spalte = $id"); + if ($stmt) { + echo "success: DELETE FROM $tabelle WHERE $spalte = $id"; + } else { + echo "error: DELETE FROM $tabelle WHERE $spalte = $id"; + } +} + +if ($function == 'deleteQuestion') { + + $id2 = $_POST['id2']; + + $stmt1 = $db->query("DELETE FROM jumi_umfragen_antworten WHERE ufid = $id2"); + $stmt2 = $db->query("DELETE FROM jumi_umfragen_fragen WHERE ufid = $id2"); + # ggf. bereis Abstimmergebnisse löschen + + # Sonst werden keine neue Fragen erfasst + # unset($_SESSION["umfrageerf_ufid"]); + + + if ($stmt1 and $stmt2) { + echo "Success"; + } else { + echo "Error"; + } +} + +*/ +?> \ No newline at end of file diff --git a/dashboard/rollen.php b/dashboard/rollen.php new file mode 100644 index 0000000..a3a1882 --- /dev/null +++ b/dashboard/rollen.php @@ -0,0 +1,45 @@ +"; + exit; +} +require_once "../language/german.inc.php"; + + + +if (isset($_GET['action'])) { + $action = $_GET['action']; +} else { + $action = ''; +} + + +if ($action == '') { + + # Gespeicherte Werte + $query = "SELECT rid, bezeichnung + FROM jumi_admin_rolle + ORDER BY bezeichnung ASC"; + + $result = $db->query($query) or die("Cannot execute query"); + + while ($row = $result->fetch_array()) { + $table_data[] = $row; + } + $smarty->assign('table_data', $table_data); + +} + + + +$smarty->assign('action', "$action"); +$smarty->display("$template/dashboard/$templatename"); + +?> diff --git a/dashboard/rollenzuordnung.php b/dashboard/rollenzuordnung.php new file mode 100644 index 0000000..e5fbc10 --- /dev/null +++ b/dashboard/rollenzuordnung.php @@ -0,0 +1,64 @@ +"; + exit; +} +require_once "../language/german.inc.php"; + + + +if (isset($_GET['action'])) { + $action = $_GET['action']; +} else { + $action = ''; +} + + +if ($action == '') { + if (isset($_GET['edit'])) { + $rid = $_GET['edit']; + $smarty->assign('rollen_edit', $rid); + } + + $result_head = $db->query("SELECT bezeichnung FROM jumi_admin_rolle WHERE rid=$rid"); + $row_head = $result_head->fetch_array(); + $smarty->assign('rollenzuordnung_bezeichnung', $row_head['bezeichnung']); + + # Nicht zugewiesene Rechte + $query = "SELECT meid, headline + FROM jumi_menu_entries + WHERE meid NOT IN (SELECT meid FROM jumi_admin_rollen_rechte_zuord WHERE rid=$rid) + ORDER BY meid ASC"; + + $result = $db->query($query) or die("Cannot execute query"); + + while ($row = $result->fetch_array()) { + $table_data[] = $row; + } + $smarty->assign('table_data', $table_data); + + # Zugewiesene Rechte + $query1 = "SELECT meid, headline + FROM jumi_menu_entries + WHERE meid IN (SELECT meid FROM jumi_admin_rollen_rechte_zuord WHERE rid=$rid) + ORDER BY meid ASC"; + + $result1 = $db->query($query1) or die("Cannot execute query1"); + + while ($row1 = $result1->fetch_array()) { + $table_data1[] = $row1; + } + $smarty->assign('table_data1', $table_data1); + +} + +$smarty->assign('action', "$action"); +$smarty->display("$template/dashboard/$templatename"); +?> diff --git a/dashboard/userzuordnung.php b/dashboard/userzuordnung.php new file mode 100644 index 0000000..3905fd7 --- /dev/null +++ b/dashboard/userzuordnung.php @@ -0,0 +1,64 @@ +"; + exit; +} +require_once "../language/german.inc.php"; + + + +if (isset($_GET['action'])) { + $action = $_GET['action']; +} else { + $action = ''; +} + + +if ($action == '') { + if (isset($_GET['edit'])) { + $rid = $_GET['edit']; + $smarty->assign('rollen_edit', $rid); + } + + $result_head = $db->query("SELECT bezeichnung FROM jumi_admin_rolle WHERE rid=$rid"); + $row_head = $result_head->fetch_array(); + $smarty->assign('rollenzuordnung_bezeichnung', $row_head['bezeichnung']); + + # Nicht zugewiesene User + $query = "SELECT uid, vorname, nachname + FROM jumi_admin + WHERE uid NOT IN (SELECT uid FROM jumi_admin_rollen_user_zuord WHERE rid=$rid) + ORDER BY nachname ASC"; + + $result = $db->query($query) or die("Cannot execute query"); + + while ($row = $result->fetch_array()) { + $table_data[] = $row; + } + $smarty->assign('table_data', $table_data); + + # Zugewiesene Rechte + $query1 = "SELECT uid, vorname, nachname + FROM jumi_admin + WHERE uid IN (SELECT uid FROM jumi_admin_rollen_user_zuord WHERE rid=$rid) + ORDER BY nachname ASC"; + + $result1 = $db->query($query1) or die("Cannot execute query1"); + + while ($row1 = $result1->fetch_array()) { + $table_data1[] = $row1; + } + $smarty->assign('table_data1', $table_data1); + +} + +$smarty->assign('action', "$action"); +$smarty->display("$template/dashboard/$templatename"); +?> diff --git a/js/components/admin_rollen.js b/js/components/admin_rollen.js new file mode 100644 index 0000000..c810478 --- /dev/null +++ b/js/components/admin_rollen.js @@ -0,0 +1,229 @@ +function rollesave(){ + var rollenname = document.getElementById("rollenname").value; + + $.ajax({ + type: 'POST', + url: '../controller/admin_rollen.php', + data: { + 'function': 'rollesave', + 'rollenname': rollenname + }, + success: function(result) { //we got the response + if(result!=''){ + var a = result.split('|***|'); + if(a[1]=="success"){ + document.getElementById("rollenname").value =""; + $(document).ajaxStop(function(){ + window.location = "?"; + }); + } + $('#msg').show().delay(10000).fadeOut(500); + $('#msg').html(a[0]); + } + }, + error: function(xhr, status, exception) { + console.log(xhr); + } + }); + +} +function erfzuordnung(val) { + var param = val.split('|'); + var meid = param[0]; + var rid = param[1]; + + $.ajax({ + type: 'POST', + url: '../controller/admin_rollen.php', + data: { + 'function': 'erfzuordnung', + 'meid': meid, + 'rid': rid + }, + success: function(result) { //we got the response + if(result!=''){ + var a = result.split('|***|'); + if(a[1]=="success"){ + $(document).ajaxStop(function(){ + // Refresh Modal + var value = a[2]; + // load the url and show modal on success + $("#ZuordnungModal .modal-body").load('rollenzuordnung.php?edit='+value, function() { + $("#ZuordnungModal").modal("show"); + }); + }); + } + $('#msg').show().delay(5000).fadeOut(500); + $('#msg').html(a[0]); + } + }, + error: function(xhr, status, exception) { + console.log(xhr); + } + }); +} + +function delzuordnung(val) { + var param = val.split('|'); + var meid = param[0]; + var rid = param[1]; + + $.ajax({ + type: 'POST', + url: '../controller/admin_rollen.php', + data: { + 'function': 'delzuordnung', + 'meid': meid, + 'rid': rid + }, + success: function(result) { //we got the response + if(result!=''){ + var a = result.split('|***|'); + if(a[1]=="success"){ + $(document).ajaxStop(function(){ + + // Refresh Modal + var value = a[2]; + // load the url and show modal on success + $("#ZuordnungModal .modal-body").load('rollenzuordnung.php?edit='+value, function() { + $("#ZuordnungModal").modal("show"); + }); + }); + } + $('#msg').show().delay(20000).fadeOut(500); + $('#msg').html(a[0]); + } + }, + error: function(xhr, status, exception) { + console.log(xhr); + } + }); +} + + + +function erfuser(val) { + var param = val.split('|'); + var uid = param[0]; + var rid = param[1]; + + $.ajax({ + type: 'POST', + url: '../controller/admin_rollen.php', + data: { + 'function': 'erfuser', + 'uid': uid, + 'rid': rid + }, + success: function(result) { //we got the response + if(result!=''){ + var a = result.split('|***|'); + if(a[1]=="success"){ + $(document).ajaxStop(function(){ + // Refresh Modal + var value = a[2]; + // load the url and show modal on success + $("#ZuordnungModal .modal-body").load('userzuordnung.php?edit='+value, function() { + $("#ZuordnungModal").modal("show"); + }); + }); + } + $('#msg').show().delay(5000).fadeOut(500); + $('#msg').html(a[0]); + } + }, + error: function(xhr, status, exception) { + console.log(xhr); + } + }); +} + +function deluser(val) { + var param = val.split('|'); + var uid = param[0]; + var rid = param[1]; + + $.ajax({ + type: 'POST', + url: '../controller/admin_rollen.php', + data: { + 'function': 'deluser', + 'uid': uid, + 'rid': rid + }, + success: function(result) { //we got the response + if(result!=''){ + var a = result.split('|***|'); + if(a[1]=="success"){ + $(document).ajaxStop(function(){ + + // Refresh Modal + var value = a[2]; + // load the url and show modal on success + $("#ZuordnungModal .modal-body").load('userzuordnung.php?edit='+value, function() { + $("#ZuordnungModal").modal("show"); + }); + }); + } + $('#msg').show().delay(20000).fadeOut(500); + $('#msg').html(a[0]); + } + }, + error: function(xhr, status, exception) { + console.log(xhr); + } + }); +} + + +/* + +function onClickDelete(id) { + + document.getElementById("antwort").value = ""; + r = confirm('Antwort löschen?'); + if (r) { + $.ajax({ + type: 'POST', + url: '../controller/admin_erfassen.php', + data: { + 'function': 'delete', + 'tabelle': 'jumi_umfragen_antworten', + 'spalte': 'uaid', + 'id': id + }, + success: function(result) { //we got the response + $(document).ajaxStop(function(){ + window.location = "?action=fragen&erfassen=1"; + }); + }, + error: function(xhr, status, exception) { + console.log(xhr); + } + }); + } +} + +function onClickDeleteQuestion(id2) { + document.getElementById("frage").value = ""; + document.getElementById("antwort").value = ""; + r = confirm('Gesamte Frage löschen?'); + if (r) { + $.ajax({ + type: 'POST', + url: '../controller/admin_erfassen.php', + data: { + 'function': 'deleteQuestion', + 'id2': id2 + }, + success: function(result) { + // document.getElementById("del").innerHTML = "entfernt"; + //Text einblenden geht nicht, da ein Refresh gemacht wird. Dann sieht man den Text nicht + $(document).ajaxStop(function(){ + window.location = "?action=fragen&erfassen=1"; + }); + } + }); + } +} +*/ \ No newline at end of file diff --git a/templates/modern/dashboard/edit_user.html b/templates/modern/dashboard/edit_user.html index 6740661..68150cf 100644 --- a/templates/modern/dashboard/edit_user.html +++ b/templates/modern/dashboard/edit_user.html @@ -19,153 +19,12 @@ + - + diff --git a/templates/modern/dashboard/rollen.html b/templates/modern/dashboard/rollen.html new file mode 100644 index 0000000..a939b7e --- /dev/null +++ b/templates/modern/dashboard/rollen.html @@ -0,0 +1,166 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + + + + + + + + {literal} + + {/literal} +
+ + +
+
+ + +
+
+
+ + Rollen erfassen +
+
+
Rollenname:
+
+
+
+
+
+
+
+
+
+
+
+ + Vorhandene Rollen +
+
+
+
+
Rolle
+
Aktion
+
+ {section name=table_data loop=$table_data} +
+
{$table_data[table_data].bezeichnung}
+
+ + + +
+
+ {/section} + + + + {literal} + + {/literal} +
+
+
+
+
+ + + +
+
+ + + +{/if} + diff --git a/templates/modern/dashboard/rollenzuordnung.html b/templates/modern/dashboard/rollenzuordnung.html new file mode 100644 index 0000000..4c72b7a --- /dev/null +++ b/templates/modern/dashboard/rollenzuordnung.html @@ -0,0 +1,93 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

{$rollenzuordnung_bezeichnung}

+
+
+
+ + Nicht zugewiesene Rechte +
+
+
+
+
Recht
+
Aktion
+
+ {section name=table_data loop=$table_data} +
+
{$table_data[table_data].headline}
+
+
+ {/section} +
+
+
+
+
+
+ + Zugewiesene Rechte +
+
+
+
+
Recht
+
Aktion
+
+ {section name=table_data1 loop=$table_data1} +
+
{$table_data1[table_data1].headline}
+
+
+ {/section} +
+
+
+
+
+ + + + + + +{/if} diff --git a/templates/modern/dashboard/startseite.html b/templates/modern/dashboard/startseite.html index e59890c..cde7717 100644 --- a/templates/modern/dashboard/startseite.html +++ b/templates/modern/dashboard/startseite.html @@ -41,7 +41,7 @@

Herzlich willkommen zur Administration von Jugendchor & Miteinander.

- + diff --git a/templates/modern/dashboard/userzuordnung.html b/templates/modern/dashboard/userzuordnung.html new file mode 100644 index 0000000..384e42d --- /dev/null +++ b/templates/modern/dashboard/userzuordnung.html @@ -0,0 +1,149 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

{$rollenzuordnung_bezeichnung}

+
+
+
+ + Nicht zugewiesene Rechte +
+
+ + + + + + + + + + {section name=table_data loop=$table_data} + + + + + + {/section} + +
VornameNachnameAktion
{$table_data[table_data].vorname}{$table_data[table_data].nachname} +

+ +

+
+
+
+
+
+
+ + Zugewiesene Rechte +
+
+ + + + + + + + + + {section name=table_data1 loop=$table_data1} + + + + + + {/section} + +
VornameNachnameAktion
{$table_data1[table_data1].vorname}{$table_data1[table_data1].nachname} +

+ +

+
+
+
+
+
+ + + + + + + +{/if} diff --git a/templates_c/1d7d9664b76f0bd4587451aa9401c286ca72b20b_0.file.startseite.html.php b/templates_c/1d7d9664b76f0bd4587451aa9401c286ca72b20b_0.file.startseite.html.php index d24a010..74eef78 100644 --- a/templates_c/1d7d9664b76f0bd4587451aa9401c286ca72b20b_0.file.startseite.html.php +++ b/templates_c/1d7d9664b76f0bd4587451aa9401c286ca72b20b_0.file.startseite.html.php @@ -1,18 +1,18 @@ _decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', - 'unifunc' => 'content_6421ac028e2800_44904301', + 'unifunc' => 'content_642285d52b62c0_90543019', 'has_nocache_code' => false, 'file_dependency' => array ( '1d7d9664b76f0bd4587451aa9401c286ca72b20b' => array ( 0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\startseite.html', - 1 => 1679928167, + 1 => 1679978763, 2 => 'file', ), ), @@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( array ( ), ),false)) { -function content_6421ac028e2800_44904301 (Smarty_Internal_Template $_smarty_tpl) { +function content_642285d52b62c0_90543019 (Smarty_Internal_Template $_smarty_tpl) { ?> @@ -71,7 +71,7 @@ function content_6421ac028e2800_44904301 (Smarty_Internal_Template $_smarty_tpl)

Herzlich willkommen zur Administration von Jugendchor & Miteinander.

- + diff --git a/templates_c/5e39749cb1a64f7b81c95621b910340c1aee6ae0_0.file.rollen.html.php b/templates_c/5e39749cb1a64f7b81c95621b910340c1aee6ae0_0.file.rollen.html.php new file mode 100644 index 0000000..715cd7e --- /dev/null +++ b/templates_c/5e39749cb1a64f7b81c95621b910340c1aee6ae0_0.file.rollen.html.php @@ -0,0 +1,227 @@ +_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.39', + 'unifunc' => 'content_6422c6426320c9_55428832', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '5e39749cb1a64f7b81c95621b910340c1aee6ae0' => + array ( + 0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\rollen.html', + 1 => 1680000576, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6422c6426320c9_55428832 (Smarty_Internal_Template $_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + + + + + + src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"> +> + + + + + src="js/all.js" crossorigin="anonymous"> +> + + + src="../jquery/jquery-3.4.1.min.js"> +> + + + src="../jquery/jquery-ui.js"> +> + + + type="text/javascript"> + + function keysave(ele) { + if(event.key === 'Enter') { + rollesave(); + } + } + + +> + + +> +$(document).ready(function(){ + $('[data-toggle="popover"]').popover(); +}); + +> + + + + + + +> + $(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"); + }); + +> + +
+ + +
+
+ + + src="../js/components/admin_rollen.js"> +> +
+
+
+ + Rollen erfassen +
+
+
Rollenname:
+
+
+
+
+
+
+
+
+
+
+
+ + Vorhandene Rollen +
+
+
+
+
Rolle
+
Aktion
+
+ 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']++){ +?> +
+
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'];?> +
+
+ + + +
+
+ + + + + + +> + function ShowZuordnung(a){ + let receive = a.getAttribute("value"); + var a = receive.split('|'); + var value = a[0]; + var file = a[1]; + + $( '.modal-body' ).load( file+'?edit='+value , function () { + $( '#ZuordnungModal' ).modal({show: true }); + }); + } + +> + +
+
+
+
+
+ + + +
+
+ + + + + +_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.39', + 'unifunc' => 'content_6422c9ecda72b1_03402738', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '5e7995984bd9e4f7369ac5c50001d68213d73e68' => + array ( + 0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\rollenzuordnung.html', + 1 => 1680001505, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6422c9ecda72b1_03402738 (Smarty_Internal_Template $_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + + + + + + src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"> +> + + + + + src="js/all.js" crossorigin="anonymous"> +> + + + src="../jquery/jquery-3.4.1.min.js"> +> + + + src="../jquery/jquery-ui.js"> +> + + + + + +
+ + + src="../js/components/admin_rollen.js"> +> +

tpl_vars['rollenzuordnung_bezeichnung']->value;?> +

+
+
+
+ + Nicht zugewiesene Rechte +
+
+
+
+
Recht
+
Aktion
+
+ 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']++){ +?> +
+
tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['headline'];?> +
+
+
+ +
+
+
+
+
+
+ + Zugewiesene Rechte +
+
+
+
+
Recht
+
Aktion
+
+ tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data1_1_total = $__section_table_data1_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array()); +if ($__section_table_data1_1_total !== 0) { +for ($__section_table_data1_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_1_iteration <= $__section_table_data1_1_total; $__section_table_data1_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){ +?> +
+
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'];?> +
+
+
+ +
+
+
+
+
+ + + src="../bootstrap/node_modules/move-js/move.js"> +> + + + src="../bootstrap/dist/scrollable-tabs.min.js"> +> + + +_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', - 'unifunc' => 'content_642178d5c1eea6_03816576', + 'unifunc' => 'content_6422a63c5b0501_72223624', 'has_nocache_code' => false, 'file_dependency' => array ( '79043b0398a7fe1f928c28aa43fc5b429e06493b' => array ( 0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\edit_user.html', - 1 => 1679914316, + 1 => 1679992372, 2 => 'file', ), ), @@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( array ( ), ),false)) { -function content_642178d5c1eea6_03816576 (Smarty_Internal_Template $_smarty_tpl) { +function content_6422a63c5b0501_72223624 (Smarty_Internal_Template $_smarty_tpl) { if ($_smarty_tpl->tpl_vars['action']->value == '') {?> @@ -52,6 +52,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?> type="text/javascript" src="../bootstrap/data-table/dataTables.bootstrap5.min.js"> > + src="js/all.js" crossorigin="anonymous"> @@ -60,149 +61,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?> src="../jquery/jquery-3.4.1.min.js"> > - + diff --git a/templates_c/bf479f21e7ad507ad2c2c30536bdf206de07b30e_0.file.index.html.php b/templates_c/bf479f21e7ad507ad2c2c30536bdf206de07b30e_0.file.index.html.php index 8e27b10..32c09b0 100644 --- a/templates_c/bf479f21e7ad507ad2c2c30536bdf206de07b30e_0.file.index.html.php +++ b/templates_c/bf479f21e7ad507ad2c2c30536bdf206de07b30e_0.file.index.html.php @@ -1,18 +1,18 @@ _decodeProperties($_smarty_tpl, array ( 'version' => '3.1.39', - 'unifunc' => 'content_641dc6aa4376e5_36783062', + 'unifunc' => 'content_642269335a1849_37187460', 'has_nocache_code' => false, 'file_dependency' => array ( 'bf479f21e7ad507ad2c2c30536bdf206de07b30e' => array ( 0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\index.html', - 1 => 1679673000, + 1 => 1679910276, 2 => 'file', ), ), @@ -20,7 +20,7 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( array ( ), ),false)) { -function content_641dc6aa4376e5_36783062 (Smarty_Internal_Template $_smarty_tpl) { +function content_642269335a1849_37187460 (Smarty_Internal_Template $_smarty_tpl) { if ($_smarty_tpl->tpl_vars['action']->value == '') {?> @@ -33,7 +33,7 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?> JU & MI Administration - src="all.js" crossorigin="anonymous"> + src="js/all.js" crossorigin="anonymous"> > src="../jquery/jquery-3.4.1.min.js"> diff --git a/templates_c/ede0fde7d4e03354fe52af80288b249d058551a4_0.file.userzuordnung.html.php b/templates_c/ede0fde7d4e03354fe52af80288b249d058551a4_0.file.userzuordnung.html.php new file mode 100644 index 0000000..0fed264 --- /dev/null +++ b/templates_c/ede0fde7d4e03354fe52af80288b249d058551a4_0.file.userzuordnung.html.php @@ -0,0 +1,228 @@ +_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.39', + 'unifunc' => 'content_6422beab4ef474_64190224', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'ede0fde7d4e03354fe52af80288b249d058551a4' => + array ( + 0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\userzuordnung.html', + 1 => 1679998632, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6422beab4ef474_64190224 (Smarty_Internal_Template $_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + + + + + + src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"> +> + + + + + src="js/all.js" crossorigin="anonymous"> +> + + + + src="../bootstrap/data-table/jquery.min.js"> +> + + + + type="text/javascript" src="../bootstrap/data-table/jquery.dataTables.min.js"> +> + + type="text/javascript" src="../bootstrap/data-table/dataTables.rowReorder.min.js"> +> + + type="text/javascript" src="../bootstrap/data-table/dataTables.bootstrap5.min.js"> +> + + + + + src="../jquery/jquery-3.4.1.min.js"> +> + + + src="../jquery/jquery-ui.js"> +> + + + + + +
+ + + src="../js/components/admin_rollen.js"> +> +

tpl_vars['rollenzuordnung_bezeichnung']->value;?> +

+
+
+
+ + Nicht zugewiesene Rechte +
+
+ + + + + + + + + + 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']++){ +?> + + + + + + + +
VornameNachnameAktion
tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['vorname'];?> +tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['nachname'];?> + +

+ +

+
+
+
+
+
+
+ + Zugewiesene Rechte +
+
+ + + + + + + + + + tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data1_1_total = $__section_table_data1_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array()); +if ($__section_table_data1_1_total !== 0) { +for ($__section_table_data1_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_1_iteration <= $__section_table_data1_1_total; $__section_table_data1_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){ +?> + + + + + + + +
VornameNachnameAktion
tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['vorname'];?> +tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['nachname'];?> + +

+ +

+
+
+
+
+
+ + + src="../bootstrap/node_modules/move-js/move.js"> +> + + + src="../bootstrap/dist/scrollable-tabs.min.js"> +> + + +> +$(document).ready(function(){ +var table = new DataTable('#notassigned', { + rowReorder: true, + pageLength: 5, + language: { + url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json', + }, +}); + +var table2 = new DataTable('#assigned', { + rowReorder: true, + pageLength: 5, + language: { + url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json', + }, +}); + +}); + +> + +