PHP Classes

File: views/spay/failed.php

Recommend this page to a friend!
  Packages of jimie josh   Spay   views/spay/failed.php   Download  
File: views/spay/failed.php
Role: Auxiliary script
Content type: text/plain
Description: failure view file
Class: Spay
Process SimplePay payments with CodeIgniter
Author: By
Last change:
Date: 11 years ago
Size: 407 bytes
 

 

Contents

Class file image Download
<?php

<h2>Transaction Failed</h2>
<p>You will be redirected in <span id="counter">10</span> second(s).</p>
<script type="text/javascript">
function countdown() {
    var i = document.getElementById('counter');
    if (parseInt(i.innerHTML)<=0) {
        location.href = '<?php echo base_url(); ?>';
    }
    i.innerHTML = parseInt(i.innerHTML)-1;
}
setInterval(function(){ countdown(); },1000);
</script>