275 lines
10 KiB
PHP
275 lines
10 KiB
PHP
<?php
|
|
/* Smarty version 3.1.39, created on 2023-03-29 08:26:04
|
|
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_6423d9fccd0fb7_29452305',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'b24e1617a419553123f2d87b2d94e4b5ba1c4358' =>
|
|
array (
|
|
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\create_user.html',
|
|
1 => 1680067901,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_6423d9fccd0fb7_29452305 (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="js/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>
|
|
<?php if ($_smarty_tpl->tpl_vars['create_edit']->value == '') {?>
|
|
Benutzer erstellen
|
|
<?php } else { ?>
|
|
Benutzer bearbeiten
|
|
<?php }?>
|
|
</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 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)]['selected'] == 1) {?> selected <?php }?>><?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>
|
|
<?php if ($_smarty_tpl->tpl_vars['create_edit']->value != '') {?>
|
|
<div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
|
|
<div class="col-12 col-md-4">Passwort zurücksetzen:</div>
|
|
<div class="col-12 col-md-8">
|
|
<input class="form-check-input" type="checkbox" name="pwdback" id="pwdback" value="1">
|
|
</div>
|
|
</div>
|
|
<?php }?>
|
|
</div>
|
|
<p align='center'>
|
|
<?php if ($_smarty_tpl->tpl_vars['create_edit']->value == '') {?>
|
|
<button class="col-6 btn btn-primary btn-sm mt-3" id="save" onclick="usersave();">Speichern</button>
|
|
<?php } else { ?>
|
|
<button class="col-6 btn btn-primary btn-sm mt-3" id="save" onclick="userupdate(<?php echo $_smarty_tpl->tpl_vars['create_edit']->value;?>
|
|
);">Update</button>
|
|
<?php }?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="msg"></div>
|
|
<div id="msg1"></div>
|
|
</main>
|
|
<!-- footer -->
|
|
<div id="footer"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<?php }
|
|
}
|
|
}
|