Advertisement
uwong15

Untitled

Jul 18th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.62 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <title>UOB Travel Online Tour</title>
  5.     <!-- favicon -->
  6.     <link rel="shortcut icon" type="image/png" href="/images/favicon.png">
  7.  
  8.     <!--Google Icon Font-->
  9.     <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  10.  
  11.     <!--Let browser know website is optimized for mobile-->
  12.     <meta content='True' name='HandheldFriendly' />
  13.     <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0' name='viewport' />
  14.     <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport" />
  15.  
  16.     <!-- jQuery-ui.css-->
  17.     <link type="text/css" rel="stylesheet" href="/components/jquery-ui/themes/smoothness/jquery-ui.min.css" media="screen,projection"/>
  18.     <!--Materialize.css-->
  19.     <link type="text/css" rel="stylesheet" href="/components/Materialize/dist/css/materialize.min.css" media="screen,projection"/>
  20.     <!-- FontAwesome -->
  21.     <link type="text/css" rel="stylesheet" href="/components/font-awesome/css/font-awesome.css" />
  22.     <!--Style.css-->
  23.     <link rel="stylesheet" href="/stylesheets/style.css" />
  24.   </head>
  25.   <body class="acs">
  26.     <!-- <form action="booking_confirmed" id="form" method="POST"> -->
  27.     <form action="/payment/confirmed" id="form" method="POST">
  28.       <input type='hidden' name='PaRes' value="<%- PaRes %>" />
  29.       <input type='hidden' name='Currency' value="SGD" />
  30.       <input type='hidden' name='MD' value="<%- MD %>" />
  31.  
  32.       <input type="hidden" id="Country" name="Tour[Country]" value="" />
  33.       <input type="hidden" id="Date" name="Tour[Date]" value="" />
  34.       <input type="hidden" id="CityCode" name="Tour[CityCode]" value="" />
  35.       <input type="hidden" id="ItemCode" name="Tour[ItemCode]" value="" />
  36.       <input type="hidden" id="MainContactPerson" name="Tour[MainContactPerson]" value="" />
  37.       <input type="hidden" id="PaxInformationList" name="Tour[PaxInformationList]" value="" />
  38.       <input type="hidden" id="TourRoomBookingList" name="Tour[TourRoomBookingList]" value="" />
  39.       <input type="hidden" id="SpecialRequests" name="Tour[SpecialRequests]" value="" />
  40.  
  41.       <input type='hidden' id='Amount' name='payment[Amount]' value="" />
  42.       <input type='hidden' id='UniqueRefId' name='payment[UniqueRefId]' value="" />
  43.       <input type='hidden' id='CardHolderName' name='payment[CardHolderName]' value="" />
  44.       <input type='hidden' id='CreditCardNumber' name='payment[CreditCardNumber]' value="" />
  45.       <input type='hidden' id='ExpiryMonth' name='payment[ExpiryMonth]' value="" />
  46.       <input type='hidden' id='ExpiryYear' name='payment[ExpiryYear]' value="" />
  47.       <input type='hidden' id='Ccv' name='payment[Ccv]' value="" />
  48.       <input type='hidden' id='PaymentType' name='payment[PaymentType]' value="" />
  49.     </form>
  50.  
  51.     <div class="loader">
  52.       <div class="valign">
  53.         <div class="preloader-wrapper big active">
  54.            <div class="spinner-layer spinner-red-only">
  55.               <div class="circle-clipper left">
  56.                 <div class="circle"></div>
  57.               </div>
  58.               <div class="gap-patch">
  59.                 <div class="circle"></div>
  60.               </div>
  61.               <div class="circle-clipper right">
  62.                 <div class="circle"></div>
  63.               </div>
  64.            </div>
  65.         </div>
  66.         <div class="text-loading">Please wait while we secure your booking and payment.</div>
  67.       </div>
  68.     </div>
  69.  
  70.     <!-- jQuery.js -->
  71.     <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  72.     <!-- jQuery-UI.js -->
  73.     <script type="text/javascript" src="/components/jquery-ui/jquery-ui.min.js"></script>
  74.     <script>
  75.       'use strict';
  76.  
  77.       var getPayment = JSON.parse(sessionStorage.payment);
  78.  
  79.       $('.loader').css('display', 'block');
  80.  
  81.       document.addEventListener("DOMContentLoaded", function(event) {
  82.         document.getElementById('Country').value = JSON.parse(sessionStorage.getItemLandPageRequest).Country;
  83.         document.getElementById('Date').value = JSON.parse(sessionStorage.getItemLandPageRequest).TourDate;
  84.         document.getElementById('CityCode').value = JSON.parse(JSON.parse(sessionStorage.Details)).City.Code;
  85.         document.getElementById('ItemCode').value = JSON.parse(JSON.parse(sessionStorage.Details)).Item.Code;
  86.         document.getElementById('MainContactPerson').value = btoa(sessionStorage.mainPerson);
  87.         document.getElementById('PaxInformationList').value = btoa(sessionStorage.paxList);
  88.         document.getElementById('TourRoomBookingList').value = btoa(sessionStorage.bookingItem);
  89.         document.getElementById('SpecialRequests').value = sessionStorage.specialRequest;
  90.  
  91.         document.getElementById('Amount').value = getPayment.Amount;
  92.         document.getElementById('UniqueRefId').value = getPayment.UniqueRefId;
  93.         document.getElementById('CardHolderName').value = getPayment.CreditCardInfo.CreditCardName;
  94.         document.getElementById('CreditCardNumber').value = getPayment.CreditCardInfo.CreditCardNumber;
  95.         document.getElementById('ExpiryMonth').value = getPayment.CreditCardInfo.ExpiryMonth;
  96.         document.getElementById('ExpiryYear').value = getPayment.CreditCardInfo.ExpiryYear;
  97.         document.getElementById('Ccv').value = getPayment.CreditCardInfo.Ccv;
  98.         document.getElementById('PaymentType').value = getPayment.CreditCardInfo.PaymentType;
  99.        
  100.         document.getElementById('form').submit();
  101.       });
  102.     </script>
  103.     <!-- Materialize.js -->
  104.     <script type="text/javascript" src="/components/Materialize/dist/js/materialize.min.js"></script>
  105.  
  106.   </body>
  107. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement