예제 #1
0
파일: epayment.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText("merchant")->setLabel(array('Your merchant identifier', 'received from ePayment'));
     $form->addText("secret")->setLabel(array('Secret Key', 'received from ePayment'));
     $form->addSelect("testing", array(), array('options' => array(self::NO => 'No', self::YES => 'Yes')))->setLabel(array('Testing', 'enable/disable testmode'));
     $form->addSelect("language", array(), array('options' => array('ro' => 'Romanian', 'en' => 'English', 'fr' => 'French', 'it' => 'Italian', 'de' => 'German', 'es' => 'Spanish')))->setLabel('Site Language');
 }
예제 #2
0
파일: inet-cash.php 프로젝트: grlf/eyedock
 function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('siteid', array('size' => 20, 'maxlength' => 20))->setLabel("Site-ID: will be assigned by INET-CASH after you create your shop");
     $form->addSelect('lang', array(), array('options' => array('en' => 'English', 'de' => 'Deutsch', 'es' => 'Español', 'pl' => 'język polski', 'fr' => 'français')))->setLabel("Language");
     $form->addSelect('zahlart', array(), array('options' => array('all' => 'All available types', 'cc' => 'Credit Card', 'dd' => 'Direct Debit, only Germany/Austria', 'db' => 'Sofortuberweisung', 'dp' => 'Payment in advance')))->setLabel("Payment method");
     $form->addText('owntxt', array('size' => '18', 'maxlength' => 18))->setLabel("Your own text will be shown on the top of the payment form.");
 }
예제 #3
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('CustomerID', array('size' => 20))->setLabel(array('Customer ID', 'Your eWAY Customer ID'))->addRule('required');
     $form->addText('UserName', array('size' => 20))->setLabel(array('User name', 'Your eWAY Customer User Name'))->addRule('required');
     $form->addText('PageTitle ', array('size' => 60))->setLabel(array('Page Title', 'This is value will be displayed as the title of the browser.
             Default: eWAY Hosted Payment Page'));
     $form->addText('PageDescription', array('size' => 200))->setLabel(array('Page Description', 'This value will be displayed above the Transaction Details.
             Default: Blank'));
     $form->addText('PageFooter', array('size' => 60))->setLabel(array('Page Footer', 'This value will be displayed below the Transaction Details.'));
     $form->addText('CompanyLogo', array('size' => 200))->setLabel(array('URL company logo', 'The url of the image can be hosted on the
             merchants website and pass the secure
             https:// path of the image to be displayed
             at the top of the website. This is the top
             image block on the webpage and is
             restricted to 960px X 65px. A default secure
             image is used if none is supplied.'));
     $form->addText('Pagebanner', array('size' => 200))->setLabel(array('URL page banner', 'The url of the image can be hosted on the
             merchants website and pass the secure
             https:// path of the image to be displayed
             at the top of the website. This is the second
             image block on the webpage and is
             restricted to 960px X 65px. A default secure
             image is used if none is supplied.'));
     $form->addAdvCheckbox('ModifiableCustomerDetails')->setLabel(array('Modifiable customer cetails', 'This field specifies if the customer can
             change the contact details on the payment
             page This is useful if the merchant is not
             collecting details on their site.'));
     $form->addSelect("Language", array(), array('options' => array('EN' => 'English', 'ES' => 'Spanish', 'FR' => 'French', 'DE' => 'German', 'NL' => 'Dutch')))->setLabel('Language');
     $form->addText('CompanyName', array('size' => 60))->setLabel(array('Company name', 'This will be displayed as the company the
             customer is purchasing from, including this
             is highly recommended.'));
     $form->addSelect("Country", array(), array('options' => array('UK' => 'United Kingdom', 'AU' => 'Australia', 'NZ' => 'New Zeland')))->setLabel('Country');
 }
예제 #4
0
파일: paymento.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('shop_reference')->setLabel('Shop ID')->addRule('required');
     $form->addText('shop_name')->setLabel('Shop Name')->addRule('required');
     $form->addSelect('type')->setLabel('Payment Type')->loadOptions(array('' => '-- Please Select --', 'ecard' => 'Card', 'etransfer' => 'Bank Transfer', 'payment' => 'User Choice'))->addRule('required');
     $form->addSelect('lang')->setLabel('Language')->loadOptions(array('' => '-- Please Select --', 'pl' => 'Polish', 'en' => 'English', 'cz' => 'Czech', 'de' => 'Deutsch', 'dk' => 'Denmark', 'fi' => 'Deutsch', 'fr' => 'France', 'hu' => 'Hungary', 'it' => 'Italiano', 'ro' => 'Romanian', 'se' => 'Swedish', 'sk' => 'Slovakia', 'sl' => 'Slovenia', 'sp' => 'Spain'))->addRule('required');
 }
예제 #5
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText("email")->setLabel(array('Your E-mail:', 'received from DineroMail'));
     $form->addText("merchant")->setLabel(array('Your merchant identifier', 'received from DineroMail'));
     $form->addText("PIN")->setLabel(array('Your Pin', 'recieved from DineroMail'));
     $form->addText("secret")->setLabel(array('Your password', 'DM -> My account -> Config Ipn -> Password'));
     $form->addSelect("country", array(), array('options' => array('1' => 'Argentina', '2' => 'Brazil', '3' => 'Chile', '4' => 'Mexico')))->setLabel('Merchant Country');
     $form->addSelect("language", array(), array('options' => array('en' => 'English', 'es' => 'Spanish', 'pt' => 'Portuguese')))->setLabel('Site Language');
 }
예제 #6
0
파일: fastspring.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('company')->setLabel(array('Company Name', 'your Company name as registered at FastSpring'));
     $form->addText('key')->setLabel(array('Private Security Key', 'FastSpring -> Account -> Notification Configuration -> Order Notification -> Security'));
     $form->addText('api_user')->setLabel(array('API Username', 'used to handle cancellations'));
     $form->addText('api_pass')->setLabel(array('API Password', 'used to handle cancellations'));
     $form->addSelect("instant", array(), array('options' => array('' => 'No', '1' => 'Yes')))->setLabel(array('Instant order process', 'leave it disabled for default product pages'));
     $form->addSelect("testing", array(), array('options' => array('' => 'No', '1' => 'Yes')))->setLabel('Test Mode');
 }
예제 #7
0
파일: ideal.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addSelect("ideal_bank")->setLabel("Merchant bank")->loadOptions(array('ing' => 'secure-ing.com', 'rabobank' => 'rabobank.nl'));
     $form->addInteger("merchantId", array('maxlength' => 15, 'size' => 15))->setLabel(array("Merchant ID", ""))->addRule('required');
     $form->addInteger("subId", array('value' => 0))->setLabel(array("Sub ID", "usually it is not need to change it"));
     $form->addText("privateKey", array('size' => 40))->setLabel(array("Private Key", "filename of private key"))->addRule('required');
     $form->addText("privateKeyPass")->setLabel(array("Private Key Password", "password for private key"))->addRule('required');
     $form->addText("privateCert", array('size' => 40))->setLabel(array("Merchant Certificate", "filename of the certificate created by the merchant"))->addRule('required');
     $form->addText("acquirerCert", array('size' => 40))->setLabel(array("Acquirer Certificate", "filename of the certificate created by the acquirer"))->addRule('required');
     $form->addSelect("lang")->setLabel(array("Language", ""))->loadOptions(array('nl' => 'NL', 'en' => 'EN'));
     $form->addAdvCheckbox("testMode")->setLabel(array("Test Mode Enabled", ""));
     $form->addAdvCheckbox("debugLog")->setLabel(array("Debug Log Enabled", "write all requests/responses to log"));
 }
예제 #8
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('account_id')->setLabel(array('Merchant Account Id'));
     $form->addText('secret')->setLabel(array('Merchant Secret Key'));
     $sel = $form->addSelect('mode')->setLabel('Mode');
     $sel->loadOptions(array('TEST' => 'Test mode', 'LIVE' => 'Live mode'));
 }
예제 #9
0
파일: payone.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText("aid")->setLabel(array('Sub-Account-ID', ''))->addRule('required');
     $form->addText("portalid")->setLabel(array('Portal-ID', ''))->addRule('required');
     $form->addText('secret_key', 'size=40')->setLabel(array('Key', ''))->addRule('required');
     $form->addSelect("testing", array(), array('options' => array('' => 'No', '1' => 'Yes')))->setLabel('Test Mode');
 }
예제 #10
0
파일: selectel.php 프로젝트: grlf/eyedock
    function _initSetupForm(Am_Form_Setup $form)
    {
        $form->setTitle('Selectel');
        $form->addText('access_key', array('size' => 40))->setLabel('Your account login')->addRule('required');
        $form->addPassword('secret_key', array('size' => 40))->setLabel(array('Password for Cloud Storage', '(separate password then for Control Panel)'))->addRule('required');
        $form->addText('expire', array('size' => 5))->setLabel('Video link life-time, min');
        $form->setDefault('expire', 15);
        if ($this->isConfigured()) {
            try {
                $containers = $this->getDi()->cacheFunction->call(array($this->getConnector(), 'getContainersList'), array(), array(), $this->cacheLifetime);
                $containers = array('' => '== Please select public Container ==') + $containers;
            } catch (Exception $e) {
                $containers = array('' => 'Please create public container');
            }
            $form->addSelect('links_container', '', array('options' => array_combine($containers, $containers)))->setLabel(array('Container for links', 'aMember will create links in the following format: http://yourcloudstorageurl.com/CONTAINERNAME/uniquekey/filename.mp4'))->addRule('required');
        }
        $msg = <<<EOT
    Make sure that you store all your files in private containers.
    In order to provide an access to the files, create one free container, and specify it in plugin configuration.
    aMember will create symlinks to the files and put these symilnks to that public container. Links are one-time and time-limited.
    For example if you name your public container "download", end-user will see these links:
    https://88901.selcdn.ru/download/9365d4a676845f607e46e19038305ba0/filename.mp4

EOT;
        $form->addProlog(<<<CUT
<div class="info"><strong>{$msg}</strong></div>
CUT
);
    }
예제 #11
0
파일: bitpay.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('apiKey', array('size' => 40))->setLabel(array('Merchant API Key', 'from bitpay merchant account -> My Account -> API Access keys'))->addRule('required');
     $form->addSelect('bitpay_speed_risk')->setLabel(array('Default Bitpay speed/risk'))->loadOptions($this->transactionSpeedOptions);
     $form->addAdvCheckbox("use_http")->setLabel(array("Use HTTP Protocol", "at return URL"));
     $form->addAdvCheckbox("debugMode")->setLabel(array("Debug Mode Enabled", "write all requests/responses to log"));
 }
예제 #12
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('site_id', array('size' => 20))->setLabel('Your Zombaio Site ID');
     $form->addInteger('merchant_id', array('size' => 20))->setLabel(array('Your Zombaio Merchant ID', 'Can be found in ZOA dashboard'));
     $form->addText('password')->setLabel(array("Zombaio GW Pass", "Unique key for the verify site/merchant. Can be found under site information in Zombaio Online Administrator"));
     $form->addSelect("lang", array(), array('options' => array('ZOM' => 'Default (Script will detect user language based on IP)', 'US' => 'English', 'FR' => 'French', 'DE' => 'German', 'IT' => 'Italian', 'JP' => 'Japanese', 'ES' => 'Spanish', 'SE' => 'Swedish', 'KR' => 'Korean', 'CH' => 'Traditional Chinese', 'HK' => 'Simplified Chinese')))->setLabel('Zombaio Site Language');
 }
예제 #13
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('merchant', array('size' => 20, 'maxlength' => 16))->setLabel("Dibs Merchant ID")->addRule('required');
     $form->addText('key1', array('size' => 20, 'maxlength' => 32))->setLabel("Dibs Secret Key1")->addRule('required');
     $form->addText('key2', array('size' => 20, 'maxlength' => 32))->setLabel("Dibs Secret Key2")->addRule('required');
     $form->addSelect('lang', array(), array('options' => array('da' => 'Danish', 'sv' => 'Swedish', 'no' => 'Norwegian', 'en' => 'English', 'nl' => 'Dutch', 'de' => 'German', 'fr' => 'French', 'fi' => 'Finnish', 'es' => 'Spanish', 'it' => 'Italian', 'fo' => 'Faroese', 'pl' => 'Polish')))->setLabel('The payment window language');
 }
예제 #14
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('web_id', array('size' => 20, 'maxlength' => 20))->setLabel('2000Charge.com website ID')->addRule('required');
     $form->addText('account')->setLabel('Your client account login id');
     $form->addText('pwd')->setLabel('Your client account login password');
     $form->addSelect('payment_option', '', array('options' => $this->payment_options))->setLabel(array('Payment Option', 'Display Only Specified Payment Options'));
 }
예제 #15
0
 function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('merchant_id')->setLabel('Merchant ID');
     $form->addText('security_key')->setLabel('Private Security Key');
     $form->addSelect('language', '', array('options' => array('ru' => 'Русский', 'en' => 'English')))->setLabel('Interface language');
     $form->addAdvCheckbox('cc_form')->setLabel('Send User to CC form directly');
 }
예제 #16
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('merchant', array('size' => 20, 'maxlength' => 16))->setlabel("Shop identification\n" . "(Merchant ID)")->addRule('required');
     $form->addElement('textarea', 'hmackey', array('rows' => 4, 'style' => 'width:30%'))->setLabel("HMAC key")->addRule('required');
     $form->addSelect('lang', array(), array('options' => array('da' => 'Danish', 'sv' => 'Swedish', 'nb' => 'Norwegian', 'en' => 'English')))->setLabel("The payment window language");
     $form->addAdvCheckbox('test')->setLabel("Test Mode Enabled");
 }
예제 #17
0
파일: plimus.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $s = $form->addSelect("testing")->setLabel("test Mode Enabled");
     $s->addOption("Live account", self::MODE_LIVE);
     $s->addOption("Sandbox account", self::MODE_SANDBOX);
     //        $s->addOption("Account in test mode", self::MODE_TEST);
 }
예제 #18
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('a1lite_form_key')->setLabel(array('Ключ из HTML формы', 'Инструменты -> A1Lite -> Создать кнопку' . '<br />' . "затем скопировать 'value' параметра 'key' из полученной формы" . '<br />' . 'например <b>123456</b> из ' . htmlspecialchars('<input type="hidden" name="key" value="123456" />')));
     $form->addText('a1lite_api_secret_key')->setLabel(array('Секретный ключ', 'Инструменты -> A1Lite -> Управление -> Редактирование сервиса'));
     $form->addSelect('type', array(), array('options' => array('' => 'Любой тип оплаты', 'wm' => 'WebMoney', 'sms' => 'SMS', 'terminal' => 'Терминал оплаты Qiwi', 'qiwi_wallet' => 'Qiwi кошелек', 'w1' => 'W1', 'rbk_money' => 'РБК Money', 'ym' => 'Яндекс.Деньги', 'card' => 'Visa/MasterCard (ЕКО)', 'mb' => 'Visa/MasterCard (Мастер-Банк)', 'bm' => 'Visa/MasterCard (Банк Москвы)', 'esgp' => 'Терминал ЕСГП', 'russky_standart' => 'Visa/MasterCard (Русский Стандарт)', 'mc' => 'Мобильный платёж')))->setLabel('Тип оплаты, на который Вы хотите отправить пользователя');
     $form->addAdvCheckbox('testing')->setLabel(array('Тестирование сервиса', 'Имитацию отправки запроса из аккаунта A1pay' . '<br />' . 'c передачей данных скрипту-обработчику'));
 }
예제 #19
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('url')->setLabel(___("Payment System Domain\n" . 'Leave default value if you are not sure'))->setValue(self::DOMAIN);
     $form->addText('mnt_id')->setLabel(___("Shop Id\n" . 'Unique Shop ID in the system'));
     $form->addAdvCheckbox('test_mode')->setLabel(___('Test Mode'));
     $form->addSelect('locale', array(), array('options' => array('ru' => 'ru', 'eng' => 'eng')))->setLabel(___('Language'));
     $form->addText('secret_code')->setLabel(___('Data Integrity Code'));
 }
예제 #20
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('merchant_login')->setLabel('Merchant Login');
     $form->addText('merchant_pass1')->setLabel(array('Password #1', 'From shop technical preferences'));
     $form->addText('merchant_pass2')->setLabel(array('Password #2', 'From shop technical preferences'));
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
     $form->addSelect('language', '', array('options' => array('en' => 'English', 'ru' => 'Russian')))->setLabel('Interface Language');
 }
예제 #21
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('client_id', array('size' => 20))->setLabel('Your Client ID#');
     $form->addText('secret', array('size' => 20))->setLabel('Your Client Secret');
     $form->addText('token', array('size' => 40))->setLabel('Your Access Token');
     $form->addInteger('account_id', array('size' => 20))->setLabel('Your Account ID#');
     $form->addSelect('fee_payer')->setLabel(___('Who is paying the fee'))->loadOptions(array('payee' => 'the person receiving the money', 'payer' => 'the person paying'));
     $form->addAdvCheckbox("testing")->setLabel("Test Mode Enabled" . "\n" . "The Test Mode requires a separate developer test account, which can be set up by filling out the following form: <a target=\"_blank\" href=\"https://stage.wepay.com/developer/register\">https://stage.wepay.com/developer/register</a>");
 }
예제 #22
0
파일: wepay.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('client_id', array('size' => 20))->setLabel('Your Client ID#');
     $form->addText('secret', array('size' => 20))->setLabel('Your Client Secret');
     $form->addText('token', array('size' => 40))->setLabel('Your Access Token');
     $form->addInteger('account_id', array('size' => 20))->setLabel('Your Account ID#');
     $form->addSelect('fee_payer')->setLabel(___('Who is paying the fee'))->loadOptions(array('payee' => 'the person receiving the money', 'payer' => 'the person paying'));
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
 }
예제 #23
0
파일: hipay.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('account_id', array('size' => 20))->setLabel(array('Hipay Account Id', '(number)'));
     $form->addPassword('merchant_password', array('size' => 20))->setLabel(array('Merchant Password', '(set within your Hipay account)'));
     $form->addInteger('site_id', array('size' => 20))->setLabel(array('Hipay Site Id', '(number)'));
     $sel = $form->addSelect('order_category')->setLabel(array("The order/product category attached to the merchant site's category", "if there is no values - please enter Site Id and Save"));
     $sel->loadOptions($this->getOrderCategories());
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
 }
예제 #24
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('seller_id', array('size' => 20))->setLabel('2CO Account#');
     $form->setDefault('secret', $this->getDi()->app->generateRandomString(10));
     $form->addText('secret', array('size' => 30))->setLabel(array('2CO Secret Phrase', 'set it to the same value as configured in 2CO'));
     $form->addText('api_username')->setLabel('2CO API Username');
     $form->addPassword('api_password')->setLabel('2CO Password');
     $form->addSelect('lang', array(), array('options' => array('en' => 'English', 'zh' => 'Chinese', 'da' => 'Danish', 'nl' => 'Dutch', 'fr' => 'French', 'gr' => 'German', 'el' => 'Greek', 'it' => 'Italian', 'jp' => 'Japanese', 'no' => 'Norwegian', 'pt' => 'Portuguese', 'sl' => 'Slovenian', 'es_ib' => 'Spanish (es_ib)', 'es_la' => 'Spanish (es_la)', 'sv' => 'Swedish')))->setLabel('2CO Interface language');
 }
예제 #25
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('site_id', array('size' => 20))->setLabel('Your Zombaio Site ID');
     $form->addInteger('merchant_id', array('size' => 20))->setLabel(array('Your Zombaio Merchant ID', 'Can be found in ZOA dashboard'));
     $form->addText('password')->setLabel(array("Zombaio GW Pass", "Unique key for the verify site/merchant. Can be found under site information in Zombaio Online Administrator"));
     $form->addSelect("lang", array(), array('options' => array('ZOM' => 'Default (Script will detect user language based on IP)', 'US' => 'English', 'FR' => 'French', 'DE' => 'German', 'IT' => 'Italian', 'JP' => 'Japanese', 'ES' => 'Spanish', 'SE' => 'Swedish', 'KR' => 'Korean', 'CH' => 'Traditional Chinese', 'HK' => 'Simplified Chinese')))->setLabel('Zombaio Site Language');
     $form->addAdvCheckbox('validation_mode')->setLabel(array('Enable Validation Mode', 'Turn this on in order to validate ZScript in your Zombaio account. 
             After script will be validated this setting should be disabled immediately'));
     $form->addAdvCheckbox('dynamic_pricing')->setLabel(array('Enable Dynamic Pricing', 'The amount must be within the range €/$ 10.00 - €/$ 100.00 if you want to use other amounts you must get an approval from support@zombaio.com'));
 }
예제 #26
0
파일: payforit.php 프로젝트: grlf/eyedock
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText("company")->setLabel(array("Your company name in payforit platform", ""))->addRule('required');
     $form->addText("password", array('size' => 40))->setLabel(array("Your password in payforit platform", ""))->addRule('required');
     $form->addSelect("window")->setLabel(array("Type of Payforit Window ", "to render for the end user"))->loadOptions(array('small' => 'small', 'embed_small ' => 'embed_small ', 'large' => 'large', 'embed_large' => 'embed_large'));
     $form->addAdvCheckbox("is_frame")->setLabel(array("Use Iframe", ""));
     $form->addAdvCheckbox("debugLog")->setLabel(array("Debug Log Enabled", "write all requests/responses to log"));
     // hide reattempt
     $form->addScript()->setScript('$(function(){$("[id^=\'row-reattempt-\']").remove()});');
 }
예제 #27
0
파일: listmail.php 프로젝트: grlf/eyedock
 protected function _initSetupForm(Am_Form_Setup $form)
 {
     $group = $form->addGroup()->setLabel(array('ListMail Board Db and Prefix', "database name (if other database) plus ListMail\n" . "tables prefix, like <i>listmail.lm_</i>\n" . "here listmail in database <i>listmail</i> and tables prefix is <i>lm_</i>\n" . "after change click SAVE twice"));
     $group->addText("db", array('class' => 'db-prefix'))->addRule('required', 'this field is required');
     $group->addText("prefix", array('class' => 'db-prefix'));
     $group->addRule('callback2', '-error-', array($this, 'validateListmailDb'));
     $form->addSelect('expired_list')->setLabel(array('ListMail Expired List', 'Add expired members to the following list'))->loadOptions($this->getListmailGroups());
     if (!$this->isConfigured()) {
         $form->addScript()->setScript('jQuery(function($){ $("#expired_list-0").attr("disabled", true); })');
     }
 }
예제 #28
0
파일: arp.php 프로젝트: grlf/eyedock
 protected function _initSetupForm(Am_Form_Setup $form)
 {
     $el = $form->addText('url', array('size' => 60))->setLabel('AutoResponse Pro Url');
     $el->addRule('required');
     $el->addRule('regex', 'URL must start with http:// or https://', '/^(http|https):\\/\\//');
     $ef = $form->addSelect('email_field')->setLabel('Choose Alternative E-Mail Field');
     $fields = $this->getDi()->userTable->getFields(true);
     $ef->loadOptions(array_combine($fields, $fields));
     $ef->addRule('required', true);
     $form->setDefault('email_field', 'email');
     $ff = $form->addMagicSelect('fields')->setLabel('Pass additional fields to ARP');
     $ff->loadOptions(array_combine($fields, $fields));
 }
예제 #29
0
 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText("id")->setLabel('FirstData Account ID#');
     $s = $form->addSelect('keyfile')->setLabel("FirstData Web Service *.pem file\nupload to amember/application/configs/ folder, then it will appear in select");
     $dir = dirname(APPLICATION_CONFIG) . '/';
     $ff = glob($dir . '*.pem');
     $ff = str_replace($dir, '', $ff);
     if (!$ff) {
         $ff = array('-- no key uploaded --');
     }
     $s->loadOptions(array_combine($ff, $ff));
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
 }
예제 #30
0
    public function _initSetupForm(Am_Form_Setup $form)
    {
        $form->addInteger('merchantId', array('maxlength' => 20, 'size' => 15))->setLabel('Your WMI Merchant ID#')->addRule('required');
        $form->addSelect('signature')->setLabel('Signature Method')->loadOptions(array('' => 'None', 'md5' => 'MD5', 'sha1' => 'SHA1'));
        $form->addText('key', array('size' => 40))->setLabel('Secret Key')->addRule('callback2', 'error', array($this, 'validateSecretKey'));
        $form->addScript()->setScript(<<<CUT
jQuery(document).ready(function(\$){
    \$('#signature-0').change(function(){
        if(\$(this).val())
            \$('#row-key-0').show();
        else
            \$('#row-key-0').hide();
    }).change();
});
CUT
);
    }