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