<?php 
	require "models/rivermedia.php";
	$rivermedia = new RIVERMEDIA;
	$rivermedia->auth();
	$rivermedia->update_vcs_attempt_no();
	$errArray = $rivermedia->get_bank_error();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include_once('includes/head.php'); ?>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<?php include_once('includes/nav.php'); ?>
</nav>
<!-- Page Content -->
<div class="container"> 
  
  <!-- Section -->
  <div class="row">
    <div class="col-lg-12">
      <h1 class="page-header"><i class="fa fa-shopping-cart" aria-hidden="true"></i> Payment Options </h1>
      <h4 class="text-center">Please select a payment method to continue</h4>
      <?php
		echo $errArray[0];
		echo $errArray[1];
	  ?>
      <br />
    </div>
  </div>
  <!-- /.row --> 
  
  <div class="row">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
      <a href="vcs_gateway" class="btn btn-default btn-lg col-xs-12 col-sm-5 col-md-5 col-lg-5 pull-left pay_options"><i class="fa fa-credit-card" aria-hidden="true"></i><br /> Credit Card </a>
      <a href="javascript:void(0);" id="btn_eft" class="btn btn-default btn-lg col-xs-12 col-sm-5 col-md-5 col-lg-5 pull-right pay_options"><i class="fa fa-exchange" aria-hidden="true"></i><br /> EFT </a>
      <div class="clearfix"></div>
      
      <br /><br />
    </div>
  </div>
  <div class="row">
    <a class="btn btn-lg btn-success btn-block" href="view_cart"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i> Back </a>
  </div>
  <br />
  <div class="row">
    <div id="checkout_well" class="well">
        <div class="row">
            <div class="col-md-12" style="text-align:center;">
                <p>
                  <span><img src="public/media/img/mc.png" alt="MasterCard" /></span>
                  <span><img src="public/media/img/visa.png" alt="Visa" /></span>
                  <span><img src="public/media/img/ae.png" alt="American Express" /></span>
                  <span><img src="public/media/img/dc.png" alt="Diners Club" /></span>
                  <span><img src="public/media/img/jcb.png" alt="JCB" /></span>
                </p>
            </div>
        </div>
    </div> 
  </div>
  <a href="#" onClick="window.open('http://www.vcs.co.za',',')"><img src="public/media/img/VCSLogoSites.png" alt="Click to Browse"></a>
  <hr>
  <!-- Footer -->
  <footer>
<?php include_once('includes/footer.php'); ?>
  </footer>
</div>
<!-- /.container --> 
<?php include_once('includes/javascript.php'); ?>
<?php include_once('includes/modals.php'); ?>
<?php 
$arrUrl = explode("/", $_SERVER['REQUEST_URI']);
$pageName = array_pop($arrUrl);
?>
<div id="page_name" class="hidden"><?php echo $pageName; ?></div> 
<?php include_once('includes/mask.php'); ?>
</body>
</html>
