{if $action == ''}
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$rollen_titel}</title>
  </head>
  <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="80%" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td width="95%" background="./templates/{$global_template}/images/box_top.gif">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$rollen_titel}</font><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></td>
                <td nowrap="nowrap" align="left" width="3%" background="./templates/{$global_template}/images/box_top.gif" valign="top"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td colspan="2"><br><p align="center">
                  <form action=?action=admin 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_field_auswahl}</b> </td>
                        <td width='60%' align="left" style="border-style: none; border-width: medium" height="25">
                          <select size="5" name="rolle">

                            {section name=table_data loop=$table_data}
                            <option value="{$table_data[table_data].rid}" {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 width='40%' style="border-style: none; border-width: medium" height="25">
                          &nbsp;
                        </td>
                        <td width='60%' align="left" style="border-style: none; border-width: medium" height="25">
                          &nbsp;
                        </td>
                      </tr>
                      <tr>
                        <td width='40%' style="border-style: none; border-width: medium" height="25">
                          <b>{$rollen_field_neu}</b> </td>
                        <td width='60%' align="left" style="border-style: none; border-width: medium" height="25">
                          <table width='100%'>
                            <tr>
                              <td>
                                <b>{$rollen_field_bez}</b>
                              </td>
                              <td>
                                <b>{$rollen_field_hinw}</b>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <input type="text" name="rolle_neu" size="30">
                              </td>
                            </tr>

                          </table>
                        </td>
                      </tr>
                    </table>


                    <br><br>
                    <p align='center'>
                      <input type="submit" value="Weiter" name="B1">
                    </p>

                  </form>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif" colspan="2">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}


{if $action == 'admin'}
<!-- Wenn Pflichtfelder nicht ausgef&uuml;llt sind -->
{if $rollen_mandatory_haupt == '1'}
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$rollen_mandatory_haupt_titel}</title>
  </head>
  <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="550" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="3%" background="./templates/{$global_template}/images/box_top.gif" valign="top"></td>
                <td width="95%" background="./templates/{$global_template}/images/box_top.gif">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$rollen_mandatory_haupt_titel}</font><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td colspan="2"><br><p align="center"><b>{$rollen_mandatory_haupt_text}</b>
                  <p></p>
                  <p></p>
                  <p align="center"><a href="javascript:history.back()">
                      <img border="0" src="./templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif" colspan="2">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}

<!-- Wenn alle Pflichtfelder ausgef&uuml;llt sind -->
{if $rollen_mandatory_haupt == '2'}

<!-- Fehlermeldung, wenn Dropdown und Textfeld ausgew&auml;hlt wurde -->
{if $rollen_invalid_haupt == '1'}
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$rollen_invalid_haupt_titel}</title>
  </head>
  <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="550" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="3%" background="./templates/{$global_template}/images/box_top.gif" valign="top"></td>
                <td width="95%" background="./templates/{$global_template}/images/box_top.gif">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$rollen_invalid_haupt_titel}</font><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td colspan="2"><br><p align="center"><b>{$rollen_invalid_haupt_text}</b>
                  <p></p>
                  <p></p>
                  <p align="center"><a href="javascript:history.back()">
                      <img border="0" src="./templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif" colspan="2">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}

{if $rollen_invalid_haupt == '2'}
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$rollen_admin_titel}</title>
    <script type='text/javascript' src='./overlib/overlib.js'></script>
    <style type="text/css">
      {literal}
      .link{
          text-decoration: none;
          color: black;
      }
      {/literal}
    </style>
  </head>
  <body>
    <div id="overDiv" style="position: absolute; visibility: hidden; z-index: 1000; left: 10px; top: 0px; background-image: none;"></div>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">

            <table cellspacing="0" cellpadding="0" width="850" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>

                <td width="95%" background="./templates/{$global_template}/images/box_top.gif">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$rollen_admin_titel}</font><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></td>
                <td nowrap="nowrap" align="left" width="3%" background="./templates/{$global_template}/images/box_top.gif" valign="top"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td colspan="2">
                  <br><p align="left"><b>{$rollen_admin_text}</b>
                    <br>
                    <br>
                  <table width="100%">
                    <tr>
                      <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">
                        {$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_info_ohnerolle}
                      </td>
                    </tr>


                    <tr>
                      <td width="30%">
                        {$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 class=link href="javascript:void(0);" 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}">
                    &nbsp;
                    <input type="button" value="Weiter" onclick="{literal}window.location.href = '?action=user'{/literal}">
                  </p>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif" colspan="2">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>

          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}
{/if}
{/if}


{if $action == 'edit'}
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$rollen_edit_titel}</title>
  </head>
  <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="80%" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td width="95%" background="./templates/{$global_template}/images/box_top.gif">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$rollen_edit_titel}</font><br>
                <td nowrap="nowrap" align="left" width="3%" background="./templates/{$global_template}/images/box_top.gif" valign="top"></td>
              <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></td>
              <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td colspan="2"><br><p align="center">
                  <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>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif" colspan="2">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}

{if $action == 'rechte'}
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$rollen_rechte_titel}</title>
  </head>
  <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="550" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_top.gif" valign="top">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$rollen_rechte_titel} {$rollenrecht_bezeichnung}</font><br>
                  <font class="sh">{$rollen_rechte_subtitel}</font><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></font></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td>
                  <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].admin_rolle}" {if $table_data1[table_data1].select == '1'} selected {/if} >{$table_data1[table_data1].beschreibung} ({$table_data1[table_data1].bereich})</option>
                              {/section}
                            </select>

                        </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>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}

{if $action == 'user'}
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$rollen_user_titel}</title>
  </head>
  <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="50%" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_top.gif" valign="top">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$rollen_user_titel} {$rollenrecht_bezeichnung}</font><br>
                  <font class="sh">{$rollen_user_subtitel}</font><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></font></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td>
                  <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="15" name="user[]" multiple>
                              {section name=table_data1 loop=$table_data1}
                              <option value="{$table_data1[table_data1].vaid}" {if $table_data1[table_data1].select == '1'} selected {/if} >{$table_data1[table_data1].beschreibung}</option>
                              {/section}
                            </select>

                        </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>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>

{if $rollen_rollenanz > '0'}
<br>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$rollen_user_titel2}</title>
  </head>
  <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="99%" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_top.gif" valign="top">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$rollen_user_titel2} {$rollen_bezeichnung}</font><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></font></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td>


                  <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&rid={$outer_loop[outer_loop].inner[inner].rid_ges}&vaid={$outer_loop[outer_loop].inner[inner].vaid}><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


                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}

<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>
{/if}