<!-- index gegen LDAP und DB bei externer Kennung-->
{if $action == ''}
  <html>
  <head>
  <title>{$index_titel}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" href="templates/{$global_template}/css/styles_login.css" type="text/css">
    <style>
     .squarebutton_blue{
       width:100px;
     }
  </style>

  <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" />
  <script type="text/javascript" src="./fancybox/jquery-1.5.1.min.js"></script>
  <!-- DATEI GIBTS NICHT   <script>!window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>');</script>-->
  <script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
  <script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"></script>

  <script type="text/javascript">
    $(document).ready(function() {
        $(".box").fancybox({
            'width'                : '75%',
            'height'               : '75%',
            'autoScale'            : true,
            'transitionIn'         : 'elastic',
            'transitionOut'        : 'elastic',
            'type'                 : 'iframe'
        });
    });
  </script>

  </head>
  <body onload="if(document.login)document.login.user.focus();return false;">

  <table height="100%" width="100%">
  <tr>
  <td width="20%">
    &nbsp;
  </td>
  <td width="60%">
  <div class="Header">
     <div>
        <div align="center">{$index_titel}</div>
     </div>
  </div>
  <div class="pat_list_box">
  	<p>
  	  {if $index_error == '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>
 	             {$index_error_text}
 	        </td>
 	      </tr>
 	    </table>
 	    <br />
 	  {/if}
      <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0"  width="96%" >
          <tr>
              <td width="200px" align="center" valign="middle">
                <img style="margin:10px;padding:10px;"src="templates/{$global_template}/images/deputat_icon.svg">
              </td>
              <td align="left">
                <table width="100%">
                  <form action=?action=anmeld method="POST" name="login">
                  <tr>
                    <td width="40%">
                      <strong>{$index_field_user}</strong>
                    </td>
                    <td>
                      <input class="eingabe" type="text" name="user" value="{$index_user}" tabindex="1"></td>
                    </td>
                  </tr>
                  <tr>
                    <td width="40%">
                      <strong>{$index_field_pass}</strong>
                    </td>
                    <td>
                      <input class="eingabe" type="password" name="password" tabindex="2"></td>
                    </td>
                  </tr>

                  <tr>
                    <td width="100%" colspan="2" align="center">
                      &nbsp;
                    </td>
                  </tr>

                  <tr>
                    <td width="40%">
                      &nbsp;
                    </td>
                    <td>
                      <input type="submit" value="Login">
                    </td>
                  </tr>
                </table>
              </td>
          </tr>
      </table>
      <p align="center">
        <font color="red">{$index_register}</font>
        <!--
        <br />
        <br />
        <a class="squarebutton_blue box" href="register.php"><span>Registrierung</span></a>
        -->
      </p>
	  <br />
	  <br />


  </div>
  </td>
  <td width="20%">
    &nbsp;
  </td>
  </tr>
  </table>
  </form>
  </body>
  </html>
{/if}

{if $action == 'anmeld'}
  {if $index_login == '1'}
      <meta http-equiv="refresh" content="0; URL=indexframe.php">
  {/if}
{/if}


{if $action == 'register'}
<!--
Verwendetes Netz: {$register_adir}
-->

  {if $register_adir == 'hsnet'}
  <html>
  <head>
  <title>{$register_titel}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" href="templates/{$global_template}/css/styles_login.css" type="text/css">
  <style type="text/css">
     .squarebutton_blue{
       width:100px;
     }
     .correct
     {
     color:#B3DF00;
     }
     .wrong
     {
     color:#FF0000;
     }
  </style>
  </head>
  <body>

  <table height="100%" width="100%">
  <tr>
  <td width="10%">
    &nbsp;
  </td>
  <td width="80%">

  <div class="Header">
     <div>
        <div align="center">{$register_titel}</div>
     </div>
  </div>
  <div class="pat_list_box">
  	<p>

  	<form action=?action=register2&art={$register_adir} method="POST" name="register">

  	    {if $index_error == '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>
 	              {$register_error_text}
 	         </td>
 	       </tr>
	     </table><br>
 	   {/if}


      <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0"  width="96%" >
        <tr>
          <td>
              <strong>{$register_field_beziehung}</strong>
          </td>
          <td>
            <select name='register_beziehung'>
              <option value="">Bitte ausw&auml;hlen</option>
              <option value="P">ProfessorIn</option>
              <option value="L">Lehrbeauftragte/r</option>
              <option value="V">Verwaltungsmitarbeiter </option>
            </select>
          </td>
        </tr>

        <tr>
          <td>
                <strong>{$register_field_fakultaet}</strong>
          </td>
          <td>
             <input type="text" name="register_fakultaet" value="{$register_fakultaet}" size="40">
          </td>
        </tr>

      </table>
      <br />

      <p align="center">
        <input type="submit" name="senden">
      </p>
        </form>
  </div>
  </td>
  <td width="10%">
    &nbsp;
  </td>
  </tr>
  </table>
  </body>
  </html>
  {/if}

  {if $register_adir == 'studnet'}
  <html>
  <head>
  <title>{$register_titel}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" href="templates/{$global_template}/css/styles_login.css" type="text/css">
  <style type="text/css">
     .squarebutton_blue{
       width:100px;
     }
     .correct
     {
     color:#B3DF00;
     }
     .wrong
     {
     color:#FF0000;
     }
  </style>
  </head>
  <body>

  <table height="100%" width="100%">
  <tr>
  <td width="10%">
    &nbsp;
  </td>
  <td width="80%">

  <div class="Header">
     <div>
        <div align="center">{$register_titel}</div>
     </div>
  </div>
  <div class="pat_list_box">
  	<p>

  	<form action=?action=register2&art={$register_adir} method="POST" name="register">


  	    {if $index_error == '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>
 	              {$register_error_text}
 	         </td>
 	       </tr>
 	     </table><br>
 	   {/if}


      <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0"  width="96%" >
        <tr>
          <td>
             <strong>{$register_field_ag}</strong>
 	         <strong> / </strong>
             <strong>{$register_field_jahrgang}</strong>
          </td>
          <td>
 	         <input type="text" name="ag" value="{$register_ag}" size="2"> /
              <select name="jahrgang">
 	           <option value="">Bitte ausw&auml;hlen</option>
 	           <!-- if einmal aus schleife table_data und einmal selected aus Fehler Pflichtfelder -->
 	           {section name=table_data loop=$table_data}
                  <option value="{$table_data[table_data].jahrgang}" {if $table_data[table_data].select == '1'} selected {/if}>{$table_data[table_data].jahrgang}</option>
 	           {/section}
 	         </select>
          </td>
        </tr>
      </table>
      <br />

      <p align="center">
        <input type="submit" name="senden">
      </p>
        </form>
  </div>
  </td>
  <td width="10%">
    &nbsp;
  </td>
  </tr>
  </table>
  </body>
  </html>
  {/if}
{/if}


{if $action == 'register2'}
  {if $index_login == '1'}
      <meta http-equiv="refresh" content="0; URL=indexframe.php">
  {/if}
{/if}