<?php
session_start();

$headline = 'Ihr Obst';
$content = '';
if (isset($_REQUEST['error'])) {
    $content .= '<div class="panel panel-danger">
    <div class="panel-heading">Fehler</div>
    <div class="panel-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 haben Sie Ihr Obst bei uns angeliefert?</p>

    <div class="form-group form-group-lg row">
        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-default" id="btn-gitterbox">In Gitterbox</a></div>
        <div class="col-sm-6"><a href="#" class="btn btn-block btn-lg btn-default" id="btn-anhaenger">Anhänger abgestellt</a></div>
        <input type="hidden" name="lieferart" id="lieferart" value="">
    </div>
    <div class="modal fade" role="dialog" id="modal-gitterbox"><div class="modal-dialog">
    <div class="form-group form-group-lg modal-content"><div class="modal-header">Wie viele Gitterboxen haben Sie gefüllt?</div>
        <div class="modal-body row">
        <div class="col-sm-2 col-sm-offset-1"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-1">1</a></div>
        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-2">2</a></div>
        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-3">3</a></div>
        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-4">4</a></div>
        <div class="col-sm-2"><a href="#" class="btn btn-block btn-lg btn-default btn-gbcount" id="btn-gbcount-5">5</a></div>
    </div>
    </div>
    </div></div>

    

    <div class="form-group form-group-lg" id="details-gitterbox">
        <label for="kennz">Anzahl benutzter Gitterboxen:</label>
    <div class="row">
        <div class="col-sm-10 col-sm-offset-1"><input class="form-control" type="text" name="gbcount" id="gbcount"></div>
    </div>
    </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">
        <div class="col-sm-10 col-sm-offset-1"><input class="form-control" type="text" name="kennz" id="kennz" placeholder="Kennzeichen des Anhängers"></div>
    </div>
        <span class="help-block">(Falls bekannt)</span>
    </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");