<? include($template[company][file_path] . "shared/start_HTML.shared"); ?>

<? include($template[company][file_path] . "shared/HEADER.shared"); ?>

<? include($template[company][file_path] . "shared/start_TABLE_I_i.shared"); ?>

<? include($template[company][file_path] . "shared/start_TABLE_I_ii.shared"); ?>

<!-- NOTE:  cellpadding and cellspacing and TABLE II. must be done -->
<!-- this way in order to enable a ratio/"secured network" at the bottom -->
  
<? include($template[company][file_path] . "shared/start_TABLE_II.shared"); ?>

<? include($template[company][file_path] . "shared/start_TABLE_III_logo.shared"); ?>

<? 
$page_message = "Please confirm your purchase request by supplying your {$transaction[account][method]}'s Authorization (CVV2) Code below...";
$gateway_payment_step = "quickbuy_creditcard_2.gate";
$message_width = "auto";
include($template[company][file_path] . "shared/start_TABLE_IV_sysmsg.shared"); ?>



<? $form_action = "quickbuy_creditcard_3.gate";
include($template[company][file_path] . "shared/start_TABLE_V_form.shared"); ?>
<!-- --------------------INSERT FORM CONTENT BELOW <!TD!>: ------------------------ -->

<? $mastertab_status = "gateway";
include($template[company][file_path] . "shared/start_TABLE_VI_mast_tab.shared"); ?>

<? include($template[company][file_path] . "shared/start_TABLE_VII_i.shared"); ?>

<? include($template[company][file_path] . "shared/start_TABLE_VII_ii.shared"); ?>

<!-- NOTE: the gap between VII_ii and VII_iii allows for a tight 'reqired fields' footer -->

<? include($template[company][file_path] . "shared/start_TABLE_VII_iii.shared"); ?>

<? include($template[company][file_path] . "shared/start_TABLE_VIII_menu.shared"); ?>
<!-- -------------------- INSERT "MAIN MENU" CONTENT BELOW <TR>: ------------------------ -->
<!-- -------------------- INSERT "MAIN MENU" CONTENT BELOW <TR>: ------------------------ -->

<? $TABLE_VIII_colspan = "1";
include($template[company][file_path] . "shared/TABLE_VIII_colspan.shared"); ?>
<!-- SINCE THE REQUIRED COLSPAN IS SET ABOVE, NOW START MENU ROW CONTENT BELOW: <TR>: -->

<!-- START INNER MENU ROW - FITS IN AFTER TABLE VIII. -->
<? include($template[company][file_path] . "shared/start_TABLE_IX_i.shared"); ?>

<? include($template[company][file_path] . "shared/TABLE_IX_i_activeaccount.shared"); ?>

<? include($template[company][file_path] . "shared/start_TABLE_IX_ii.shared"); ?>

<? $accounttab_status = "off"; 
include($template[company][file_path] . "shared/TABLE_IX_ii_accounttabs.shared"); ?>

<? include($template[company][file_path] . "shared/start_TABLE_IX_iii.shared"); ?>
<!-- note: IX_iii enables account menu padding -->

<? include($template[company][file_path] . "shared/start_TABLE_X_acctmenu.shared"); ?>
<!-- -------------------- INSERT "ACCOUNT MENU" CONTENT BELOW <TR>: ------------------------ -->
<!-- -------------------- INSERT "ACCOUNT MENU" CONTENT BELOW <TR>: ------------------------ -->
<!-- -------------------- INSERT "ACCOUNT MENU" CONTENT BELOW <TR>: ------------------------ -->






<? 
$TABLE_X_colspan = "4";
include($template[company][file_path] . "shared/spacer_TABLE_X_colspan.shared"); ?>
<!-- SINCE THE REQUIRED COLSPAN IS SET ABOVE, NOW START ACCOUNT ROW CONTENT BELOW: <TR>: -->


<?
### ACCOUNT DETAILS:

$row_title = "<font color='#DD3333'>Please Confirm Your Account Details:</font>";
include($template[company][file_path] . "shared/TABLE_X_ROW_title.shared");



$row_title = "{$template[company][name]} Account:";
$row_value = $account[accountname];
$row_value_i = "($account[emailaddress])";
#$row_value_ii = $account[emailaddress];
$status = "complete";
$edit_link = "";
include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared");


$row_title = "Current Account Balance:";
$row_value = currency1($balance[balance][account],$blank);
$row_value_i = "(" . currency2($balance[balance][account],currencyRATIO()) . ")";
$row_value_ii = "";
$status = "complete";
$edit_link = "";
// include($template[company][file_path] . "shared/GW_TABLE_X_receipt.shared");
include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared"); 

?>






<? 

### PURCHASE DETAILS:


$height="10";
include($template[company][file_path] . "shared/TABLE_X_ROW_spacer.shared");



$row_title = "<font color='#DD3333'>Please Confirm Your Deposit Details:</font>";
include($template[company][file_path] . "shared/TABLE_X_ROW_title.shared");


$row_title = "Requested Deposit Amount:";
$row_value = currency1($transaction[requested_value],$blank);
$row_value_i = "(" . currency2($transaction[requested_value],$transaction[ratio]) . ")";
$row_value_ii = "";
$status = "complete";
$edit_link = "";
// include($template[company][file_path] . "shared/GW_TABLE_X_receipt.shared");
include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared");


$row_title = "Transaction Fee:";
$row_value = "<span class='quickbuy_creditcard_2_text_3'>" . currency1($transaction[fee_network_value],$blank) . "</span>";
$row_value_ii = "";
$status = "complete";
$edit_link = "";
//include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared");


$row_title = "Transaction Total:";
$row_value = "<span class='quickbuy_creditcard_2_text_3'>" . currency1($transaction[gross_value],$blank) . "</span>";
$row_value_ii = "";
$status = "complete";
$edit_link = "";
// include($template[company][file_path] . "shared/GW_TABLE_X_receipt.shared");
//include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared");


#test("transaction",$transaction);


  
if($transaction[source] == "wallet") {

  $row_title = "Deposit Method:";
  $row_value = $transaction[account][method] . ":&nbsp;&nbsp;<font color=aaaaaa>{$transaction[account][number_display]}</font color>";


  $row_value_ii = "Name on Card: $wallet->name";
  $status = "complete";
  $edit_link = "";
  // include($template[company][file_path] . "shared/GW_TABLE_X_receipt.shared");
	include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared");

} else {

  
  $row_title = "Deposit Method:";
  $row_value = $transaction[account][number_display]; 
  $row_value_i = "(" . $transaction[account][method] . ")";
  $row_value_ii = "Name on Card: " . $transaction[account][name];
  $status = "complete";
  $edit_link = "";
  // include($template[company][file_path] . "shared/GW_TABLE_X_receipt.shared");
  include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared");
  


  $row_title = "Name On Card:";
  $row_value = $transaction[account][name];
  $row_value_ii = "";
  $status = "complete";
  $edit_link = "";
  // include($template[company][file_path] . "shared/GW_TABLE_X_receipt.shared");
  #include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared");
 
  
  
  $row_title = "Expiration Date:";
  $row_value = $transaction[account][expiration_month] . "-" . $transaction[account][expiration_year];
  $row_value_ii = "";
  $status = "complete";
  $edit_link = "";
  // include($template[company][file_path] . "shared/GW_TABLE_X_receipt.shared");
  include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared");
  
  
}



$row_title = "Card Authorization Code:";
$field_name = "cvv2";
//$row_input = "<input onFocus=\"checkField(this, 'onFocus', 'phone')\" onBlur=\"checkField(this, 'onBlur','phone')\" onChange=\"checkField(this, 'onChange', 'phone')\" " ;
//$row_input .= "onKeyUp=\"checkField(this, '', 'phone')\" type=\"text\" maxlength=3 size=4 name=\"$field_name\" value=''>";

$row_input = "<table class='quickbuy_creditcard_2_table_1'><tr><td class='quickbuy_creditcard_2_td_1'>
<table class='quickbuy_creditcard_2_table_2'>
	<tr>
		<td class='quickbuy_creditcard_2_td_2'>
			<input type=text maxlength=3 size=4 name='$field_name' value='' onFocus=\"checkField(this, 'onFocus', 'cvv')\" onBlur=\"checkField(this, 'onBlur','cvv')\" onChange=\"checkField(this, 'onChange', 'cvv')\" onKeyUp=\"checkField(this, '', 'cvv')\">
		</td>
	</tr>
</table></td><td class='quickbuy_creditcard_2_td_3'><img src='https://{$template[company][host_images]}/cvv_mini.gif'></td><td class='quickbuy_creditcard_2_td_4'><span class='quickbuy_creditcard_2_text_1'>(<a href='javascript:openSUPPORT(\"27\")'>More Info</a>)</span>
		</td>
	</tr>
</table>";
$row_example = "";
$row_required = "yes";
$row_variable = $transaction[account][cvv2];
include($template[company][file_path] . "shared/TABLE_X_ROW_I_input.shared");



$height="10";
include($template[company][file_path] . "shared/TABLE_X_ROW_spacer.shared");



$row_title = "<font color='#DD3333'>Please Confirm Your Final Transfer Details:</font>";
include($template[company][file_path] . "shared/TABLE_X_ROW_title.shared");



$row_title = "Transfer (To Account):";
$row_value = $gateway[business][accountname];
$row_value_ii = $gateway[business][emailaddress];
$status = "complete";
$edit_link = "";
include($template[company][file_path] . "shared/TABLE_X_ROW_receipt.shared");





/*

$row_title = "Authorization (CVV2) Code:";
$row_input = "<table cellpadding=0 cellspacing=0 border=0><tr><td valign=bottom><table bgcolor=009900 cellpadding=0 cellspacing=0 border=0><tr><td><input type=text maxlength=3 size=4 name=cvv2 value=''></td></tr></table></td><td valign=bottom>&nbsp;<img src='https://{$template[company][host_images]}/cvv_mini.gif'>&nbsp;<font face='verdana' color='888888' size='1'>(</font><a href='javascript:openSUPPORT(\"27\")'><font face='verdana,arial' color='888888' size='1'>Info</font></a><font face='verdana' color='888888' size='1'>)</font></td></tr></table>";

$row_faq_name = "";
$row_faq_id = "";
$row_example = "";
$row_required = "yes";
$row_variable = "$blank";
include($template[company][file_path] . "shared/GW_TABLE_X_ROW_I_input.shared");

*/

include($template[company][file_path] . "shared/TABLE_X_ROW_endline.shared");
  
?>

<? $row_note = "<u>FEE NOTICE</u>:  A 10% transaction fee will be added to all credit card transactions.  This fee is imposed on us by our processing bank and cannot be avoided. ({$template[company][name]} does NOT make a profit on this fee.)";
#include($template[company][file_path] . "shared/TABLE_X_ROW_note.shared"); ?>



        

<!-- -------------------- INSERT "ACCOUNT MENU" CONTENT ABOVE <TR>: ------------------------ -->
<!-- -------------------- INSERT "ACCOUNT MENU" CONTENT ABOVE <TR>: ------------------------ -->
<!-- -------------------- INSERT "ACCOUNT MENU" CONTENT ABOVE <TR>: ------------------------ -->      
<? include($template[company][file_path] . "shared/end_TABLE_X_accountmenu.shared"); ?>

<? include($template[company][file_path] . "shared/end_TABLE_IX_iii.shared"); ?>

<? 
$rightfooter_name = "required fields&nbsp<img src='" . image($http,$template[company][icon2]) . "'>";
$tightfooter = "";
include($template[company][file_path] . "shared/TABLE_IX_ii_tightfooter.shared"); ?>

<? include($template[company][file_path] . "shared/end_TABLE_IX_ii.shared"); ?>
<? include($template[company][file_path] . "shared/end_TABLE_IX_i.shared"); ?>
<!-- ENDS INNER MENU TABLE AND TABLE_VIII ROW <TR>: -->

<!-- --------------------INSERT "MAIN MENU" CONTENT ABOVE <TR>: ------------------------ -->
<!-- --------------------INSERT "MAIN MENU" CONTENT ABOVE <TR>: ------------------------ -->
<? include($template[company][file_path] . "shared/end_TABLE_VIII_mainmenu.shared"); ?>

<? include($template[company][file_path] . "shared/end_TABLE_VII_iii.shared"); ?>

<? 
$leftfooter_name = "Cancel";
$leftfooter_link = "cancel.gate?source=$PHP_SELF";
$rightfooter_name = "";
$rightfooter_link = "";
include($template[company][file_path] . "shared/TABLE_VII_ii_tightfooter.shared"); ?>

<? include($template[company][file_path] . "shared/end_TABLE_VII_ii.shared"); ?>

<? include($template[company][file_path] . "shared/end_TABLE_VII_i.shared"); ?>

<? include($template[company][file_path] . "shared/spacer_TABLE_V_form.shared"); ?>




<!-- !SUBMIT: INSERT TABLE V. LESS-TRAVELD SUBMIT BELOW <TR>:  -->
<?
$left_submit = "<input type=button name=edit value='Edit' onclick='jump(\"" . $http . $template[company][host_gateway] . "/quickbuy_creditcard_1.gate\")'>";
$center_submit = ""; 
$right_submit = "<input type=button name=confirm onclick=\"validateContinue()\" value='Confirm and Authorize Now...'>";
include($template[company][file_path] . "shared/TABLE_XI_submit.shared"); ?>


<!-- !SUBMIT: INSERT TABLE V. LESS-TRAVELD SUBMIT ABOVE <TR>:  -->

    
    
    
<!-- -------------------- INSERT FORM CONTENT ABOVE <TR>: ------------------------ -->
<? include($template[company][file_path] . "shared/end_TABLE_V_form.shared"); ?>

<? include($template[company][file_path] . "shared/end_TABLE_II.shared"); ?>

<? include($template[company][file_path] . "shared/TABLE_I_ii_tightfooter.shared"); ?>

<? include($template[company][file_path] . "shared/end_TABLE_I_ii.shared"); ?>

<? include($template[company][file_path] . "shared/end_TABLE_I_i.shared"); ?> 

<? include($template[company][file_path] . "shared/js_generic_validation.shared"); ?> 

<? # $location_page = "quickbuy_creditcard_2.b!"; 
include($template[company][file_path] . "shared/end_HTML.shared"); ?>


