本文整理汇总了PHP中Country::getAdminRestrictionList方法的典型用法代码示例。如果您正苦于以下问题:PHP Country::getAdminRestrictionList方法的具体用法?PHP Country::getAdminRestrictionList怎么用?PHP Country::getAdminRestrictionList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Country
的用法示例。
在下文中一共展示了Country::getAdminRestrictionList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAdminForm
public function getAdminForm()
{
if (empty($this->origincountry)) {
$this->origincountry = (int) _xls_get_conf('DEFAULT_COUNTRY', 224);
}
return array('title' => 'Note: You can ' . CHtml::link('Set Product Restrictions', '#', array('class' => 'basic', 'id' => get_class($this))) . ' for this module.', 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'accnumber' => array('type' => 'text', 'maxlength' => 64), 'meternumber' => array('type' => 'text', 'maxlength' => 64), 'securitycode' => array('type' => 'text', 'maxlength' => 64), 'authkey' => array('type' => 'text', 'maxlength' => 64), 'originadde' => array('type' => 'text', 'maxlength' => 64), 'origincity' => array('type' => 'text', 'maxlength' => 64), 'originpostcode' => array('type' => 'text', 'maxlength' => 64), 'origincountry' => array('type' => 'dropdownlist', 'items' => CHtml::listData(Country::model()->findAllByAttributes(array('active' => 1), array('order' => 'sort_order,country')), 'id', 'country'), 'ajax' => array('type' => 'POST', 'url' => Yii::app()->controller->createUrl('ajax/getstates'), 'data' => 'js:{"' . 'country_id' . '": $("#' . CHtml::activeId($this, 'origincountry') . ' option:selected").val()}', 'update' => '#' . CHtml::activeId($this, 'originstate'))), 'originstate' => array('type' => 'dropdownlist', 'items' => CHtml::listData(State::model()->findAllByAttributes(array('country_id' => $this->origincountry, 'active' => 1), array('order' => 'sort_order,state')), 'id', 'code')), 'offerservices' => array('type' => 'checkboxlist', 'items' => fedex::$service_types, 'separator' => '', 'template' => '<div class="offerservices">{input} {label}</div>', 'label' => 'Offer these services<br><a onclick="selectall()">Select All</a><br><a onclick="selectnone()">Select None</a><br>'), 'packaging' => array('type' => 'dropdownlist', 'items' => array('YOUR_PACKAGING' => 'Your packaging', 'FEDEX_BOX' => 'FedEx Box', 'FEDEX_PAK' => 'FedEx Pak', 'FEDEX_TUBE' => 'FedEx Tube')), 'ratetype' => array('type' => 'dropdownlist', 'items' => array('RATED_LIST' => 'List Rates', 'RATED_ACCOUNT' => 'Negotiated rates')), 'customs' => array('type' => 'dropdownlist', 'items' => array('CLEARANCEFEE' => 'FedEx Handles Customs Clearance', 'NOCHARGE' => 'My store handles Customs Clearance')), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList(true)), 'markup' => array('type' => 'text', 'maxlength' => 4), 'product' => array('type' => 'text', 'maxlength' => 64)));
}
示例2: getAdminForm
public function getAdminForm()
{
if (empty($this->origincountry)) {
$this->origincountry = (int) _xls_get_conf('DEFAULT_COUNTRY', 224);
}
return array('title' => 'Note: You can ' . CHtml::link('Set Product Restrictions', '#', array('class' => 'basic', 'id' => get_class($this))) . ' for this module.', 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'mode' => array('type' => 'dropdownlist', 'items' => array('UPS' => 'Domestic US UPS Mode', 'IUPS' => 'IUPS International UPS Mode')), 'username' => array('type' => 'text', 'maxlength' => 64), 'password' => array('type' => 'text', 'maxlength' => 64), 'accesskey' => array('type' => 'text', 'maxlength' => 64), 'originpostcode' => array('type' => 'text', 'maxlength' => 64), 'origincountry' => array('type' => 'dropdownlist', 'items' => CHtml::listData(Country::model()->findAllByAttributes(array('active' => 1), array('order' => 'sort_order,country')), 'id', 'country'), 'ajax' => array('type' => 'POST', 'url' => Yii::app()->controller->createUrl('ajax/getstates'), 'data' => 'js:{"' . 'country_id' . '": $("#' . CHtml::activeId($this, 'origincountry') . ' option:selected").val()}', 'update' => '#' . CHtml::activeId($this, 'originstate'))), 'originstate' => array('type' => 'dropdownlist', 'items' => CHtml::listData(State::model()->findAllByAttributes(array('country_id' => $this->origincountry, 'active' => 1), array('order' => 'sort_order,state')), 'id', 'code')), 'offerservices' => array('type' => 'checkboxlist', 'items' => ups::$service_types, 'separator' => '', 'template' => '<div class="offerservices">{input} {label}</div>', 'label' => 'Offer these services<br><a onclick="selectall()">Select All</a><br><a onclick="selectnone()">Select None</a><br>'), 'package' => array('type' => 'dropdownlist', 'items' => ups::$package_types), 'ratecode' => array('type' => 'dropdownlist', 'items' => ups::$rate_types), 'customerclassification' => array('type' => 'dropdownlist', 'items' => array('04' => 'Retail', '03' => 'Occasional', '01' => 'Wholesale')), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList(true)), 'markup' => array('type' => 'text', 'maxlength' => 4), 'product' => array('type' => 'text', 'maxlength' => 64)));
}
示例3: getAdminForm
public function getAdminForm()
{
$strClass = str_replace("AdminForm", "", get_class($this));
return array('title' => Yii::t('global', 'To use this module, you will need to edit your account settings within Moneris with the following values:' . '<ul><li>The Response Method should be "Sent to your server as a POST"' . '<li>Under Security Features, set the Approved URL as {approvedurl}' . '<li>Set the Declined URL as {declinedurl}</ul>', array('{approvedurl}' => Yii::app()->createAbsoluteUrl('cart/payment', array('id' => $strClass), 'http'), '{declinedurl}' => Yii::app()->createAbsoluteUrl('cart/payment', array('id' => $strClass), 'http'))), 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'ps_store_id' => array('type' => 'text', 'maxlength' => 64, 'title' => "Store ID - provided by Moneris"), 'hpp_key' => array('type' => 'text', 'maxlength' => 64, 'title' => "Hosted Pay Page Key - provided by Moneris"), 'live' => array('type' => 'dropdownlist', 'items' => array('live' => 'Live', 'test' => 'Sandbox'), 'title' => "To use TEST MODE set to Sandbox.", 'hint' => "Hover over field for instructions"), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList()), 'ls_payment_method' => array('type' => 'text', 'maxlength' => 64)));
}
示例4: getAdminForm
public function getAdminForm()
{
return array('elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'login' => array('type' => 'text', 'maxlength' => 64), 'address' => array('type' => 'dropdownlist', 'items' => array(1 => 'off', 0 => 'on'), 'title' => "Turns on shipping address on PayPal checkout. Turn on if you wish to receive PayPal's Confirmed Address from the user account. May be confusing to user to be prompted for shipping info twice.", 'hint' => "Hover over field for instructions"), 'md5hash' => array('type' => 'text', 'maxlength' => 64), 'live' => array('type' => 'dropdownlist', 'items' => array('live' => 'Live', 'test' => 'Sandbox')), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList()), 'ls_payment_method' => array('type' => 'text', 'maxlength' => 64)));
}
示例5: getAdminForm
public function getAdminForm()
{
return array('title' => 'Note: You can ' . CHtml::link('Set Product Restrictions', '#', array('class' => 'basic', 'id' => get_class($this))) . ' for this module. If you use the optional promo code, you need to put Free Shipping to the top of the list under ' . CHtml::link('Set Display Order', Yii::app()->controller->createUrl("shipping/order")), 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'rate' => array('type' => 'text', 'maxlength' => 64), 'startdate' => array('type' => 'zii.widgets.jui.CJuiDatePicker', 'attributes' => array('options' => array('showAnim' => 'fold', 'dateFormat' => 'yy-mm-dd', 'altField' => '#self_pointing_id', 'altFormat' => _xls_convert_date_to_js(_xls_get_conf('DATE_FORMAT', 'Y-m-d'))), 'htmlOptions' => array('style' => 'height: 20px;'))), 'enddate' => array('type' => 'zii.widgets.jui.CJuiDatePicker', 'attributes' => array('options' => array('showAnim' => 'fold', 'dateFormat' => 'yy-mm-dd', 'altField' => '#self_pointing_id2', 'altFormat' => _xls_convert_date_to_js(_xls_get_conf('DATE_FORMAT', 'Y-m-d'))), 'htmlOptions' => array('style' => 'height: 20px;'))), 'promocode' => array('type' => 'text', 'maxlength' => 64), 'qty_remaining' => array('type' => 'text', 'maxlength' => 64), 'offerservices' => array('type' => 'text', 'maxlength' => 64), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList(true)), 'product' => array('type' => 'text', 'maxlength' => 64)));
}
示例6: getAdminForm
public function getAdminForm()
{
return array('elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'login' => array('type' => 'text', 'maxlength' => 64), 'trans_key' => array('type' => 'text', 'maxlength' => 64), 'md5hash' => array('type' => 'text', 'maxlength' => 20), 'live' => array('type' => 'dropdownlist', 'items' => array('live' => 'Live', 'test' => 'Sandbox')), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList()), 'ls_payment_method' => array('type' => 'text', 'maxlength' => 64)));
}
示例7: getAdminForm
public function getAdminForm()
{
return array('title' => 'Note: After saving the module, click ' . CHtml::link('Set Destination Rates', '#', array('class' => 'destinationrates', 'id' => get_class($this))) . ' to define your prices. You can ' . CHtml::link('Set Product Restrictions', '#', array('class' => 'basic', 'id' => get_class($this))) . ' for this module', 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'per' => array('type' => 'dropdownlist', 'items' => array('item' => 'Item', 'weight' => 'Weight unit')), 'offerservices' => array('type' => 'text', 'maxlength' => 64), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList(true)), 'product' => array('type' => 'text', 'maxlength' => 64)));
}
示例8: getAdminForm
public function getAdminForm()
{
return array('title' => 'This method will collect a PO number on checkout.', 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList())));
}
示例9: getAdminForm
public function getAdminForm()
{
return array('title' => 'This method will mark an order to be downloaded without collecting additional payment information.', 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'customeralert' => array('type' => 'text', 'maxlength' => 64), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList())));
}
示例10: getAdminForm
public function getAdminForm()
{
return array('elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'login' => array('type' => 'text', 'maxlength' => 64), 'trans_key' => array('type' => 'text', 'maxlength' => 64), 'ccv' => array('type' => 'dropdownlist', 'items' => array(0 => 'off', 1 => 'on'), 'title' => "If you have enabled CCV/CVC (Enhanced CCV Handling Filter) in your Authorize.net account, turn this on. Otherwise this should remain off.", 'hint' => "Hover over field for instructions"), 'specialcode' => array('type' => 'text', 'maxlength' => 64), 'live' => array('type' => 'dropdownlist', 'items' => array('live' => 'Live', 'test' => 'Sandbox'), 'title' => "To use (TEST MODE) in your regular account, leave this as Live and instead set Test Mode in your Authorize.net account settings on their site. Sandbox should only be used with Authorize.net Sandbox testing servers.", 'hint' => "Hover over field for instructions"), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList()), 'ls_payment_method' => array('type' => 'text', 'maxlength' => 64)));
}
示例11: getAdminForm
public function getAdminForm()
{
return array('title' => Yii::t('admin', '<p>To display your company logo on the Cayan payment screen, you must upload the logo to a secure image hosting site ' . '(ex. <a href="http://httpsimage.com" target="_blank">http://httpsimage.com</a>), ' . 'and then copy the generated URL for your image to the <i>URL of your logo field</i> below. <b>Your logo cannot exceed 420px in width.</b></p>' . 'You can also apply ' . CHtml::link('additional customization options', '#', array('class' => 'setcayan', 'id' => __CLASS__)) . '.<br>' . CHtml::link('Preview your changes', '#', array('class' => 'viewcayan', 'id' => __CLASS__)) . ' of the form your customers will see. Be sure to <b>SAVE</b> before you view the form. Please note that the preview may differ slightly from the actual hosted page.'), 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'name' => array('type' => 'text', 'maxlength' => 64), 'siteId' => array('type' => 'text', 'maxlength' => 10), 'transKey' => array('type' => 'text', 'maxlength' => 30), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList()), 'ls_payment_method' => array('type' => 'text', 'maxlength' => 64), 'logoUrl' => array('type' => 'url')));
}
示例12: getAdminForm
public function getAdminForm()
{
return array('elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'source_key' => array('type' => 'text', 'maxlength' => 64), 'source_key_pin' => array('type' => 'text', 'maxlength' => 10), 'live' => array('type' => 'dropdownlist', 'items' => array('live' => 'Live', 'test' => 'Test')), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList()), 'ls_payment_method' => array('type' => 'text', 'maxlength' => 64)));
}
示例13: getAdminForm
public function getAdminForm()
{
return array('elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'api_username' => array('type' => 'text', 'maxlength' => 64), 'api_password' => array('type' => 'text', 'maxlength' => 64), 'api_signature' => array('type' => 'text', 'maxlength' => 64), 'live' => array('type' => 'dropdownlist', 'items' => array('live' => 'Live', 'test' => 'Sandbox')), 'api_username_sb' => array('type' => 'text', 'maxlength' => 64), 'api_password_sb' => array('type' => 'text', 'maxlength' => 64), 'api_signature_sb' => array('type' => 'text', 'maxlength' => 64), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList()), 'ls_payment_method' => array('type' => 'text', 'maxlength' => 64)));
}
示例14: getAdminForm
public function getAdminForm()
{
return array('title' => 'Note: You can ' . CHtml::link('Set Product Restrictions', '#', array('class' => 'basic', 'id' => get_class($this))) . ' for this module.', 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'offerservices' => array('type' => 'text', 'maxlength' => 128, 'class' => 'nobottommargin'), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList(true)), 'markup' => array('type' => 'text', 'maxlength' => 4), 'product' => array('type' => 'text', 'maxlength' => 64)));
}
示例15: getAdminForm
public function getAdminForm()
{
return array('title' => 'Note: You can ' . CHtml::link('Set Product Restrictions', '#', array('class' => 'basic', 'id' => get_class($this))) . ' for this module.', 'elements' => array('label' => array('type' => 'text', 'maxlength' => 64), 'api_key' => array('type' => 'text', 'maxlength' => 64), 'originpostcode' => array('type' => 'text', 'maxlength' => 64), 'offerservices' => array('type' => 'checkboxlist', 'items' => australiapost::$service_types, 'separator' => '', 'template' => '<div class="offerservices">{input} {label}</div>', 'label' => 'Offer these services<br><a onclick="selectall()">Select All</a><br><a onclick="selectnone()">Select None</a><br>'), 'specialcode' => array('type' => 'text', 'maxlength' => 64), 'restrictcountry' => array('type' => 'dropdownlist', 'items' => Country::getAdminRestrictionList(true)), 'markup' => array('type' => 'text', 'maxlength' => 4), 'product' => array('type' => 'text', 'maxlength' => 64)));
}