• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 604
  • Last Modified:

asp and php

hey guys i need to convert this php in aspx is it possible?

<?php
	session_start();
	include 'config.php';
	foreach ($generic as $key => $value) {
		$gF .= ",".$key;
	}
	$g = substr($gF,1);
/*
	if(!isset($_GET['main'])){
		exit("The payment section has been closed for maintenance, we are sorry if this causes any problems. We are working on getting the site up soon. Thank you for your patience.");
	}
*/
	$get = $_GET['id'];
	if (!isset($_GET['id']) || ($_GET['id'] == "")){
		echo 'An order number is required.';
		exit;
	}
	if($get==='software')
	{
		$softDate				=	date('dmYis');
		$_SESSION['id']			=	'software-'.$softDate;
		$_SESSION['date']		=	gmstrftime("%Y-%m-%d %H:%M");
		$_SESSION['amt']		=	'2500';
		$bulk_discount 			=	0;
		$post_office 			=	0;
		$software				=	'true';
	}
	else
	{
		$software				=	'false';
		$orderFile = "../../AlbumMaker/Payment_Folder/".$_GET['id'].".txt";
		if(!file_exists($orderFile)){
			echo 'A valid order number is required.';
			exit;
		}
		$handle = fopen($orderFile, "rb");
		$contents = stream_get_contents($handle);

		//exit($orderFile);

		fclose($handle);

		//echo $contents;
		$contents	= str_ireplace("\r", "", $contents);
		$lineArray	= explode("\n", $contents);

		foreach($lineArray as $value){
			$tempArray = explode('=',$value);
			//$fileArray[trim($tempArray[0])] = trim($tempArray[1]);

			$var	= trim($tempArray[0]);

			if(strpos($var,'FIRST_NAME'))
				$var = 'FIRST_NAME';

			$$var	= trim($tempArray[1]);
		}

		$id			=	$_GET['id'];
		$trans_id	=	gmstrftime("%Y-%m-%d %H:%M");
		$amt		=	$PRICE_LEFT_DECIMAL_POINT.$PRICE_RIGHT_DECIMAL_POINT;

		$hasShipment = false;
		if ($SHIPMENT_PRICE > 0) {
			$hasShipment = true;
		}

		$_SESSION['id']             =	$id;
		$_SESSION['date']           =	$trans_id;
		$_SESSION['amt']            =	$amt;
		$_SESSION['shipment_price'] =	$SHIPMENT_PRICE;

		//echo '<pre>'.print_r($fileArray,1).'</pre>';
		if($FINISHING == ""){
			$FINISHING = "Gloss Cover &amp; Gloss Text Paper";
		}
		$_SESSION['finishing'] =	$FINISHING;
		$_SESSION['discount']  =	$_POST['DISCOUNT'];
		$_SESSION['BULK']      =	$_POST['BULK'];

		if(($COPIES >= 3) && ($COPIES < 5)){
			$bulk_discount = $three_plus;
		}else if(($COPIES >= 5) && ($COPIES < 15)){
			$bulk_discount = $five_plus;
		}else if(($COPIES >= 15) && ($COPIES < 30)){
			$bulk_discount = $fifteen_plus;
		}else if($COPIES >= 30){
			$bulk_discount = $thirty_plus;
		}else{
			$bulk_discount = 0;
		}
	}
	if(isset($_POST['check'])){
		extract($_POST);

		if ($check == $_SESSION['simpleCaptchaAnswer']) {
	  		exit('human');
		}else{
			exit('not');
		}

	}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <title>form</title>
			<link href="css/colorbox.css" rel="stylesheet" type="text/css" />
			<!--[if IE]>
			<link type="text/css" media="screen" rel="stylesheet" href="css/colorbox-ie.css" title="example" />
			<![endif]-->
			<link href="css/screen.css" rel="stylesheet" type="text/css" />
            <link href="css/layout.css" rel="stylesheet" type="text/css" />
            <link href="css/form.css" rel="stylesheet" type="text/css" />
            <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
            <script type="text/javascript" src="js/jquery.infieldlabel.min.js"></script>
			<script type="text/javascript" src="js/jquery.validate.min.js"></script>
			<script type="text/javascript" src="js/cmxforms.js"></script>
			<script type="text/javascript" src="js/jquery.colorbox-min.js"></script>
			<script type="text/javascript" src="js/jquery.simpleCaptcha-0.2.min.js"></script>

			<script type="text/javascript" src="js/blockUi.js"></script>
			<script type="text/javascript" src="js/jquery.form.js"></script>
            <script type="text/javascript" charset="utf-8">
var amount_left,amount_right,amount_all,total,total_paygate,result,total_net,submit_success,voucher_type,bulk_discount,bulk_leading;
var voucher_total =0;
var software      =<?php print $software;?>;
var delivery      =<?php print $SHIPMENT_PRICE;?>;
var bulk          =<?php print $bulk_discount;?>;
var generic       ="<?php print $g;?>";
var returnUrl     ="<?php print $RETURN_URL; ?>";
var copies        = "<?php print $COPIES ?>";
var twoforone     = 0;
var genericJson   = <?php print $gerericJson; ?>;
$(function(){
	$(".labelInline").inFieldLabels();calcTotal();
	$(".eft, .eft_footer").hide();
	$("#PAYMENT_OPTIONS_3").click(function(){
		PaymentEft();
	});
	$("#PAYMENT_OPTIONS_1").click(function(){
		$(".eft, .eft_footer").hide();
		$(".terms_content, .credit_footer").show();
		$("#eft_btn").remove();$("#submit_btn").show();
	});
	$('<div class="burble_terms" />').load('http://www.bkphotobooks.co.za/site/terms #row_255',function(){
		$(this).prependTo('.terms_content, .footer_terms_content');
	});
	$("#commentForm").validate({submitHandler:function(form){
		$.fn.colorbox({width:"750px",height:"400px",inline:true,href:"#terms",close:"<a class=\"decline inline btn\" href=\"javascript:history.go(0)\">Decline</a>",open:true});return true;
		},
		invalidHandler:function(form,validator){
			return false;
		}
	});
	$("a.validate_btn").click(function(){

		var check = $('#simpleCaptcha_0').val();
		$.ajax({
			type: "POST",
			url: location.href,
			data: "check="+check,
			async:true,
			success: function(msg){
				if(msg === 'human'){
					$("#commentForm").submit();
				}else{
					$('#captchaError').html('The wrong images was chosen... Please try again');
				}
			}
		});
		return false;
	});

	//Captcha
	$('#captcha1')
	  .bind('loaded.simpleCaptcha', function() {
	    $(this).find('img').click(function(){
			$('#captcha1').find('img').css({'padding':'2px', 'border':'none'});
			$(this).css({'padding':'0px', 'border':'2px solid #54C2CB'});
		});
	  })
	  .simpleCaptcha({
         numImages: 4
      });
	//End Captcha

	$(".terms_color").colorbox({width:"750px",height:"400px",inline:true,href:"#footer_terms",close:"<a class=\"decline btn\" href=\"javascript:history.go(0)\"><i></i><span><span></span><i></i>Close</span></a>"});
	$("input[name='DELIVERY_METHOD']").click(function(){
		switch($("input[name='DELIVERY_METHOD']:checked").val()){
			case'post_office':
				delivery=<?php print $post_office;?>;
			break;
			case'Counter_to_Counter':
				delivery=<?php print $Counter_to_Counter;?>;
			break;
			case'Door_to_Door':
				delivery=<?php print $Door_to_Door;?>;
			break;
			case'Self_pickup':
				delivery=<?php print $Self_pickup;?>;
		}
		$(".total").html("R");
		delivery=roundNumber(parseFloat(delivery),2);
		calcTotal();
	});
	submitBtn();
	$("#use-voucher").click(function(e){
		e.preventDefault();
		var input = $("#DISCOUNT_VOUCHER").val().replace(/\s/, ''),
		      inputUpper = input.toUpperCase().replace(/\s/, '');
		showBlockUI('Checking voucher...',true);
		$.ajax({
			type:"POST",
			url:"voucher.php",
			data:"num="+input,
			success:function(msg){
				result=msg.split("|");
				if(result[0]!='true'){
					$.unblockUI();
					alert(result[1]);
				}else{
					$.unblockUI();
					if(result[2]=="1"){
						alert('Sorry that Voucher Number has already been used.');
					}else if(result[4]=="expired"){
						alert('Sorry, this voucher has expired.');
					}else{
						if (result[2] === 'twoforone') {
							if (copies > 1) {
								var howMuchDisc = Math.floor(copies / 2)
								twoforone = (parseFloat(amount_left + "." + amount_right) / copies)*howMuchDisc;
							}else{
								alert("You need more than one copy to use this voucher.");
							}
						}else{
							voucher_total=parseFloat(result[1], 10);
							voucher_type=result[3];
						}
						calcTotal();
					}
				}
			},
			error:function(e){
				$.unblockUI();
				alert("Sorry something has gone wrong, please re-enter the number");
			}
		});
	});
});
function calcTotal(){
    amount_left = $("#PRICE_LEFT_DECIMAL_POINT").val();
    amount_right = $("#PRICE_RIGHT_DECIMAL_POINT").val();
    amount_all = parseFloat(amount_left + "." + amount_right,10);

    if (twoforone > 0) {
    	voucher_total = twoforone;
    	bulk_discount = bulk = 0;
    }

    if (voucher_type === 'percentage') {
        total_voucher = (amount_all * voucher_total) / 100;
    }
    else {
        total_voucher = voucher_total;
    }
    if (!software) {
        total = amount_all - total_voucher + delivery;
    }
    else {
        total = 25;
    }



    if ((bulk > 0) && (total_voucher < 1)) {
        bulk_discount = (amount_all * bulk) / 100;
        total = amount_all - bulk_discount + delivery;
        bulk_leading = bulk_discount;
        $('#BULK').val(bulk_leading);
    } else {
    	total = amount_all - total_voucher + delivery;
        bulk_discount = 0;
        $('#BULK').val(bulk_discount);
    }

    total_paygate = parseFloat(amount_left) + parseFloat(delivery);
    // $(".delivery").html(formatCurrency(delivery));
    if (voucher_type === 'percentage') {
        $(".discount_title").html('Discount (' + voucher_total + '%)');
        $('#DISCOUNT').val(total_voucher);
    }
    else {
        $(".discount_title").html('Discount (R' + voucher_total.toFixed(2) + ')');
        $('#DISCOUNT').val(total_voucher);
    }
    $(".discount").html('-' + formatCurrency(total_voucher));
    $(".bulk").html('- ' + formatCurrency(bulk_discount));
    $('.bulk_title').html('Bulk Discount (%' + bulk + ')');
    $(".total").html(formatCurrency(total));
    $("#AMOUNT").val(formatCurrency(total));
    $("#p4").val(total);
    $("#AMOUNT_EFT").val(total);
}

function roundNumber(num, dec){
    var result = Math.round(num * Math.pow(10, dec)) / Math.pow(10, dec);
    return result;
}

function formatCurrency(num){
    num = num.toString().replace(/\$|\,/g, '');
    if (isNaN(num))
        num = "0";
    sign = (num == (num = Math.abs(num)));
    num = Math.floor(num * 100 + 0.50000000001);
    cents = num % 100;
    num = Math.floor(num / 100).toString();
    if (cents < 10)
        cents = "0" + cents;
    for (var i = 0; i < Math.floor((num.length - (1 + i)) / 3); i++)
        num = num.substring(0, num.length - (4 * i + 3)) + ',' + num.substring(num.length - (4 * i + 3));
    return (((sign) ? '' : '-') + 'R' + num + '.' + cents);
}

function showBlockUI(msg, loader){
    if (loader) {
        html = '<span style="position:relative; top:5px;"><img height="24" width="24" src="images/ajax-loader.gif"/></span><span style="font-family:Arial; font-weight:bold; font-size:20px; margin:-5px 0 0 10px">' + msg + '</span>';
    }
    else {
        html = '<div id="question" class="hidden"><div id="cancel_msg">' + msg + '</div><input type="button" id="cancel" value="cancel" /></div>';
    }
    $.blockUI({
        message: html,
        css: {
            border: 'none',
            padding: '15px',
            backgroundColor: '#000',
            '-webkit-border-radius': '10px',
            '-moz-border-radius': '10px',
            opacity: .5,
            color: '#fff'
        }
    });
    if (!loader) {
        $('#cancel').click(function(){
            $.unblockUI();
            return false;
        });
    }
}

$("a.decline").click(function(){
    return false;
});
function showResponse(responseText, statusText){
    if (statusText == 'success') {
        result = responseText.split("|");
        if (result[0] != 'true') {
            $.unblockUI();
            showBlockUIMsg(result[1]);
			//console.log('error');
        }
        else {
            voucher_total = parseFloat(result[4], 10);
            delivery = result[5];
            rands = parseInt(result[2] / 100);
            $("#PRICE_LEFT_DECIMAL_POINT").val(rands);
            $("#PRICE_RIGHT_DECIMAL_POINT").val(result[2] - rands * 100);
            calcTotal();
            $.unblockUI();
            $("#p4").val(result[2]);
            $("#AMOUNT_EFT").val(result[2]);
            $("#TRANSACTION_DATE").val(result[7]);
            $("#CHECKSUM").val(result[8]);
            $("#PAYGATE_EMAIL").val(result[11]);
			//return false;
            if (result[9] == "Credit_Card") {
                $("#vcsSubmit").submit();
            }
            else {
                $("#eftForm").submit();
            }
        }
    }
    else {
        showBlockUIMsg('There was a problem saving your order. Please try again.')
    }
}

function PaymentEft(){
    $(".eft, .eft_footer").show();
    $(".terms_content, .credit_footer").hide();
    $("#submit_btn").hide();
    //$("<a id=\"next-button\" class=\"inline btn\" id=\"eft_btn\" href=\"#\">Next</a>").prependTo("p.pay");
    submitBtn();
    return false;
}

function submitBtn(){
    $("#submit_btn, #eft_btn").click(function(){
        $("#cboxOverlay, #colorbox").css("display", "none");
        showBlockUI('Saving order...', true);
        var options = {
            success: showResponse
        };
        $("#commentForm").ajaxSubmit(options);
        return false;
    });
}
            </script>
            <!--[if lte IE 6]>
                <style type="text/css" media="screen">
                form label {
                background: #fff;
                }
                </style>
            <![endif]-->
        </head>
        <body class="noBg">
        	<div id="noJs">
        		<div>
        			<!--This site uses javascript and it appears that you do not have javascript enabled.<br />Please enable javascript in your browser to carry on with your payment<br />To find out how to enable javascript check out <a href="http://www.tranexp.com/win/JavaScript-enabling.htm#FF" target="_blank">this page</a> alternatively contact us at <a href="maito:info@burble.co.za">info@burble.co.za</a>-->
        		</div>
			</div>
            <div id="wrapper">
                <div class="top_menu">
                    <div class="page_title">
                        Payment for order number <?php echo $_GET['id']; ?>.
                    </div>
                </div>
                <div id="content">
                    <form action="order.php" method="POST" id="commentForm" accept-charset="utf-8">
                        
                        <div id="personal-details" class="box">
                            <div class="box_centre">
                                <div class="box_title">
                                    Personal Details
                                </div>
                                <div class="box_content">
                                    <p class="labeled">
                                        <label class="labelInline" for="FIRST_NAME">
                                            First Name *
                                        </label>
                                        <br/>
                                        <input type="text" class="required" name="FIRST_NAME" value="<?php print $FIRST_NAME?>" id="FIRST_NAME">
                                    </p>
                                    <p class="labeled">
                                        <label class="labelInline" for="MIDDLE_NAME">
                                            Middle Name
                                        </label>
                                        <br/>
                                        <input type="text" name="MIDDLE_NAME" value="<?php print $MIDDLE_NAME?>" id="MIDDLE_NAME">
                                    </p>
                                    <p class="labeled">
                                        <label class="labelInline" for="LAST_NAME">
                                            Last Name *
                                        </label>
                                        <br/>
                                        <input type="text" class="required" name="LAST_NAME" value="<?php print $LAST_NAME?>" id="LAST_NAME">
                                    </p>
                                    <p class="labeled">
                                        <label class="labelInline" for="PHONE">
                                            Phone *
                                        </label>
                                        <br/>
                                        <input type="text" class="required" name="PHONE" value="<?php print $PHONE?>" id="PHONE">
                                    </p>
                                    <p class="labeled">
                                        <label class="labelInline" for="CELLULAR">
                                            Cellular
                                        </label>
                                        <br/>
                                        <input type="text" name="CELLULAR" value="<?php print $CELLULAR?>" id="CELLULAR">
                                    </p>
                                    <p class="no_bottom_margin labeled">
                                        <label class="labelInline" for="EMAIL">
                                            Email *
                                        </label>
                                        <br/>
                                        <input type="text" class="required email" name="EMAIL" value="<?php print $EMAIL?>" id="EMAIL">
                                    </p>
                                </div>
                            </div>
                        </div>

                        <div id="delivery-details" class="box">
                            <div class="box_centre">
                                <div class="box_title">
                                    Delivery Details
                                </div>
                                <div class="box_content">
                                    <p class="labeled">
                                        <label class="labelInline" for="STREET">
                                            Street *
                                        </label>
                                        <br/>
                                        <input type="text" class="required" name="STREET" value="<?php print $STREET?>" id="STREET">
                                    </p>
                                    <p class="labeled">
                                        <label class="labelInline" for="DISTRICT">
                                            Suberb
                                        </label>
                                        <br/>
                                        <input type="text" name="DISTRICT" value="<?php print $DISTRICT?>" id="DISTRICT">
                                    </p>
                                    <p class="labeled">
                                        <label class="labelInline" for="CITY">
                                            City *
                                        </label>
                                        <br/>
                                        <input type="text" class="required" name="CITY" value="<?php print $CITY?>" id="CITY">
                                    </p>
                                    <p class="labeled">
                                        <label class="labelInline" for="ZIP">
                                            Zip Code
                                        </label>
                                        <br/>
                                        <input type="text" name="ZIP" value="<?php print $ZIP?>" id="ZIP">
                                    </p>
                                    <p class="labeled">
                                        <label class="labelInline" for="STATE">
                                            Province
                                        </label>
                                        <br/>
                                        <input type="text" name="STATE" value="<?php print $STATE?>" id="STATE">
                                    </p>
                                    <p class="no_bottom_margin labeled">
                                        <label class="labelInline" for="COUNTRY">
                                            Country
                                        </label>
                                        <br/>
                                        <input type="text" name="COUNTRY" value="<?php print $COUNTRY?>" id="COUNTRY">
                                    </p>
									<?php if($get!=='software') : ?>
									 <p style="visibility:hidden;">
                    Delivery Method.
                    <br />
										<table width="100%" border="0" id="delivery_table" style="visibility:hidden;">
										    <tr valign="top">
										        <td class="delivery_radio" valign="top">
										        	<input class="deliver_length" type="radio" name="DELIVERY_METHOD" value="post_office" checked="checked" id="DELIVERY_METHOD_1">
										        </td>
										        <td valign="top">
										        	<label class="notInline" for="DELIVERY_METHOD_1">Post Office Counter to Counter (5 days) R<?php echo $post_office; ?></label>
										        </td>
										    </tr>
											<tr valign="top">
										        <td class="delivery_radio" valign="top">
										        	<input class="deliver_length" type="radio" name="DELIVERY_METHOD" value="Counter_to_Counter" id="DELIVERY_METHOD_2">
										        </td>
										        <td valign="top">
										        	<label class="notInline" for="DELIVERY_METHOD_2">Courier Door to Door Economy. (3 days) R<?php echo $Counter_to_Counter; ?></label>
										        </td>
										    </tr>
										    <tr valign="top">
										        <td class="delivery_radio" valign="top">
										        	<input class="deliver_length" type="radio" name="DELIVERY_METHOD" value="Door_to_Door" id="DELIVERY_METHOD_3">
										        </td valign="top">
										        <td>
										        	<label class="notInline" for="DELIVERY_METHOD_3">Courier Door to Door. (Overnight) R<?php echo $Door_to_Door; ?> *Major Centres</label>
										        </td>
										    </tr>
										    <tr valign="top">
										        <td class="delivery_radio" valign="top">
										        	<input class="deliver_length" type="radio" name="DELIVERY_METHOD" value="Self_pickup" id="DELIVERY_METHOD_4">
										        </td>
										        <td valign="top">
										        	<label class="notInline" for="DELIVERY_METHOD_4">Self pickup - I will collect the order myself from BKPhotobooks&trade;.</label>
										        </td>
										    </tr>
										</table>
                    </p>
									<?php endif; ?>
									<br />
                                </div>
                            </div>
                        </div>

						<?php if($get!=='software') : ?>
		<div id="discount-voucher" class="box">
                            <div class="box_centre">
                                <div class="box_title">
                                    Discount Voucher
                                </div>
                                <div class="box_content">
                                    <p class="no_bottom_margin">
                                        <label class="labelInline" for="DISCOUNT_VOUCHER">
                                            Voucher Number
                                        </label>
                                        <br/>
                                        <input type="text" name="DISCOUNT_VOUCHER" maxlength="10" id="DISCOUNT_VOUCHER">
                                        <a href="#" id="use-voucher">Use Voucher</a>
                                    </p>
                                </div>
                            </div>
                        </div>
						<?php endif; ?>
						
                        <div id="product-details" class="box">
                            <div class="box_centre">
                                <div class="box_title">
                                    Product Details
                                </div>
                                <div class="box_content">
                                        <div class="albam col">Album Price</div> <div class="price amount col">R<?php print $PRICE_LEFT_DECIMAL_POINT . '.' .$PRICE_RIGHT_DECIMAL_POINT; ?></div><br />
										<div class="albam col">Delivery</div> <div class="price delivery col">R<?php echo $SHIPMENT_PRICE; ?></div><br />
										<div class="albam col bulk_title">Bulk Discount</div> <div class="price bulk col">R0.00</div>
										<div class="albam col discount_title">Discount</div> <div class="price discount col"></div>
										<div class="albam col">Total.</div> <div class="price total col">R</div>
										<input class="hidden" type="hidden" name="PRODUCT_DETAILS" id="PRODUCT_DETAILS" value="<?php print $PRODUCT_DETAILS ?>">
										<input class="hidden" type="hidden" name="PRICE_LEFT_DECIMAL_POINT" id="PRICE_LEFT_DECIMAL_POINT" value="<?php print $PRICE_LEFT_DECIMAL_POINT; ?>">
										<input class="hidden" type="hidden" name="PRICE_RIGHT_DECIMAL_POINT" id="PRICE_RIGHT_DECIMAL_POINT" value="<?php print $PRICE_RIGHT_DECIMAL_POINT; ?>">
										<input class="hidden" type="hidden" name="AMOUNT" id="AMOUNT" value="<?php print $PRICE_RIGHT_DECIMAL_POINT ?>">
										<input class="hidden" type="hidden" name="DISCOUNT" id="DISCOUNT" value="">
                                    <p class="no_bottom_margin row">
                                        <input class="hidden" type="hidden" name="DATE_TIME" id="DATE_TIME" value="<?php print $DATE_TIME ?>">
                                    </p>
									
			<input class="hidden" type="hidden" name="ZIP_ARRIVED_TO_LAB" id="ZIP_ARRIVED_TO_LAB" value="<?php print $ZIP_ARRIVED_TO_LAB ?>">
			<input class="hidden" type="hidden" name="PAYED" id="PAYED" value="<?php print $PAYED ?>">
			<input class="hidden" type="hidden" name="validateStatus" id="validateStatus" value="">
			<input class="hidden" type="hidden" name="BULK" id="BULK" value="">
			<br />
                                </div>
                            </div>
                        </div>
						
                        <div id="captcha-box" class="box">
                            <div class="box_centre">
                            	<div class="box_title">
                                    Captcha
                                </div>
                                <div class="box_content">
                                	<div id="captchaError"></div>
                                	<div id='captcha1'></div>
                                </div>
                            </div>
                        </div>
						
                        <div id="proceed-details" class="box">
                        	<div class="box_centre">
                			<div class="box_title">
	                                    Payment Options
	                                </div>                     
                        		<div class="box_content">
                        			<div id="payment-options" class="col">
                        				<table width="100%" border="0" id="payment_table">
                        					<tr>
                        						<td class="paymentRadio">
                        							<input class="payment_length" type="radio" name="PAYMENT_OPTIONS" checked value="Credit_Card" id="PAYMENT_OPTIONS_1"></td>
                        						<td>
                        							<label class="notInline" for="PAYMENT_OPTIONS_1" class="radio_label">Credit Card</label>
                        						</td>
                        					</tr>
                        					<tr>
                        						<td class="paymentRadio">
                        							<input class="payment_length" type="radio" name="PAYMENT_OPTIONS" value="Manual_EFT" id="PAYMENT_OPTIONS_3"></td>
                        						<td>
                        							<label class="notInline" for="PAYMENT_OPTIONS_3" class="radio_label">EFT (or nothing further to pay.)</label>
                        						</td>
                        					</tr>
                        				</table>
                        			</div>
                        			<div class="warning col">
                        				<div class="warning_img">
                        					<img src="images/warning.png"/>                        
                        				</div>
                        				<div  class="warning_text credit_footer">
                        					You will now be directed to<br>the VCS secure website.
                        				</div>
                        				<div  class="warning_text eft_footer">
                        					Please click the porceed button<br>to continue processing your order.
                        				</div>
                        			</div>
                        			<p class="continue no_bottom_margin col">
                        				<a class="validate_btn inline btn" href="#">Proceed</a>
                        			</p>
                        		</div>
                        	</div>
                        </div>
						<br /><br />
						<div class='hidden'>
							<div id='terms' style='padding:10px;'>
							<div class="eft">
								For EFT's our banking details are:
								<br /><br />
								BK Bookbinders.<br />
								Standard Bank.<br />
								Florida Road Branch.<br />
								Branch Code: 04 27 26.<br />
								Account No. 051 304 406.<br />
								Ref: Please quote your order number.<br />
								<br />
								Email or fax proof of payment to:<br />
								print@bkbookbinders.co.za<br />
								(031) 303 2248<br />
								<br />
								Please note, orders will only be processed once comfirmationof payment is received.
								<br><br>
								<center>
									<b style="color:#54C2CB;">To continue please click on the blue arrow on the top right of the screen.</b>
								</center>
							</div>
							<div class="terms_content"></div>
							<p class="pay no_bottom_margin">
				                <a class="inline btn" id="submit_btn" href="#">Accept</a>
				            </p>
							</div>
						</div>
						<div class='hidden'>
							<div id='footer_terms' style='padding:10px;'>
							<div class="footer_terms_content"></div>
							</div>
						</div>
                    </form>
					<!-- VCS Start-->
						<form id="vcsSubmit" method="POST" action="https://www.vcs.co.za/vvonline/ccform.asp">
							<input type="hidden" name="p1" id="p1" value="<?php print $VCS_ID; ?>">
							<input type="hidden" name="p2" id="p2" value="<?php echo $_GET['id']; ?>">
							<input type="hidden" name="p3" id="p3" value="BK Bookbinders Photobook">
							<input type="hidden" name="p4" id="p4" value="">
							<input type="hidden" name="hash" id="CHECKSUM" value="">
						</form>
					<!-- VCS End-->	
					<!--EFT-->
					<form id="eftForm" action="<?php print $base_path; ?>thanks.php" method="POST">
						<input class="hidden" type="hidden" name="RESULT_CODE" id="RESULT_CODE" value="eft">
						<input class="hidden" type="hidden" name="REFERENCE" id="eftREFERENCE" value="<?php echo $_GET['id']; ?>">
						<input class="hidden" type="hidden" name="AMOUNT" id="AMOUNT_EFT" value="">
					</form>
					<!--EFT End-->
					<br /><br />
                </div>
            </div>
			<script type="text/javascript">
				$(document).ready(function(){
					$('#wrapper').css('display', 'block');$('#noJs').css('display', 'none');$('body').removeClass('noBg');
				});
			</script>
        </body>
    </html>

Open in new window

0
JCWEBHOST
Asked:
JCWEBHOST
1 Solution
 
Julian HansenCommented:
You might be better off getting a professional to do this for you - it appears to require quite a bit of effort.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now