• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP HelperForm类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中HelperForm的典型用法代码示例。如果您正苦于以下问题:PHP HelperForm类的具体用法?PHP HelperForm怎么用?PHP HelperForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: displayForm

 public function displayForm()
 {
     // Get default language
     $default_lang = (int) Configuration::get('PS_LANG_DEFAULT');
     // Init Fields form array
     $fields_form[0]['form'] = array('legend' => array('title' => $this->l('Ustawienia Integracyjne')), 'input' => array(array('type' => 'text', 'label' => $this->l('Hash sklepu w Shopconnector'), 'name' => 'SHOPCONNECTORMODULE_HASH', 'size' => 20, 'required' => true)), 'submit' => array('title' => $this->l('Save'), 'class' => 'button'));
     $helper = new HelperForm();
     if (!extension_loaded('mcrypt')) {
         echo '<div style="padding: 20px; text-align: center; background-color: yellow; font-weight: bold;">Do poprawnego działania wtyczki ShopConnector wymagane jest zainstalowanie rozszerzenia PHP mcrypt.</div>';
     }
     // Module, token and currentIndex
     $helper->module = $this;
     $helper->name_controller = $this->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
     // Language
     $helper->default_form_language = $default_lang;
     $helper->allow_employee_form_lang = $default_lang;
     // Title and toolbar
     $helper->title = $this->displayName;
     $helper->show_toolbar = true;
     // false -> remove toolbar
     $helper->toolbar_scroll = true;
     // yes - > Toolbar is always visible on the top of the screen.
     $helper->submit_action = 'submit' . $this->name;
     $helper->toolbar_btn = array('save' => array('desc' => $this->l('Save'), 'href' => AdminController::$currentIndex . '&configure=' . $this->name . '&save' . $this->name . '&token=' . Tools::getAdminTokenLite('AdminModules')), 'back' => array('href' => AdminController::$currentIndex . '&token=' . Tools::getAdminTokenLite('AdminModules'), 'desc' => $this->l('Back to list')));
     // Load current value
     $helper->fields_value['SHOPCONNECTORMODULE_HASH'] = Configuration::get('SHOPCONNECTORMODULE_HASH');
     return $helper->generateForm($fields_form);
 }
开发者ID:adamterepora,项目名称:ShopConnectorIntegrationModules,代码行数:30,代码来源:shopconnectormodule.php


示例2: displayForm

 public function displayForm()
 {
     // Get default Language
     $default_lang = (int) Configuration::get('PS_LANG_DEFAULT');
     // Init Fields form array
     $fields_form[0]['form'] = array('legend' => array('title' => $this->l('Product Update')), 'input' => array(array('type' => 'text', 'label' => $this->l('List'), 'name' => 'PRODUCTUPDATE_LIST', 'size' => 20, 'required' => true)), 'submit' => array('title' => $this->l('Update'), 'class' => 'button'));
     $helper = new HelperForm();
     // Module, t    oken and currentIndex
     $helper->module = $this;
     $helper->name_controller = $this->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
     // Language
     $helper->default_form_language = $default_lang;
     $helper->allow_employee_form_lang = $default_lang;
     // Title and toolbar
     $helper->title = $this->displayName;
     $helper->show_toolbar = true;
     // false -> remove toolbar
     $helper->toolbar_scroll = true;
     // yes - > Toolbar is always visible on the top of the screen.
     $helper->submit_action = 'submit' . $this->name;
     $helper->toolbar_btn = array('save' => array('desc' => $this->l('Save'), 'href' => AdminController::$currentIndex . '&configure=' . $this->name . '&save' . $this->name . '&token=' . Tools::getAdminTokenLite('AdminModules')), 'back' => array('href' => AdminController::$currentIndex . '&token=' . Tools::getAdminTokenLite('AdminModules'), 'desc' => $this->l('Back to list')));
     // Load current value
     $helper->fields_value['PRODUCTUPDATE_LIST'] = Configuration::get('PRODUCTUPDATE_LIST');
     return $helper->generateForm($fields_form);
 }
开发者ID:Eximagen,项目名称:3m,代码行数:27,代码来源:productupdate.php


示例3: renderForm

 public function renderForm()
 {
     $root_category = Category::getRootCategory();
     $root_category = array('id_category' => $root_category->id, 'name' => $root_category->name);
     $cats = array();
     if ($c = Configuration::get('yamarket_с_categories')) {
         $uc = unserialize($c);
         if (is_array($uc)) {
             $cats = $uc;
         }
     }
     $this->fields_form[0]['form'] = array('legend' => array('title' => $this->l('Settings'), 'image' => _PS_ADMIN_IMG_ . 'information.png'), 'input' => array(array('type' => 'text', 'label' => $this->l('Shop Name'), 'desc' => $this->l('Shop name in yandex market'), 'name' => 'yamarket_с_shop'), array('type' => 'text', 'label' => $this->l('Сompany name'), 'desc' => $this->l('Your company name'), 'name' => 'yamarket_с_company'), array('type' => 'text', 'label' => $this->l('Shipping cost'), 'desc' => $this->l('Shipping cost in shop region'), 'name' => 'yamarket_с_shippingcost'), array('type' => 'text', 'label' => $this->l('Information'), 'desc' => $this->l('Information about minimal order cost, minimal product quantity or prepayment'), 'name' => 'yamarket_с_info'), array('type' => 'switch', 'label' => $this->l('Gzip compression'), 'desc' => $this->l('Compress export file'), 'name' => 'yamarket_с_gzip', 'values' => array(array('id' => 'yamarket_с_gzip_on', 'value' => 1, 'label' => $this->l('Enabled')), array('id' => 'yamarket_с_gzip_off', 'value' => 0, 'label' => $this->l('Disabled')))), array('type' => 'switch', 'label' => $this->l('Combinations'), 'desc' => $this->l('Export combinations'), 'name' => 'yamarket_с_combinations', 'values' => array(array('id' => 'yamarket_с_combinations_on', 'value' => 1, 'label' => $this->l('Enabled')), array('id' => 'yamarket_с_combinations_off', 'value' => 0, 'label' => $this->l('Disabled')))), array('type' => 'checkbox', 'label' => $this->l('Shipping'), 'desc' => $this->l('Delivery, pickup and store'), 'name' => 'yamarket_с_shipping', 'is_bool' => false, 'values' => array('id' => 'id', 'name' => 'label', 'query' => array(array('id' => '[1]', 'val' => 1, 'label' => $this->l('Delivery availability')), array('id' => '[2]', 'val' => 1, 'label' => $this->l('Pickup in store availability')), array('id' => '[3]', 'val' => 1, 'label' => $this->l('Can buy in Store'))))), array('type' => 'switch', 'label' => $this->l('Currencies'), 'desc' => $this->l('If not checked will be used default currency'), 'name' => 'yamarket_с_currencies', 'values' => array(array('id' => 'yamarket_с_currencies_on', 'value' => 1, 'label' => $this->l('Enabled')), array('id' => 'yamarket_с_currencies_off', 'value' => 0, 'label' => $this->l('Disabled')))), array('type' => 'radio', 'label' => $this->l('Availability'), 'desc' => $this->l('Product availability'), 'name' => 'yamarket_с_availability', 'is_bool' => false, 'values' => array(array('id' => 'yamarket_с_availability_0', 'value' => 0, 'label' => $this->l('All avaible')), array('id' => 'yamarket_с_availability_1', 'value' => 1, 'label' => $this->l('If quantity >0, then avaible, else on request')), array('id' => 'yamarket_с_availability_2', 'value' => 2, 'label' => $this->l('If quantity = 0, product not exported')), array('id' => 'yamarket_с_availability_3', 'value' => 3, 'label' => $this->l('All on request')))), array('type' => 'categories', 'label' => $this->l('Categories'), 'desc' => $this->l('Categories to export. If necessary, subcategories must be checked too.'), 'name' => 'yamarket_с_categories', 'tree' => array('use_search' => false, 'id' => 'categoryBox', 'use_checkbox' => true, 'selected_categories' => $cats))), 'submit' => array('name' => 'submityamarket_с', 'title' => $this->l('Save')));
     $this->fields_form[1]['form'] = array('legend' => array('title' => $this->l('Yandex Market configuration information'), 'image' => _PS_ADMIN_IMG_ . 'information.png'), 'input' => array(array('type' => 'text', 'label' => $this->l('Static url'), 'desc' => $this->l('URL to download file generated by cron or Export button.'), 'name' => 'url1'), array('type' => 'text', 'label' => $this->l('Dinamic url'), 'desc' => $this->l('URL to download dinamicaly generated export file.'), 'name' => 'url2'), array('type' => 'text', 'label' => $this->l('Cron url'), 'desc' => $this->l('URL to regenerate export file by cron.'), 'name' => 'url3')));
     $helper = new HelperForm();
     $helper->module = $this;
     $helper->show_toolbar = false;
     $helper->table = $this->table;
     $lang = new Language((int) Configuration::get('PS_LANG_DEFAULT'));
     $helper->default_form_language = $lang->id;
     $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
     $helper->identifier = $this->identifier;
     $helper->submit_action = 'submityamarket_с';
     $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->tpl_vars = array('fields_value' => $this->getConfigFieldsValues(), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id);
     return $helper->generateForm($this->fields_form);
 }
开发者ID:Beattle,项目名称:perrino-shop,代码行数:27,代码来源:yamarket.php


示例4: renderForm

 public function renderForm()
 {
     $fields_form = array('form' => array('legend' => array('title' => $this->l('Homepage categories'), 'icon' => ''), 'input' => array(array('type' => 'cat_choice', 'label' => '', 'name' => 'cats')), 'submit' => array('name' => 'submitBlockhomecats', 'title' => $this->l('Save'))));
     $lang = $this->context->language;
     if ($selectedCats = Configuration::get('MOD_BLOCKHOMECATS_CATS')) {
         $selectedCats = explode(',', $selectedCats);
         foreach ($selectedCats as $index => $id_category) {
             $selectedCats[$index] = new Category($id_category, $this->context->language->id);
         }
     } else {
         $selectedCats = null;
     }
     $helper = new HelperForm();
     $helper->show_toolbar = false;
     $helper->default_form_language = $lang->id;
     $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
     $helper->module = $this;
     $helper->identifier = 'id_blocklink';
     $helper->submit_action = 'submit';
     $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->fields_value = array('text' => 'text');
     $categories = Category::getNestedCategories(2, $this->context->language->id, false);
     $helper->tpl_vars = array('allCats' => $this->getAllCats(current($categories)), 'selectedCats' => $selectedCats);
     return $helper->generateForm(array($fields_form));
 }
开发者ID:WhisperingTree,项目名称:etagerca,代码行数:26,代码来源:blockhomecats.php


示例5: renderConfigurationForm

 public function renderConfigurationForm()
 {
     $lang = new Language((int) Configuration::get('PS_LANG_DEFAULT'));
     $langs = Language::getLanguages();
     $id_shop = (int) $this->context->shop->id;
     foreach ($langs as $key => $language) {
         $options[] = array('id_option' => $language['id_lang'], 'name' => $language['name']);
     }
     $cats = $this->getCategories($lang->id, true, $id_shop);
     $categories[] = array('id_option' => 99999, 'name' => 'All');
     foreach ($cats as $key => $cat) {
         $categories[] = array('id_option' => $cat['id_category'], 'name' => $cat['name']);
     }
     $inputs = array(array('type' => 'select', 'label' => $this->l('Language'), 'desc' => $this->l('Choose a language you wish to export'), 'name' => 'export_language', 'class' => 't', 'options' => array('query' => $options, 'id' => 'id_option', 'name' => 'name')), array('type' => 'text', 'label' => $this->l('Delimiter'), 'name' => 'export_delimiter', 'value' => ',', 'desc' => $this->l('The character to separate the fields')), array('type' => 'radio', 'label' => $this->l('Export active products?'), 'name' => 'export_active', 'values' => array(array('id' => 'active_off', 'value' => 0, 'label' => 'no, export all products.'), array('id' => 'active_on', 'value' => 1, 'label' => 'yes, export only active products')), 'is_bool' => true), array('type' => 'select', 'label' => $this->l('Product Category'), 'desc' => $this->l('Choose a product category you wish to export'), 'name' => 'export_category', 'class' => 't', 'options' => array('query' => $categories, 'id' => 'id_option', 'name' => 'name')));
     $fields_form = array('form' => array('legend' => array('title' => $this->l('Export Options'), 'icon' => 'icon-cogs'), 'input' => $inputs, 'submit' => array('title' => $this->l('Export'))));
     $helper = new HelperForm();
     $helper->show_toolbar = false;
     $helper->default_form_language = $lang->id;
     $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
     $this->fields_form = array();
     $helper->identifier = $this->identifier;
     $helper->submit_action = 'submitExport';
     $helper->currentIndex = self::$currentIndex;
     $helper->token = Tools::getAdminTokenLite('AdminExportProducts');
     $helper->tpl_vars = array('fields_value' => $this->getConfigFieldsValues(), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id);
     return $helper->generateForm(array($fields_form));
 }
开发者ID:KaipiYann,项目名称:exportproducts,代码行数:27,代码来源:AdminExportProducts.php


示例6: renderForm

 public function renderForm()
 {
     $fields_form = array('form' => array('legend' => array('title' => $this->trans('Settings', array(), 'Admin.Global'), 'icon' => 'icon-cogs'), 'input' => array(array('type' => 'text', 'label' => $this->trans('Facebook URL', array(), 'Modules.SocialFollow.Admin'), 'name' => 'blocksocial_facebook', 'desc' => $this->trans('Your Facebook fan page.', array(), 'Modules.SocialFollow.Admin')), array('type' => 'text', 'label' => $this->trans('Twitter URL', array(), 'Modules.SocialFollow.Admin'), 'name' => 'blocksocial_twitter', 'desc' => $this->trans('Your official Twitter account.', array(), 'Modules.SocialFollow.Admin')), array('type' => 'text', 'label' => $this->trans('RSS URL', array(), 'Modules.SocialFollow.Admin'), 'name' => 'blocksocial_rss', 'desc' => $this->trans('The RSS feed of your choice (your blog, your store, etc.).', array(), 'Modules.SocialFollow.Admin')), array('type' => 'text', 'label' => $this->trans('YouTube URL', array(), 'Modules.SocialFollow.Admin'), 'name' => 'blocksocial_youtube', 'desc' => $this->trans('Your official YouTube account.', array(), 'Modules.SocialFollow.Admin')), array('type' => 'text', 'label' => $this->trans('Google+ URL:', array(), 'Modules.SocialFollow.Admin'), 'name' => 'blocksocial_google_plus', 'desc' => $this->trans('Your official Google+ page.', array(), 'Modules.SocialFollow.Admin')), array('type' => 'text', 'label' => $this->trans('Pinterest URL:', array(), 'Modules.SocialFollow.Admin'), 'name' => 'blocksocial_pinterest', 'desc' => $this->trans('Your official Pinterest account.', array(), 'Modules.SocialFollow.Admin')), array('type' => 'text', 'label' => $this->trans('Vimeo URL:', array(), 'Modules.SocialFollow.Admin'), 'name' => 'blocksocial_vimeo', 'desc' => $this->trans('Your official Vimeo account.', array(), 'Modules.SocialFollow.Admin')), array('type' => 'text', 'label' => $this->trans('Instagram URL:', array(), 'Modules.SocialFollow.Admin'), 'name' => 'blocksocial_instagram', 'desc' => $this->trans('Your official Instagram account.', array(), 'Modules.SocialFollow.Admin'))), 'submit' => array('title' => $this->trans('Save', array(), 'Admin.Global'))));
     $helper = new HelperForm();
     $helper->show_toolbar = false;
     $helper->table = $this->table;
     $helper->submit_action = 'submitModule';
     $helper->tpl_vars = array('fields_value' => $this->getConfigFieldsValues());
     return $helper->generateForm(array($fields_form));
 }
开发者ID:prestashop,项目名称:ps_socialfollow,代码行数:10,代码来源:ps_socialfollow.php


示例7: counterForm

 public function counterForm()
 {
     $fields_form[0]['form'] = array('legend' => array('title' => $this->l('Counter')), 'input' => array(array('type' => 'file', 'label' => $this->l('Vos fichier'), 'name' => 'file', 'required' => true)), 'submit' => array('title' => $this->l('Save'), 'class' => 'btn btn-default pull-right'));
     $helper = new HelperForm();
     $helper->module = $this->module;
     $helper->token = Tools::getValue('token');
     $helper->title = 'Counter of files';
     $helper->submit_action = 'submitFileCounter';
     return $helper->generateForm($fields_form);
 }
开发者ID:noveni,项目名称:importmodule,代码行数:10,代码来源:AdminImporterCounterController.php


示例8: renderForm

 public function renderForm()
 {
     $inputs = array(array('name' => 'MYMOD_CA_EMAIL', 'label' => $this->module->l('E-mail'), 'type' => 'text'), array('name' => 'MYMOD_CA_TOKEN', 'label' => $this->module->l('Token'), 'type' => 'text'));
     $fields_form = array('form' => array('legend' => array('title' => $this->module->l('My Module configuration'), 'icon' => 'icon-wrench'), 'input' => $inputs, 'submit' => array('title' => $this->module->l('Save'))));
     $helper = new HelperForm();
     $helper->table = 'mymodcarrier';
     $helper->default_form_language = (int) Configuration::get('PS_LANG_DEFAULT');
     $helper->allow_employee_form_lang = (int) Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG');
     $helper->submit_action = 'mymodcarrier_form';
     $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->module->name . '&tab_module=' . $this->module->tab . '&module_name=' . $this->module->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->tpl_vars = array('fields_value' => array('MYMOD_CA_EMAIL' => Tools::getValue('MYMOD_CA_EMAIL', Configuration::get('MYMOD_CA_EMAIL')), 'MYMOD_CA_TOKEN' => Tools::getValue('MYMOD_CA_TOKEN', Configuration::get('MYMOD_CA_TOKEN'))), 'languages' => $this->context->controller->getLanguages());
     return $helper->generateForm(array($fields_form));
 }
开发者ID:andregugliotti,项目名称:mymodcarrier,代码行数:14,代码来源:getContent.php


示例9: renderForm

 public function renderForm()
 {
     $inputs = array(array('name' => 'MYMOD_CH_ORDER', 'label' => $this->module->l('Check order'), 'type' => 'text'), array('name' => 'MYMOD_CH_ADDRESS', 'label' => $this->module->l('Check address'), 'type' => 'textarea'), array('name' => 'MYMOD_BA_OWNER', 'label' => $this->module->l('Bankwire owner'), 'type' => 'text'), array('name' => 'MYMOD_BA_DETAILS', 'label' => $this->module->l('Bankwire details'), 'type' => 'textarea'), array('name' => 'MYMOD_API_URL', 'label' => $this->module->l('API URL'), 'type' => 'text'), array('name' => 'MYMOD_API_CRED_ID', 'label' => $this->module->l('API credentials ID'), 'type' => 'text'), array('name' => 'MYMOD_API_CRED_SALT', 'label' => $this->module->l('API credentials SALT'), 'type' => 'text'));
     $fields_form = array('form' => array('legend' => array('title' => $this->module->l('My Module configuration'), 'icon' => 'icon-wrench'), 'input' => $inputs, 'submit' => array('title' => $this->module->l('Save'))));
     $helper = new HelperForm();
     $helper->table = 'mymodpayment';
     $helper->default_form_language = (int) Configuration::get('PS_LANG_DEFAULT');
     $helper->allow_employee_form_lang = (int) Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG');
     $helper->submit_action = 'mymodpayment_form';
     $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->module->name . '&tab_module=' . $this->module->tab . '&module_name=' . $this->module->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->tpl_vars = array('fields_value' => array('MYMOD_CH_ORDER' => Tools::getValue('MYMOD_CH_ORDER', Configuration::get('MYMOD_CH_ORDER')), 'MYMOD_CH_ADDRESS' => Tools::getValue('MYMOD_CH_ADDRESS', Configuration::get('MYMOD_CH_ADDRESS')), 'MYMOD_BA_OWNER' => Tools::getValue('MYMOD_BA_OWNER', Configuration::get('MYMOD_BA_OWNER')), 'MYMOD_BA_DETAILS' => Tools::getValue('MYMOD_BA_DETAILS', Configuration::get('MYMOD_BA_DETAILS')), 'MYMOD_API_URL' => Tools::getValue('MYMOD_API_URL', Configuration::get('MYMOD_API_URL')), 'MYMOD_API_CRED_ID' => Tools::getValue('MYMOD_API_CRED_ID', Configuration::get('MYMOD_API_CRED_ID')), 'MYMOD_API_CRED_SALT' => Tools::getValue('MYMOD_API_CRED_SALT', Configuration::get('MYMOD_API_CRED_SALT'))), 'languages' => $this->context->controller->getLanguages());
     return $helper->generateForm(array($fields_form));
 }
开发者ID:FabienSerny,项目名称:mymodpayment,代码行数:14,代码来源:getContent.php


示例10: renderForm

 protected function renderForm()
 {
     $helper = new HelperForm();
     $helper->show_toolbar = false;
     $helper->table = $this->table;
     $helper->module = $this;
     $helper->default_form_language = $this->context->language->id;
     $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG', 0);
     $helper->identifier = $this->identifier;
     $helper->submit_action = 'submitDarwinpricingModule';
     $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->tpl_vars = array('fields_value' => $this->getConfigFormValues(), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id);
     return $helper->generateForm(array($this->getConfigForm()));
 }
开发者ID:darwinpricing,项目名称:darwinpricing-prestashop,代码行数:15,代码来源:darwinpricing.php


示例11: displayForm

 public function displayForm()
 {
     $fields_form = array();
     // Get default language
     $default_lang = (int) Configuration::get('PS_LANG_DEFAULT');
     // Init Fields form array
     $fields_form[0]['form'] = array('legend' => array('title' => $this->l('Step 3: Connect Your LivePerson Account')), 'input' => array(array('type' => 'text', 'label' => $this->l('LiveEngage Account Number'), 'name' => 'LP_SITEID', 'size' => 20, 'required' => true)), 'submit' => array('title' => $this->l('Connect'), 'class' => 'button'));
     $helper = new HelperForm();
     // Module, token and currentIndex
     $helper->module = $this;
     $helper->name_controller = $this->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
     // Language
     $helper->default_form_language = $default_lang;
     $helper->allow_employee_form_lang = $default_lang;
     // Title and toolbar
     $helper->title = $this->displayName;
     $helper->show_toolbar = false;
     // false -> remove toolbar
     $helper->toolbar_scroll = false;
     // yes - > Toolbar is always visible on the top of the screen.
     $helper->submit_action = 'submit' . $this->name;
     // Load current value
     $helper->fields_value['LP_SITEID'] = Configuration::get('LP_SITEID');
     return $helper->generateForm($fields_form);
 }
开发者ID:pankajshoffex,项目名称:shoffex_prestashop,代码行数:27,代码来源:liveperson.php


示例12: initRuleForm

 public function initRuleForm()
 {
     $this->fields_form[0]['form'] = array('legend' => array('title' => $this->l('New tax rule'), 'icon' => 'icon-money'), 'input' => array(array('type' => 'select', 'label' => $this->l('Country'), 'name' => 'country', 'id' => 'country', 'options' => array('query' => Country::getCountries($this->context->language->id), 'id' => 'id_country', 'name' => 'name', 'default' => array('value' => 0, 'label' => $this->l('All')))), array('type' => 'select', 'label' => $this->l('State'), 'name' => 'states[]', 'id' => 'states', 'multiple' => true, 'options' => array('query' => array(), 'id' => 'id_state', 'name' => 'name', 'default' => array('value' => 0, 'label' => $this->l('All')))), array('type' => 'hidden', 'name' => 'action'), array('type' => 'text', 'label' => $this->l('Zip/postal code range'), 'name' => 'zipcode', 'required' => false, 'hint' => $this->l('You can define a range of Zip/postal codes (e.g., 75000-75015) or simply use one Zip/postal code.')), array('type' => 'select', 'label' => $this->l('Behavior'), 'name' => 'behavior', 'required' => false, 'options' => array('query' => array(array('id' => 0, 'name' => $this->l('This tax only')), array('id' => 1, 'name' => $this->l('Combine')), array('id' => 2, 'name' => $this->l('One after another'))), 'id' => 'id', 'name' => 'name'), 'hint' => array($this->l('You must define the behavior if an address matches multiple rules:') . '<br>', $this->l('- This tax only: Will apply only this tax') . '<br>', $this->l('- Combine: Combine taxes (e.g.: 10% + 5% = 15%)') . '<br>', $this->l('- One after another: Apply taxes one after another (e.g.: 0 + 10% = 0 + 5% = 5.5)'))), array('type' => 'select', 'label' => $this->l('Tax'), 'name' => 'id_tax', 'required' => false, 'options' => array('query' => Tax::getTaxes((int) $this->context->language->id), 'id' => 'id_tax', 'name' => 'name', 'default' => array('value' => 0, 'label' => $this->l('No Tax'))), 'hint' => sprintf($this->l('(Total tax: %s)'), '9%')), array('type' => 'select', 'label' => $this->l('Grupos'), 'name' => 'id_group', 'required' => false, 'options' => array('query' => Group::getGroups($this->default_form_language, true), 'id' => 'id_group', 'name' => 'name', 'default' => array('value' => 0, 'label' => $this->l('Default'))), 'hint' => sprintf($this->l('(Total tax: %s)'), '9%')), array('type' => 'text', 'label' => $this->l('Description'), 'name' => 'description')), 'submit' => array('title' => $this->l('Save and stay'), 'stay' => true));
     if (!($obj = $this->loadObject(true))) {
         return;
     }
     $this->fields_value = array('action' => 'create_rule', 'id_tax_rules_group' => $obj->id, 'id_tax_rule' => '');
     $this->getlanguages();
     $helper = new HelperForm();
     $helper->override_folder = $this->tpl_folder;
     $helper->currentIndex = self::$currentIndex;
     $helper->token = $this->token;
     $helper->table = 'tax_rule';
     $helper->identifier = 'id_tax_rule';
     $helper->id = $obj->id;
     $helper->toolbar_scroll = true;
     $helper->show_toolbar = true;
     $helper->languages = $this->_languages;
     $helper->default_form_language = $this->default_form_language;
     $helper->allow_employee_form_lang = $this->allow_employee_form_lang;
     $helper->fields_value = $this->getFieldsValue($this->object);
     $helper->toolbar_btn['save_new_rule'] = array('href' => self::$currentIndex . '&amp;id_tax_rules_group=' . $obj->id . '&amp;action=create_rule&amp;token=' . $this->token, 'desc' => 'Save tax rule', 'class' => 'process-icon-save');
     $helper->submit_action = 'create_rule';
     return $helper->generateForm($this->fields_form);
 }
开发者ID:banquito,项目名称:taxrulesbycustomergroup,代码行数:25,代码来源:AdminTaxRulesGroupController.php


示例13: displayForm

 public function displayForm()
 {
     $default_lang = (int) Configuration::get('PS_LANG_DEFAULT');
     // Init Fields form array
     $fields_form[0]['form'] = array('legend' => array('title' => $this->l('Opciones')), 'input' => array(array('type' => 'text', 'label' => $this->l('Dirección de la Tienda'), 'name' => 'ADDRESS_SHOP', 'size' => 60, 'required' => false), array('type' => 'file', 'label' => $this->l('Background del pdf'), 'name' => 'PDFBAGROUND', 'desc' => $this->l('Seleciona el fichero para el backgroun del pdf.'), 'required' => false)), 'submit' => array('title' => $this->l('Guardar Configuracion'), 'class' => 'button'));
     $helper = new HelperForm();
     // Module, token and currentIndex
     $helper->module = $this;
     $helper->name_controller = $this->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
     // Language
     $helper->default_form_language = $default_lang;
     $helper->allow_employee_form_lang = $default_lang;
     // Title and toolbar
     $helper->title = $this->displayName;
     $helper->show_toolbar = true;
     // false -> remove toolbar
     $helper->toolbar_scroll = true;
     // yes - > Toolbar is always visible on the top of the screen.
     $helper->submit_action = 'submit' . $this->name;
     $helper->toolbar_btn = array('save' => array('desc' => $this->l('Save'), 'href' => AdminController::$currentIndex . '&configure=' . $this->name . '&save' . $this->name . '&token=' . Tools::getAdminTokenLite('AdminModules')), 'back' => array('href' => AdminController::$currentIndex . '&token=' . Tools::getAdminTokenLite('AdminModules'), 'desc' => $this->l('Back to list')));
     $helper->fields_value['ADDRESS_SHOP'] = Configuration::get('ADDRESS_SHOP');
     return $helper->generateForm($fields_form);
 }
开发者ID:hesselek,项目名称:printed_module,代码行数:25,代码来源:pdfproduct.php


示例14: displayForm

 public function displayForm()
 {
     // Get default Language
     $default_lang = (int) Configuration::get('PS_LANG_DEFAULT');
     // Init Fields form array
     $fields_form[0]['form'] = array('legend' => array('title' => $this->l('Website Settings')), 'input' => array(array('type' => 'switch', 'label' => $this->l('Dynamic Price'), 'name' => 'PRODUCT_DYNAMIC_PRICE', 'id' => 'prd_dynamic_price', 'required' => false, 'class' => 't', 'is_bool' => true, 'hint' => $this->l('Enable to Calculate price as, web service cost + store product margin'), 'values' => array(array('id' => 'active_on', 'value' => 1, 'label' => $this->l('Dynamic Price')), array('id' => 'active_off', 'value' => 0, 'label' => $this->l('Static Price')))), array('type' => 'text', 'label' => $this->l('Set Profit Margin'), 'name' => 'PROFIT_MARGIN', 'size' => 20, 'required' => true), array('type' => 'switch', 'label' => $this->l('Orders to be confirm by manager'), 'name' => 'ADMIN_CONFIRM_ORDER', 'required' => false, 'class' => 't', 'is_bool' => true, 'hint' => $this->l('Enabled: Orders needs to be confirmed by manager before Approval'), 'values' => array(array('id' => 'active_on', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'active_off', 'value' => 0, 'label' => $this->l('No')))), array('type' => 'text', 'label' => $this->l('Manager Email'), 'name' => 'ORDER_CNF_MANAGER_EMAIL', 'size' => 100, 'required' => false), array('type' => 'switch', 'label' => $this->l('Request A Sample'), 'name' => 'PRODUCT_REQUEST_SAMPLE', 'required' => false, 'class' => 't', 'is_bool' => true, 'hint' => $this->l('Enabled: To show request a sample button on product page'), 'values' => array(array('id' => 'active_on', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'active_off', 'value' => 0, 'label' => $this->l('No')))), array('type' => 'switch', 'label' => $this->l('Product Download Button'), 'name' => 'PRODUCT_DOWNLOAD_BUTTON', 'required' => false, 'class' => 't', 'is_bool' => true, 'hint' => $this->l('Enabled: To show download button on product page'), 'values' => array(array('id' => 'active_on', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'active_off', 'value' => 0, 'label' => $this->l('No')))), array('type' => 'text', 'label' => $this->l('Email for Request Sample/Quote'), 'name' => 'PRODUCT_REQUEST_EMAIL', 'size' => 100, 'required' => false)), 'submit' => array('title' => $this->l('Update'), 'class' => 'button'));
     $helper = new HelperForm();
     // Module, t    oken and currentIndex
     $helper->module = $this;
     $helper->name_controller = $this->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
     // Language
     $helper->default_form_language = $default_lang;
     $helper->allow_employee_form_lang = $default_lang;
     // Title and toolbar
     $helper->title = $this->displayName;
     $helper->show_toolbar = true;
     // false -> remove toolbar
     $helper->toolbar_scroll = true;
     // yes - > Toolbar is always visible on the top of the screen.
     $helper->submit_action = 'submit' . $this->name;
     $helper->toolbar_btn = array('save' => array('desc' => $this->l('Save'), 'href' => AdminController::$currentIndex . '&configure=' . $this->name . '&save' . $this->name . '&token=' . Tools::getAdminTokenLite('AdminModules')), 'back' => array('href' => AdminController::$currentIndex . '&token=' . Tools::getAdminTokenLite('AdminModules'), 'desc' => $this->l('Back to list')));
     // Load current value
     $helper->fields_value['PROFIT_MARGIN'] = Configuration::get('PROFIT_MARGIN');
     $helper->fields_value['ADMIN_CONFIRM_ORDER'] = Configuration::get('ADMIN_CONFIRM_ORDER');
     $helper->fields_value['ORDER_CNF_MANAGER_EMAIL'] = Configuration::get('ORDER_CNF_MANAGER_EMAIL');
     $helper->fields_value['PRODUCT_DYNAMIC_PRICE'] = Configuration::get('PRODUCT_DYNAMIC_PRICE');
     $helper->fields_value['PRODUCT_REQUEST_SAMPLE'] = Configuration::get('PRODUCT_REQUEST_SAMPLE');
     $helper->fields_value['PRODUCT_DOWNLOAD_BUTTON'] = Configuration::get('PRODUCT_DOWNLOAD_BUTTON');
     $helper->fields_value['PRODUCT_REQUEST_EMAIL'] = Configuration::get('PRODUCT_REQUEST_EMAIL');
     return $helper->generateForm($fields_form);
 }
开发者ID:Eximagen,项目名称:3m,代码行数:33,代码来源:websitesettings.php


示例15: displayForm

 public function displayForm()
 {
     // Get default language
     $default_lang = (int) Configuration::get('PS_LANG_DEFAULT');
     // Init Fields form array
     $fields_form[0]['form'] = array('legend' => array('title' => $this->l('Settings')), 'input' => array(array('type' => 'switch', 'label' => $this->l('Activate e-mail notification'), 'name' => 'BLA_ACTIV_EMAIL', 'is_bool' => true, 'values' => array(array('id' => 'BLA_ACTIV_EMAIL_ON', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'BLA_ACTIV_EMAIL_OFF', 'value' => 0, 'label' => $this->l('No')))), array('type' => 'text', 'label' => $this->l('E-mail for Notifications'), 'name' => 'BLA_EMAIL', 'size' => 20, 'required' => true)), 'submit' => array('title' => $this->l('Save'), 'class' => 'button'));
     // Select what you want to log
     $fields_form[1]['form'] = array('legend' => array('title' => $this->l('Select what you want to log')), 'input' => array(array('type' => 'switch', 'label' => $this->l('Log Carrier Update'), 'name' => 'BLA_ISLOG_CARUP', 'is_bool' => true, 'values' => array(array('id' => 'BLA_ISLOG_CARUP_ON', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'BLA_ISLOG_CARUP_OFF', 'value' => 0, 'label' => $this->l('No')))), array('type' => 'switch', 'label' => $this->l('Log Module Install'), 'name' => 'BLA_ISLOG_MODINST', 'is_bool' => true, 'values' => array(array('id' => 'BLA_ISLOG_MODINST_ON', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'BLA_ISLOG_MODINST_OFF', 'value' => 0, 'label' => $this->l('No')))), array('type' => 'switch', 'label' => $this->l('Log Module Register Hook'), 'name' => 'BLA_ISLOG_MODREG', 'is_bool' => true, 'values' => array(array('id' => 'BLA_ISLOG_MODREG_ON', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'BLA_ISLOG_MODREG_OFF', 'value' => 0, 'label' => $this->l('No')))), array('type' => 'switch', 'label' => $this->l('Log Module UnRegister Hook'), 'name' => 'BLA_ISLOG_MODUREG', 'is_bool' => true, 'values' => array(array('id' => 'BLA_ISLOG_MODUREG_ON', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'BLA_ISLOG_MODUREG_OFF', 'value' => 0, 'label' => $this->l('No'))))), 'submit' => array('title' => $this->l('Save'), 'class' => 'button'));
     $helper = new HelperForm();
     // Module, token and currentIndex
     $helper->module = $this;
     $helper->name_controller = $this->name;
     $helper->token = Tools::getAdminTokenLite('AdminModules');
     $helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
     // Language
     $helper->default_form_language = $default_lang;
     $helper->allow_employee_form_lang = $default_lang;
     // Title and toolbar
     $helper->title = $this->displayName;
     $helper->show_toolbar = true;
     // false -> remove toolbar
     $helper->toolbar_scroll = true;
     // yes - > Toolbar is always visible on the top of the screen.
     $helper->submit_action = 'submit' . $this->name;
     $helper->toolbar_btn = array('save' => array('desc' => $this->l('Save'), 'href' => AdminController::$currentIndex . '&configure=' . $this->name . '&save' . $this->name . '&token=' . Tools::getAdminTokenLite('AdminModules')), 'back' => array('href' => AdminController::$currentIndex . '&token=' . Tools::getAdminTokenLite('AdminModules'), 'desc' => $this->l('Back to list')));
     // Load current value
     $helper->fields_value['BLA_ISLOG_CARUP'] = Configuration::get('BLA_ISLOG_CARUP');
     $helper->fields_value['BLA_ISLOG_MODINST'] = Configuration::get('BLA_ISLOG_MODINST');
     $helper->fields_value['BLA_ISLOG_MODREG'] = Configuration::get('BLA_ISLOG_MODREG');
     $helper->fields_value['BLA_ISLOG_MODUREG'] = Configuration::get('BLA_ISLOG_MODUREG');
     $helper->fields_value['BLA_ACTIV_EMAIL'] = Configuration::get('BLA_ACTIV_EMAIL');
     $helper->fields_value['BLA_EMAIL'] = Configuration::get('BLA_EMAIL');
     return $helper->generateForm($fields_form);
 }
开发者ID:azriel49,项目名称:PrestaShop-BoLogActivity,代码行数:34,代码来源:bologactivity.php


示例16: renderForm

 public function renderForm()
 {
     $fields_form = array('form' => array('legend' => array('title' => $this->l('Settings'), 'icon' => 'icon-cogs'), 'input' => array(array('type' => 'text', 'label' => $this->l('Facebook URL'), 'name' => 'blocksocial_facebook', 'desc' => $this->l('Your Facebook fan page.')), array('type' => 'text', 'label' => $this->l('Twitter URL'), 'name' => 'blocksocial_twitter', 'desc' => $this->l('Your official Twitter account.')), array('type' => 'text', 'label' => $this->l('RSS URL'), 'name' => 'blocksocial_rss', 'desc' => $this->l('The RSS feed of your choice (your blog, your store, etc.).')), array('type' => 'text', 'label' => $this->l('YouTube URL'), 'name' => 'blocksocial_youtube', 'desc' => $this->l('Your official YouTube account.')), array('type' => 'text', 'label' => $this->l('Google+ URL:'), 'name' => 'blocksocial_google_plus', 'desc' => $this->l('Your official Google+ page.')), array('type' => 'text', 'label' => $this->l('Pinterest URL:'), 'name' => 'blocksocial_pinterest', 'desc' => $this->l('Your official Pinterest account.')), array('type' => 'text', 'label' => $this->l('Vimeo URL:'), 'name' => 'blocksocial_vimeo', 'desc' => $this->l('Your official Vimeo account.')), array('type' => 'text', 'label' => $this->l('Instagram URL:'), 'name' => 'blocksocial_instagram', 'desc' => $this->l('Your official Instagram account.'))), 'submit' => array('title' => $this->l('Save'))));
     $helper = new HelperForm();
     $helper->show_toolbar = false;
     $helper->table = $this->table;
     $lang = new Language((int) Configuration::get('PS_LANG_DEFAULT'));
     $helper->default_form_language = $lang->id;
     $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
     $helper->identifier = $this->identifier;
     $he 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP HelperKpi类代码示例发布时间:2022-05-23
下一篇:
PHP Helper类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap