<!DOCTYPE html>
<html lang="de">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Mosterei Wurst - Auftrag erteilen</title>

    <script src="assets/jquery.js"></script>
    <script src="assets/jquery-ui/jquery-ui.min.js"></script>
    <link href="assets/jquery-ui/jquery-ui.min.css" rel="stylesheet">
    <script src="assets/bootstrap/js/bootstrap.min.js"></script>
    <link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/style.css" rel="stylesheet">
    <script src="assets/script.js"></script>
    <?php
    $f = 'assets/'.str_replace('.php','.js', $_SERVER['PHP_SELF']);
    if (file_exists($f)) {
      echo '<script src="'.$f.'"></script>';
    }
    ?>
   </head>
  <body>
  <div class="container text-center">
    <div><img src="assets/images/banner.png" width="280" height="66" alt="Mosterei Wurst - Murrhardt-Köchersberg - 07192-936436"></div>
  <h1><?= $headline ?></h1>
    <?= $content ?>
    <?php if (basename($_SERVER['PHP_SELF']) != 'finish.php') { ?>
    <ul class="pagination">
        <?php 
        $pages = array(
            1 => 'index.php',
            2 => 'step2.php',
            3 => 'step3.php',
            4 => 'step4.php',
            5 => 'step5.php',
            6 => 'step6.php',
            7 => 'step7.php');
        foreach ($pages as $index => $file) {   
        echo '<li'.($file === basename($_SERVER['PHP_SELF']) ? ' class="active"' : '').'><a href="'.$file.'">'.$index.'</a></li>';
}
?>
    </ul>
    <?php } ?>
    <div class="panel panel-info" id="footer">
        <div class="panel-heading">Hilfe?</div>
        <div class="panel-body"><p>Für Unterstützung bei der Nutzung dieses Formulars können Sie gerne unsere Telefonnummer <a href="tel:+497192936434">07192-936434</a> anrufen.</p></div>
        <div class="panel-footer"><a href="https://mosterei-wurst.de/impressum/">Impressum</a> · <a href="https://mosterei-wurst.de/">Website besuchen</a></div>
    </div>

    </div>

 </body>
</html>