Example #1
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'];
            $ccavenue_candidate_redirect_url = $_REQUEST['ccavenue_candidate_redirect_url'];
        } else {
            $ccavenue_merchant_id = CCAVENUE_MERCHANT_ID;
            $ccavenue_currency = CCAVENUE_CURRENCY;
            $ccavenue_redirect_url = CCAVENUE_REDIRECT_URL;
            $ccavenue_working_key = CCAVENUE_WORKING_KEY;
            $ccavenue_candidate_redirect_url = CCAVENUE_CANDIDATE_REDIRECT_URL;
        }
        $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"  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 
        JB_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 (Employers)</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 . "/" . JB_EMPLOYER_FOLDER . "thanks.php?m=" . $this->className;
        ?>
</b> )</font></td>
    </tr>
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">CC Avenue 
      Redirect URL (Candidates)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="ccavenue_candidate_redirect_url" size="50" value="<?php 
        echo $ccavenue_candidate_redirect_url;
        ?>
"><br>(recommended: <b>http://<?php 
        echo $host . $http_url . "/" . JB_CANDIDATE_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 jb_escape_html($_REQUEST['pay']);
        ?>
">
  <input type="hidden" name="action" value="save">
  </form>

  <?php 
    }
Example #2
0
    function config_form()
    {
        #AUTHNET_CANDIDATE_X_RECEIPT_LINK_URL and AUTHNET_CANDIDATE_X_RELAY_URL
        //echo "Note: The Authorize.net module is currently in beta 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'];
            $authnet_candidate_x_receipt_link_url = $_REQUEST['authnet_candidate_x_receipt_link_url'];
            $authnet_md5_hash = $_REQUEST['authnet_md5_hash'];
            //$authnet_candidate_x_relay_url = $_REQUEST['authnet_candidate_x_relay_url'];
        } 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_candidate_x_receipt_link_url = AUTHNET_CANDIDATE_X_RECEIPT_LINK_URL;
            $authnet_md5_hash = AUTHNET_MD5_HASH;
            //$authnet_candidate_x_relay_url = AUTHNET_CANDIDATE_X_RELAY_URL;
        }
        $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 htmlentities($_SERVER['PHP_SELF']);
        ?>
">
		<table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" width="100%" bgcolor="#FFFFFF">
   <tr>
	<td colspan="2">
	Welcome to the SIM Authorize.net payment module<br>
	Additional instructions for your Authorize.net account can be found here:<br>
	<a href="http://www.authorize.net/support/Merchant/default.htm" target="_blank">http://www.authorize.net/support/Merchant/default.htm (opens in a new window)</a><br>
	- See Section Three, 'Server Intergration Method (SIM)
	</td>

   </tr>
	<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;
        ?>
">
	  <!-- <option value="USD" >USD</option>-->
	  <?php 
        JB_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>

	<?php 
        if (trim($authnet_x_relay_url) == '') {
            $authnet_x_relay_url = 'http://' . $host . $http_url . "/payment/authorizeNetSIM.php";
        }
        ?>
	 
	<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="80" value="<?php 
        echo $authnet_x_relay_url;
        ?>
"><br>(Recommended: <b>http://<?php 
        echo $host . $http_url . "/payment/authorizeNetSIM.php";
        ?>
) </b><br>Note: This URL must be configured in the Merchant Interface.<br>
	  Important: For displaying the results of the transcation to the customer, Authorize.net suggests that you either use the 'Hosted Receipt Page' method or the 'Relay Response' method, but not both. Jamit uses the 'Relay Response' method to process the transaction and output a response back to Authorize.net, please configure your Authorize.net account to only use that method.<br>
	  
<p>
	  To configure Relay Response for your transactions:<br>
   1. Log into the Merchant Interface at https://secure.authorize.net<br>
   2. Click Settings under Account in the main menu on the left<br>
   3. Click Relay Response in the Transaction Format Settings section<br>
   4. Enter the URL that you have entered above on this form<br>
   5. Click Submit<br>
   </p>
   <b>Authorize.net will not work if you are testing from a firewalled LAN / localhost - this is because Authorize.net needs to POST back to this URL to complete the transaction</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 Jamit script.)</font></td>
    </tr>
-->
	<?php 
        if (trim($authnet_x_receipt_link_url) == '') {
            'http://' . ($authnet_x_receipt_link_url = $host . $http_url . "/" . JB_EMPLOYER_FOLDER . "thanks.php?m=" . $this->className);
        }
        ?>
<!--
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Authorize.Net 
      Receipt link URL (Employers)</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>(Recommended: <b>http://<?php 
        echo $host . $http_url . "/" . JB_EMPLOYER_FOLDER . "thanks.php?m=" . $this->className;
        ?>
 </b><br>Note: This URL must be configured in the Merchant Interface)</font></td>
    </tr>
-->
	<?php 
        if (trim($authnet_candidate_x_receipt_link_url) == '') {
            'http://' . ($authnet_candidate_x_receipt_link_url = $host . $http_url . "/" . JB_CANDIDATE_FOLDER . "thanks.php?m=" . $this->className);
        }
        ?>
<!--
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Authorize.Net 
      Receipt link URL (Candidates)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_candidate_x_receipt_link_url" size="50" value="<?php 
        echo $authnet_candidate_x_receipt_link_url;
        ?>
"><br>(Recommended: <b>http://<?php 
        echo $host . $http_url . "/" . JB_CANDIDATE_FOLDER . "thanks.php?m=" . $this->className;
        ?>
 </b> )</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 Job board)</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="password" 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">Authorize.net MD5 Hash Value</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="password" name="authnet_md5_hash" size="50" value="<?php 
        echo $authnet_md5_hash;
        ?>
"><br>Note:
	  To configure an MD5 Hash value for your account:<br>

   1. Log into the Merchant Interface at https://secure.authorize.net<br>
   2. Click Settings under Account in the main menu on the left<br>
   3. Click MD5-Hash in the Security Settings section<br>
   4. Enter any random value to use for your MD5 Hash Value. Enter the value again to confirm<br>
   5. Click Submit<br>
   Please note that the MD5 Hash value is not displayed on the screen once submitted. You will need to update this setting here any time you change the value.<br>
	  </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"><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" size="50"> <?php 
        echo $authnet_x_header_footer_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"><font face="Verdana" size="1">Text color</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="authnet_x_color_text" size="50" value="<?php 
        echo $authnet_x_color_text;
        ?>
"><br>(Logo on the Payment form & Receipt Page, any HTML color or hex code, eg #FFFFFF)</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 jb_escape_html($_REQUEST['pay']);
        ?>
">
  <input type="hidden" name="action" value="save">
  </form>

  <?php 
    }
Example #3
0
				<input type="hidden" value="<?php 
    echo $_REQUEST['new'];
    ?>
" name="new">
		<table border="0" cellSpacing="1" cellPadding="3"  bgColor="#d9d9d9" >		
				
				<tr bgcolor='#ffffff'>
<td>
				<span class="style1">New Package Name: </span></td><td><input  type="text" name="new_package_label" value=""> </tr><tr bgcolor='#ffffff'>
				<td>
				<span class="style1">Price:</span></td><td> <input type="text" size="5" name="package_price"  value="" > <font size="2">(Enter a decimal, eg 10.00)</font>
				</td>
				</tr><tr bgcolor='#ffffff'><td>
				<span class="style1">Currency:</span></td><td> <select name="package_currency"  >
				<?php 
    JB_currency_option_list($selected);
    ?>
</select><font size="2"></font></td>
</tr><tr bgcolor='#ffffff'>
				<td>
				<span class="style1">Quantity:</span></td><td> <input type="text" size="5" name="package_posts_quantity"  
				value="" > 
				</td>
				</tr><tr bgcolor='#ffffff'><td>
				<span class="style1">Premium Posts?</span></td><td> <select type="text"  name="premium" >
				<option value=''></option>
				<option value='Y'>Y</option>
				<option value='N'>N</option>		

				</select>
				</td>
Example #4
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'];
            $bank_advance_credit = $_REQUEST['bank_advance_credit'];
            $bank_tax_rate = $_REQUEST['bank_tax_rate'];
            $bank_add_tax = $_REQUEST['bank_add_tax'];
        } 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;
            $bank_advance_credit = BANK_ADVANCE_CREDIT;
            $bank_tax_rate = BANK_TAX_RATE;
            $bank_add_tax = BANK_ADD_TAX;
        }
        ?>
<form method="post" action="<?php 
        echo htmlentities($_SERVER['PHP_SELF']);
        ?>
">
		 <table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" 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 JB_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 confirmation email (invoice) before payment is made<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"><font face="Verdana" size="1">Advance Credits</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
       <input type="radio" name="bank_advance_credit" value="YES"  <?php 
        if ($bank_advance_credit == 'YES') {
            echo " checked ";
        }
        ?>
 >Yes - credit the account with posting credits before payment is made<br>
	  <input type="radio" name="bank_advance_credit" value="NO"  <?php 
        if ($bank_advance_credit == 'NO') {
            echo " checked ";
        }
        ?>
 >No<br></font></td>
    </tr>
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Tax Rate</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="bank_tax_rate" size="3" value="<?php 
        echo $bank_tax_rate;
        ?>
"> (Optional... enter a decimal, eg 0.1<br>Use %INVOICE_TAX% on the bank email template which will display the tax amount)<br> <input type="checkbox" name="bank_add_tax" value="Y" <?php 
        if ($bank_add_tax == 'Y') {
            echo ' checked ';
        }
        ?>
 > Add the tax to the amount? Do not check if prices already include tax.</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 jb_escape_html($_REQUEST['pay']);
        ?>
">
  <input type="hidden" name="action" value="save">
  
</form>

		<?php 
    }
Example #5
0
		<td><b>Membership Description: </b></td>
		<td><input type="text" name="name" size='40'  value="<?php 
    echo JB_escape_html($_REQUEST['name']);
    ?>
"><br>(meaning name, eg. '$12.00 One-time Membership Fee', or '$5.00 12 Month Membership fee' etc.) </td>
	</tr><tr bgcolor='#ffffff'>
		<td><b>Price: </b></td>
		<td><input type="text" name="price" size='5'  value="<?php 
    echo jb_escape_html($_REQUEST['price']);
    ?>
"><br>(enter a decimal, eg. 12.00)</td>
	</tr><tr bgcolor='#ffffff'>
		<td><b>Currency: </b></td>
		<td> <select name="currency_code"  >
		<?php 
    JB_currency_option_list($_REQUEST['currency_code']);
    ?>
</select></td>
	</tr><tr bgcolor='#ffffff'>
		<td><b>Months (Duration): </b></td>
		<td><input type="text" name="months" size=4 value="<?php 
    echo jb_escape_html($_REQUEST['months']);
    ?>
"> (Enter a number. 0=forever)</td>
	</tr><tr bgcolor='#ffffff'>
		<td><b>User Type: </b></td>
		<td><input type="radio" name="type" value='E' <?php 
    if ($_REQUEST['type'] == 'E') {
        echo ' checked';
    }
    ?>
Example #6
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'];
            $check_advance_credit = $_REQUEST['check_advance_credit'];
            $check_tax_rate = $_REQUEST['check_tax_rate'];
            $check_add_tax = $_REQUEST['check_add_tax'];
        } else {
            $check_enabled = CHECK_ENABLED;
            $check_currency = CHECK_CURRENCY;
            $check_payable = CHECK_PAYABLE;
            $check_address = CHECK_ADDRESS;
            $check_email_confirm = CHECK_EMAIL_CONFIRM;
            $check_advance_credit = CHECK_ADVANCE_CREDIT;
            $check_tax_rate = CHECK_TAX_RATE;
            if (!is_numeric($check_tax_rate)) {
                $check_tax_rate = '';
            }
            $check_add_tax = CHECK_ADD_TAX;
        }
        ?>
<form method="post" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
		 <table border="0" cellpadding="5" cellspacing="2" style="border-style:groove" 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 JB_currency_option_list($check_currency);
        ?>
</select></font></td>
    </tr>

     <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="check_email_confirm" value="YES"  <?php 
        if ($check_email_confirm == 'YES') {
            echo " checked ";
        }
        ?>
 >Yes - Send confirmation email before payment is made<br>
	  <input type="radio" name="check_email_confirm" value="NO"  <?php 
        if ($check_email_confirm == 'NO') {
            echo " checked ";
        }
        ?>
 >No<br></font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Advance Credits</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
       <input type="radio" name="check_advance_credit" value="YES"  <?php 
        if ($check_advance_credit == 'YES') {
            echo " checked ";
        }
        ?>
 >Yes - credit the account with posting credits before payment is made<br>
	  <input type="radio" name="check_advance_credit" value="NO"  <?php 
        if ($check_advance_credit == 'NO') {
            echo " checked ";
        }
        ?>
 >No<br></font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Tax Rate</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="check_tax_rate" size="3" value="<?php 
        echo $check_tax_rate;
        ?>
"> (Optional... enter a decimal, eg 0.1<br>Use %INVOICE_TAX% on the bank email template which will display the tax amount)<br> <input type="checkbox" name="check_add_tax" value="Y" <?php 
        if ($check_add_tax == 'Y') {
            echo ' checked ';
        }
        ?>
 > Add the tax to the amount? Do not check if prices already include tax.</font></td>
    </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 jb_escape_html($_REQUEST['pay']);
        ?>
">
  <input type="hidden" name="action" value="save">
  
</form>

		<?php 
    }
Example #7
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'];
            $moneybookers_candidate_return_url = $_REQUEST['moneybookers_candidate_return_url'];
            $moneybookers_candidate_cancel_url = $_REQUEST['moneybookers_candidate_cancel_url'];
        } 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;
            $moneybookers_candidate_return_url = MONEYBOOKERS_CANDIDATE_RETURN_URL;
            $moneybookers_candidate_cancel_url = MONEYBOOKERS_CANDIDATE_CANCEL_URL;
        }
        $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"  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>
	 <option value="RU" <?php 
        if ($moneybookers_language == 'RU') {
            echo ' selected ';
        }
        ?>
>Russian</option>
	 <option value="GR" <?php 
        if ($moneybookers_language == 'GR') {
            echo ' selected ';
        }
        ?>
>Greek</option>
	 <option value="RO" <?php 
        if ($moneybookers_language == 'RO') {
            echo ' selected ';
        }
        ?>
>Romanian</option>
	 <option value="TR" <?php 
        if ($moneybookers_language == 'TR') {
            echo ' selected ';
        }
        ?>
>Turkish</option>
	 <option value="CN" <?php 
        if ($moneybookers_language == 'CN') {
            echo ' selected ';
        }
        ?>
>Chinese</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 
        JB_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>(Recommended: <b>http://<?php 
        echo $host . $http_url . "/payment/moneybookers.php";
        ?>
</b> or enter your email address.)</font></td>
    </tr>

	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Return URL (Employers)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="moneybookers_return_url" size="50" value="<?php 
        echo $moneybookers_return_url;
        ?>
"> I.e. 'Thank you page', (Recommended: <b>http://<?php 
        echo $host . $http_url . "/" . JB_EMPLOYER_FOLDER . "thanks.php?m=" . $this->className;
        ?>
</b> ) </font></td>
    </tr>
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Return URL (Candidates)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="moneybookers_candidate_return_url" size="50" value="<?php 
        echo $moneybookers_candidate_return_url;
        ?>
"> I.e. 'Thank you page', (Recommended: <b>http://<?php 
        echo $host . $http_url . "/" . JB_CANDIDATE_FOLDER . "thanks.php?m=" . $this->className;
        ?>
</b> ) </font></td>
    </tr>
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Cancel URL (Employers)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="moneybookers_cancel_url" size="50" value="<?php 
        echo $moneybookers_cancel_url;
        ?>
">  (Recommended: <b>http://<?php 
        echo $host . $http_url . "/" . JB_EMPLOYER_FOLDER;
        ?>
</b> ) </font></td>
    </tr>
	<tr>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">Moneybookers 
      Cancel URL (Candidate)</font></td>
      <td  bgcolor="#e6f2ea"><font face="Verdana" size="1">
      <input type="text" name="moneybookers_candidate_cancel_url" size="50" value="<?php 
        echo $moneybookers_candidate_cancel_url;
        ?>
">  (Recommended: <b>http://<?php 
        echo $host . $http_url . "/" . JB_CANDIDATE_FOLDER;
        ?>
</b> ) </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="33" 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 jb_escape_html($_REQUEST['pay']);
        ?>
">
  <input type="hidden" name="action" value="save">
  </form>

  <?php 
    }