092af0ea595b80e628e21fd7234a68f9336a9b20
Bernd Wurst Auswahl, ob per E-Mail oder...

Bernd Wurst authored 1 year ago

1) <?php
2) require_once "lib/api.php";
3) require_once "lib/auftrag.php";
4) session_start();
5) 
6) if (!isset($_SESSION['phone']) || (!isset($_SESSION['name']) && !isset($_SESSION['firma']) && !isset($_SESSION['lname']))) {
7)     header('Location: index.php?error&num='.urlencode($_SESSION['phone']).'&name='.urlencode($_SESSION['name']));
8)     die();
9) }
10) 
11) // Hier ist der Kunde erstellt und mit Kundennummer bekannt.
12) 
13) $headline = 'Benachrichtigung wählen';
14) $content = '<p>Wie möchten Sie bevorzugt kontaktiert werden, wenn Ihr Auftrag erledigt ist?</p>
15)         <form class="form" action="save.php" method="post">
16)         <input type="hidden" name="form" value="notification">
Bernd Wurst migration auf bootstrap-5 u...

Bernd Wurst authored 10 months ago

17)     <div class="row mb-1 g-3">';
Bernd Wurst Auswahl, ob per E-Mail oder...

Bernd Wurst authored 1 year ago

18) 
19) $num = 0;
20) $kontakte = kunde_erste_kontakte($_SESSION['kundennr']);
21) 
Bernd Wurst Änderungen 2024 und Cookie...

Bernd Wurst authored 11 months ago

22) if (isset($kontakte['mobil'])) {
23)     $num+=2;
24) }
Bernd Wurst Auswahl, ob per E-Mail oder...

Bernd Wurst authored 1 year ago

25) if (isset($kontakte['email'])) {
26)     $num++;
27) }
Bernd Wurst Änderungen 2024 und Cookie...

Bernd Wurst authored 11 months ago

28) 
29) if ($num < 2) {
30)     // Nichts zum aussuchen!
31)     header('Location: gitterbox.php');
32) }
33) 
Bernd Wurst Auswahl, ob per E-Mail oder...

Bernd Wurst authored 1 year ago

34) if (isset($kontakte['mobil'])) {
35)     $phone = format_number_national($_SESSION['phone']);
36)     if (!str_starts_with($phone, '01')) {
Bernd Wurst Änderungen 2024 und Cookie...

Bernd Wurst authored 11 months ago

37)         $phone = format_number_national($kontakte['mobil']);
Bernd Wurst Auswahl, ob per E-Mail oder...

Bernd Wurst authored 1 year ago

38)     }
39)     $content .= '
Bernd Wurst migration auf bootstrap-5 u...

Bernd Wurst authored 10 months ago

40)         <div class="col-sm-6"><a href="#" class="btn btn-lg btn-light w-100" id="btn-whatsapp">Whatsapp an<br> '.$phone.'</a></div>';
Bernd Wurst Änderungen 2024 und Cookie...

Bernd Wurst authored 11 months ago

41)     $content .= '
Bernd Wurst migration auf bootstrap-5 u...

Bernd Wurst authored 10 months ago

42)         <div class="col-sm-6"><a href="#" class="btn btn-lg btn-light w-100" id="btn-sms">SMS an<br> '.$phone.'</a></div>';
Bernd Wurst Änderungen 2024 und Cookie...

Bernd Wurst authored 11 months ago

43) }
44) if (isset($kontakte['email'])) {
45)     $email = $kontakte['email'];
46)     if ($_SESSION['email'] != $kontakte['email']) {
47)         $email = $kontakte['email'];
48)     }
49)     $content .= '
Bernd Wurst migration auf bootstrap-5 u...

Bernd Wurst authored 10 months ago

50)         </div>
51)         <div class="row">
52)         <div class="col-sm-12"><a href="#" class="btn btn-lg btn-light w-100" id="btn-email">E-Mail an<br> '.$email.'</a></div>';