<?php
    // don't forget about this for custom templates, or errors will not show for server-side validation
    // $zf_error is automatically created by the library and it holds messages about SPAM or CSRF errors
    // $error is the name of the variable used with the set_rule method
    echo (isset($zf_error) ? $zf_error : (isset($error) ? $error : ''));
?>

<script type="text/javascript"> 
var mycallback = function(value, segment) 
{ 
  $segment = $('.optional' + segment); 
  if (value) $segment.show(); 
  else $segment.hide();
  
  $segment = $('.optional_inv' + segment); 
  if (value) $segment.hide(); 
  else $segment.show();  
} 

</script>


<div class="row"><div class="col-lg-12"><div class="panel panel-primary">
<div class="panel-heading">Daten des Lagerteilnehmers</div>
<div class="panel-body">
<table>
<tr><td><?php echo $label_geschlecht ?></td><td><?php echo $label_nachname ?></td><td><?php echo $label_vorname ?></td><td><?php echo $label_strasse ?></td><td><?php echo $label_plz ?></td><td><?php echo $label_ort ?></td></tr>
<tr><td><?php echo $geschlecht ?></td><td><?php echo $nachname ?></td><td><?php echo $vorname ?></td><td><?php echo $strasse ?></td><td><?php echo $plz ?></td><td><?php echo $ort ?></td></tr>
<tr><td>&nbsp;</td><td><?php echo $label_geburtstag ?></td><td><?php echo $label_telefon ?></td><td><?php echo $label_email ?></td><td><?php echo $label_mitglied ?></td><td><div class="optional optional1"> <?php echo $label_gruppe ?></div></td></tr>
<tr><td>&nbsp;</td><td><?php echo $geburtstag ?></td><td><?php echo $telefon ?></td><td><?php echo $email ?></td><td><?php echo $mitglied_1 ?></td><td><div class="optional optional1"> <?php echo $gruppe ?></div></td></tr>
</table>
</div></div></div></div>
 
<div class="row"><div class="col-lg-12"><div class="panel panel-primary">
<div class="panel-heading">Kontaktperson während des Lägers</div>
<div class="panel-body">
<table>
<tr><td><?php echo $label_kontaktnachname ?></td><td><?php echo $label_kontaktvorname ?></td><td><?php echo $label_kontaktstrasse ?></td><td><?php echo $label_kontaktplz ?></td><td><?php echo $label_kontaktort ?></td><td><?php echo $label_kontakttelefon ?></td></tr>
<tr><td><?php echo $kontaktnachname ?></td><td><?php echo $kontaktvorname ?></td><td><?php echo $kontaktstrasse ?></td><td><?php echo $kontaktplz ?></td><td><?php echo $kontaktort ?></td><td><?php echo $kontakttelefon ?></td></tr>
</table>
</div></div></div></div>

<div class="row"><div class="col-lg-12"><div class="panel panel-primary">
<div class="panel-heading">Bankverbindung / Lagerbeitrage / Spende </div>
<div class="panel-body">
<table>
<tr><td><?php echo $label_kontoinhaber ?></td><td><?php echo $label_iban?></td><td><?php echo $label_bic ?></td><td><?php echo $label_beitrag?></td><td><?php echo $label_spende ?></td><td><?php echo $label_prepay ?></td><td><?php echo $label_nachlass ?></td></td><td><?php echo $label_aufkleber ?></td></tr>
<tr><td><?php echo $kontoinhaber ?></td><td><?php echo $iban ?></td><td><?php echo $bic ?></td><td><?php echo $beitrag ?></td><td><?php echo $spende?></td><td><?php echo $prepay?></td><td><?php echo $nachlass_1 ?></td><td><?php echo $aufkleber_1 ?></td></tr>
</table>
</div></div></div></div>

<div class="row"><div class="col-lg-12"><div class="panel panel-primary">
<div class="panel-heading">Zusatzangaben</div>
<div class="panel-body">
<table>
<tr><td><?php echo $label_krankenkasse?></td><td><?php echo $label_impfung?></td><td><?php echo $label_schwimmen ?></td><td><?php echo $label_medabgabe?></td><td><?php echo $label_fleischlos?></td></tr>
<tr><td><?php echo $krankenkasse ?></td><td><?php echo $impfung ?></td><td><?php echo $schwimmen_1?></td><td><?php echo $medabgabe_1 ?></td><td><?php echo $fleischlos_1 ?></td></tr>
</table>
<table>
<tr><td><?php echo $label_medikamente?></td><td><?php echo $medikamente?></td></tr>
<tr><td><?php echo $label_allergien?></td><td><?php echo $allergien ?></td></tr>
</table>
</div></div></div></div>

 <div class="row"><div class="col-lg-12"><div class="panel panel-primary">
<div class="panel-heading">Mitarbeiter/Mitfahrer</div>
<div class="panel-body">
<table>
<tr><td><?php echo $label_mitarbeiter?></td><td><?php echo $mitarbeiter_1?></tr>
</table>
<div class="optional optional_inv2">
<table>
<tr><td><?php echo $label_zeltwunsch1?></td><td><?php echo $zeltwunsch1?></td><td><?php echo $label_zeltwunsch2?></td><td><?php echo $zeltwunsch2?></td></tr>
<tr><td><?php echo $label_zeltwunsch3?></td><td><?php echo $zeltwunsch3?></td><td><?php echo $label_zeltwunsch4?></td><td><?php echo $zeltwunsch4?></td></tr>
</table>
</div>
<div class="optional optional2">
<table>
<tr><td><?php echo $label_aufgabe?></td><td><?php echo $aufgabe?></td><td><?php echo $label_mitfahrzeitraum?></td><td><?php echo $mitfahrzeitraum?></td><td><?php echo $label_vorbereitungstag?></td><td><?php echo $vorbereitungstag_1?></td></tr>
</table>
</div>

<table>
<tr><td><?php echo $label_aufbau?></td><td><?php echo $aufbau_1?><td><td><?php echo $label_abbau?></td><td><?php echo $abbau_1?></td></tr>
</table>

</div></div></div></div>
  
  <!-- the submit button goes in the last row; notice the "even" class which
  is used to highlight even rows differently from the odd rows; also, notice
  the "last" class which removes the bottom border which is otherwise present
  for any row -->
  <div class="row even last"><?php echo $btnsubmit?></div>
    
</div>
