<?php
/* Smarty version 3.1.29, created on 2020-11-30 09:46:04
  from "/var/www/web360/htdocs/gottesdienst/templates/modern/admin/gd_verwaltung.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5fc4b14c514c82_96543059',
  'file_dependency' => 
  array (
    '51a77e2149ea651cdb60285e41010ebd32b7f7d2' => 
    array (
      0 => '/var/www/web360/htdocs/gottesdienst/templates/modern/admin/gd_verwaltung.html',
      1 => 1606725939,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5fc4b14c514c82_96543059 ($_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<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>Sitzplan</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/css/styles_login.css" type="text/css">
    <link rel="stylesheet" href="../jquery/jquery-ui.css">
    <?php echo '<script'; ?>
 src="../jquery/jquery-1.12.4.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="../jquery/jquery-ui.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="../jquery/globalize.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="../jquery/globalize.culture.de-DE.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="../jquery/jquery.mousewheel.js"><?php echo '</script'; ?>
>
    <style>
          .legend1 {
          display: block;
          padding-left: 30px;
          padding-right: 30px;
          border: none;
          }
fieldset {
  margin-left: 2em;
  margin-right: 2em;
  margin-bottom: 2em;
  border: 1px solid #888;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
}
      .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;
      }
      .bt_offen {
      	box-shadow: 0px 10px 14px -7px #3e7327;
      	background:linear-gradient(to bottom, #77b55a 5%, #72b352 100%);
      	background-color:#77b55a;
      	border-radius:4px;
      	border:1px solid #4b8f29;
      	display:inline-block;
       	cursor:pointer;
      	color:#ffffff;
      	font-family:Arial;
      	font-size:13px;
      	font-weight:bold;
      	padding:1px 12px;
      	text-decoration:none;
      	text-shadow:0px 1px 0px #5b8a3c;
       }
      .bt_offen:hover {
      	background:linear-gradient(to bottom, #72b352 5%, #77b55a 100%);
      	background-color:#72b352;
      }
      .bt_offen:active {
      	position:relative;
      	top:1px;
      }

.bt_zu {
	box-shadow:inset 0px 39px 0px -24px #e67a73;
	background-color:#e4685d;
	border-radius:4px;
	border:1px solid #ffffff;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	padding:3px 15px;
	text-decoration:none;
	text-shadow:0px 1px 0px #b23e35;
}
.bt_zu:hover {
	background-color:#eb675e;
}
.bt_zu:active {
	position:relative;
	top:1px;
}



    </style>
<?php echo '<script'; ?>
>
<?php echo '</script'; ?>
>
  </head>
  <body>
            <fieldset>
              <legend class="legend1" align="center">
                <b>Statistik / Verwaltung</b>
              </legend>

            <p>
              <?php if ($_smarty_tpl->tpl_vars['verwaltung_error']->value == '1') {?>
            <table width="70%" class="errorTable" align="center">
              <tr>
                <td>
                  <img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/pflichtfelder/achtung_gross.gif">
                </td>
                <td><b>Achtung!</b><br>
                  <?php echo $_smarty_tpl->tpl_vars['verwaltung_error_text']->value;?>

                </td>
              </tr>
            </table>
            <br />
            <?php }?>
              <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="200"><b>Anzahl Anmeldungen:</b></td>
                <td><?php echo $_smarty_tpl->tpl_vars['verwaltung_anzges']->value;?>
</td>
              </tr>
              <tr>
                <td><b>Anzahl Haushalte:</b></td>
                <td><?php if ($_smarty_tpl->tpl_vars['verwaltung_lfd_haushalte']->value < $_smarty_tpl->tpl_vars['verwaltung_kritischemarke']->value) {?><font color="green"><?php } else { ?><font color="red"><?php }?> <?php echo $_smarty_tpl->tpl_vars['verwaltung_lfd_haushalte']->value;?>
</font></td>
              </tr>
              <tr>
                <td><b>Anmeldungen sperren:</b></td>
                <td>
                <form action=?action=sperrung method="POST" name="sperrung">
                <?php if ($_smarty_tpl->tpl_vars['verwaltung_sperrung']->value == 0) {?>
                <a href="?action=sperrung&aktion=1" class="bt_offen">Gottesdienst sperren</a>
                <?php }?>
                <?php if ($_smarty_tpl->tpl_vars['verwaltung_sperrung']->value == 1) {?>
                <a href="?action=sperrung&aktion=0" class="bt_zu">Gottesdienst öffnen (seit <?php echo $_smarty_tpl->tpl_vars['verwaltung_sperrdat']->value;?>
 gesperrt)</a>
                <?php }?>
                </td>
                </form>
              </tr>
              <tr>
                <td><b>Standardsitzplätze:</b></td>
                <td>
                <a href="?action=resetstandard&aktion=1" class="bt_offen">Wiederherstellung</a>
                </td>
              </tr>
              </table>
              <br>
              <form action=?action=del method="POST" name="del">
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="150"><b>Teilnehmer löschen:</b></td>
                  <td align="center" width="500">
                  <select name="del" id="del" onchange="">
                   <option>Zu löschende Person wählen</option>
                    <?php
$__section_table_data1_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1'] : false;
$__section_table_data1_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data1_0_total = $__section_table_data1_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array());
if ($__section_table_data1_0_total != 0) {
for ($__section_table_data1_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_0_iteration <= $__section_table_data1_0_total; $__section_table_data1_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){
?>
                     <option value="<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['bid'];?>
"><?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['nachname'];?>
, <?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['vorname'];?>
</option>
                    <?php
}
}
if ($__section_table_data1_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_0_saved;
}
?>
                  </select>
                  </td>
                  <td align="center"><input type="submit" class="button" value="Teilnehmer löschen"></td>
                </tr>
              </table>
              </form>
              <br>
              <b>Haushalt hinzufügen:</b>
                         <form action=?action=save method="POST" name="del">
                            <table border="0">
                              <tr>
                                <td>
                                  &nbsp;
                                </td>
                                <td>
                                  <b>Nachname</b>
                                </td>
                                <td>
                                  &nbsp;
                                </td>
                                <td>
                                  <b>Vorname (vollständig ausgeschrieben)</b>
                                </td>
                                <td width="205">
                                  &nbsp;
                                </td>
                              </tr>

                              <tr>
                                  <td align="right">
                                    1
                                  </td>
                                  <td>
                                    <input type="text" name="nachname1" id="nachname1" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_nachname1']->value;?>
" size="40">
                                  </td>
                                  <td>
                                    ,
                                  </td>
                                  <td>
                                    <input type="text" name="vorname1" id="vorname1" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_vorname1']->value;?>
" size="40">
                                  </td>
                                <td>
                                  &nbsp;
                                </td>
                              </tr>
                            <tr>
                                <td align="right">
                                  2
                                </td>
                                <td>
                                  <input type="text" name="nachname2" id="nachname2" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_nachname2']->value;?>
" size="40">
                                </td>
                                <td>
                                  ,
                                </td>
                                <td>
                                  <input type="text" name="vorname2" id="vorname2" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_vorname2']->value;?>
" size="40">
                                </td>
                                <td>
                                  &nbsp;
                                </td>
                              </tr>
                            <tr>
                                <td align="right">
                                  3
                                </td>
                                <td>
                                  <input type="text" name="nachname3" id="nachname3" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_nachname3']->value;?>
" size="40">
                                </td>
                                <td>
                                  ,
                                </td>
                                <td>
                                  <input type="text" name="vorname3" id="vorname3" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_vorname3']->value;?>
" size="40">
                                </td>
                                <td>
                                  &nbsp;
                                </td>
                              </tr>
                            <tr>
                                <td align="right">
                                  4
                                </td>
                                <td>
                                  <input type="text" name="nachname4" id="nachname4" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_nachname4']->value;?>
" size="40">
                                </td>
                                <td>
                                  ,
                                </td>
                                <td>
                                  <input type="text" name="vorname4" id="vorname4" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_vorname4']->value;?>
" size="40">
                                </td>
                                <td>
                                  &nbsp;
                                </td>
                              </tr>
                            <tr>
                                <td align="right">
                                  5
                                </td>
                                <td>
                                  <input type="text" name="nachname5" id="nachname5" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_nachname5']->value;?>
" size="40">
                                </td>
                                <td>
                                  ,
                                </td>
                                <td>
                                  <input type="text" name="vorname5" id="vorname5" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_vorname5']->value;?>
" size="40">
                                </td>
                                <td>
                                  &nbsp;
                                </td>
                              </tr>
                            <tr>
                                <td>
                                  &nbsp;
                                </td>
                                <td>
                                  &nbsp;
                                </td>
                                <td>
                                  &nbsp;
                                </td>
                                <td>
                                  &nbsp;
                                </td>
                                <td>
                                  &nbsp;
                                </td>
                              </tr>
                              <tr>
                                <td>

                                </td>
                                <td>
                                <b>Mailadresse:</b>

                                </td>
                                <td>
                                  &nbsp;
                                </td>
                                <td>
                                  <input type="text" name="mail" id="mail" value="<?php echo $_smarty_tpl->tpl_vars['verwaltung_value_mail']->value;?>
" size="40">
                                </td>
                                  <td align="right"><input type="submit" class="button" value="Haushalt hinzufügen"></td>
                              </tr>
                            <tr>

                            </table>
                            </form>
            </fieldset>
</body>
</html>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['action']->value == '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>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/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/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" />
    <?php echo '<script'; ?>
 type="text/javascript" src="../fancybox/jquery-1.5.1.min.js"><?php echo '</script'; ?>
>
    <!-- DATEI GIBTS NICHT   <?php echo '<script'; ?>
>!window.jQuery && document.write('<?php echo '<script'; ?>
 src="jquery-1.4.3.min.js"><\/script>');<?php echo '</script'; ?>
>-->
    <?php echo '<script'; ?>
 type="text/javascript" src="../fancybox/jquery.mousewheel-3.0.4.pack.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 type="text/javascript">
      $(document).ready(function() {
          $(".box").fancybox({
              'width'                : '75%',
              'height'               : '75%',
              'autoScale'            : true,
              'transitionIn'         : 'elastic',
              'transitionOut'        : 'elastic',
              'type'                 : 'iframe'
          });
      });
    <?php echo '</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>
              <?php if ($_smarty_tpl->tpl_vars['abmelde_error']->value == 1) {?>
              <div align="center">Fehler bei der Abmeldung</div>
              <?php }?>
              <?php if ($_smarty_tpl->tpl_vars['abmelde_error']->value == 0) {?>
              <div align="center">Abmeldung vom Gottesdienst am <?php echo $_smarty_tpl->tpl_vars['abmelde_termin']->value;?>
 Uhr</div>
              <?php }?>
            </div>
          </div>
          <div class="pat_list_box">
            <p>
              <?php if ($_smarty_tpl->tpl_vars['index_error']->value == '1') {?>
            <table width="70%" class="errorTable" align="center">
              <tr>
                <td>
                  <img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/pflichtfelder/achtung_gross.gif">
                </td>
                <td><b>Achtung!</b><br>
                  <?php echo $_smarty_tpl->tpl_vars['index_error_text']->value;?>

                </td>
              </tr>
            </table>
            <br />
            <?php }?>
            <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">
                    <?php if ($_smarty_tpl->tpl_vars['abmelde_error']->value == 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>
                    <?php }?>
                    <?php if ($_smarty_tpl->tpl_vars['abmelde_error']->value == 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><?php echo $_smarty_tpl->tpl_vars['abmelde_vorname']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['abmelde_nachname']->value;?>
</b> vom Gottesdienst am <?php echo $_smarty_tpl->tpl_vars['abmelde_termin']->value;?>
 Uhr abmelden?
                            <br>
                            <br>
                            <br>
                            Sind Sie sich sicher?
                            <br>
                            <br>
                            <a href="?action=del2&antwort=N">
                        <img title = "Nein" border="0" src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/nein.gif"></a>
                         &nbsp;
                            <a href="?action=del2&antwort=Y">
                        <img title = "Ja" border="0" src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/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>
                    <?php }?>
                        </td>
                      </tr>
                  </table>
                </td>
              </tr>
            </table>
          </div>
        </td>
        <td width="5%">
        &nbsp;
        </td>
      </tr>
    </table>
    </form>
  </body>
</html>
<?php }
if ($_smarty_tpl->tpl_vars['action']->value == 'del2') {?>
<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/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/css/styles_login.css" type="text/css">
      <?php echo '<script'; ?>
 type="text/javascript">
        function reload_iframe(selectObject) {
                var iframe = parent.document.getElementById(selectObject);
                iframe.src = iframe.src;
        }
      <?php echo '</script'; ?>
>
  </head>
  <body onload="reload_iframe('<?php echo $_smarty_tpl->tpl_vars['iframe']->value;?>
');">
    <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>
              <?php if ($_smarty_tpl->tpl_vars['save_error']->value == '1') {?>
            <table width="70%" class="errorTable" align="center">
              <tr>
                <td>
                  <img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/pflichtfelder/achtung_gross.gif">
                </td>
                <td><b>Achtung!</b><br>
                  <?php echo $_smarty_tpl->tpl_vars['save_error_text']->value;?>

                </td>
              </tr>
            </table>
            <br />
            <?php } 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'>
                          <?php echo $_smarty_tpl->tpl_vars['abmelde_ausgabe']->value;?>

                        </p>
                          <br>
                        </td>
                      </tr>
                  </table>
                </td>
              </tr>
            </table>
            <br>
            <br>
            <?php }?>
          </div>
        </td>
        <td width="15%">
        &nbsp;
        </td>
      </tr>
    </table>
    </form>
  </body>
</html>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['action']->value == 'save') {?>
<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/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/css/styles_login.css" type="text/css">
    <link rel="stylesheet" href="../jquery/jquery-ui.css">
    <?php echo '<script'; ?>
 src="../jquery/jquery-1.12.4.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="../jquery/jquery-ui.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="../jquery/globalize.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="../jquery/globalize.culture.de-DE.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="../jquery/jquery.mousewheel.js"><?php echo '</script'; ?>
>
    <style>
      .squarebutton_blue{
      width:100px;
      }
      .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>
      <?php echo '<script'; ?>
 type="text/javascript">
        function reload_iframe(selectObject) {
                var iframe = parent.document.getElementById(selectObject);
                iframe.src = iframe.src;
        }
      <?php echo '</script'; ?>
>
    <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
    <?php echo '<script'; ?>
 type="text/javascript" src="../fancybox/jquery-1.5.1.min.js"><?php echo '</script'; ?>
>
    <!-- DATEI GIBTS NICHT   <?php echo '<script'; ?>
>!window.jQuery && document.write('<?php echo '<script'; ?>
 src="jquery-1.4.3.min.js"><\/script>');<?php echo '</script'; ?>
>-->
    <?php echo '<script'; ?>
 type="text/javascript" src="../fancybox/jquery.mousewheel-3.0.4.pack.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 type="text/javascript">
      $(document).ready(function() {
          $(".box").fancybox({
              'width'                : '75%',
              'height'               : '75%',
              'autoScale'            : true,
              'transitionIn'         : 'elastic',
              'transitionOut'        : 'elastic',
              'type'                 : 'iframe'
          });
      });
    <?php echo '</script'; ?>
>
  </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">Registrierung und Terminbuchung für Gottesdienste in Weinstadt-Beutelsbach</div>
            </div>
          </div>
          <div class="pat_list_box">
            <p>
              <?php if ($_smarty_tpl->tpl_vars['save_error']->value == '1') {?>
            <table width="70%" class="errorTable" align="center">
              <tr>
                <td>
                  <img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/pflichtfelder/achtung_gross.gif">
                </td>
                <td><b>Achtung!</b><br>
                  <?php echo $_smarty_tpl->tpl_vars['save_error_text']->value;?>

                </td>
              </tr>
            </table>
            <br />
            <?php } 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'>
                          <b>Die Anmeldung zum Gottesdienst ist erfolgreich abgeschlossen.</b><br>
                          <br>
                          <?php if ($_smarty_tpl->tpl_vars['iframe1']->value != '') {
echo '<script'; ?>
>reload_iframe('<?php echo $_smarty_tpl->tpl_vars['iframe1']->value;?>
');<?php echo '</script'; ?>
><?php }?>
                          <?php if ($_smarty_tpl->tpl_vars['iframe2']->value != '') {
echo '<script'; ?>
>reload_iframe('<?php echo $_smarty_tpl->tpl_vars['iframe2']->value;?>
');<?php echo '</script'; ?>
><?php }?>
                          <?php if ($_smarty_tpl->tpl_vars['iframe3']->value != '') {
echo '<script'; ?>
>reload_iframe('<?php echo $_smarty_tpl->tpl_vars['iframe3']->value;?>
');<?php echo '</script'; ?>
><?php }?>
                          <?php if ($_smarty_tpl->tpl_vars['iframe4']->value != '') {
echo '<script'; ?>
>reload_iframe('<?php echo $_smarty_tpl->tpl_vars['iframe4']->value;?>
');<?php echo '</script'; ?>
><?php }?>
                          <?php if ($_smarty_tpl->tpl_vars['iframe5']->value != '') {
echo '<script'; ?>
>reload_iframe('<?php echo $_smarty_tpl->tpl_vars['iframe5']->value;?>
');<?php echo '</script'; ?>
><?php }?>
                        </p>
                          <br>
                        </td>
                      </tr>
                  </table>
                </td>
              </tr>
            </table>
            <br>
            <br>
            <?php }?>
          </div>
        </td>
        <td width="15%">
        &nbsp;
        </td>
      </tr>
    </table>
    </form>
  </body>
</html>
<?php }
}
}