当前位置: 首页>>代码示例>>PHP>>正文


PHP module_config::print_settings_form方法代码示例

本文整理汇总了PHP中module_config::print_settings_form方法的典型用法代码示例。如果您正苦于以下问题:PHP module_config::print_settings_form方法的具体用法?PHP module_config::print_settings_form怎么用?PHP module_config::print_settings_form使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在module_config的用法示例。


在下文中一共展示了module_config::print_settings_form方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: hook_handle_callback

        <?php 
    }
}
hook_handle_callback('layout_column_half', 1);
print_heading('Send a test email');
?>
    <form action="" method="post">
        <input type="hidden" name="_email" value="true">
        <p>Please enter your email address:</p>
        <p><input type="text" name="email" value="<?php 
echo htmlspecialchars($demo_email);
?>
" size="40"></p>
        <p>If sending an email does not work, please change your SMTP details on the right and try again.</p>
        <input type="submit" name="send" value="Click here to send a test email" class="submit_button btn btn-success">
        <p><em>(the subject of this email will be "Test Email from <?php 
echo module_config::c('admin_system_name');
?>
")</em></p>
    </form>
<?php 
hook_handle_callback('layout_column_half', 2);
?>

    <?php 
print_heading('Email Settings (SMTP)');
module_config::print_settings_form($settings);
?>

<?php 
hook_handle_callback('layout_column_half', 'end');
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:email_settings.php

示例2: redirect_browser

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('edit', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Authorize Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_authorize_enabled', 'default' => 1, 'type' => 'checkbox', 'description' => 'Enable Authorize Checkout'), array('key' => 'payment_method_authorize_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_authorize_sandbox', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Sandbox Mode'), array('key' => 'payment_method_authorize_api_login_id', 'default' => '', 'type' => 'text', 'description' => 'Your Authorize API Login ID'), array('key' => 'payment_method_authorize_transaction_key', 'default' => '', 'type' => 'text', 'description' => 'Your Authorize Transaction Key')));
?>

<?php 
print_heading('Authorize setup instructions:');
?>

<p>Authorize.net only supports payments in USD. Please make sure all your invoices are in USD to use Authorize.net</p>
<p>Please signup for a Authorize account here: https://authorize.net - please enter your authorize API Keys above.</p>
<p>For testing select "Visa" and enter the test credit card number 4111111111111111, any expiration date (MMYY) in the future (such as "1120"), and hit "Submit".</p>
<p><strong>Please use SSL on your website (eg: https://) in order to use Authorize.net</strong></p>
<p>To change how the Authorize credit card form looks please go to Settings > Templates and look for 'authorize_credit_card_form'.</p>
<p>If you get "cannot connect" errors when making a payment please try going to Settings > Advanced and changing 'payment_method_authorize_ssl_verify' from 1 to 0</p>
开发者ID:sgh1986915,项目名称:php-crm,代码行数:30,代码来源:authorize_settings.php

示例3: redirect_browser

    redirect_browser(_BASE_HREF);
}
/*
define('MSP_TEST_API',     true); // seperate testaccount needed
define('MSP_ACCOUNT_ID',   '1001001');
define('MSP_SITE_ID',      '60');
define('MSP_SITE_CODE',    '123');

define('BASE_URL', ($_SERVER['SERVER_PORT'] == 443 ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . dirname($_SERVER['SCRIPT_NAME']) . "/");
*/
print_heading('Multisafepay Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_multisafepay_enabled', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Multisafepay Checkout'), array('key' => 'payment_method_multisafepay_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_multisafepay_account', 'default' => '', 'type' => 'text', 'description' => 'Your Multisafepay Account ID'), array('key' => 'payment_method_multisafepay_site_id', 'default' => '', 'type' => 'text', 'description' => 'Your Multisafepay Site ID'), array('key' => 'payment_method_multisafepay_side_code', 'default' => '', 'type' => 'text', 'description' => 'Your Multisafepay Site Code'), array('key' => 'payment_method_multisafepay_sandbox', 'default' => 0, 'type' => 'checkbox', 'description' => 'Use Multisafepay Testing Mode (for testing payments)')));
?>

<?php 
print_heading('Multisafepay setup instructions:');
?>

<p><strong>Note:</strong> Multisafepay only accepts EUR currency</p>

<p>Please signup for a Multisafepay account here: http://www.multisafepay.com - please enter your multisafepay account and site details above.</p>

<p>The notification url is:</p> <pre><?php 
echo full_link(_EXTERNAL_TUNNEL . '?m=paymethod_multisafepay&h=ipn&method=multisafepay&type=initial');
?>
</pre>
开发者ID:sgh1986915,项目名称:php-crm,代码行数:30,代码来源:multisafepay_settings.php

示例4: print_heading

print_heading(array('title' => 'Customer Signup Form', 'type' => 'h2', 'main' => true));
$roles = array();
foreach (module_security::get_roles() as $r) {
    $roles[$r['security_role_id']] = $r['name'];
}
ob_start();
$invoice_templates = array();
$invoice_templates['customer_signup_thank_you_page'] = 1;
$invoice_templates['customer_signup_email_welcome'] = 1;
$invoice_templates['customer_signup_email_admin'] = 1;
$invoice_templates['customer_signup_form_wrapper'] = 1;
foreach ($invoice_templates as $template_key => $tf) {
    module_template::link_open_popup($template_key);
}
$template_html = ob_get_clean();
module_config::print_settings_form(array(array('key' => 'customer_signup_allowed', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('Not allowed'), 1 => _l('Allowed')), 'description' => 'Enable customer signup form'), array('key' => 'customer_signup_always_new', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('Allow Update of Existing Customer Entries'), 1 => _l('Always Create New Customer Entries')), 'description' => 'Matching email address action', 'help' => 'If a customer fills in this form and the email address already exists in the system then it can update the existing entry instead of creating a new customer entry. If updating existing entry then the new customer name will be applied, which could differ from existing company name. Set this option to "Always Create New Customer Entry" if you do not want a customer to be able to update their existing details.'), array('key' => 'customer_signup_password', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('No Password, Admin creates password for each new account (most secure option)'), 1 => _l('Allow Primary User to pick a Password on Signup')), 'description' => 'User Passwords', 'help' => 'If a user has a password they can login to the system and see all their details.'), array('key' => 'customer_signup_role', 'default' => 0, 'type' => 'select', 'options' => $roles, 'description' => 'User Role', 'help' => 'Assign this User Role to all newly created contacts.'), array('key' => 'captcha_on_signup_form', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('No'), 1 => _l('Yes')), 'description' => 'Use CAPTCHA on signup form'), array('key' => 'customer_signup_redirect', 'default' => '', 'type' => 'text', 'description' => 'Redirect URL', 'help' => 'If no redirect URL is set then the standard thank you message will be displayed. This can be changed in Settings > Templates > customer_signup_thank_you_page'), array('key' => 'customer_signup_admin_email', 'default' => module_config::c('admin_email_address'), 'type' => 'text', 'description' => 'What email address will signup notifications be sent to'), array('key' => 'customer_signup_contact_count', 'default' => 1, 'type' => 'text', 'description' => 'Number of customer contacts'), array('key' => 'customer_signup_password', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('No'), 1 => _l('Yes')), 'description' => 'Ask for Password'), array('key' => 'customer_signup_on_login', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('No'), 1 => _l('Yes')), 'description' => 'Show Signup Link on Login Page'), array('key' => 'customer_signup_on_login_url', 'default' => '', 'type' => 'text', 'description' => 'Signup Page URL', 'help' => 'If you have placed the signup form on a page of your website, put that website URL here (e.g. http://www.yourwebsite.com/signup.html)'), array('key' => 'customer_signup_subscription_start', 'default' => '', 'type' => 'text', 'description' => 'Subscription Start Date Modification', 'help' => 'How much to modify the subscription start date by (if they choose a Subscription during signup). Examples are: +5 days or +2 weeks'), array('type' => 'html', 'description' => 'Templates', 'html' => $template_html)));
$form_html = module_customer::get_customer_signup_form_html();
?>



<table width="100%">
    <tbody>
    <tr>
        <td valign="top" width="50%">
            <?php 
echo $form_html;
?>
        </td>
        <td valign="top">
            <p>
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:customer_signup.php

示例5: redirect_browser

<?php

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('view', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Settings');
module_config::print_settings_form(array(array('key' => 'payment_method_other_enabled', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Payment Method'), array('key' => 'payment_method_other_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_other_label', 'default' => 'Other', 'type' => 'text', 'description' => 'Name this payment method')));
print_heading('Templates');
echo module_template::link_open_popup('paymethod_other');
echo module_template::link_open_popup('paymethod_other_details');
开发者ID:sgh1986915,项目名称:php-crm,代码行数:19,代码来源:other_settings.php

示例6: set_message

<?php 
if (isset($_REQUEST['test_google'])) {
    $result = module_paymethod_google::verify_merchant_account();
    if ($result === true) {
        set_message('Google checkout details correct!');
    } else {
        set_error('Failed, response from google: ' . htmlspecialchars($result));
    }
    redirect_browser($_SERVER['REQUEST_URI']);
}
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_google_enabled', 'default' => 1, 'type' => 'checkbox', 'description' => 'Enable Google Checkout'), array('key' => 'payment_method_google_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_google_pmid', 'default' => '', 'type' => 'text', 'description' => 'Your Merchant ID'), array('key' => 'payment_method_google_pmkey', 'default' => '', 'type' => 'text', 'description' => 'Your Merchant KEY'), array('key' => 'payment_method_google_pmid_s', 'default' => '', 'type' => 'text', 'description' => 'Your SANDBOX Merchant ID (optional)'), array('key' => 'payment_method_google_pmkey_s', 'default' => '', 'type' => 'text', 'description' => 'Your SANDBOX Merchant KEY (optional)'), array('key' => 'payment_method_google_sandbox', 'default' => 0, 'type' => 'checkbox', 'description' => 'Use Google Sandbox Mode (for testing payments)')));
?>

<?php 
print_heading('Google Checkout/Wallet setup instructions:');
?>

<p>Please signup for a Google payments account here: <a href="http://checkout.google.com/sell/signup">http://checkout.google.com/sell/signup</a> then find your  merchant ID and KEY on the Settings > Integration page. Enter those values on this page. Click the test button to check your settings are correct.</p>

<p><strong>Important:</strong> If you would like the system to <em>automatically</em> record a payment against an invoice then you need to set your Notification Callback API url by following the instructions below (if you do not want to do this then you will have to mark payments against invoices manually each time a customer pays)</p>
<ol>
<li><a href="http://checkout.google.com/sell">Sign in</a> to Google Checkout.</li>
<li>Click the <b>Settings</b> tab.</li>
<li>Click <b>Integration</b>.</li>
<li>Enter this callback URL in the 'API callback URL' box: <strong><?php 
echo module_paymethod_google::link_callback();
开发者ID:sgh1986915,项目名称:php-crm,代码行数:30,代码来源:google_settings.php

示例7: redirect_browser

 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('edit', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('PayPal Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_paypal_enabled', 'default' => 1, 'type' => 'checkbox', 'description' => 'Enable PayPal Checkout'), array('key' => 'payment_method_paypal_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_paypal_label', 'default' => 'PayPal', 'type' => 'text', 'description' => 'Payment Method Label', 'help' => 'This will display on invoices as the name of this payment method.'), array('key' => 'payment_method_paypal_email', 'default' => _ERROR_EMAIL, 'type' => 'text', 'description' => 'Your PayPal registered email address'), array('key' => 'payment_method_paypal_sandbox', 'default' => 0, 'type' => 'checkbox', 'description' => 'Use PayPal Sandbox Mode (for testing payments)'), array('key' => 'payment_method_paypal_subscriptions', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable PayPal recurring payments', 'help' => 'Be sure to set the paypal IPN url to ' . full_link(_EXTERNAL_TUNNEL . '?m=paymethod_paypal&h=ipn&method=paypal') . ' in your paypal account settings.'), array('key' => 'payment_method_paypal_currency', 'default' => '', 'type' => 'text', 'description' => 'Which Currencies To Support', 'help' => 'A comma separated list of currencies to support, eg: AUD,USD Leave this blank to support all currencies. If an invoice is in an unsupported currency then this payment method will not display.'), array('key' => 'payment_method_paypal_limit_type', 'default' => 'above', 'type' => 'select', 'options' => array('above' => _l('Greater Than...'), 'below' => _l('Less Than...')), 'description' => 'Only show when invoice value is ...', 'help' => 'Only show the paypal option if the dollar value is greater than or less than the below value.'), array('key' => 'payment_method_paypal_limit_value', 'default' => '0', 'type' => 'text', 'description' => '... this amount', 'help' => 'What value to restrict paypal payments to'), array('key' => 'payment_method_paypal_charge_percent', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as %)', 'help' => 'Example: 2.9 do not enter %% sign'), array('key' => 'payment_method_paypal_charge_amount', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as $)', 'help' => 'Example: 0.30 do not enter $ sign'), array('key' => 'invoice_fee_calculate_reverse', 'default' => 0, 'type' => 'checkbox', 'description' => 'Calculate as provider fee', 'help' => 'If this is enabled then it will work out the fee in reverse. Enable this option in order to receive the correct amount from PayPal if you have set 2.9%% and 0.30 above.'), array('key' => 'payment_method_paypal_charge_description', 'default' => 'PayPal Fee', 'type' => 'text', 'description' => 'Additional Charge (Description)', 'help' => 'This will show on the Invoice when paying via PayPal')));
?>

<?php 
print_heading('PayPal setup instructions:');
?>

<p>Please signup for a PayPal business account here: http://www.paypal.com - please enter your paypal email address above.</p>

<?php 
if (module_config::c('payment_method_paypal_subscriptions', 0)) {
    ?>

<?php 
    print_heading('PayPal subscription setup instructions:');
    ?>
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:paypal_settings.php

示例8: redirect_browser

<?php

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('view', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
$c = array();
$customers = module_customer::get_customers();
foreach ($customers as $customer) {
    $c[$customer['customer_id']] = $customer['customer_name'];
}
$pop3imap_accounts = array();
foreach (module_ticket::get_accounts() as $account) {
    $pop3imap_accounts[$account['ticket_account_id']] = $account['name'];
}
module_config::print_settings_form(array('heading' => array('title' => 'Ticket Settings', 'type' => 'h2', 'main' => true), 'settings' => array(array('key' => 'ticket_show_summary', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show unread ticket count in the menu item.'), array('key' => 'ticket_recaptcha', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show recaptcha on ticket form'), array('key' => 'ticket_show_position', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show ticket position (eg: 1st of 10)'), array('key' => 'ticket_allow_priority', 'default' => 1, 'type' => 'checkbox', 'description' => 'Allow priority paid support'), array('key' => 'ticket_priority_cost', 'default' => 10, 'type' => 'currency', 'description' => 'Cost of a priority support ticket'), array('key' => 'faq_ticket_show_product_selection', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show FAQ product selection', 'help' => 'If you have the FAQ module installed this will show a drop down list of products and commoon support questions before the user creates a support ticket.'), array('key' => 'ticket_allow_extra_data', 'default' => 1, 'type' => 'checkbox', 'description' => 'Allow for extra input boxes on tickets', 'help' => 'For FTP usernames and passwords, or whatever else you need'), array('key' => 'ticket_from_creators_email', 'default' => 0, 'type' => 'checkbox', 'description' => 'Customer replies go directly to staff', 'help' => 'Enable this option and any customer email replies will go back to the staff member who sent the support ticket (rather than into the system). Recommended unticking this option.'), array('key' => 'ticket_admin_email_alert', 'default' => '', 'type' => 'text', 'description' => 'Send notifications of new tickets to this address.'), array('key' => 'ticket_admin_alert_subject', 'default' => 'Support Ticket Updated: #%s', 'type' => 'text', 'description' => 'The subject to have in ticket notification emails.'), array('key' => 'ticket_public_header', 'default' => 'Submit a support ticket', 'type' => 'text', 'description' => 'Message to display at the top of the embed ticket form.'), array('key' => 'ticket_public_welcome', 'default' => '', 'type' => 'textarea', 'description' => 'Text to display at the top of the embed ticket form.', 'help' => 'You can use text or html code'), array('key' => 'ticket_default_customer_id', 'default' => 1, 'type' => 'select', 'options' => $c, 'description' => 'Which customer to assign tickets to from the public Ticket Embed Form', 'help' => 'Only use this default customer if the customer cannot be found based on the ticket users email address.'), array('key' => 'ticket_type_id_default', 'default' => 0, 'type' => 'select', 'options' => module_ticket::get_types(), 'array_id' => 'name', 'description' => 'What default ticket type for tickets'), array('key' => 'ticket_default_account_id', 'default' => 0, 'type' => 'select', 'options' => $pop3imap_accounts, 'description' => 'Which default POP3/IMAP account to use'), array('key' => 'ticket_public_new_redirect', 'default' => '', 'type' => 'text', 'description' => 'Public New Ticket Redirect URL', 'help' => 'When a user submits a new public ticket, take them to this URL. Leave blank to use default. Use full URL with http://'), array('key' => 'ticket_public_reply_redirect', 'default' => '', 'type' => 'text', 'description' => 'Public Reply Ticket Redirect URL', 'help' => 'When a user submits a reply to the public ticket form, take them to this URL. Leave blank to use default. Use full URL with http://'))));
开发者ID:sgh1986915,项目名称:php-crm,代码行数:24,代码来源:ticket_settings_basic.php

示例9: parse_ini_file

 *  License: Please check CodeCanyon.net for license details.
 *  More license clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/
 */
// Get the infos about the plugin from the plugin.info file
$info = parse_ini_file(dirname(__FILE__) . '/../plugin.info');
$plugin_full_name = $info['fullname'];
$plugin_name = $info['modulename'];
$plugin_id = $info['id'];
$plugin_ver = $info['version'];
// Check permissions
if (!module_webnpro_menu_editor::can_i('edit', 'webNpro Menu Editor Settings', 'Config') && module_security::get_loggedin_id() != '1') {
    redirect_browser(_BASE_HREF);
}
// Include the update class
require_once dirname(__FILE__) . '/../update/updateclass.php';
// Get license infos
$update = new update();
$license = $update->get_license_info();
unset($update);
// Header buttons
$header_buttons[] = array('url' => _BASE_HREF . '?m[0]=' . $plugin_name . '&p[0]=documentation', 'title' => _l('Read Documentation'));
// Settings
$settings = array(array('key' => $plugin_name . '_envato_license_number', 'default' => '', 'type' => 'text', 'description' => _l('Plugin License key'), 'size' => '100', 'help' => _l('Please copy your license key here. They called it purchase code on the envato marketplaces. For more information about your license keys location check <a href="http://webnpro.com/images/envato_purchase_code_help.png" target="_blank">this image (...CLICK HERE...)</a>.')));
// Print the heading with the header buttons
print_heading(array('type' => 'h2', 'main' => true, 'title' => _l($plugin_full_name) . ' v' . $plugin_ver, 'button' => $header_buttons));
// Print the setting form
module_config::print_settings_form(array('settings' => $settings));
// Print the license informations
echo '<br/>';
echo $license;
echo '<br>';
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:settings.php

示例10: redirect_browser

<?php

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('edit', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Coinbase Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_coinbase_enabled', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Coinbase Checkout'), array('key' => 'payment_method_coinbase_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_coinbase_label', 'default' => 'Bitcoin', 'type' => 'text', 'description' => 'Payment Method Label', 'help' => 'This will display on invoices as the name of this payment method.'), array('key' => 'payment_method_coinbase_api_key', 'default' => '', 'type' => 'text', 'description' => 'Your Coinbase API Key', 'help' => 'From https://coinbase.com/settings/api '), array('key' => 'payment_method_coinbase_secret_key', 'default' => '', 'type' => 'text', 'description' => 'Your coinbase Secret Key ', 'help' => 'From https://coinbase.com/settings/api '), array('key' => 'payment_method_coinbase_subscriptions', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Coinbase Subscriptions', 'help' => 'Coinbase only supports subscriptions that are: daily, weekly, every_two_weeks, monthly, quarterly, and yearly. So your invoice/subscription renewals will have to match these in order to work.'), array('key' => 'payment_method_coinbase_currency', 'default' => '', 'type' => 'text', 'description' => 'Which Currencies To Support', 'help' => 'A comma separated list of currencies to support, eg: AUD,USD Leave this blank to support all currencies. If an invoice is in an unsupported currency then this payment method will not display.'), array('key' => 'payment_method_coinbase_limit_type', 'default' => 'above', 'type' => 'select', 'options' => array('above' => _l('Greater Than...'), 'below' => _l('Less Than...')), 'description' => 'Only show when invoice value is ...', 'help' => 'Only show the bitcoin option if the dollar value is greater than or less than the below value.'), array('key' => 'payment_method_coinbase_limit_value', 'default' => '0', 'type' => 'text', 'description' => '... this amount', 'help' => 'What value to restrict bitcoin payments to'), array('key' => 'payment_method_coinbase_charge_percent', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as %)', 'help' => 'Example: 1.5 do not enter %% sign'), array('key' => 'payment_method_coinbase_charge_amount', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as $)', 'help' => 'Example: 1.5 do not enter $ sign'), array('key' => 'payment_method_coinbase_charge_description', 'default' => 'Coinbase Fee', 'type' => 'text', 'description' => 'Additional Charge (Description)', 'help' => 'This will show on the Invoice when paying via coinbase')));
?>

<?php 
print_heading('Coinbase setup instructions:');
?>

<p>Please create an account from http://coinbase.com - please note you will require a USA bank account in order to be verified and receive funds. More details on their website.</p>
开发者ID:sgh1986915,项目名称:php-crm,代码行数:27,代码来源:coinbase_settings.php

示例11: print_heading

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (isset($_REQUEST['social_twitter_id']) && !empty($_REQUEST['social_twitter_id'])) {
    $social_twitter_id = (int) $_REQUEST['social_twitter_id'];
    $social_twitter = module_social_twitter::get($social_twitter_id);
    include 'twitter_account_edit.php';
} else {
    if (_DEMO_MODE) {
        ?>
		<p>Demo Mode Notice: <strong>This is a public demo. Please only use TEST accounts here as others will see them.</strong></p>
		<?php 
    }
    print_heading('Twitter Settings');
    ?>
	<p>Please go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and create an app. Enter your API Keys below: <?php 
    _h('Signin with Twitter at https://apps.twitter.com/ and click the Create New App button. Enter a Name, Description, Website and in the Callback URL just put your website address. Once created, go to Permissions and choose "Read, write, and direct messages" then go to API Keys and copy your API Key and API Secret from here into the below form.');
    ?>
</p>
	<?php 
    module_config::print_settings_form(array(array('key' => 'social_twitter_api_key', 'default' => '', 'type' => 'text', 'description' => 'App API Key ', 'help' => 'The API key obtained from creating your app on dev.twitter.com '), array('key' => 'social_twitter_api_secret', 'default' => '', 'type' => 'text', 'description' => 'App API Secret ', 'help' => 'The API secret obtained from creating your app on dev.twitter.com ')));
    // show twitter app settings here.
    include 'twitter_account_list.php';
}
开发者ID:sgh1986915,项目名称:php-crm,代码行数:30,代码来源:twitter_settings.php

示例12: redirect_browser

<?php

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('view', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Help Settings');
module_config::print_settings_form(array(array('key' => 'help_only_for_admin', 'default' => 1, 'type' => 'checkbox', 'description' => 'Only show help menu for Super Administrator.', 'help' => 'By default only the Super Administrator (first user created) can see the help documentation. If this option is disabled you will still need to give each User Role access to "view help" for them to see the "help" menu correctly. Please note that the help documentation may contain branding.')));
开发者ID:sgh1986915,项目名称:php-crm,代码行数:16,代码来源:help_settings.php

示例13: redirect_browser

 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('view', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('FAQ Settings');
$c = array();
$customers = module_customer::get_customers();
foreach ($customers as $customer) {
    $c[$customer['customer_id']] = $customer['customer_name'];
}
module_config::print_settings_form(array(array('key' => 'faq_ticket_show_product_selection', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show product selection on ticket submit form.')));
?>

<?php 
print_heading('FAQ Embed');
?>
<p>
    <?php 
_e('Place this in an iframe on your website, or as a link on your website, and people can view FAQ tickets.');
?>
</p>
<p><a href="<?php 
echo module_faq::link_open_public(-1);
?>
?show_search=1&show_header=1&show_product=1" target="_blank"><?php 
echo module_faq::link_open_public(-1);
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:faq_settings_basic.php

示例14: htmlspecialchars

    echo htmlspecialchars($subscription['customer_count']);
    ?>
 </td>
            <td> <?php 
    echo htmlspecialchars($subscription['website_count']);
    ?>
 </td>
            <td><?php 
    echo $subscription['automatic_renew'] ? _l('Yes') : _l('No');
    ?>
</td>
            <td><?php 
    echo $subscription['automatic_email'] ? _l('Yes') : _l('No');
    ?>
</td>
        </tr>
	<?php 
}
?>

  </tbody>
</table>
<?php 
echo $pagination['links'];
?>

</form>

<?php 
module_config::print_settings_form(array('title' => 'Subscription Options', 'settings' => array(array('key' => 'subscription_invoice_due_date', 'default' => 0, 'type' => 'text', 'description' => 'Invoice Due Date Days', 'help' => 'How many days after the invoice is created should the due date be set?'))));
开发者ID:sgh1986915,项目名称:php-crm,代码行数:30,代码来源:subscription_admin_list.php

示例15: redirect_browser

 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('edit', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Stripe Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_stripe_enabled', 'default' => 1, 'type' => 'checkbox', 'description' => 'Enable Stripe Checkout'), array('key' => 'payment_method_stripe_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_stripe_label', 'default' => 'Stripe', 'type' => 'text', 'description' => 'Payment Method Label', 'help' => 'This will display on invoices as the name of this payment method.'), array('key' => 'payment_method_stripe_secret_key', 'default' => '', 'type' => 'text', 'description' => 'Your Stripe Secret Key (Test or Live)'), array('key' => 'payment_method_stripe_publishable_key', 'default' => '', 'type' => 'text', 'description' => 'Your Stripe Publishable Key (Test or Live)'), array('key' => 'payment_method_stripe_subscriptions', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Stripe Subscriptions (set web hook below!)'), array('key' => 'payment_method_stripe_currency', 'default' => '', 'type' => 'text', 'description' => 'Which Currencies To Support', 'help' => 'A comma separated list of currencies to support, eg: AUD,USD Leave this blank to support all currencies. If an invoice is in an unsupported currency then this payment method will not display.'), array('key' => 'payment_method_stripe_limit_type', 'default' => 'above', 'type' => 'select', 'options' => array('above' => _l('Greater Than...'), 'below' => _l('Less Than...')), 'description' => 'Only show when invoice value is ...', 'help' => 'Only show the stripe option if the dollar value is greater than or less than the below value.'), array('key' => 'payment_method_stripe_limit_value', 'default' => '0', 'type' => 'text', 'description' => '... this amount', 'help' => 'What value to restrict stripe payments to'), array('key' => 'payment_method_stripe_charge_percent', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as %)', 'help' => 'Example: 1.5 do not enter %% sign'), array('key' => 'payment_method_stripe_charge_amount', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as $)', 'help' => 'Example: 1.5 do not enter $ sign'), array('key' => 'payment_method_stripe_charge_description', 'default' => 'Stripe Fee', 'type' => 'text', 'description' => 'Additional Charge (Description)', 'help' => 'This will show on the Invoice when paying via stripe')));
?>

<?php 
print_heading('Stripe setup instructions:');
?>

<p>Stripe only supports payments in USD and CAD </p>
<p>Please signup for a Strip account here: http://www.stripe.com - please enter your stripe API Keys above.</p>
<p>If you are using the TEST api keys then you can use the credit card number 4242424242424242 with any valid expiry date of CVC</p>
<?php 
print_heading('Stripe subscriptions:');
?>
<p><strong>WebHook:</strong> if you are planning to offer subscriptions via stripe (enabled above) please set the webhook address (in Stripe settings) to: <?php 
echo full_link(_EXTERNAL_TUNNEL . '?m=paymethod_stripe&h=event_ipn&method=stripe');
?>
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:stripe_settings.php


注:本文中的module_config::print_settings_form方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。