master
Bernd Wurst Erste Version, die über die...

Bernd Wurst authored 3 years ago

1) <?php
Bernd Wurst Neue API 2023

Bernd Wurst authored 7 months ago

2) //print_r($_SESSION);
Bernd Wurst Erste Version, die über die...

Bernd Wurst authored 3 years ago

3) $pages = array(
4)     1 => 'index.php',
5)     2 => 'address.php',
6)     3 => 'gitterbox.php',
Bernd Wurst Neue API 2023

Bernd Wurst authored 7 months ago

7)     4 => 'obstart.php',
8)     5 => 'gebrauchte.php',
9)     6 => 'auftrag.php',
10)     7 => 'frischsaft.php',
11)     8 => 'summary.php');
Bernd Wurst Erste Version, die über die...

Bernd Wurst authored 3 years ago

12) 
13) $previous = array_search(basename($_SERVER['PHP_SELF']), $pages) - 1;
14) if ($previous > 0) {
15)     $previous = $pages[$previous];
16) } else {
17)     $previous = null;
18) }
19) 
20) ?><!DOCTYPE html>
Bernd Wurst Initial commit

Bernd Wurst authored 6 years ago

21) <html lang="de">
22)   <head>
23)     <meta charset="utf-8">
24)     <meta http-equiv="X-UA-Compatible" content="IE=edge">
25)     <meta name="viewport" content="width=device-width, initial-scale=1">
26)     <title>Mosterei Wurst - Auftrag erteilen</title>
27) 
28)     <script src="assets/jquery.js"></script>
29)     <script src="assets/jquery-ui/jquery-ui.min.js"></script>
30)     <link href="assets/jquery-ui/jquery-ui.min.css" rel="stylesheet">
Bernd Wurst Migration to bootstrap-4.0.0

Bernd Wurst authored 6 years ago

31)     <script src="assets/fontawesome/svg-with-js/js/fontawesome-all.min.js"></script>
32)     <link href="assets/fontawesome/svg-with-js/css/fa-svg-with-js.css" rel="stylesheet">
Bernd Wurst Initial commit

Bernd Wurst authored 6 years ago

33)     <script src="assets/bootstrap/js/bootstrap.min.js"></script>
34)     <link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
35)     <link href="assets/style.css" rel="stylesheet">
36)     <script src="assets/script.js"></script>
37)     <?php
38)     $f = 'assets/'.str_replace('.php','.js', $_SERVER['PHP_SELF']);
39)     if (file_exists($f)) {
40)       echo '<script src="'.$f.'"></script>';
41)     }
42)     ?>
43)    </head>
Bernd Wurst Erste Version, die über die...

Bernd Wurst authored 3 years ago

44)   <body style="display: none;">
45)     <div id="banner" class="mb-3">
46)         <div id="banner-back">
47) <?php if ($previous) { ?>
48)        <a href="<?= $previous ?>"><img src="assets/images/back.svg" width="65" height="65" alt="<"></a>
49) <?php } ?>
50)         </div>
51)         <div id="banner-logo"><img src="assets/images/banner.svg" width="244" height="65" alt="Mosterei Wurst - Murrhardt-Köchersberg - 07192-936436"></div>
Bernd Wurst Optimierungen für Handy-Dis...

Bernd Wurst authored 3 years ago

52)         <div id="banner-headline"><h1><?= $headline ?></h1></div>
53)         <div id="banner-clear"></div>
Bernd Wurst Erste Version, die über die...

Bernd Wurst authored 3 years ago

54)      </div>
Bernd Wurst Initial commit

Bernd Wurst authored 6 years ago

55)   <div class="container text-center">
Bernd Wurst API-Aufrufe über Guzzle um...

Bernd Wurst authored 7 months ago

56)     <?php
57)     if (isset($_SESSION['warnings'])) {
58)         foreach($_SESSION['warnings'] as $warning) {
59)             echo '<div class="card text-white bg-danger mb-3">
60)     <div class="card-header">Fehler</div>';
61)             echo '<div class="card-body">'.$warning.'</div>';
62)             echo ' </div>'; 
63)         }
64)     }?>
65) <?= $content ?>
Bernd Wurst Initial commit

Bernd Wurst authored 6 years ago

66)     <?php if (basename($_SERVER['PHP_SELF']) != 'finish.php') { ?>
Bernd Wurst Migration to bootstrap-4.0.0

Bernd Wurst authored 6 years ago

67)     <nav aria-label="Zu anderen Schritten springen">
68)         <ul class="pagination pagination-sm justify-content-center">
Bernd Wurst Initial commit

Bernd Wurst authored 6 years ago

69)         <?php 
Bernd Wurst Erste Version, die über die...

Bernd Wurst authored 3 years ago

70)        foreach ($pages as $index => $file) {   
71)             echo '<li class="page-item'.($file === basename($_SERVER['PHP_SELF']) ? ' active' : '').'"><a class="page-link" href="'.$file.'">'.$index.'</a></li>';
Bernd Wurst Spätere Anlieferung eingebaut

Bernd Wurst authored 6 years ago

72)         }
Bernd Wurst Initial commit

Bernd Wurst authored 6 years ago

73) ?>
Bernd Wurst Migration to bootstrap-4.0.0

Bernd Wurst authored 6 years ago

74)     </ul></nav>
75)     <a id="allesloeschen" data-toggle="modal" data-target="#allesloeschen-dialog"class="btn btn-sm btn-block btn-outline-danger" href="clear.php">Alle Eingaben löschen und von vorne beginnen</a>
76)     <div class="modal fade" id="allesloeschen-dialog" tabindex="-1" role="dialog" aria-labelledby="Bestaetigung" aria-hidden="true">
77)         <div class="modal-dialog">
78)             <div class="modal-content">
79)                 <div class="modal-header">
80)                     <h4 class="modal-title">Alle Eingaben löschen?</h4>
81)                 </div>
82) 
83)                 <div class="modal-body">
84)                     <p>Alles was Sie bisher eingegeben haben wird gelöscht und Sie möchten von vorne beginnen?</p>
85)                 </div>
86) 
87)                 <div class="modal-footer">
Bernd Wurst Fehlermeldungen auf BS4 por...

Bernd Wurst authored 6 years ago

88)                     <button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Abbrechen</button>
Bernd Wurst Migration to bootstrap-4.0.0

Bernd Wurst authored 6 years ago

89)                     <a class="btn btn-danger btn-ok">Eingaben löschen</a>
90)                 </div>
91)             </div>
92)         </div>
93)     </div>
94)     <div class="card" id="footer">
95)         <div class="card-header">Hilfe?</div>
Bernd Wurst API-Aufrufe über Guzzle um...

Bernd Wurst authored 7 months ago

96)         <div class="card-body"><p class="card-text">Für Unterstützung bei der Nutzung dieses Formulars können Sie uns unter der Telefonnummer <a href="tel:+497192936434">07192-936434</a> erreichen.</p></div>
Bernd Wurst Schrift größer, Buttons mit...

Bernd Wurst authored 5 months ago

97) <?php if (!isset($_SESSION['mode']) || $_SESSION['mode'] != 'local') { ?>
Bernd Wurst Erste Version, die über die...

Bernd Wurst authored 3 years ago

98)     <div class="card-footer"><a target="_blank" href="https://mosterei-wurst.de/impressum/">Impressum</a> · <a target="_blank" href="https://mosterei-wurst.de/">Website besuchen</a></div>
99) <?php } /* if ($_SESSION['mode'] != 'local') */ ?>
Bernd Wurst Initial commit

Bernd Wurst authored 6 years ago

100)     </div>
Bernd Wurst Erste Version, die über die...

Bernd Wurst authored 3 years ago

101) <?php } /* if (basename($_SERVER['PHP_SELF']) != 'finish.php') */ ?>
Bernd Wurst Initial commit

Bernd Wurst authored 6 years ago

102) 
103)     </div>
Bernd Wurst API-Authtoken, Idle-Warnung...

Bernd Wurst authored 3 years ago

104)     <div class="modal fade" id="idle-dialog" tabindex="-1" role="dialog" aria-labelledby="Bestaetigung" aria-hidden="true">
105)         <div class="modal-dialog">
106)             <div class="modal-content">
107)                 <div class="modal-header">
108)                     <h4 class="modal-title">Weitermachen?</h4>
109)                 </div>
110) 
111)                 <div class="modal-body">
112)                     <p>An diesem Gerät wurde lange nichts eingegeben. Möchten Sie am laufenden Auftrag weiter machen oder neu beginnen?</p>
113)                 </div>
Bernd Wurst Initial commit

Bernd Wurst authored 6 years ago

114) 
Bernd Wurst API-Authtoken, Idle-Warnung...

Bernd Wurst authored 3 years ago

115)                 <div class="modal-footer">
116)                     <button type="button" class="btn btn-primary" data-dismiss="modal" id="dismiss-idle">Weiter machen!</button>
117)                     <a class="btn btn-danger btn-ok" href="clear.php<?= (isset($_SESSION['mode']) ? '?mode='.$_SESSION['mode'] : '') ?>">Neu beginnen</a>
118)                 </div>
119)             </div>
120)         </div>
121)     </div>
122)  
Bernd Wurst loading-spinner hinzugefügt

Bernd Wurst authored 6 months ago

123)     <div id="loading-spinner-overlay">
124)         <svg id="loading-spinner" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"/></svg>
125)     </div>
126)