<!-- index gegen LDAP und DB bei externer Kennung-->
{if $action == ''}
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>Registrierung und Terminbuchung für Gottesdienste in Weinstadt-Beutelsbach</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>
    <style>
    .container {
	  display: flex;
	  justify-content: center;
     }
      .button {
      font: bold 11px Arial;
      text-decoration: none;
      background-color: #EEEEEE;
      color: #333333;
      padding: 2px 6px 2px 6px;
      border-top: 1px solid #CCCCCC;
      border-right: 1px solid #333333;
      border-bottom: 1px solid #333333;
      border-left: 1px solid #CCCCCC;
      }

    </style>
  </head>
  <body>
    <table height="100%" width="100%">
      <tr>
        <td width="5%">
          &nbsp;
        </td>
        <td width="90%">
          <div class="Header">
            <div>
              {if $abmelde_error == 1}
              <div align="center">Fehler bei der Abmeldung</div>
              {/if}
              {if $abmelde_error == 0}
              <div align="center">Abmeldung vom Gottesdienst am {$abmelde_termin} Uhr</div>
              {/if}
            </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="" cellspacing="0"  width="96%" >
              <tr>
                <td align="left">
                  <table width="100%" border="0">
                    <form action=?action=terminwahl method="POST" name="persdat">
                    {if $abmelde_error == 1}
                      <tr>
                        <td width="80%">
                        <table width="100%" border=0>
                        <tr>
                          <td width="30%">&nbsp;</td>
                          <td width="40%">
                          Es ist ein Fehler aufgetreten. Die Buchung konnte nicht gelöscht werden oder ist bereits gelöscht.<br>
                          <br>
                          Im Zweifel kontaktieren Sie den <a href="mailto:nak-beutelsbach@gmx.de">Administrator</a>.
                          </td>
                          <td width="30%">&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="30%">&nbsp;</td>
                          <td width="40%">&nbsp;</td>
                          <td width="30%">&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="30%">&nbsp;</td>
                          <td width="40%">

                          </td>
                          <td width="30%">&nbsp;</td>
                        </tr>
                        </table>
                    {/if}
                    {if $abmelde_error == 0}
                      <tr>
                        <td width="80%">
                        <table width="100%" border=0>
                        <tr>
                          <td width="30%">&nbsp;</td>
                          <td width="40%">
                            <p align="center">
                            Sie möchten <b>{$abmelde_vorname} {$abmelde_nachname}</b> vom Gottesdienst am {$abmelde_termin} Uhr abmelden?
                            <br>
                            <br>
                            <br>
                            Sind Sie sich sicher?
                            <br>
                            <br>
                            <a href="?action=del&antwort=N">
                        <img title = "Nein" border="0" src="./templates/{$global_template}/images/nein.gif"></a>
                         &nbsp;
                            <a href="?action=del&antwort=Y">
                        <img title = "Ja"border="0" src="./templates/{$global_template}/images/ja.gif"></a>

                            </p>
                          </td>
                          <td width="30%">&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="30%">&nbsp;</td>
                          <td width="40%">&nbsp;</td>
                          <td width="30%">&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="30%">&nbsp;</td>
                          <td width="40%">

                          </td>
                          <td width="30%">&nbsp;</td>
                        </tr>
                        </table>
                    {/if}
                        </td>
                      </tr>
                  </table>
                </td>
              </tr>
            </table>
          </div>
        </td>
        <td width="5%">
        &nbsp;
        </td>
      </tr>
    </table>
    </form>
  </body>
</html>
{/if}
{if $action == 'del'}
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>Abmeldung beendet</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">
  </head>
  <body onselectstart="return false" ondragstart="return false" oncontextmenu="return false" oncontext="return false">
    <table height="100%" width="100%">
      <tr>
        <td width="15%">
          &nbsp;
        </td>
        <td width="70%">
          <div class="Header">
            <div>
              <div align="center">Abmeldung beendet</div>
            </div>
          </div>
          <div class="pat_list_box">
            <p>
              {if $save_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>
                  {$save_error_text}
                </td>
              </tr>
            </table>
            <br />
            {else}
            <br>
            <br>
            <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0"  width="96%" >
              <tr>
                <td align="left">
                  <table width="100%" border="0">
                    <form action=?action=save method="POST" name="save">
                      <tr>
                        <td width="80%">
                        <p align='center'>
                          {$abmelde_ausgabe}
                        </p>
                          <br>
                        </td>
                      </tr>
                  </table>
                </td>
              </tr>
            </table>
            <br>
            <br>
            {/if}
          </div>
        </td>
        <td width="15%">
        &nbsp;
        </td>
      </tr>
    </table>
    </form>
  </body>
</html>
{/if}