Exemplo n.º 1
0
    function config_form()
    {
        if ($_REQUEST['action'] == 'save') {
            $check_enabled = $_REQUEST['check_enabled'];
            $check_currency = $_REQUEST['check_currency'];
            $check_payable = $_REQUEST['check_payable'];
            $check_address = $_REQUEST['check_address'];
            $check_email_confirm = $_REQUEST['check_email_confirm'];
        } else {
            $check_enabled = CHECK_ENABLED;
            $check_currency = CHECK_CURRENCY;
            $check_payable = CHECK_PAYABLE;
            $check_address = CHECK_ADDRESS;
            $check_email_confirm = CHECK_EMAIL_CONFIRM;
        }
        ?>
<form method="post" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
		 <table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" id="AutoNumber1" width="100%" bgcolor="#FFFFFF">

     <tr>
      <td colspan="2"  bgcolor="#e6f2ea">
      <font face="Verdana" size="1"><b>Check Payment Settings</b><br>(If you leave any field field blank, then it will not show up on the checkout)</font></td>
    </tr>
    <tr>
      <td width="20%" bgcolor="#e6f2ea"><font face="Verdana" size="1">Payable to Name</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="check_payable" size="29" value="<?php 
        echo $check_payable;
        ?>
"></font></td>
    </tr>
	 <tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Payable to Address</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <textarea name="check_address" rows="4"><?php 
        echo $check_address;
        ?>
</textarea></font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Check Currency</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <select  name="check_currency" ><?php 
        echo currency_option_list($check_currency);
        ?>
</select></font></td>
    </tr>
	<!--
<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Send confirmation email</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
       <input type="radio" name="bank_email_confirm" value="YES"  <?php 
        if ($bank_email_confirm == 'YES') {
            echo " checked ";
        }
        ?>
 >Yes - Send email with bank details<br>
	  <input type="radio" name="bank_email_confirm" value="NO"  <?php 
        if ($bank_email_confirm == 'NO') {
            echo " checked ";
        }
        ?>
 >No<br></font></td>
    </tr>
	-->
     <tr>
	
      <td  bgcolor="#e6f2ea" colspan=2><font face="Verdana" size="1"><input type="submit" value="Save"></font>
	  </td>
	  </tr>
  </table>
  <input type="hidden" name="pay" value="<?php 
        echo $_REQUEST['pay'];
        ?>
">
  <input type="hidden" name="action" value="save">
  
</form>

		<?php 
    }
Exemplo n.º 2
0
    function config_form()
    {
        if ($_REQUEST['action'] == 'save') {
            $moneybookers_email = $_REQUEST['moneybookers_email'];
            $moneybookers_language = $_REQUEST['moneybookers_language'];
            $moneybookers_currency = $_REQUEST['moneybookers_currency'];
            $moneybookers_status_url = $_REQUEST['moneybookers_status_url'];
            $moneybookers_return_url = $_REQUEST['moneybookers_return_url'];
            $moneybookers_cancel_url = $_REQUEST['moneybookers_cancel_url'];
            $moneybookers_secret_word = $_REQUEST['moneybookers_secret_word'];
        } else {
            $moneybookers_email = MONEYBOOKERS_EMAIL;
            $moneybookers_language = MONEYBOOKERS_LANGUAGE;
            $moneybookers_currency = MONEYBOOKERS_CURRENCY;
            $moneybookers_status_url = MONEYBOOKERS_STATUS_URL;
            $moneybookers_return_url = MONEYBOOKERS_RETURN_URL;
            $moneybookers_cancel_url = MONEYBOOKERS_CANCEL_URL;
            $moneybookers_secret_word = MONEYBOOKERS_SECRET_WORD;
        }
        $host = $_SERVER['SERVER_NAME'];
        // hostname
        $http_url = $_SERVER['PHP_SELF'];
        // eg /ojo/admin/edit_config.php
        $http_url = explode("/", $http_url);
        array_pop($http_url);
        // get rid of filename
        array_pop($http_url);
        // get rid of /admin
        $http_url = implode("/", $http_url);
        ?>
		<form method="post" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
		<table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" id="AutoNumber1" width="100%" bgcolor="#FFFFFF">
    <tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Email</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="moneybookers_email" size="33" value="<?php 
        echo $moneybookers_email;
        ?>
"></font></td>
    </tr>



	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Language</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <select name="moneybookers_language"  > 
	 <option value="EN" <?php 
        if ($moneybookers_language == 'EN') {
            echo ' selected ';
        }
        ?>
 >English</option>
	 <option value="DE" <?php 
        if ($moneybookers_language == 'DE') {
            echo ' selected ';
        }
        ?>
>German</option>
	 <option value="ES" <?php 
        if ($moneybookers_language == 'ES') {
            echo ' selected ';
        }
        ?>
>Spanish</option>
	 <option value="FR" <?php 
        if ($moneybookers_language == 'FR') {
            echo ' selected ';
        }
        ?>
>French</option>
	 <option value="IT" <?php 
        if ($moneybookers_language == 'IT') {
            echo ' selected ';
        }
        ?>
>Italian</option>
	 <option value="PL" <?php 
        if ($moneybookers_language == 'PL') {
            echo ' selected ';
        }
        ?>
>Polish</option>
	  </select> 
	  </font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Currency</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <select name="moneybookers_currency"  value="<?php 
        echo $moneybookers_currency;
        ?>
"> 
	  <?php 
        currency_option_list($moneybookers_currency);
        ?>
	  </select>(Please select a currency that is supported by Moneybookers. If the currency is not on the list, you may add it under the Configuration section)
	  </font></td>
    </tr>
	
	 
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Status URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="moneybookers_status_url" size="50" value="<?php 
        echo $moneybookers_status_url;
        ?>
"><br>(eg. http://<?php 
        echo $host . $http_url . "/payment/moneybookers.php";
        ?>
)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Return URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="moneybookers_return_url" size="33" value="<?php 
        echo $moneybookers_return_url;
        ?>
"> I.e. 'Thank you page', (eg. http://<?php 
        echo $host . $http_url . "/users/index.php";
        ?>
) </font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Cancel URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="moneybookers_cancel_url" size="33" value="<?php 
        echo $moneybookers_cancel_url;
        ?>
"> I.e. 'Payment cancelled page', (eg. http://<?php 
        echo $host . $http_url . "/users/orders.php";
        ?>
) </font></td>
    </tr>
	
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers secret word</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="moneybookers_secret_word" size="50" value="<?php 
        echo $moneybookers_secret_word;
        ?>
"><br>(Note: The secret word MUST be submitted in the 'profile' section in lowercase. If you insert uppercase symbols, they will automatically be converted to lower case. The only restriction on your secret word is the length which must not exceed 10 characters. Non-alphanumeric symbols can be used. If the secret word is not shown in your profile, please contact merchantservices@moneybookers.com)</font></td>
    </tr>
	
	 <tr>
	
      <td  bgcolor="#e6f2ea" colspan=2><font face="Verdana" size="1"><input type="submit" value="Save">
	  </td>
	  </tr>
    
  </table>
  <input type="hidden" name="pay" value="<?php 
        echo $_REQUEST['pay'];
        ?>
">
  <input type="hidden" name="action" value="save">
  </form>

  <?php 
    }
Exemplo n.º 3
0
    } else {
        echo "<b>" . $_REQUEST['grid_height'];
        echo "<input type='hidden' value='" . $row[grid_height] . "' name='grid_height'> Blocks.</b> <font size='1'> Note: Cannot change height because the grid is in use by an advertiser.[<a href='inventory.php?action=edit&banner_id=" . $_REQUEST['banner_id'] . "&edit_anyway=1'>Edit Anyway</a>]</font>";
    }
    ?>
</td></tr>


<tr bgcolor="#ffffff" ><td bgColor="#eaeaea"><font size="2"><b>Price per block</b></font></td><td><input  size="1" type="text" name="price_per_block" value="<?php 
    echo $_REQUEST['price_per_block'];
    ?>
"/><font size="2">(How much for 1 block of pixels?)</font></td></tr>
<tr bgcolor="#ffffff" ><td bgColor="#eaeaea"><font size="2"><b>Currency</b></font></td><td>
<select name ="currency">
<?php 
    currency_option_list($_REQUEST['currency']);
    ?>
</select>
</td></tr>

<tr bgcolor="#ffffff" ><td bgColor="#eaeaea"><font size="2"><b>Days to Expire</b></font></td><td><input <?php 
    echo $disabled;
    ?>
 size="1" type="text" name="days_expire" value="<?php 
    echo $_REQUEST['days_expire'];
    ?>
"/><font size="2">(How many days until pixels expire? Enter 0 for unlimited.)</font></td></tr>

<tr bgcolor="#ffffff" ><td bgColor="#eaeaea"><font size="2"><b>Max orders Per Customer</b></font></td><td><input <?php 
    echo $disabled;
    ?>
Exemplo n.º 4
0
    function config_form()
    {
        if ($_REQUEST['action'] == 'save') {
            $ccavenue_merchant_id = $_REQUEST['ccavenue_merchant_id'];
            $ccavenue_currency = $_REQUEST['ccavenue_currency'];
            $ccavenue_redirect_url = $_REQUEST['ccavenue_redirect_url'];
            $ccavenue_working_key = $_REQUEST['ccavenue_working_key'];
        } else {
            $ccavenue_merchant_id = CCAVENUE_MERCHANT_ID;
            $ccavenue_currency = CCAVENUE_CURRENCY;
            $ccavenue_redirect_url = CCAVENUE_REDIRECT_URL;
            $ccavenue_working_key = CCAVENUE_WORKING_KEY;
        }
        $host = $_SERVER['SERVER_NAME'];
        // hostname
        $http_url = $_SERVER['PHP_SELF'];
        // eg /ojo/admin/edit_config.php
        $http_url = explode("/", $http_url);
        array_pop($http_url);
        // get rid of filename
        array_pop($http_url);
        // get rid of /admin
        $http_url = implode("/", $http_url);
        ?>
		<form method="post" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
		<table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" id="AutoNumber1" width="100%" bgcolor="#FFFFFF">
    <tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">CCAvenue 
      Merchant ID</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="ccavenue_merchant_id" size="33" value="<?php 
        echo $ccavenue_merchant_id;
        ?>
"></font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">CC Avenue 
      Currency</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <select name="ccavenue_currency"  value="<?php 
        echo $ccavenue_currency;
        ?>
"> 
	  <?php 
        currency_option_list($ccavenue_currency);
        ?>
	  </select>(Please select a currency that is supported by CCAvenue, ie. USD)
	  </font></td>
    </tr>
	
	 
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">CC Avenue 
      Redirect URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="ccavenue_redirect_url" size="50" value="<?php 
        echo $ccavenue_redirect_url;
        ?>
"><br>(recommended: <b>http://<?php 
        echo $host . $http_url . "/" . EMPLOYER_FOLDER . "thanks.php?m=" . $this->className;
        ?>
</b> )</font></td>
    </tr>
	
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">CC Avenue 
      Working Key</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="ccavenue_working_key" size="50" value="<?php 
        echo $ccavenue_working_key;
        ?>
"><br>(This is set in your ccavenue account)</font></td>
    </tr>
	<!--
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">CC Avenue 
      Button Image URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="paypal_button_url" size="50" value="<?php 
        echo $paypal_button_url;
        ?>
"><br></font></td>
    </tr>
	-->
	 <tr>
	
      <td  bgcolor="#e6f2ea" colspan=2><font face="Verdana" size="1"><input type="submit" value="Save">
	  </td>
	  </tr>
    
  </table>
  <input type="hidden" name="pay" value="<?php 
        echo $_REQUEST['pay'];
        ?>
">
  <input type="hidden" name="action" value="save">
  </form>

  <?php 
    }
    function config_form()
    {
        echo "Note: The Authorize.net module is currently experimentail in this version<br>";
        if ($_REQUEST['action'] == 'save') {
            $authnet_login_id = $_REQUEST['authnet_login_id'];
            $authnet_currency = $_REQUEST['authnet_currency'];
            $authnet_test_mode = $_REQUEST['authnet_test_mode'];
            $authnet_x_relay_url = $_REQUEST['authnet_x_relay_url'];
            $authnet_x_receipt_link_method = $_REQUEST['authnet_x_receipt_link_method'];
            $authnet_x_receipt_link_url = $_REQUEST['authnet_x_receipt_link_url'];
            $authnet_x_receipt_link_text = $_REQUEST['authnet_x_receipt_link_text'];
            $authnet_x_tran_key = $_REQUEST['authnet_x_tran_key'];
            $authnet_x_background_url = $_REQUEST['authnet_x_background_url'];
            $authnet_x_logo_url = $_REQUEST['authnet_x_logo_url'];
            $authnet_x_color_background = $_REQUEST['authnet_x_color_background'];
            $authnet_x_color_link = $_REQUEST['authnet_x_color_link'];
            $authnet_x_color_text = $_REQUEST['authnet_x_color_text'];
            $authnet_x_header_html_payment_form = $_REQUEST['authnet_x_header_html_payment_form'];
            $authnet_x_footer_html_payment_form = $_REQUEST['authnet_x_footer_html_payment_form'];
        } else {
            $authnet_login_id = AUTHNET_LOGIN_ID;
            $authnet_currency = AUTHNET_CURRENCY;
            $authnet_test_mode = AUTHNET_TEST_MODE;
            $authnet_x_relay_url = AUTHNET_X_RELAY_URL;
            $authnet_x_receipt_link_method = AUTHNET_X_RECEIPT_LINK_METHOD;
            $authnet_x_receipt_link_url = AUTHNET_X_RECEIPT_LINK_URL;
            $authnet_x_receipt_link_text = AUTHNET_X_RECEIPT_LINK_TEXT;
            $authnet_x_tran_key = AUTHNET_X_TRAN_KEY;
            $authnet_x_background_url = AUTHNET_X_BACKGROUND_URL;
            $authnet_x_logo_url = AUTHNET_X_LOGO_URL;
            $authnet_x_color_background = AUTHNET_X_COLOR_BACKGROUND;
            $authnet_x_color_link = AUTHNET_X_COLOR_LINK;
            $authnet_x_color_text = AUTHNET_X_COLOR_TEXT;
            $authnet_x_header_html_payment_form = AUTHNET_X_HEADER_HTML_PAYMENT_FORM;
            $authnet_x_footer_html_payment_form = AUTHNET_X_FOOTER_HTML_PAYMENT_FORM;
            $authnet_x_header_html_payment_form = AUTHNET_X_HEADER_HTML_PAYMENT_FORM;
            $authnet_x_footer_html_payment_form = AUTHNET_X_FOOTER_HTML_PAYMENT_FORM;
        }
        $host = $_SERVER['SERVER_NAME'];
        // hostname
        $http_url = $_SERVER['PHP_SELF'];
        // eg /ojo/admin/edit_config.php
        $http_url = explode("/", $http_url);
        array_pop($http_url);
        // get rid of filename
        array_pop($http_url);
        // get rid of /admin
        $http_url = implode("/", $http_url);
        ?>
		<form method="post" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
		<table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" id="AutoNumber1" width="100%" bgcolor="#FFFFFF">
    <tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Authorize.Net 
      Login ID</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_login_id" size="33" value="<?php 
        echo $authnet_login_id;
        ?>
"></font></td>
    </tr>



	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Test Mode (Y/N)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
       <input type="radio" name="authnet_test_mode" value="YES"  <?php 
        if ($authnet_test_mode == 'YES') {
            echo " checked ";
        }
        ?>
 >Yes <br>
	  <input type="radio" name="authnet_test_mode" value="NO"  <?php 
        if ($authnet_test_mode == 'NO') {
            echo " checked ";
        }
        ?>
 >No<br></font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Authorize.Net 
      Currency</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <select name="authnet_currency"  value="<?php 
        echo $authnet_currency;
        ?>
"> 
	  <?php 
        currency_option_list($authnet_currency);
        ?>
	  </select>(Please select a currency that is supported by Authorize.Net. If the currency is not on this list, you may add it under the Configuration section)
	  </font></td>
    </tr>
	
	 
		<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Authorize.Net 
      Relay Response URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_x_relay_url" size="50" value="<?php 
        echo $authnet_x_relay_url;
        ?>
"><br>(Recommended: <b>http://<?php 
        echo $host . $http_url . "/users/thanks.php?m=" . $this->className;
        ?>
 </b> )</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Authorize.Net 
      Receipt Link Method</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <select type="text" name="authnet_x_receipt_link_method"  value="<?php 
        echo $authnet_x_receipt_link_method;
        ?>
">
	  <option value="POST">POST (recommended)</option>
	  <option value="GET">GET</option>
	  <option value="LINK">LINK (hyperlink)</option>

	  </select>
	  (What way to return to the MDS script.)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Authorize.Net 
      Receipt link URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_x_receipt_link_url" size="50" value="<?php 
        echo $authnet_x_receipt_link_url;
        ?>
"><br>(eg. http://<?php 
        echo $host . $http_url . "/users/index.php";
        ?>
 - where customers return back to the MDS)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Authorize.Net 
      Receipt link Text</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_x_receipt_link_text" size="50" value="<?php 
        echo $authnet_x_receipt_link_text;
        ?>
"><br>(Anchor text for the Receipt link URL - where customers return back to the MDS)</font></td>
    </tr>



	
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Authorize.net Transaction Key</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_x_tran_key" size="50" value="<?php 
        echo $authnet_x_tran_key;
        ?>
"><br>(Note: 1. Log in to the Merchant Interface, 2. Select 'Settings' from the Main Menu, 3. Click on the Obtain Transaction Key in the Security section, 4. Type in the answer to your secret question, 5. Click Submit, 6. The transaction key is returned by the Merchant Interface.)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Logo URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_x_logo_url" size="50" value="<?php 
        echo $authnet_x_logo_url;
        ?>
"><br>(Logo on the Payment form & Receipt Page, eg http://www.example.com/test.gif)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Background Image URL</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_x_background_url" size="50" value="<?php 
        echo $authnet_x_background_url;
        ?>
"><br>(Background image on the Payment form & Receipt Page)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Background color</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_x_color_background" size="50" value="<?php 
        echo $authnet_x_color_background;
        ?>
"><br>(Background Color of the Payment form & Receipt Page, any HTML color or hex code, eg #FFFFFF)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Link color</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_x_color_link" size="50" value="<?php 
        echo $authnet_x_color_link;
        ?>
"><br>(Logo on the Payment form & Receipt Page)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Payment form: Header HTML</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <textarea name="authnet_x_header_html_payment_form" ><?php 
        echo $authnet_x_header_html_payment_form;
        ?>
</textarea><br>(The text submitted in this field will be dispalyed as the header on the Payment Form)</font></td>
    </tr>
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Payment form: Footer HTML</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <textarea name="authnet_x_footer_html_payment_form" ><?php 
        echo $authnet_x_footer_html_payment_form;
        ?>
</textarea><br>(The text submitted in this field will be dispalyed as the footer on the Payment Form)</font></td>
    </tr>
	 <tr>
	
      <td  bgcolor="#e6f2ea" colspan=2><font face="Verdana" size="1"><input type="submit" value="Save">
	  </td>
	  </tr>
    
  </table>
  <input type="hidden" name="pay" value="<?php 
        echo $_REQUEST['pay'];
        ?>
">
  <input type="hidden" name="action" value="save">
  </form>

  <?php 
    }
Exemplo n.º 6
0
    function config_form()
    {
        if ($_REQUEST['action'] == 'save') {
            $bank_name = $_REQUEST['bank_name'];
            $bank_address = $_REQUEST['bank_address'];
            $bank_account_name = $_REQUEST['bank_account_name'];
            $bank_account_number = $_REQUEST['bank_account_number'];
            $bank_branch_number = $_REQUEST['bank_branch_number'];
            $bank_swift = $_REQUEST['bank_swift'];
            $bank_currency = $_REQUEST['bank_currency'];
            $bank_email_confirm = $_REQUEST['bank_email_confirm'];
        } else {
            $bank_name = BANK_NAME;
            $bank_address = BANK_ADDRESS;
            $bank_account_name = BANK_ACCOUNT_NAME;
            $bank_account_number = BANK_ACCOUNT_NUMBER;
            $bank_branch_number = BANK_BRANCH_NUMBER;
            $bank_swift = BANK_SWIFT;
            $bank_currency = BANK_CURRENCY;
            $bank_email_confirm = BANK_EMAIL_CONFIRM;
        }
        ?>
<form method="post" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
		 <table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" id="AutoNumber1" width="100%" bgcolor="#FFFFFF">

		 
     <tr>
      <td colspan="2"  bgcolor="#e6f2ea">
      <font face="Verdana" size="1"><b>Bank Payment Settings</b><br>(If you leave any field field blank, then it will not show up on the checkout)</font></td>
    </tr>
    <tr>
      <td width="20%" bgcolor="#e6f2ea"><font face="Verdana" size="1">Bank Name</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="bank_name" size="29" value="<?php 
        echo $bank_name;
        ?>
"></font></td>
    </tr>
	 <tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Bank Address</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="bank_address" size="29" value="<?php 
        echo $bank_address;
        ?>
"></font></td>
    </tr>
	 <tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Bank Account Name</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="bank_account_name" size="29" value="<?php 
        echo $bank_account_name;
        ?>
"></font></td>
    </tr>
	
    <tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Bank Account Number</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="bank_account_number" size="29" value="<?php 
        echo $bank_account_number;
        ?>
"></font></td>
    </tr>
    <tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Bank Branch Number</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="bank_branch_number" size="29" value="<?php 
        echo $bank_branch_number;
        ?>
"></font></td>
    </tr>
	 <tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">SWIFT Code</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="bank_swift" size="29" value="<?php 
        echo $bank_swift;
        ?>
"></font></td>
    </tr>
	
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Bank Account Currency</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <select  name="bank_currency" ><?php 
        echo currency_option_list($bank_currency);
        ?>
</select></font></td>
    </tr>
	<!--
<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Send confirmation email</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
       <input type="radio" name="bank_email_confirm" value="YES"  <?php 
        if ($bank_email_confirm == 'YES') {
            echo " checked ";
        }
        ?>
 >Yes - Send email with bank details<br>
	  <input type="radio" name="bank_email_confirm" value="NO"  <?php 
        if ($bank_email_confirm == 'NO') {
            echo " checked ";
        }
        ?>
 >No<br></font></td>
    </tr>
	-->
     <tr>
	
      <td  bgcolor="#e6f2ea" colspan=2><font face="Verdana" size="1"><input type="submit" value="Save">
	  </td>
	  </tr>
  </table>
  <input type="hidden" name="pay" value="<?php 
        echo $_REQUEST['pay'];
        ?>
">
  <input type="hidden" name="action" value="save">
  
</form>

		<?php 
    }