<?php
/* Smarty version 4.3.4, created on 2024-12-17 09:17:09
  from '/srv/www/htdocs/lazbw/admin/layout/templates/overview/user.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.4',
  'unifunc' => 'content_6761338555c748_13621269',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '1ceb881ed35c61b00b80c839152fc781f5a1e71c' => 
    array (
      0 => '/srv/www/htdocs/lazbw/admin/layout/templates/overview/user.html',
      1 => 1708688382,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6761338555c748_13621269 (Smarty_Internal_Template $_smarty_tpl) {
?><h3>Benutzer</h3>

<?php if ($_smarty_tpl->tpl_vars['admin']->value) {?>
  <p>
    Hier können Sie die vorhandenen Benutzer verwalten oder neue anlegen.<br />
  </p>
<?php } else { ?>
  <p>
    Hier können Sie Ihr Passwort ändern und die Ihnen zugeteilten Rechte einsehen.<br />
  </p>
<?php }
if ($_smarty_tpl->tpl_vars['ispreviewmode']->value == 1) {?>
  <div class="status_warning">
    Achtung: Änderungen welche Sie hier treffen werden auch bei aktiven Vorschaumodus live übernommen. 
  </div>
<?php }
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['errors']->value, 'array', false, 'name');
$_smarty_tpl->tpl_vars['array']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['name']->value => $_smarty_tpl->tpl_vars['array']->value) {
$_smarty_tpl->tpl_vars['array']->do_else = false;
?>
  <div class="status_warning">
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['array']->value, 'msg');
$_smarty_tpl->tpl_vars['msg']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['msg']->value) {
$_smarty_tpl->tpl_vars['msg']->do_else = false;
?>
      <?php if ($_smarty_tpl->tpl_vars['msg']->value == 'loading') {?>
        <p>
          Interner Fehler: Der Benutzer &quot;<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
&quot; konnte nicht geladen werden.
          Bei wiederholtem Auftreten laden Sie bitte die Seite neu.
        </p>
      <?php } elseif ($_smarty_tpl->tpl_vars['msg']->value == 'name') {?>
        <p>
          Der Name des Benutzers &quot;<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
&quot; konnte nicht geändert werden.<br />
          Überprüfen Sie bitte den Namen auf unerlaubte Zeichen.
        </p>
      <?php } elseif ($_smarty_tpl->tpl_vars['msg']->value == 'password') {?>
        <p>
          Das Passwort des <?php ob_start();
echo $_smarty_tpl->tpl_vars['name']->value;
$_prefixVariable1 = ob_get_clean();
if ($_prefixVariable1 == '') {?> neuen Benutzers<?php } else { ?>Benutzers &quot;<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
&quot;<?php }?> konnte nicht geändert werden,<br />
          unter Umständen wurden die <a href="index.php?action=settings&sub1=2&sub2=2" class="ajaxlink">Richtlinien</a> nicht eingehalten.<br /><br />
          Auch andere Änderungen wurden ggf. nicht gespeichert.
        </p>
      <?php } elseif ($_smarty_tpl->tpl_vars['msg']->value == 'rights') {?>
        <p>
          Interner Fehler: Beim Speichern der Zugriffsrechte für den Benutzer &quot;<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
&quot; ist ein Fehler aufgetreten.<br />
          Bei wiederholtem Auftreten laden Sie bitte die Seite neu.
        </p>
      <?php } elseif ($_smarty_tpl->tpl_vars['msg']->value == 'saving') {?>
        <p>
          Interner Fehler: Der Benutzer &quot;<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
&quot; konnte nicht gespeichert werden.<br />
          Bei wiederholtem Auftreten laden Sie bitte die Seite neu.
        </p>
      <?php } elseif ($_smarty_tpl->tpl_vars['msg']->value == 'delete') {?>
        <p>
          Interner Fehler: Fehler beim Speichern: der Benutzer &quot;<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
&quot; konnte nicht gelöscht werden.<br />
          Bei wiederholtem Auftreten laden Sie bitte die Seite neu.
        </p>
      <?php }?>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
  </div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

<?php if ($_smarty_tpl->tpl_vars['admin']->value) {?>
  <div class="right">
    <a href="<?php echo $_smarty_tpl->tpl_vars['selflink']->value;?>
&amp;user=add" class="ajaxlink">Neuer Eintrag</a>
  </div>
<?php }?>

  <form action="<?php echo $_smarty_tpl->tpl_vars['selflink']->value;?>
" method="post" style="clear:both">

<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['users']->value, 'user', false, 'name');
$_smarty_tpl->tpl_vars['user']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['name']->value => $_smarty_tpl->tpl_vars['user']->value) {
$_smarty_tpl->tpl_vars['user']->do_else = false;
?>
    <div class="user<?php if (!$_smarty_tpl->tpl_vars['user']->value->isActive()) {?> inactiveuser<?php } elseif ($_smarty_tpl->tpl_vars['user']->value->isAdmin()) {?> adminuser<?php }?>">
      <table>
        <colgroup>
          <col width="26%" />
          <col width="31%" />
          <col width="23%" />
          <col width="20%" />
        </colgroup>
        <tbody>
          <tr>
            <td colspan="3">
<?php if ($_smarty_tpl->tpl_vars['admin']->value) {?>
              <div class="right_float">
                Löschen: <input type="checkbox" name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][del]" value="true" />
              </div>
<?php }?>
              <label for="user">Benutzer:</label>
               <input id="user" type="text" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['user']->value->getName();?>
" name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][name]" /><br />
              <label for="password">Passwort:</label>
               <input id="password" type="password" value="<?php if ($_smarty_tpl->tpl_vars['user']->value->hasPassword()) {?>xxxxxxxxxxxxxxxxxxxxx<?php }?>" name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][password]" /><br />
            </td>
            <td align="right">
              Aktiv: <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][active]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->isActive()) {?>checked="checked"<?php }?> /><br />
              Admin: <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][admin]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->isAdmin()) {?>checked="checked"<?php }?> />
            </td>
          </tr>
<?php if (!$_smarty_tpl->tpl_vars['user']->value->isAdmin()) {?>
          <tr class="access" style="vertical-align: top;">
            <td>
              <b>Übersicht</b><br />
                            <input type="checkbox" disabled="disabled" checked="checked" /> Allgemein<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][overview][ContentOverviewLog]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('overview','ContentOverviewLog')) {?>checked="checked"<?php }?> /> Log<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][overview][ContentOverviewAnmLog]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('overview','ContentOverviewAnmLog')) {?>checked="checked"<?php }?> /> Anmeldelog<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][overview][ContentOverviewLoginLog]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('overview','ContentOverviewLoginLog')) {?>checked="checked"<?php }?> /> Loginlog<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][overview][ContentStatistic]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('overview','ContentStatistic')) {?>checked="checked"<?php }?> /> Statistik<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][overview][ContentOverviewUserEdit]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('overview','ContentOverviewUserEdit')) {?>checked="checked"<?php }?> /> Passwort ändern<br />
              <input type="checkbox" disabled="disabled" /> Benutzer Admin<br />
            </td>
            <td>
              <b>Funktionen</b><br />
                            <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentPreviewMode]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentPreviewMode')) {?>checked="checked"<?php }?> /> Vorschau Modus<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentMehrsprachigkeit]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentMehrsprachigkeit')) {?>checked="checked"<?php }?> /> Mehrsprachigkeit<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentUpdt]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentUpdt')) {?>checked="checked"<?php }?> /> Update<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentBackup]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentBackup')) {?>checked="checked"<?php }?> /> Sicherung<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentNews]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentNews')) {?>checked="checked"<?php }?> /> News<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentUpload]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentUpload')) {?>checked="checked"<?php }?> /> Datei Upload<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentKurseOnline]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentKurseOnline')) {?>checked="checked"<?php }?> /> Kurse prüfen<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentMerchantId]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentMerchantId')) {?>checked="checked"<?php }?> /> E-Pay-Notify überprüfen<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentBestaetigung]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentBestaetigung')) {?>checked="checked"<?php }?> /> Bestätigung generieren<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentFunctionValidateFiles]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentFunctionValidateFiles')) {?>checked="checked"<?php }?> /> Dateien überprüfen<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentMysqlStrukturUpdate]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentMysqlStrukturUpdate')) {?>checked="checked"<?php }?> /> MySQL Struktur<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][functions][ContentLoginWeb]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('functions','ContentLoginWeb')) {?>checked="checked"<?php }?> /> Zugang mit ausgewähltem Login<br />
            </td>
            <td>
              <b>Einstellungen</b><br />
                            <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][settings][ContentSettingsSystem]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('settings','ContentSettingsSystem')) {?>checked="checked"<?php }?> /> System<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][settings][ContentSettingsLayout]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('settings','ContentSettingsLayout')) {?>checked="checked"<?php }?> /> Layout<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][settings][ContentSettingsConstant]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('settings','ContentSettingsConstant')) {?>checked="checked"<?php }?> /> Konstanten<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][settings][ContentSettingsDb]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('settings','ContentSettingsDb')) {?>checked="checked"<?php }?> /> Datenbankverbindung<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][settings][ContentSettingsPlugin]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('settings','ContentSettingsPlugin')) {?>checked="checked"<?php }?> /> Plugins<br />
            </td>
            <td>
              <b>Layout bearbeiten</b><br />
                            <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][editlayout][ContentEditLayoutInfo]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('editlayout','ContentEditLayoutInfo')) {?>checked="checked"<?php }?> /> Info<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][editlayout][ContentFileUpload]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('editlayout','ContentFileUpload')) {?>checked="checked"<?php }?> /> Dateien hochladen<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][editlayout][ContentCss]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('editlayout','ContentCss')) {?>checked="checked"<?php }?> /> CSS bearbeiten<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][editlayout][ContentSights]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('editlayout','ContentSights')) {?>checked="checked"<?php }?> /> Sichten bearbeiten<br />
            </td>
          </tr>
          <tr>
            <td>
              <b>KuferTools</b><br />
                            <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][tools][ContentSettingsTools]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('tools','ContentSettingsTools')) {?>checked="checked"<?php }?> /> Einstellungen<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][tools][ContentWssTools]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('tools','ContentWssTools')) {?>checked="checked"<?php }?> /> Felderanordnung<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][tools][ContentSightsTools]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('tools','ContentSightsTools')) {?>checked="checked"<?php }?> /> Sichten<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][tools][ContentNavCssAndJsTools]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('tools','ContentNavCssAndJsTools')) {?>checked="checked"<?php }?> /> Sonstige Dateien<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][tools][ContentLoginTools]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('tools','ContentLoginTools')) {?>checked="checked"<?php }?> /> Zugang mit ausgewähltem Login<br />
              <input type="checkbox" <?php if (!$_smarty_tpl->tpl_vars['admin']->value) {?>disabled="disabled"<?php }?> name="users[<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
][rights][tools][ContentRechteTools]" value="1" <?php if ($_smarty_tpl->tpl_vars['user']->value->hasAccess('tools','ContentRechteTools')) {?>checked="checked"<?php }?> /> Rechte<br />
            </td>
          </tr>
<?php }?>
        </tbody>
      </table>
    </div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    <div class="right">
      <input type="submit" name="submit" value="Speichern" />
    </div>
  </form>
<?php }
}
