<?php
session_start();

$headline = 'Ihr Obst';
$content = '';
if (isset($_REQUEST['error'])) {
    $content .= '<div class="card text-white bg-danger mb-3">
    <div class="card-header">Fehler</div>
    <div class="card-body">Bitte wählen Sie, wie Sie Ihr Obst angeliefert haben.</div>
    </div>';
}

$content .= '
    <form class="form" action="save.php" method="post">
    <input type="hidden" name="form" value="gitterbox">
    <p>Wie werden Sie Ihr Obst bei uns anliefern?</p>

    <div class="form-group form-group-lg row">
        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-light" id="btn-gitterbox">In Gitterbox</a></div>
        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-light" id="btn-anhaenger">Anhänger abstellen</a></div>
        <input type="hidden" name="lieferart" id="lieferart" value="">
    </div>

     <div class="form-group form-group-lg" id="details-anhaenger">
        <label for="kennz">Wie lautet das Kennzeichen Ihres Anhängers?</label>
    <div class="row justify-content-center">
        <div class="col-sm-10"><input class="form-control" type="text" name="kennz" id="kennz" placeholder="Kennzeichen des Anhängers" value="'.$_SESSION['kennz'].'"></div>
    </div>
    </div>
      <div class="form-group form-group-lg">
        <input class="btn btn-primary btn-lg" type="submit" value="Weiter &gt;" id="btn-submit">
    </div>
    </form>

';


include("template.php");