2023-04-25 13:25:59 +02:00

434 lines
16 KiB
HTML
Executable File

{if $action == ''}
<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
</head>
<body>
<br />
<br />
<div class="header">
<div>
<div>{$rollen_titel}</div>
</div>
</div>
<form action="?action=admin" method='post' name='erfassen'>
<div class="pat_list_box">
{if $rollen_pflichtfelder == '1'}
<table width="70%" class="errorTable" align="center">
<tr>
<td>
<img src="templates/{$global_template}/images/pflichtfelder/achtung_gross.gif">
</td>
<td><b>Achtung!</b><br>
{$rollen_error_text}
</td>
</tr>
</table>
<br>
{/if}
<fieldset>
<legend>
<b>Rolle auswählen</b>
</legend>
<br />
<br />
<table cellspacing="1" cellpadding="1" width="100%" border="0">
<tr>
<td width=40%>
<strong>{$rollen_field_auswahl}</strong>
</td>
<td>
<select size="5" name="rolle">
{section name=table_data loop=$table_data}
<option value="{$table_data[table_data].roid}" {if $table_data[table_data].select == 'Y'} selected {/if}>{$table_data[table_data].bezeichnung}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
{/section}
</select>
</td>
</tr>
<tr>
<td colspan="2" align="center">
&nbsp;
</td>
</tr>
<tr>
<td width=40%>
<strong>{$rollen_field_neu}</strong>
</td>
<td>
<strong>{$rollen_field_bez}</strong><br>
<input type="text" name="rolle_neu" size="30">
</td>
</tr>
<tr>
<tr>
<td colspan="2" align="center">
&nbsp;
</td>
</tr>
<tr>
<td colspan="2" align="center">
&nbsp;
</td>
</tr>
<tr>
<td width=40%>
&nbsp;
</td>
<td>
<input type="submit" name="senden" value="Weiter">
</td>
</tr>
</table>
<br />
<br />
</fieldset>
</form>
<br />
</div>
</body>
</html>
{/if}
{if $action == 'admin'}
<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
<script type='text/javascript' src='./overlib/overlib.js'></script>
<style type="text/css">
{literal}
.link{
text-decoration: none;
color: black;
}
{/literal}
</style>
</head>
<body>
<br />
<br />
<div class="header">
<div>
<div>{$rollen_admin_titel}</div>
</div>
</div>
<div class="pat_list_box">
<fieldset>
<legend>
<b>Rolle bearbeiten</b>
</legend>
<br />
<br />
<table width="100%">
<tr>
<td width="19%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{$rollen_field_bez}
</td>
<td width="11%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{$rollen_field_ren}
</td>
<td width="11%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{$rollen_field_del}
</td>
<td width="11%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{$rollen_field_zuw}
</td>
<td width="11%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{$rollen_field_inforights}
</td>
<td width="11%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{$rollen_field_infouser}
</td>
<td width="11%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{$rollen_field_ben_zuw}
</td>
<td width="11%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{$rollen_field_info_ohnerolle}
</td>
</tr>
<tr>
<td width="19%">
{$rollen_bezeichnung}
</td>
<td width="11%">
<a href=?action=edit><img title = "Rolle umbenennen" border="0" height=10 src="./templates/{$global_template}/images/edit.png"></a>
</td>
<td width="11%">
<!-- Wenn maximale Anzahl der Bef&uuml;llvarianten erreicht, dann ausgrauen-->
{if $rollen_button_del == '1'}
<a href=?action=del><img title = "Rolle l&ouml;schen" border="0" height=10 src="./templates/{$global_template}/images/drop.png"></a>
{else}
<img title="L&ouml;schen nicht m&ouml;glich, Anzahl Rechte/User > 0" border="0" height=10 src="./templates/{$global_template}/images/drop_grey.png">
{/if}
</td>
<td width="11%">
<a href=?action=rechte><img title = "Rechte zuweisen" border="0" height=10 src="./templates/{$global_template}/images/edit.png"></a>
</td>
<td width="11%">
<a class=link href="javascript:void(0);" onmouseover="return overlib('{$rollen_zugeordnete_rechte}', CAPTION, 'Zugeordnete Rechte: {$rollen_anzahl_rechte}', STATUS, '', ABOVE, TEXTFONTCLASS, 'text_overlib', TEXTSIZE, '10px', CAPTIONSIZE, '10px', CAPTIONFONT, 'Arial');" onmouseout="nd();"><img title="Informationen &uuml;ber zugewiesene Rechte" border="0" height=10 src="./templates/{$global_template}/images/i.jpg">({$rollen_anzahl_rechte})</a>
</td>
<td width="11%">
<a class=link href="javascript:void(0);" onmouseover="return overlib('{$rollen_zugeordnete_user}', CAPTION, 'Zugeordnete Benutzer: {$rollen_anzahl_user}', STATUS, '', ABOVE, TEXTFONTCLASS, 'text_overlib', TEXTSIZE, '10px', CAPTIONSIZE, '10px', CAPTIONFONT, 'Arial');" onmouseout="nd();"><img title="Informationen &uuml;ber zugewiesene Benutzer" border="0" height=10 src="./templates/{$global_template}/images/i.jpg">({$rollen_anzahl_user})</a>
</td>
<td width="11%">
<a href="?action=user"><img title = "Benutzerverwaltung der Rolle" border="0" height=10 src="./templates/{$global_template}/images/edit.png"></a>
</td>
<td width="11%">
<a class=link href="?action=user" onmouseover="return overlib('{$rollen_user_ohnezugeordnete_rolle}', CAPTION, 'Benutzer ohne Rechte/Rollen: {$rollen_anzahl_ohnerechte}', STATUS, '', ABOVE, TEXTFONTCLASS, 'text_overlib', TEXTSIZE, '10px', CAPTIONSIZE, '10px', CAPTIONFONT, 'Arial');" onmouseout="nd();"><img title="Informationen &uuml;ber Benutzer ohne Rechte/Rollen" border="0" height=10 src="./templates/{$global_template}/images/i.jpg">({$rollen_anzahl_ohnerechte})</a>
</td>
</tr>
</table>
<br><br>
<p align='center'>
<input type="button" value="Zur&uuml;ck" onclick="{literal}window.location.href = '?'{/literal}">
</p>
<br />
<br />
</fieldset>
<br />
</div>
</body>
</html>
{/if}
{if $action == 'edit'}
<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
</head>
<body>
<br />
<br />
<div class="header">
<div>
<div>{$rollen_edit_titel}</div>
</div>
</div>
<div class="pat_list_box">
<fieldset>
<legend>
<b>Rolle umbenennen</b>
</legend>
<br />
<br />
<form action=?action=edit1 method="POST">
<table border="0" cellpadding="0" cellspacing="0" style="border-width:0; border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="142">
<tr>
<td width='40%' style="border-style: none; border-width: medium" height="25">
<b>{$rollen_edit_field_bez}</b>
</td>
<td width='60%' align="left" style="border-style: none; border-width: medium" height="25">
<input type="text" name="rolle_neu" value="{$rollen_edit_bez}" size="30">
</td>
</tr>
</table>
<br><br>
<p align='center'>
<input type="submit" value="Speichern" name="B1">
</p>
</form>
<br />
<br />
</fieldset>
<br />
</div>
</body>
</html>
{/if}
{if $action == 'rechte'}
<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
</head>
<body>
<br />
<br />
<div class="header">
<div>
<div>{$rollen_rechte_titel}</div>
</div>
</div>
<div class="pat_list_box">
<fieldset>
<legend>
<b>Rechte bearbeiten</b>
</legend>
<br />
<br />
<form action=?action=rechte1 method="POST" name="beleg1">
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber1" height="115">
<tr>
<td width="25%">
</td>
<td width="25%">&nbsp;</td>
<td width="25%">
<p>&nbsp;
</td>
<td width="25%">
<p>
</td>
</tr>
<tr>
<td width="25%">
<p>
</td>
<td width="50%" colspan="2">
<p align="center">
<select size="15" name="admre[]" multiple>
{section name=table_data1 loop=$table_data1}
<option value="{$table_data1[table_data1].reid}" {if $table_data1[table_data1].select == '1'} selected {/if} >{$table_data1[table_data1].beschreibung} ({$table_data1[table_data1].bereich})</option>
{/section}
</select>
<br>
{$rollen_rechte_subtitel}
</td>
<td width="25%">
<p>
</td>
</tr>
<tr>
<td width="25%">
<p>
</td>
<td width="50%" colspan="2">
&nbsp;
</td>
<td width="25%">
<p>
</td>
</tr>
<tr>
<td width="25%">
</td>
<td width="50%"colspan="2" align="center">
<input type="submit" value="Markierte Rechte vergeben" name="B1">
</td>
<td width="25%">
</td>
</tr>
</table>
</form>
<br />
<br />
</fieldset>
<br />
</div>
</body>
</html>
{/if}
{if $action == 'user'}
<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
</head>
<body>
<br />
<br />
<div class="header">
<div>
<div>{$rollen_user_titel}</div>
</div>
</div>
<div class="pat_list_box">
<fieldset>
<br />
<br />
<form action=?action=user1 method="POST" name="beleg1">
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber1" height="115">
<tr>
<td width="25%">
</td>
<td width="25%">&nbsp;</td>
<td width="25%">
<p>&nbsp;
</td>
<td width="25%">
<p>
</td>
</tr>
<tr>
<td width="25%">
<p>
</td>
<td width="50%" colspan="2">
<p align="center">
<select size="10" name="user[]" multiple>
{section name=table_data1 loop=$table_data1}
<option value="{$table_data1[table_data1].imtuid}" {if $table_data1[table_data1].select == '1'} selected {/if} >{$table_data1[table_data1].beschreibung}&nbsp;&nbsp;&nbsp;</option>
{/section}
</select>
<br />
{$rollen_user_subtitel}
</td>
<td width="25%">
<p>
</td>
</tr>
<tr>
<td width="25%">
<p>
</td>
<td width="50%" colspan="2">
&nbsp;
</td>
<td width="25%">
<p>
</td>
</tr>
<tr>
<td width="25%">
</td>
<td width="50%"colspan="2" align="center">
<input type="submit" value="Benutzer zur Rolle zuweisen" name="B1">
</td>
<td width="25%">
</td>
</tr>
</table>
</form>
<br />
<br />
{if $rollen_rollenanz > '0'}
<table width="100%">
<tr>
<td width="45%">
<b>Benutzer</b>
</td>
<td width="30%">
<b>Rollen</b>
</td>
<td align="right" width="20%">
<b>Rolle l&ouml;schen</b>
</td>
</tr>
{section name=outer_loop loop=$outer_loop}
<tr>
<td width="45%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{$outer_loop[outer_loop].nachname}, {$outer_loop[outer_loop].vorname}
</td>
<td width="30%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{section name=inner loop=$outer_loop[outer_loop].inner}
{$outer_loop[outer_loop].inner[inner].bezeichnung}<br>
{/section}
</td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
{section name=inner loop=$outer_loop[outer_loop].inner}
<a href="?action=deluserrol&roid={$outer_loop[outer_loop].inner[inner].roid_ges}&imtuid={$outer_loop[outer_loop].inner[inner].imtuid}"><img title = "Rolle bei Benutzer l&ouml;schen" border="0" height=10 src="./templates/{$global_template}/images/drop.png"></a><br>
{/section}
</td>
</tr>
{/section}
</table
{/if}
<br />
<br />
<p align="center">
<input type="button" value="Zur&uuml;ck" onclick="{literal}window.location.href = '?action=admin'{/literal}">
&nbsp;
<input type="button" value="Ende" onclick="{literal}window.location.href = {/literal}'?new=1'">
</p>
<br />
<br />
</fieldset>
<br />
</div>
</body>
</html>
{/if}