<? 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 select your preferred credit card...";
$gateway_payment_step = "deposit_creditcard_1_wallet.gate";
$message_width = "auto";
include($template[company][file_path] . "shared/start_TABLE_IV_sysmsg.shared"); ?>



<? $form_action = "deposit_creditcard_2.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>: -->



<?  $row_title = "<font color='#DD3333'>Select Your Preferred Credit Card:</font>";
  include($template[company][file_path] . "shared/TABLE_X_ROW_title.shared"); ?>




<? $row_title = "Purchase Amount:";
$field_name = "requested_value";
$row_input = "<select name=\"$field_name\" onChange=\"checkField(this, 'onChange');\">";
if($transaction[requested_value]) {
  $row_input = $row_input . "
  <option value='{$transaction[requested_value]}' selected>" . displayCURRENCY1($transaction[requested_value]) . "</option>
  <option value=''></option>";
}
$row_input = $row_input . "
  <option value='1.00'>Select One...
  <option value=''>
  <option value='20.00'>" . displayCURRENCY1("20.00") . "
  <option value='25.00'>" . displayCURRENCY1("25.00") . "
  <option value='30.00'>" . displayCURRENCY1("30.00") . "
  <option value='35.00'>" . displayCURRENCY1("35.00") . "
  <option value='40.00'>" . displayCURRENCY1("40.00") . "
  <option value='45.00'>" . displayCURRENCY1("45.00") . "
  <option value='50.00'>" . displayCURRENCY1("50.00") . "
  <option value='60.00'>" . displayCURRENCY1("60.00") . "
  <option value='70.00'>" . displayCURRENCY1("70.00") . "
  <option value='80.00'>" . displayCURRENCY1("80.00") . "
  <option value='90.00'>" . displayCURRENCY1("90.00") . "
  <option value='100.00'>" . displayCURRENCY1("100.00") . "
  <option value='125.00'>" . displayCURRENCY1("125.00") . "
  <option value='150.00'>" . displayCURRENCY1("150.00") . "
  <option value='175.00'>" . displayCURRENCY1("175.00") . "
  <option value='200.00'>" . displayCURRENCY1("200.00") . "
  <option value='250.00'>" . displayCURRENCY1("250.00") . "
  </select>
";
$row_faq_name = "Limits";
$row_faq_id = "26";
$row_example = "";
$row_required = "yes";
$row_variable = $transaction[requested_value];
include($template[company][file_path] . "shared/TABLE_X_ROW_I_input.shared"); ?>




<? $row_title = "Credit Card:";
$field_name = "account_number";
$row_input = "<select name=\"$field_name\" onChange=\"checkField(this, 'onChange');\">";

### BUILD WALLET:


### IF PREVIOUSLY SET THEN DISPLAY OPTION:
if($transaction[account][walletid]) { # if previously set and returned for error:

  $tmp_wallet = readTHECASHIER("SELECT * from wallets where walletid = '{$transaction[account][walletid]}'");

  ### SET DISPLAY NUMBER:
  $tmp_card = card_details($tmp_wallet->number);
  $display_number = $tmp_card[display];
  

  ### CHECK PENDING:
  $tmp_status = getTHECASHIER("SELECT authorization_status from wallets where walletid = '{$transaction[account][walletid]}'");
  
  /* 2004.05.21:   change of plan. transacions are approved - not cards.
  cards will always be pending... actually their staus will be NULL - not apporved
  if($tmp_status == "Pending") {
    $pending = "&nbsp;(Pending)";
  }
  */
  
  ### DIPLAY PREVIOUS SET OPTION:
  $row_input = $row_input . "
  <option value='walletid:{$transaction[account][walletid]}'>$tmp_wallet->type: $display_number" . $pending . "</option>
  <option value=''></option>";
}




### START NEW OPTIONS:

$row_input = $row_input . "
<option value=''>Select One...</option>
<option value=''></option>";


$i = 0;
while($walletid[$i]) { # we get walletid from deposit_cards.aum
 
  $tmp_wallet = readTHECASHIER("SELECT * from wallets where walletid = '$walletid[$i]'");
  
  
  
  ### SET DISPLAY NUMBER:
  $tmp_card = card_details($tmp_wallet->number);
  $display_number = $tmp_card[display];
  
  
  ### CHECK PENDING:
  $tmp_status = getTHECASHIER("SELECT authorization_status from wallets where walletid = '$walletid[$i]'");
  
  /* 2004.05.22 - cards are no longer authorized - nw per tranbsaction is used
  if($tmp_status == "Pending") {
    $pending = "&nbsp;(Pending)";
  }
  */
  
  
  $row_input = $row_input . "<option value='walletid:" . $walletid[$i] . "'>$tmp_wallet->type: $display_number" . $pending . "</option>";
  $i = $i + 1;
}
$row_example = "";
$row_required = "yes";
$row_variable = $transaction[account][walletid];
include($template[company][file_path] . "shared/TABLE_X_ROW_I_input.shared"); ?>



<? $height = "5";
include($template[company][file_path] . "shared/TABLE_X_ROW_spacer.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"); ?>

<?
$leftfooter_name = "Use A New Credit Card";
$leftfooter_link = "deposit_creditcard_1.b!?source=newcard";
$rightfooter_name = "required fields&nbsp<img src='" . image($http,$template[company][icon2]) . "'>";
$rightfooter_link = "";
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 = "";
$center_submit = "<input type=button name=continue onclick=\"validateContinue()\"  value='Click To Continue...'>"; 
$right_submit = "";
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"); ?> 

<script type="text/javascript">
function validateContinue() {
	
	if (globalValidation()) {
		document.forms[0].submit();
	}
}

</script>

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

