本文整理汇总了PHP中nzshpcrt_form_field_list函数的典型用法代码示例。如果您正苦于以下问题:PHP nzshpcrt_form_field_list函数的具体用法?PHP nzshpcrt_form_field_list怎么用?PHP nzshpcrt_form_field_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了nzshpcrt_form_field_list函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: form_paypal_certified
function form_paypal_certified()
{
$select_currency[get_option('paypal_curcode')] = "selected='true'";
$output = "\n <tr>\n <td>\n PayPal API Username\n </td>\n <td>\n <input type='text' size='40' value='" . get_option('paypal_certified_apiuser') . "' name='paypal_certified_apiuser' />\n </td>\n </tr>\n <tr>\n <td>\n PayPal API Password\n </td>\n <td>\n <input type='text' size='40' value='" . get_option('paypal_certified_apipass') . "' name='paypal_certified_apipass' />\n </td>\n </tr>\n <tr>\n <td>\n\t PayPal API Signature\n </td>\n <td>\n <input type='text' size='70' value='" . get_option('paypal_certified_apisign') . "' name='paypal_certified_apisign' />\n </td>\n </tr>\n ";
$output .= "\n <tr>\n <td>\n PayPal Accepted Currency (e.g. USD, AUD)\n </td>\n <td>\n <select name='paypal_curcode'>\n <option " . $select_currency['USD'] . " value='USD'>U.S. Dollar</option>\n <option " . $select_currency['CAD'] . " value='CAD'>Canadian Dollar</option>\n <option " . $select_currency['AUD'] . " value='AUD'>Australian Dollar</option>\n <option " . $select_currency['EUR'] . " value='EUR'>Euro</option>\n <option " . $select_currency['GBP'] . " value='GBP'>Pound Sterling</option>\n <option " . $select_currency['JPY'] . " value='JPY'>Yen</option>\n <option " . $select_currency['NZD'] . " value='NZD'>New Zealand Dollar</option>\n <option " . $select_currency['CHF'] . " value='CHF'>Swiss Franc</option>\n <option " . $select_currency['HKD'] . " value='HKD'>Hong Kong Dollar</option>\n <option " . $select_currency['SGD'] . " value='SGD'>Singapore Dollar</option>\n <option " . $select_currency['SEK'] . " value='SEK'>Swedish Krona</option>\n <option " . $select_currency['HUF'] . " value='HUF'>Hungarian Forint</option>\n <option " . $select_currency['DKK'] . " value='DKK'>Danish Krone</option>\n <option " . $select_currency['PLN'] . " value='PLN'>Polish Zloty</option>\n <option " . $select_currency['NOK'] . " value='NOK'>Norwegian Krone</option>\n <option " . $select_currency['CZK'] . " value='CZK'>Czech Koruna</option>\n </select> \n </td>\n </tr>\n \n \n\t<tr class='update_gateway' >\n\t\t<td colspan='2'>\n\t\t\t<div class='submit'>\n\t\t\t<input type='submit' value='Update »' name='updateoption'/>\n\t\t</div>\n\t\t</td>\n\t</tr>\n\t\n <tr style='background: none;'>\n <td colspan='2'>\n\t\t\t\t<h4>Forms Sent to Gateway</h2>\n </td>\n\t\t</tr>\n \n <tr>\n <td>\n First Name Field\n </td>\n <td>\n <select name='paypal_form[first_name]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_first_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Last Name Field\n </td>\n <td>\n <select name='paypal_form[last_name]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_last_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Address Field\n </td>\n <td>\n <select name='paypal_form[address]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_address')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n City Field\n </td>\n <td>\n <select name='paypal_form[city]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_city')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n State Field\n </td>\n <td>\n <select name='paypal_form[state]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_state')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Postal code/Zip code Field\n </td>\n <td>\n <select name='paypal_form[post_code]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_post_code')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Country Field\n </td>\n <td>\n <select name='paypal_form[country]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_country')) . "\n </select>\n </td>\n </tr>\n";
return $output;
}
示例2: form_hsbc
function form_hsbc()
{
global $wpdb, $wpsc_gateways;
$hsbc_currency = get_option('hsbc_currency');
$currencies = array(036 => 'Australia, Dollars', 124 => 'Canada, Dollars', 208 => 'Denmark, Kroner', 978 => 'Euro Member Countries, Euro', 344 => 'Hong Kong, Dollars', 392 => 'Japan, Yen', 554 => 'New Zealand, Dollars', 578 => 'Norway, Krone', 702 => 'Singapore, Dollars', 752 => 'Sweden, Kronor', 756 => 'Switzerland, Francs', 826 => 'United Kingdom, Pounds', 840 => 'United States of America, Dollars');
$hsbc_currency_options = '';
foreach ($currencies as $k => $c) {
if ($k == get_option('hsbc_currency')) {
$hsbc_currency_options .= "<option selected='selected' value='{$k}'>{$c}</option>";
} else {
$hsbc_currency_options .= "<option value='{$k}'>{$c}</option>";
}
}
$output = "\n \t<tr>\n \t <td>HSBC username:</td>\n \t <td>\n \t \t<input type='text' size='40' value='" . get_option('hsbc_username') . "' name='hsbc_username' />\n \t </td>\n \t</tr>\n \t<tr>\n\t\t<td>Password:</td>\n\t\t<td>\n\t\t\t<input type='text' size='40' value='" . get_option('hsbc_password') . "' name='hsbc_password' />\n\t\t</td>\n \t</tr>\n \t<tr>\n\t\t<td>Customer ID:</td>\n\t\t<td>\n\t\t\t<input type='text' size='40' value='" . get_option('hsbc_id') . "' name='hsbc_id' />\n\t\t</td>\n \t</tr>\n \t<tr>\n\t\t<td>Store Currency:</td>\n\t\t<td>\n\t\t\t<select name='hsbc_currency'>\n\t\t\t\t" . $hsbc_currency_options . "\n\t\t\t</select>\n\t\t</td>\n \t</tr>";
$output .= "\n <tr class='update_gateway' >\n\t\t<td colspan='2'>\n\t\t\t<div class='submit'>\n\t\t\t<input type='submit' value='" . __('Update »', 'wpsc') . "' name='updateoption'/>\n\t\t</div>\n\t\t</td>\n\t</tr>\n\t\n\t<tr class='firstrowth'>\n\t\t<td style='border-bottom: medium none;' colspan='2'>\n\t\t\t<strong class='form_group'>Forms Sent to Gateway</strong>\n\t\t</td>\n\t</tr>\n \n <tr>\n <td>\n First Name Field\n </td>\n <td>\n <select name='hsbc_form[first_name]'>\n " . nzshpcrt_form_field_list(get_option('hsbc_form_first_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Last Name Field\n </td>\n <td>\n <select name='hsbc_form[last_name]'>\n " . nzshpcrt_form_field_list(get_option('hsbc_form_last_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Address Field\n </td>\n <td>\n <select name='hsbc_form[address]'>\n " . nzshpcrt_form_field_list(get_option('hsbc_form_address')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n City Field\n </td>\n <td>\n <select name='hsbc_form[city]'>\n " . nzshpcrt_form_field_list(get_option('hsbc_form_city')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n State Field\n </td>\n <td>\n <select name='hsbc_form[state]'>\n " . nzshpcrt_form_field_list(get_option('hsbc_form_state')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Postal code/Zip code Field\n </td>\n <td>\n <select name='hsbc_form[post_code]'>\n " . nzshpcrt_form_field_list(get_option('hsbc_form_post_code')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Country Field\n </td>\n <td>\n <select name='hsbc_form[country]'>\n " . nzshpcrt_form_field_list(get_option('hsbc_form_country')) . "\n </select>\n </td>\n </tr> ";
return $output;
}
示例3: form_chronopay
function form_chronopay()
{
$select_currency[get_option('chronopay_curcode')] = "selected='selected'";
$select_language[get_option('chronopay_language')] = "selected='selected'";
$chronopay_url = get_option('chronopay_url') == '' ? 'https://secure.chronopay.com/index_shop.cgi' : get_option('chronopay_url');
$chronopay_salt = get_option('chronopay_salt') == '' ? wp_generate_password(24, true, true) : get_option('chronopay_salt');
if (!isset($select_currency['USD'])) {
$select_currency['USD'] = '';
}
if (!isset($select_currency['EUR'])) {
$select_currency['EUR'] = '';
}
if (!isset($select_language['EN'])) {
$select_language['EN'] = '';
}
if (!isset($select_language['ES'])) {
$select_language['ES'] = '';
}
if (!isset($select_language['NL'])) {
$select_language['NL'] = '';
}
if (!isset($select_language['RU'])) {
$select_language['RU'] = '';
}
$output = "\n\t\t<tr>\n\t\t\t<td>" . __('Product ID', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<input type='text' size='40' value='" . get_option('chronopay_product_id') . "' name='chronopay_product_id' />\n\t\t\t\t<p class='description'>\n\t\t\t\t\t" . __('This should be set to your product ID that has been set up in the ChronoPay client interface. This is the ChronoPay product that all purchases will be processed against. The cost will be changed depending on the grand total of the users cart.', 'wp-e-commerce') . "\n\t\t\t\t</p>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Product Name', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<input type='text' size='40' value='" . get_option('chronopay_product_name') . "' name='chronopay_product_name' />\n\t\t\t\t<p class='description'>\n\t\t\t\t\t" . __('This is not important and is usually set to the name of the web shop. It is displayed on the ChronoPay secure processing page.', 'wp-e-commerce') . "\n\t\t\t\t</p>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Accepted Currency', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<select name='chronopay_curcode'>\n\t\t\t\t\t<option " . $select_currency['USD'] . " value='USD'>" . __('USD - U.S. Dollar', 'wp-e-commerce') . "</option>\n\t\t\t\t\t<option " . $select_currency['EUR'] . " value='EUR'>" . __('EUR - Euros', 'wp-e-commerce') . "</option>\n\t\t\t\t</select>\n\t\t\t\t<p class='description'>\n\t\t\t\t\t" . __('The currency code that ChronoPay will process the payment in. All products must be set up in this currency.', 'wp-e-commerce') . "\n\t\t\t\t</p>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Language', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<select name='chronopay_language'>\n\t\t\t\t\t<option " . $select_language['EN'] . " value='EN'>Engish</option>\n\t\t\t\t\t<option " . $select_language['ES'] . " value='ES'>Spanish</option>\n\t\t\t\t\t<option " . $select_language['NL'] . " value='NL'>Dutch</option>\n\t\t\t\t\t<option " . $select_language['RU'] . " value='RU'>Russian</option>\n\t\t\t\t</select>\n\t\t\t\t<p class='description'>\n\t\t\t\t\t" . __('The language that the ChronoPay secure processing page will be displayed in.', 'wp-e-commerce') . "\n\t\t\t\t</p>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Processing URL', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<input type='text' size='40' value='" . $chronopay_url . "' name='chronopay_url' />\n\t\t\t\t<p class='description'>\n\t\t\t\t\t" . __('URL of the secure payment page customers are sent to for payment processing. If unsure leave at default setting.', 'wp-e-commerce') . "\n\t\t\t\t</p>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Return URL', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<input type='text' size='40' value='" . get_option('transact_url') . "' name='chronopay_return_url' />\n\t\t\t\t<p class='description'>\n\t\t\t\t\t" . __('Enter this URL in the ChronoPay web client against the Product ID that you have set up. This page is the transaction details page that you have configured in Shop Options. It can not be edited on this page.', 'wp-e-commerce') . "\n\t\t\t\t</p>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Security Key', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<input type='text' size='40' value='" . $chronopay_salt . "' name='chronopay_salt' />\n\t\t\t\t<p class='description'>\n\t\t\t\t\t" . __('A bit of security... This is a keyword that is used to ensure transaction approval calls from ChronoPay to this application are real and were instigated from this server. Enter a unique word into this field.', 'wp-e-commerce') . "\n\t\t\t\t</p>\n\t\t</tr>\n\n\t\t<tr class='firstrowth'>\n\t\t\t<td style='border-bottom: medium none;' colspan='2'>\n\t\t\t\t<strong class='form_group'>" . __('Forms Sent to Gateway', 'wp-e-commerce') . "</strong>\n\t\t\t</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t\t<td>" . __('First Name Field', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<select name='chronopay_form[first_name]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('chronopay_form_first_name')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Last Name Field', 'wp-e-commerce') . "</td>\n\t\t\t<td><select name='chronopay_form[last_name]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('chronopay_form_last_name')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Address Field', 'wp-e-commerce') . "</td>\n\t\t\t<td><select name='chronopay_form[address]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('chronopay_form_address')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('City Field', 'wp-e-commerce') . "</td>\n\t\t\t<td><select name='chronopay_form[city]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('chronopay_form_city')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('State Field', 'wp-e-commerce') . "</td>\n\t\t\t<td><select name='chronopay_form[state]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('chronopay_form_state')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Postal / ZIP Code Field', 'wp-e-commerce') . "</td>\n\t\t\t<td><select name='chronopay_form[post_code]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('chronopay_form_post_code')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Country Field', 'wp-e-commerce') . "</td>\n\t\t\t<td><select name='chronopay_form[country]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('chronopay_form_country')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t <tr>\n <td colspan='2'>\n \t" . sprintf(__('For more help configuring Chronopay, read our documentation <a href="%s">here</a>', 'wp-e-commerce'), esc_url('https://docs.wpecommerce.org/documentation/chronopay/')) . "\n </td>\n </tr>";
return $output;
}
示例4: form_ideal
function form_ideal()
{
$languages = array('en_US' => __('English', 'wpsc_gold_cart'), 'nl_NL' => __('Dutch', 'wpsc_gold_cart'), 'fr_FR' => __('Français', 'wpsc_gold_cart'));
$currencies = array('EUR', 'USD', 'GBP');
$selected_language = get_option('ideal_language');
$selected_currency = get_option('ideal_currency');
ob_start();
?>
<tr>
<td>
<?php
_e('iDeal PSPID', 'wpsc_gold_cart');
?>
</td>
<td>
<input type='text' size='20' value='<?php
echo esc_attr(get_option('ideal_id'));
?>
' name='ideal_id' />
</td>
</tr>
<tr>
<td>
<?php
_e('iDeal Currency', 'wpsc_gold_cart');
?>
</td>
<td>
<select name='ideal_currency'>
<?php
foreach ($currencies as $currency) {
$selected = $currency == $selected_currency ? ' selected="selected"' : '';
echo "<option{$selected} value='{$currency}'>{$currency}</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>
<?php
_e('iDeal Language', 'wpsc_gold_cart');
?>
</td>
<td>
<select name='ideal_language'>
<?php
foreach ($languages as $code => $language) {
$selected = $language == $selected_language ? ' selected="selected"' : '';
echo "<option{$selected} value='{$code}'>{$language}</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td colspan="2"><h2><?php
_e('Forms Sent to Gateway', 'wpsc_gold_cart');
?>
</h2></td>
</tr>
<tr>
<td>
<?php
_e('First Name Field', 'wpsc_gold_cart');
?>
</td>
<td>
<select name='ideal_form[first_name]'>
<?php
echo nzshpcrt_form_field_list(get_option('ideal_form_first_name'));
?>
</select>
</td>
</tr>
<tr>
<td>
<?php
_e('Last Name Field', 'wpsc_gold_cart');
?>
</td>
<td>
<select name='ideal_form[last_name]'>
<?php
echo nzshpcrt_form_field_list(get_option('ideal_form_last_name'));
?>
</select>
</td>
</tr>
<tr>
<td>
<?php
_e('Email Field', 'wpsc_gold_cart');
?>
</td>
<td>
<select name='ideal_form[email]'>
<?php
echo nzshpcrt_form_field_list(get_option('ideal_form_email'));
?>
//.........这里部分代码省略.........
示例5: dibspayment_paywin_form
//.........这里部分代码省略.........
<span class="small description">
Order status before payment.
</span>
</td>
</tr><tr>
<td>Cancel payment status:</td>
<td><select name="dibspw_statusc">
' . get_statuses(get_option('dibspw_statusc')) . '
</select></td>
</tr>
<tr>
<td> </td>
<td>
<span class="small description">
Order status on cancellation.
</span>
</td>
</tr>';
$address_fields = '<tr class="update_gateway" >
<td colspan="2">
<div class="submit">
<input type="submit" value="' . __('Update »', 'wpsc') . '" name="updateoption" />
</div>
</td>
</tr>
<tr class="firstrowth">
<td style="border-bottom: medium none;" colspan="2">
<strong class="form_group">Billing Form Sent to Gateway</strong>
</td>
</tr>
<tr>
<td>First Name Field</td>
<td>
<select name="dibspw_form[first_name_b]">' . nzshpcrt_form_field_list(get_option('dibspw_form_first_name_b')) . '</select>
</td>
</tr>
<tr>
<td>Last Name Field</td>
<td>
<select name="dibspw_form[last_name_b]">' . nzshpcrt_form_field_list(get_option('dibspw_form_last_name_b')) . '</select>
</td>
</tr>
<tr>
<td>Address Field</td>
<td>
<select name="dibspw_form[address_b]">' . nzshpcrt_form_field_list(get_option('dibspw_form_address_b')) . '</select>
</td>
</tr>
<tr>
<td>City Field</td>
<td>
<select name="dibspw_form[city_b]">' . nzshpcrt_form_field_list(get_option('dibspw_form_city_b')) . '</select>
</td>
</tr>
<tr>
<td>State Field</td>
<td>
<select name="dibspw_form[state_b]">' . nzshpcrt_form_field_list(get_option('dibspw_form_state_b')) . '</select>
</td>
</tr>
<tr>
<td>Postal/Zip code Field</td>
<td>
<select name="dibspw_form[post_code_b]">' . nzshpcrt_form_field_list(get_option('dibspw_form_post_code_b')) . '</select>
</td>
</tr>
示例6: form_paypal_multiple
/**
* form_paypal_multiple function.
*
* Use this for now, but it will eventually be replaced with a better form API for gateways
* @access public
* @return void
*/
function form_paypal_multiple()
{
global $wpdb, $wpsc_gateways;
$account_type = get_option('paypal_multiple_url');
$account_types = array('https://www.paypal.com/cgi-bin/webscr' => __('Live Account', 'wp-e-commerce'), 'https://www.sandbox.paypal.com/cgi-bin/webscr' => __('Sandbox Account', 'wp-e-commerce'));
$output = "\n\t<tr>\n\t\t<td>" . __('Username:', 'wp-e-commerce') . "</td>\n\t\t<td>\n\t\t\t<input type='text' size='40' value='" . get_option('paypal_multiple_business') . "' name='paypal_multiple_business' />\n\t\t\t<p class='description'>\n\t\t\t\t" . __('This is your PayPal email address.', 'wp-e-commerce') . "\n\t\t\t</p>\n\t\t</td>\n\t</tr>\n\n\t<tr>\n\t\t<td>" . __('Account Type:', 'wp-e-commerce') . "</td>\n\t\t<td>\n\t\t\t<select name='paypal_multiple_url'>\n";
foreach ($account_types as $url => $label) {
$output .= "<option value='{$url}' " . selected($url, $account_type, false) . ">" . esc_html($label) . "</option>";
}
$output .= "\n\t\t\t</select>\n\t\t\t<p class='description'>\n\t\t\t\t" . __('If you have a PayPal developers Sandbox account, please use Sandbox mode. If you just have a standard PayPal account, then you will want to use Live mode.', 'wp-e-commerce') . "\n\t\t\t</p>\n\t\t</td>\n\t</tr>\n";
$paypal_ipn = get_option('paypal_ipn');
$paypal_ipn1 = "";
$paypal_ipn2 = "";
switch ($paypal_ipn) {
case 0:
$paypal_ipn2 = "checked='checked'";
break;
case 1:
$paypal_ipn1 = "checked='checked'";
break;
}
$paypal_ship = get_option('paypal_ship');
$paypal_ship1 = "";
$paypal_ship2 = "";
switch ($paypal_ship) {
case 1:
$paypal_ship1 = "checked='checked'";
break;
case 0:
default:
$paypal_ship2 = "checked='checked'";
break;
}
$address_override = get_option('address_override');
$address_override1 = "";
$address_override2 = "";
switch ($address_override) {
case 1:
$address_override1 = "checked='checked'";
break;
case 0:
default:
$address_override2 = "checked='checked'";
break;
}
$output .= "\n\t<tr>\n\t\t<td>" . __("IPN", 'wp-e-commerce') . ":</td>\n\t\t<td>\n\t\t\t<input type='radio' value='1' name='paypal_ipn' id='paypal_ipn1' " . $paypal_ipn1 . " /> <label for='paypal_ipn1'>" . __('Yes', 'wp-e-commerce') . "</label> \n\t\t\t<input type='radio' value='0' name='paypal_ipn' id='paypal_ipn2' " . $paypal_ipn2 . " /> <label for='paypal_ipn2'>" . __('No', 'wp-e-commerce') . "</label>\n\t\t\t<p class='description'>\n\t\t\t\t" . __("IPN (instant payment notification) will automatically update your sales logs to 'Accepted payment' when a customer's payment is successful. For IPN to work you also need to have IPN turned on in your PayPal settings. If it is not turned on, the sales will remain as 'Order Pending' status until manually changed. It is highly recommended using IPN, especially if you are selling digital products.", 'wp-e-commerce') . "\n\t\t\t</p>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td style='padding-bottom: 0px;'>" . __("Send shipping details", 'wp-e-commerce') . "</td>\n\t\t<td style='padding-bottom: 0px;'>\n\t\t\t<input type='radio' value='1' name='paypal_ship' id='paypal_ship1' " . $paypal_ship1 . " /> <label for='paypal_ship1'>" . __('Yes', 'wp-e-commerce') . "</label> \n\t\t\t<input type='radio' value='0' name='paypal_ship' id='paypal_ship2' " . $paypal_ship2 . " /> <label for='paypal_ship2'>" . __('No', 'wp-e-commerce') . "</label>\n\t\t\t<p class='description'>\n\t\t\t\t" . __("Note: If your checkout page does not have a shipping details section, or if you don't want to send PayPal shipping information, you should change the Send shipping details option to 'No'.", 'wp-e-commerce') . "\n\t\t\t</p>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td>\n\t\t\t" . __('Address Override:', 'wp-e-commerce') . "\n\t\t</td>\n\t\t<td>\n\t\t\t<input type='radio' value='1' name='address_override' id='address_override1' " . $address_override1 . " /> <label for='address_override1'>" . __('Yes', 'wp-e-commerce') . "</label> \n\t\t\t<input type='radio' value='0' name='address_override' id='address_override2' " . $address_override2 . " /> <label for='address_override2'>" . __('No', 'wp-e-commerce') . "</label>\n\t\t\t<p class='description'>\n\t\t\t\t" . __("This setting affects your PayPal purchase log. If your customers already have a PayPal account, PayPal will try to populate your PayPal Purchase Log with their PayPal address. This setting tries to replace the address in the PayPal purchase log with the address customers enter on your Checkout page.", 'wp-e-commerce') . "\n\t\t\t</p>\n\t\t</td>\n\t</tr>\n";
$store_currency_data = WPSC_Countries::get_currency_data(get_option('currency_type'), true);
$current_currency = get_option('paypal_curcode');
if ($current_currency == '' && in_array($store_currency_data['code'], $wpsc_gateways['wpsc_merchant_paypal_standard']['supported_currencies']['currency_list'])) {
update_option('paypal_curcode', $store_currency_data['code']);
$current_currency = $store_currency_data['code'];
}
if ($current_currency != $store_currency_data['code']) {
$output .= "\n\t\t<tr>\n\t\t\t<td>\n\t\t\t</td>\n\t\t\t<td><strong class='form_group'>" . __('Currency Converter', 'wp-e-commerce') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t" . sprintf(__('Your website uses <strong>%s</strong>. This currency is not supported by PayPal. Please select an accepted currency using the drop down menu below. Buyers on your site will still pay in your local currency. However, we will send the order through to PayPal using the currency you choose below.', 'wp-e-commerce'), $store_currency_data['currency']) . "\n\t\t\t</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t" . __('Select Currency:', 'wp-e-commerce') . "\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<select name='paypal_curcode'>\n";
$paypal_currency_list = array_map('esc_sql', $wpsc_gateways['wpsc_merchant_paypal_standard']['supported_currencies']['currency_list']);
$currency_list = WPSC_Countries::get_currencies(true);
foreach ($currency_list as $currency_item) {
$selected_currency = '';
if ($current_currency == $currency_item['code']) {
$selected_currency = "selected='selected'";
}
$output .= "<option " . $selected_currency . " value='{$currency_item['code']}'>{$currency_item['name']}</option>";
}
$output .= "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n";
}
if (get_option('paypal_form_first_name', false)) {
$output .= "\n\t\t<tr>\n\t\t\t<td colspan='2'>\n\t\t\t\t<strong class='form_group'>" . __('Forms Sent to Gateway', 'wp-e-commerce') . "</strong>\n\t\t\t</td>\n\t\t</tr>\n\n\t\t<tr>\n\t\t\t<td>" . __('First Name Field', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<select name='paypal_form[first_name]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('paypal_form_first_name')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>" . __('Last Name Field', 'wp-e-commerce') . "</td>\n\t\t\t<td>\n\t\t\t\t<select name='paypal_form[last_name]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('paypal_form_last_name')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t" . __('Address Field', 'wp-e-commerce') . "\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<select name='paypal_form[address]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('paypal_form_address')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t" . __('City Field', 'wp-e-commerce') . "\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<select name='paypal_form[city]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('paypal_form_city')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t" . __('State Field', 'wp-e-commerce') . "\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<select name='paypal_form[state]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('paypal_form_state')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t" . __('Postal / ZIP Code Field', 'wp-e-commerce') . "\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<select name='paypal_form[post_code]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('paypal_form_post_code')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t" . __('Country Field', 'wp-e-commerce') . "\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<select name='paypal_form[country]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('paypal_form_country')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan='2'>\n\t\t\t\t<p class='description'>\n\t\t\t\t" . sprintf(__("For more help configuring PayPal Standard, please read our documentation <a href='%s'>here</a>", 'wp-e-commerce'), esc_url('http://docs.wpecommerce.org/documentation/paypal-payments-standard/')) . "\n\t\t\t\t</p>\n\t\t\t</td>\n\t\t</tr>\n";
}
return $output;
}
示例7: nzshpcrt_form_field_list
</tr>
<tr>
<td>Country Field</td>
<td>
<select name='eway_form[country]'>
<?php echo nzshpcrt_form_field_list(get_option('eway_form_country')); ?>
</select>
</td>
</tr>
<tr>
<td>Email Field</td>
<td>
<select name='eway_form[email]'>
<?php echo nzshpcrt_form_field_list(get_option('eway_form_email')); ?>
</select>
</td>
</tr>
<script>
(function($) {
/**
* check whether both the sandbox (test) mode and Stored Payments are selected,
* show warning message if they are
*/
function setVisibility() {
var useTest = ($("input[name='eway_test']:checked").val() === "1"),
useBeagle = ($("input[name='eway_beagle']:checked").val() === "1"),
useStored = ($("input[name='eway_stored']:checked").val() === "1");
示例8: form_tco
function form_tco()
{
$select_currency[get_option('tco_curcode')] = "selected='selected'";
$select_language[get_option('tco_language')] = "selected='selected'";
$tco_debug = get_option('tco_debug');
$tco_debug1 = "";
$tco_debug2 = "";
switch ($tco_debug) {
case 0:
$tco_debug2 = "checked ='checked'";
break;
case 1:
$tco_debug1 = "checked ='checked'";
break;
}
$tco_direct = get_option('tco_direct');
$tco_direct1 = "";
$tco_direct2 = "";
switch ($tco_direct) {
case 0:
$tco_direct2 = "checked ='checked'";
break;
case 1:
$tco_direct1 = "checked ='checked'";
break;
}
if (!isset($select_currency['USD'])) {
$select_currency['USD'] = '';
}
if (!isset($select_currency['EUR'])) {
$select_currency['EUR'] = '';
}
if (!isset($select_language['en'])) {
$select_language['en'] = '';
}
if (!isset($select_language['es_la'])) {
$select_language['es_la'] = '';
}
if (!isset($select_language['nl'])) {
$select_language['nl'] = '';
}
if (!isset($select_language['zh'])) {
$select_language['zh'] = '';
}
if (!isset($select_language['da'])) {
$select_language['da'] = '';
}
if (!isset($select_language['fr'])) {
$select_language['fr'] = '';
}
if (!isset($select_language['gr'])) {
$select_language['gr'] = '';
}
if (!isset($select_language['el'])) {
$select_language['el'] = '';
}
if (!isset($select_language['it'])) {
$select_language['it'] = '';
}
if (!isset($select_language['jp'])) {
$select_language['jp'] = '';
}
if (!isset($select_language['no'])) {
$select_language['no'] = '';
}
if (!isset($select_language['pt'])) {
$select_language['pt'] = '';
}
if (!isset($select_language['es_ib'])) {
$select_language['es_ib'] = '';
}
if (!isset($select_language['sv'])) {
$select_language['sv'] = '';
}
$output = "\n\t\t<tr>\n\t\t\t<td>2Checkout Account Number</td>\n\t\t\t<td><input type='text' size='40' value='" . get_option('tco_seller_id') . "' name='tco_seller_id' /></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> </td>\n\t\t\t<td><small>2Checkout Account Number</small></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Secret Word</td>\n\t\t\t<td><input type='text' size='40' value='" . get_option('tco_secret_word') . "' name='tco_secret_word' /></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> </td>\n\t\t\t<td><small>Must me the same value you setup on the 2Checkout Site Management page.</small></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Language</td>\n\t\t\t<td><select name='tco_language'>\n\t\t\t\t\t<option " . $select_language['en'] . " value='en'>Engish</option>\n\t\t\t\t\t<option " . $select_language['es_la'] . " value='es_la'>Spanish</option>\n\t\t\t\t\t<option " . $select_language['nl'] . " value='nl'>Dutch</option>\n\t\t\t\t\t<option " . $select_language['zh'] . " value='zh'>Chinese</option>\n\t\t\t\t\t<option " . $select_language['da'] . " value='da'>Danish</option>\n\t\t\t\t\t<option " . $select_language['fr'] . " value='fr'>French</option>\n\t\t\t\t\t<option " . $select_language['gr'] . " value='gr'>German</option>\n\t\t\t\t\t<option " . $select_language['el'] . " value='el'>Greek</option>\n\t\t\t\t\t<option " . $select_language['it'] . " value='it'>Italian</option>\n\t\t\t\t\t<option " . $select_language['jp'] . " value='jp'>Japanese</option>\n\t\t\t\t\t<option " . $select_language['no'] . " value='no'>Norwegian</option>\n\t\t\t\t\t<option " . $select_language['pt'] . " value='pt'>Portuguese</option>\n\t\t\t\t\t<option " . $select_language['es_ib'] . " value='es_ib'>Spanish(Europe)</option>\n\t\t\t\t\t<option " . $select_language['sv'] . " value='sv'>Swedish</option>\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> </td>\n\t\t\t<td><small>The language that the 2Checkout purchase routine will be displayed in.</small></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Return URL</td>\n\t\t\t<td><input type='text' size='40' value='" . get_option('transact_url') . "' name='tco_return_url' /></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> </td>\n\t\t\t<td><small>If you are using a demo account, enter this URL in the Approved URL field on your 2Checkout Site Management page and append &tco_callback=true. (Example: http://yoursite.com?page=6&tco_callback=true) This page is the transaction details page that you have configured in Shop Options. It can not be edited on this page.</small></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Inline Checkout</td>\n\t\t\t<td>\n\t\t\t\t<input type='radio' value='1' name='tco_direct' id='tco_direct1' " . $tco_direct1 . " /> <label for='tco_direct1'>" . __('Yes', 'wpsc') . "</label> \n\t\t\t\t<input type='radio' value='0' name='tco_direct' id='tco_direct2' " . $tco_direct2 . " /> <label for='tco_direct2'>" . __('No', 'wpsc') . "</label>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Debug Mode</td>\n\t\t\t<td>\n\t\t\t\t<input type='radio' value='1' name='tco_debug' id='tco_debug1' " . $tco_debug1 . " /> <label for='tco_debug1'>" . __('Yes', 'wpsc') . "</label> \n\t\t\t\t<input type='radio' value='0' name='tco_debug' id='tco_debug2' " . $tco_debug2 . " /> <label for='tco_debug2'>" . __('No', 'wpsc') . "</label>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> </td>\n\t\t\t<td><small>Debug mode is used to write HTTP communications between the 2Checkout server and your host to a log file. This should only be activated for testing!</small></td>\n\t\t</tr>\n\n\n\t<tr class='update_gateway' >\n\t\t<td colspan='2'>\n\t\t\t<div class='submit'>\n\t\t\t<input type='submit' value='" . __('Update »', 'wpsc') . "' name='updateoption'/>\n\t\t</div>\n\t\t</td>\n\t</tr>\n\n\t<tr class='firstrowth'>\n\t\t<td style='border-bottom: medium none;' colspan='2'>\n\t\t\t<strong class='form_group'>Forms Sent to Gateway</strong>\n\t\t</td>\n\t</tr>\n\n\t\t<tr>\n\t\t\t<td>First Name Field</td>\n\t\t\t<td><select name='tco_form[first_name]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('tco_form_first_name')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Last Name Field</td>\n\t\t\t<td><select name='tco_form[last_name]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('tco_form_last_name')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Address Field</td>\n\t\t\t<td><select name='tco_form[address]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('tco_form_address')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>City Field</td>\n\t\t\t<td><select name='tco_form[city]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('tco_form_city')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>State Field</td>\n\t\t\t<td><select name='tco_form[state]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('tco_form_state')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Postal code</td>\n\t\t\t<td><select name='tco_form[post_code]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('tco_form_post_code')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Country Field</td>\n\t\t\t<td><select name='tco_form[country]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('tco_form_country')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>Phone Field</td>\n\t\t\t<td><select name='tco_form[phone]'>\n\t\t\t\t" . nzshpcrt_form_field_list(get_option('tco_form_phone')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t <tr>\n <td colspan='2'>For more help configuring 2Checkout, contact techsupport@2co.com.</a></td>\n </tr>";
return $output;
}
示例9: form_eway
function form_eway()
{
$eway_cvn = get_option('eway_cvn');
$eway_cvn1 = $eway_cvn2 = '';
if ($eway_cvn == '1') {
$eway_cvn1 = "checked='checked'";
} else {
$eway_cvn2 = "checked='checked'";
}
$eway_test = get_option('eway_test');
$eway_test1 = $eway_test2 = '';
if ($eway_test == '1') {
$eway_test1 = "checked='checked'";
} else {
$eway_test2 = "checked='checked'";
}
$output = "\n\t<tr>\n\t\t<td>\n\t\t\teWay Customer id\n\t\t</td>\n\t\t<td>\n\t\t\t<input type='text' size='10' value='" . get_option('ewayCustomerID_id') . "' name='ewayCustomerID_id' />\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td>\n\t\t\tUse Testing enviroment\n\t\t</td>\n\t\t<td>\n\t\t\t<input type='radio' value='1' name='eway_test' id='eway_test1' " . $eway_test1 . " /> <label for='eway_test1'>" . TXT_WPSC_YES . "</label> \n\t\t\t<input type='radio' value='0' name='eway_test' id='eway_test2' " . $eway_test2 . " /> <label for='eway_test2'>" . TXT_WPSC_NO . "</label>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td>\n\t\t\tUse CVN Security\n\t\t</td>\n\t\t<td>\n\t\t\t<input type='radio' value='1' name='eway_cvn' id='eway_cvn1' " . $eway_cvn1 . " /> <label for='eway_cvn1'>" . TXT_WPSC_YES . "</label> \n\t\t\t<input type='radio' value='0' name='eway_cvn' id='eway_cvn2' " . $eway_cvn2 . " /> <label for='eway_cvn2'>" . TXT_WPSC_NO . "</label>\n\t\t</td>\n\t</tr>";
$output .= "\n\t\t<tr>\n\t\t\t<td>First Name Field</td>\n\t\t\t<td>\n\t\t\t\t<select name='eway_form[first_name]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('eway_form_first_name')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> Last Name Field </td>\n\t\t\t<td>\n\t\t\t\t<select name='eway_form[last_name]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('eway_form_last_name')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> Address Field </td>\n\t\t\t<td>\n\t\t\t\t<select name='eway_form[address]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('eway_form_address')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> City Field </td>\n\t\t\t<td>\n\t\t\t\t<select name='eway_form[city]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('eway_form_city')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> State Field </td>\n\t\t\t<td>\n\t\t\t\t<select name='eway_form[state]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('eway_form_state')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> Postal code/Zip code Field </td>\n\t\t\t<td>\n\t\t\t\t<select name='eway_form[post_code]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('eway_form_post_code')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td> Country Field </td>\n\t\t\t<td>\n\t\t\t\t<select name='eway_form[country]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('eway_form_country')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t<td> Email Field </td>\n\t\t\t<td>\n\t\t\t\t<select name='eway_form[email]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('eway_form_email')) . "\n\t\t\t\t</select>\n\t\t\t</td>\n\t\t</tr>";
return $output;
}
示例10: form_paypal_payflow
//.........这里部分代码省略.........
<tr>
<td>
<?php
_e('PayPal Accepted Currency (e.g. USD, AUD)', 'wpsc_gold_cart');
?>
</td>
<td>
<select name='paypal_payflow_curcode'>
<?php
foreach ($currencies as $currency => $title) {
$selected = $chosen_currency == $currency ? ' selected="selected"' : '';
echo "<option{$selected} value='{$currency}'>" . esc_html($title) . "</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td colspan="2"><h2><?php
_e('Forms Sent to Gateway', 'wpsc_gold_cart');
?>
</h2></td>
</tr>
<tr>
<td>
<?php
_e('First Name Field', 'wpsc_gold_cart');
?>
</td>
<td>
<select name='paypal_form[first_name]'>
<?php
echo nzshpcrt_form_field_list(get_option('paypal_form_first_name'));
?>
</select>
</td>
</tr>
<tr>
<td>
<?php
_e('Last Name Field', 'wpsc_gold_cart');
?>
</td>
<td>
<select name='paypal_form[last_name]'>
<?php
echo nzshpcrt_form_field_list(get_option('paypal_form_last_name'));
?>
</select>
</td>
</tr>
<tr>
<td>
<?php
_e('Address Field', 'wpsc_gold_cart');
?>
</td>
<td>
<select name='paypal_form[address]'>
<?php
echo nzshpcrt_form_field_list(get_option('paypal_form_address'));
?>
</select>
</td>
</tr>
示例11: form_paypal_certified
function form_paypal_certified()
{
global $wpdb, $wpsc_gateways;
$select_currency[get_option('paypal_curcode')] = "selected='selected'";
if (get_option('paypal_certified_server_type') == 'sandbox') {
$serverType1 = "checked='checked'";
} elseif (get_option('paypal_certified_server_type') == 'production') {
$serverType2 = "checked='checked'";
}
$output = "\n <tr>\n <td>API Username\n </td>\n <td>\n <input type='text' size='40' value='" . get_option('paypal_certified_apiuser') . "' name='paypal_certified_apiuser' />\n </td>\n </tr>\n <tr>\n <td>API Password\n </td>\n <td>\n <input type='text' size='40' value='" . get_option('paypal_certified_apipass') . "' name='paypal_certified_apipass' />\n </td>\n </tr>\n <tr>\n <td>API Signature\n </td>\n <td>\n <input type='text' size='70' value='" . get_option('paypal_certified_apisign') . "' name='paypal_certified_apisign' />\n </td>\n </tr>\n <tr>\n <td>Server Type\n </td>\n <td>\n\t\t<input {$serverType1} type='radio' name='paypal_certified_server_type' value='sandbox' /> Sandbox (For testing)\n\t\t<input {$serverType2} type='radio' name='paypal_certified_server_type' value='production' /> Production\n\t </td>\n </tr>\n ";
$store_currency_code = $wpdb->get_var("SELECT `code` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id` IN ('" . absint(get_option('currency_type')) . "')");
$current_currency = get_option('paypal_curcode');
if ($current_currency != $store_currency_code) {
$output .= "\n <tr>\n <td colspan='2'><strong class='form_group'>" . __('Currency Converter') . "</td>\n </tr>\n <tr>\n\t\t<td colspan='2'>" . __('If your website uses a currency not accepted by Paypal, select an accepted currency using the drop down menu bellow. Buyers on your site will still pay in your local currency however we will send the order through to Paypal using currency you choose below.') . "</td>\n\t\t</tr>\n";
$output .= " <tr>\n";
$output .= " <td>Convert to </td>\n";
$output .= " <td>\n";
$output .= " <select name='paypal_curcode'>\n";
$paypal_currency_list = $wpsc_gateways['paypal_multiple']['supported_currencies']['currency_list'];
$currency_list = $wpdb->get_results("SELECT DISTINCT `code`, `currency` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `code` IN ('" . implode("','", $paypal_currency_list) . "')", ARRAY_A);
foreach ($currency_list as $currency_item) {
$selected_currency = '';
if ($current_currency == $currency_item['code']) {
$selected_currency = "selected='selected'";
}
$output .= "<option " . $selected_currency . " value='{$currency_item['code']}'>{$currency_item['currency']}</option>";
}
$output .= " </select> \n";
$output .= " </td>\n";
$output .= " </tr>\n";
}
$output .= "\n\t<tr class='update_gateway' >\n\t\t<td colspan='2'>\n\t\t\t<div class='submit'>\n\t\t\t<input type='submit' value='Update »' name='updateoption'/>\n\t\t</div>\n\t\t</td>\n\t</tr>\n\t\n <tr style='background: none;'>\n <td colspan='2'>\n\t\t\t\t<h4>Forms Sent to Gateway</h4>\n </td>\n\t\t</tr>\n \n <tr>\n <td>\n First Name Field\n </td>\n <td>\n <select name='paypal_form[first_name]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_first_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Last Name Field\n </td>\n <td>\n <select name='paypal_form[last_name]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_last_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Address Field\n </td>\n <td>\n <select name='paypal_form[address]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_address')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n City Field\n </td>\n <td>\n <select name='paypal_form[city]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_city')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n State Field\n </td>\n <td>\n <select name='paypal_form[state]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_state')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Postal code/Zip code Field\n </td>\n <td>\n <select name='paypal_form[post_code]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_post_code')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Country Field\n </td>\n <td>\n <select name='paypal_form[country]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_country')) . "\n </select>\n </td>\n </tr>\n";
return $output;
}
示例12: form_paypal_multiple
/**
* form_paypal_multiple function.
*
* Use this for now, but it will eventually be replaced with a better form API for gateways
* @access public
* @return void
*/
function form_paypal_multiple()
{
global $wpdb, $wpsc_gateways;
$account_type = get_option('paypal_multiple_url');
$account_types = array('https://www.paypal.com/cgi-bin/webscr' => __('Live Account', 'wpsc'), 'https://www.sandbox.paypal.com/cgi-bin/webscr' => __('Sandbox Account', 'wpsc'));
$output = "\n <tr>\n <td>" . __('Username:', 'wpsc') . "\n </td>\n <td>\n <input type='text' size='40' value='" . get_option('paypal_multiple_business') . "' name='paypal_multiple_business' />\n </td>\n </tr>\n <tr>\n \t<td></td>\n \t<td colspan='1'>\n \t<span class='wpscsmall description'>\n \t" . __('This is your PayPal email address.', 'wpsc') . "\n \t</span>\n \t</td>\n </tr>\n\n <tr>\n <td>" . __('Account Type:', 'wpsc') . "\n </td>\n <td>\n\t\t<select name='paypal_multiple_url'>";
foreach ($account_types as $url => $label) {
$output .= "<option value='{$url}' " . selected($url, $account_type, false) . ">" . esc_html($label) . "</option>";
}
$output .= "</select>\n\t </td>\n </tr>\n <tr>\n\t <td colspan='1'>\n\t </td>\n\t <td>\n\t\t<span class='wpscsmall description'>\n \t\t\t" . __('If you have a PayPal developers Sandbox account please use Sandbox mode, if you just have a standard PayPal account then you will want to use Live mode.', 'wpsc') . "\n \t\t</span>\n \t </td>\n </tr>";
$paypal_ipn = get_option('paypal_ipn');
$paypal_ipn1 = "";
$paypal_ipn2 = "";
switch ($paypal_ipn) {
case 0:
$paypal_ipn2 = "checked ='checked'";
break;
case 1:
$paypal_ipn1 = "checked ='checked'";
break;
}
$paypal_ship = get_option('paypal_ship');
$paypal_ship1 = "";
$paypal_ship2 = "";
switch ($paypal_ship) {
case 1:
$paypal_ship1 = "checked='checked'";
break;
case 0:
default:
$paypal_ship2 = "checked='checked'";
break;
}
$address_override = get_option('address_override');
$address_override1 = "";
$address_override2 = "";
switch ($address_override) {
case 1:
$address_override1 = "checked ='checked'";
break;
case 0:
default:
$address_override2 = "checked ='checked'";
break;
}
$output .= "\n <tr>\n <td>IPN :\n </td>\n <td>\n <input type='radio' value='1' name='paypal_ipn' id='paypal_ipn1' " . $paypal_ipn1 . " /> <label for='paypal_ipn1'>" . __('Yes', 'wpsc') . "</label> \n <input type='radio' value='0' name='paypal_ipn' id='paypal_ipn2' " . $paypal_ipn2 . " /> <label for='paypal_ipn2'>" . __('No', 'wpsc') . "</label>\n </td>\n </tr>\n <tr>\n \t<td colspan='2'>\n \t<span class='wpscsmall description'>\n \tIPN (instant payment notification ) will automatically update your sales logs to 'Accepted payment' when a customers payment is successful. For IPN to work you also need to have IPN turned on in your Paypal settings. If it is not turned on, the sales sill remain as 'Order Pending' status until manually changed. It is highly recommend using IPN, especially if you are selling digital products.\n \t</span>\n \t</td>\n </tr>\n <tr>\n <td style='padding-bottom: 0px;'>Send shipping details:\n </td>\n <td style='padding-bottom: 0px;'>\n <input type='radio' value='1' name='paypal_ship' id='paypal_ship1' " . $paypal_ship1 . " /> <label for='paypal_ship1'>" . __('Yes', 'wpsc') . "</label> \n <input type='radio' value='0' name='paypal_ship' id='paypal_ship2' " . $paypal_ship2 . " /> <label for='paypal_ship2'>" . __('No', 'wpsc') . "</label>\n\n \t</td>\n </tr>\n <tr>\n \t<td colspan='2'>\n \t<span class='wpscsmall description'>\n \tNote: If your checkout page does not have a shipping details section, or if you don't want to send Paypal shipping information. You should change Send shipping details option to No.</span>\n \t</td>\n </tr>\n <tr>\n <td style='padding-bottom: 0px;'>\n Address Override:\n </td>\n <td style='padding-bottom: 0px;'>\n <input type='radio' value='1' name='address_override' id='address_override1' " . $address_override1 . " /> <label for='address_override1'>" . __('Yes', 'wpsc') . "</label> \n <input type='radio' value='0' name='address_override' id='address_override2' " . $address_override2 . " /> <label for='address_override2'>" . __('No', 'wpsc') . "</label>\n </td>\n </tr>\n <tr>\n \t<td colspan='2'>\n \t<span class='wpscsmall description'>\n \tThis setting affects your PayPal purchase log. If your customers already have a PayPal account PayPal will try to populate your PayPal Purchase Log with their PayPal address. This setting tries to replace the address in the PayPal purchase log with the Address customers enter on your Checkout page.\n \t</span>\n \t</td>\n </tr>\n";
$store_currency_data = $wpdb->get_row($wpdb->prepare("SELECT `code`, `currency` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id` IN (%d)", get_option('currency_type')), ARRAY_A);
$current_currency = get_option('paypal_curcode');
if ($current_currency == '' && in_array($store_currency_data['code'], $wpsc_gateways['wpsc_merchant_paypal_standard']['supported_currencies']['currency_list'])) {
update_option('paypal_curcode', $store_currency_data['code']);
$current_currency = $store_currency_data['code'];
}
if ($current_currency != $store_currency_data['code']) {
$output .= "\n <tr>\n <td colspan='2'><strong class='form_group'>" . __('Currency Converter', 'wpsc') . "</td>\n </tr>\n <tr>\n\t\t<td colspan='2'>" . sprintf(__('Your website uses <strong>%s</strong>. This currency is not supported by PayPal, please select a currency using the drop down menu below. Buyers on your site will still pay in your local currency however we will send the order through to Paypal using the currency you choose below.', 'wpsc'), $store_currency_data['currency']) . "</td>\n\t\t</tr>\n";
$output .= " <tr>\n";
$output .= " <td>Select Currency:</td>\n";
$output .= " <td>\n";
$output .= " <select name='paypal_curcode'>\n";
$paypal_currency_list = array_map('esc_sql', $wpsc_gateways['wpsc_merchant_paypal_standard']['supported_currencies']['currency_list']);
$currency_list = $wpdb->get_results("SELECT DISTINCT `code`, `currency` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `code` IN ('" . implode("','", $paypal_currency_list) . "')", ARRAY_A);
foreach ($currency_list as $currency_item) {
$selected_currency = '';
if ($current_currency == $currency_item['code']) {
$selected_currency = "selected='selected'";
}
$output .= "<option " . $selected_currency . " value='{$currency_item['code']}'>{$currency_item['currency']}</option>";
}
$output .= " </select> \n";
$output .= " </td>\n";
$output .= " </tr>\n";
}
$output .= "\n <tr class='update_gateway' >\n\t\t<td colspan='2'>\n\t\t\t<div class='submit'>\n\t\t\t<input type='submit' value='" . __('Update »', 'wpsc') . "' name='updateoption'/>\n\t\t</div>\n\t\t</td>\n\t</tr>\n\n\t<tr class='firstrowth'>\n\t\t<td style='border-bottom: medium none;' colspan='2'>\n\t\t\t<strong class='form_group'>Forms Sent to Gateway</strong>\n\t\t</td>\n\t</tr>\n\n <tr>\n <td>\n First Name Field\n </td>\n <td>\n <select name='paypal_form[first_name]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_first_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Last Name Field\n </td>\n <td>\n <select name='paypal_form[last_name]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_last_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Address Field\n </td>\n <td>\n <select name='paypal_form[address]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_address')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n City Field\n </td>\n <td>\n <select name='paypal_form[city]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_city')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n State Field\n </td>\n <td>\n <select name='paypal_form[state]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_state')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Postal code/Zip code Field\n </td>\n <td>\n <select name='paypal_form[post_code]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_post_code')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Country Field\n </td>\n <td>\n <select name='paypal_form[country]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_country')) . "\n </select>\n </td>\n </tr>\n <tr>\n \t<td colspan='2'>\n \t<span class='wpscsmall description'>\n \t For more help configuring Paypal Standard, please read our documentation <a href='http://docs.getshopped.org/wiki/documentation/payments/paypal-payments-standard'>here </a> \t</span>\n \t</td>\n </tr>\n\n ";
return $output;
}
示例13: form_bluepay
function form_bluepay()
{
$output = "\n <tr>\n <td>\n Bluepay Login\n </td>\n <td colspan='2'>\n <input type='text' size='40' value='" . get_option('bluepay_login') . "' name='bluepay_login' />\n </td>\n </tr>\n <tr>\n <td>\n Bluepay Password\n </td>\n <td colspan='2'>\n <input type='text' size='40' value='" . get_option('bluepay_password') . "' name='bluepay_password' />\n </td>\n </tr>\n <tr>\n <td>\n Test Mode\n </td>\n <td colspan='2'>\n";
if (get_option('bluepay_testmode') == 1) {
$output .= "<input type='checkbox' size='40' value='1' checked='true' name='bluepay_testmode' />\n";
} else {
$output .= "<input type='checkbox' size='40' value='1' name='bluepay_testmode' />\n";
}
$output .= " </td>\n </tr>\n <tr>\n <td colspan='3'>\n \n </td>\n </tr>\n <tr>\n <td>\n First Name Field\n </td>\n <td>\n <select name='bluepay_form[first_name]'>\n " . nzshpcrt_form_field_list(get_option('bluepay_form_first_name')) . "\n </select>\n </td>\n <td rowspan='8' class='bluepay_info_box'>\n <div class='bluepay_info_box'>\n <table>\n <tr>\n <td>\n For bluepay.net you must create these form fields in the <a href='admin.php?page=" . WPSC_DIR_NAME . "/form_fields.php'>Checkout Form Fields</a> page.\n </td>\n </tr>\n </table>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n Last Name Field\n </td>\n <td>\n <select name='bluepay_form[last_name]'>\n " . nzshpcrt_form_field_list(get_option('bluepay_form_last_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Address Field\n </td>\n <td>\n <select name='bluepay_form[address]'>\n " . nzshpcrt_form_field_list(get_option('bluepay_form_address')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n City Field\n </td>\n <td>\n <select name='bluepay_form[city]'>\n " . nzshpcrt_form_field_list(get_option('bluepay_form_city')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n State Field\n </td>\n <td>\n <select name='bluepay_form[state]'>\n " . nzshpcrt_form_field_list(get_option('bluepay_form_state')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Postal code/Zip code Field\n </td>\n <td>\n <select name='bluepay_form[post_code]'>\n " . nzshpcrt_form_field_list(get_option('bluepay_form_post_code')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Email Field\n </td>\n <td>\n <select name='bluepay_form[email]'>\n " . nzshpcrt_form_field_list(get_option('bluepay_form_email')) . "\n </select>\n </td>\n </tr>\n ";
return $output;
}
示例14: form_paypal_multiple
function form_paypal_multiple()
{
$select_currency[get_option('paypal_curcode')] = "selected='true'";
$output = "\n <tr>\n <td>\n PayPal Username\n </td>\n <td>\n <input type='text' size='40' value='" . get_option('paypal_multiple_business') . "' name='paypal_multiple_business' />\n </td>\n </tr>\n <tr>\n <td>\n PayPal Url\n </td>\n <td>\n <input type='text' size='40' value='" . get_option('paypal_multiple_url') . "' name='paypal_multiple_url' /> <br />\n <strong>Note:</strong>The URL to use for the paypal gateway is: https://www.paypal.com/cgi-bin/webscr\n </td>\n </tr>\n ";
$paypal_ipn = get_option('paypal_ipn');
$paypal_ipn1 = "";
$paypal_ipn2 = "";
switch ($paypal_ipn) {
case 0:
$paypal_ipn2 = "checked ='true'";
break;
case 1:
$paypal_ipn1 = "checked ='true'";
break;
}
$output .= "\n <tr>\n <td>\n PayPal IPN\n </td>\n <td>\n <input type='radio' value='1' name='paypal_ipn' id='paypal_ipn1' " . $paypal_ipn1 . " /> <label for='paypal_ipn1'>" . TXT_WPSC_YES . "</label> \n <input type='radio' value='0' name='paypal_ipn' id='paypal_ipn2' " . $paypal_ipn2 . " /> <label for='paypal_ipn2'>" . TXT_WPSC_NO . "</label>\n </td>\n </tr>\n <tr>\n <td>\n PayPal Accepted Currency (e.g. USD, AUD)\n </td>\n <td>\n <select name='paypal_curcode'>\n <option " . $select_currency['USD'] . " value='USD'>U.S. Dollar</option>\n <option " . $select_currency['CAD'] . " value='CAD'>Canadian Dollar</option>\n <option " . $select_currency['AUD'] . " value='AUD'>Australian Dollar</option>\n <option " . $select_currency['EUR'] . " value='EUR'>Euro</option>\n <option " . $select_currency['GBP'] . " value='GBP'>Pound Sterling</option>\n <option " . $select_currency['JPY'] . " value='JPY'>Yen</option>\n <option " . $select_currency['NZD'] . " value='NZD'>New Zealand Dollar</option>\n <option " . $select_currency['CHF'] . " value='CHF'>Swiss Franc</option>\n <option " . $select_currency['HKD'] . " value='HKD'>Hong Kong Dollar</option>\n <option " . $select_currency['SGD'] . " value='SGD'>Singapore Dollar</option>\n <option " . $select_currency['SEK'] . " value='SEK'>Swedish Krona</option>\n <option " . $select_currency['HUF'] . " value='HUF'>Hungarian Forint</option>\n <option " . $select_currency['DKK'] . " value='DKK'>Danish Krone</option>\n <option " . $select_currency['PLN'] . " value='PLN'>Polish Zloty</option>\n <option " . $select_currency['NOK'] . " value='NOK'>Norwegian Krone</option>\n <option " . $select_currency['CZK'] . " value='CZK'>Czech Koruna</option>\n </select> \n </td>\n </tr>";
$address_override = get_option('address_override');
$address_override1 = "";
$address_override2 = "";
switch ($address_override) {
case 1:
$address_override1 = "checked ='true'";
break;
case 0:
default:
$address_override2 = "checked ='true'";
break;
}
$output .= "\n <tr>\n <td>\n Override the users address stored on paypal:\n </td>\n <td>\n <input type='radio' value='1' name='address_override' id='address_override1' " . $address_override1 . " /> <label for='address_override1'>" . TXT_WPSC_YES . "</label> \n <input type='radio' value='0' name='address_override' id='address_override2' " . $address_override2 . " /> <label for='address_override2'>" . TXT_WPSC_NO . "</label>\n </td>\n </tr>\n \n \n <tr class='update_gateway' >\n\t\t<td colspan='2'>\n\t\t\t<div class='submit'>\n\t\t\t<input type='submit' value='Update »' name='updateoption'/>\n\t\t</div>\n\t\t</td>\n\t</tr>\n\t\n\t<tr class='firstrowth'>\n\t\t<td style='border-bottom: medium none;' colspan='2'>\n\t\t\t<strong class='form_group'>Forms Sent to Gateway</strong>\n\t\t</td>\n\t</tr>\n \n <tr>\n <td>\n First Name Field\n </td>\n <td>\n <select name='paypal_form[first_name]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_first_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Last Name Field\n </td>\n <td>\n <select name='paypal_form[last_name]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_last_name')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Address Field\n </td>\n <td>\n <select name='paypal_form[address]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_address')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n City Field\n </td>\n <td>\n <select name='paypal_form[city]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_city')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n State Field\n </td>\n <td>\n <select name='paypal_form[state]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_state')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Postal code/Zip code Field\n </td>\n <td>\n <select name='paypal_form[post_code]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_post_code')) . "\n </select>\n </td>\n </tr>\n <tr>\n <td>\n Country Field\n </td>\n <td>\n <select name='paypal_form[country]'>\n " . nzshpcrt_form_field_list(get_option('paypal_form_country')) . "\n </select>\n </td>\n </tr> ";
return $output;
}
示例15: form_sagepay
function form_sagepay()
{
global $wpdb;
$servertype = get_option('protx_server_type');
$servertype1 = "";
$servertype2 = "";
$servertype3 = "";
if ($servertype == 'test') {
$servertype1 = 'selected="selected"';
} elseif ($servertype == 'sim') {
$servertype2 = 'selected="selected"';
} elseif ($servertype == 'live') {
$servertype3 = 'selected="selected"';
}
$query = "SELECT DISTINCT code FROM `" . WPSC_TABLE_CURRENCY_LIST . "` ORDER BY code";
$result = $wpdb->get_results($query, ARRAY_A);
$output = "<table>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tProtx Vendor name:\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<input type='text' size='40' value='" . get_option('protx_name') . "' name='protx_name' />\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tProtx VPS Protocol:\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t<input type='text' size='20' value='" . get_option('protx_protocol') . "' name='protx_protocol' /> e.g. 2.22\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\tProtx Encryption Key:\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<input type='text' size='20' value='" . get_option('protx_enc_key') . "' name='protx_enc_key' />\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tServer Type:\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<select name='protx_server_type'>\n\t\t\t\t\t\t<option {$servertype1} value='test'>Test Server</option>\n\t\t\t\t\t\t<option {$servertype2} value='sim'>Simulator Server</option>\n\t\t\t\t\t\t<option {$servertype3} value='live'>Live Server</option>\n\t\t\t\t\t</select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tSelect your currency\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<select name='protx_cur'>";
$current_currency = get_option('protx_cur');
//exit($current_currency);
foreach ((array) $result as $currency) {
if ($currency['code'] == $current_currency) {
$selected = "selected = 'true'";
} else {
$selected = "";
}
$output .= "<option {$selected} value='" . $currency['code'] . "'>" . $currency['code'] . "</option>";
}
$output .= "</select>\n\t\t\t\t</td>\n\t\t\t</tr>";
$output .= "<tr><td colspan='2'><h2>Forms Sent to Gateway</h2></td></tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tFirst Name Field\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<select name='protx_form[first_name]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('protx_form_first_name')) . "\n\t\t\t\t\t</select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tLast Name Field\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<select name='protx_form[last_name]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('protx_form_last_name')) . "\n\t\t\t\t\t</select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tAddress Field\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<select name='protx_form[address]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('protx_form_address')) . "\n\t\t\t\t\t</select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tCity Field\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<select name='protx_form[city]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('protx_form_city')) . "\n\t\t\t\t\t</select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tState Field\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<select name='protx_form[state]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('protx_form_state')) . "\n\t\t\t\t\t</select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tPostal code/Zip code Field\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<select name='protx_form[post_code]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('protx_form_post_code')) . "\n\t\t\t\t\t</select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tCountry Field\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<select name='protx_form[country]'>\n\t\t\t\t\t" . nzshpcrt_form_field_list(get_option('protx_form_country')) . "\n\t\t\t\t\t</select>\n\t\t\t\t</td>\n\t\t\t</tr>";
return $output;
}