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


PHP HelperForm::generateForm方法代码示例

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


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

示例1: 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

示例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: 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

示例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: 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

示例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_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

示例9: 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

示例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()
 {
     $default_lang = (int) Configuration::get('PS_LANG_DEFAULT');
     $fields_form1[0] = array('form' => array('legend' => array('title' => $this->l('Settings'), 'icon' => 'icon-cogs'), 'input' => array(array('type' => 'switch', 'label' => $this->l('Dynamic'), 'name' => 'EGSITEMAP_MAIN_FDAT', 'desc' => $this->l('Activate dynamic (animated) mode for category sublevels.'), 'values' => array(array('id' => 'active_on', 'value' => 1, 'label' => $this->l('Enabled')), array('id' => 'active_off', 'value' => 0, 'label' => $this->l('Disabled'))))), 'submit' => array('title' => $this->l('Save'))));
     $helper = new HelperForm();
     $helper->show_toolbar = false;
     $helper->table = $this->table;
     $helper->default_form_language = $default_lang;
     $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 = 'submitBlockCategories';
     $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' => array('EGSITEMAP_MAIN_FDAT' => (bool) Configuration::get('EGSITEMAP_MAIN_FDAT')), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id);
     return $helper->generateForm($fields_form1);
 }
开发者ID:evgrishin,项目名称:mh16014,代码行数:16,代码来源:egsitemap.php

示例12: 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;
     $helper->submit_action = 'submitModule';
     $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(array($fields_form));
 }
开发者ID:jpodracky,项目名称:dogs,代码行数:16,代码来源:blocksocial.php

示例13: displayForm

 public function displayForm()
 {
     $this->fields_form[0]['form'] = array('legend' => array('title' => $this->l('Convead')), 'input' => array(array('type' => 'text', 'label' => $this->l('app_key'), 'name' => 'APP_KEY', 'required' => true)), 'submit' => array('name' => 'submitConvead', 'title' => $this->l('Save')));
     $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 = 'convead';
     $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:Convead,项目名称:prestashop_convead,代码行数:17,代码来源:convead.php

示例14: renderForm

 public function renderForm()
 {
     $fields_form = array('form' => array('legend' => array('title' => $this->l('Settings'), 'icon' => 'icon-cog'), 'input' => array(array('type' => 'text', 'label' => $this->l('Content Selector'), 'name' => 'MU_INF_SCROLL_CONTENT_SELECTOR', 'class' => 'fixed-width-xl'), array('type' => 'text', 'label' => $this->l('Navigation Selector'), 'name' => 'MU_INF_SCROLL_NAV_SELECTOR', 'class' => 'fixed-width-xl'), array('type' => 'text', 'label' => $this->l('Next Selector'), 'name' => 'MU_INF_SCROLL_NEXT_SELECTOR', 'class' => 'fixed-width-xl'), array('type' => 'text', 'label' => $this->l('Item Selector'), 'name' => 'MU_INF_SCROLL_ITEM_SELECTOR', 'class' => 'fixed-width-xl'), array('type' => 'textarea', 'label' => $this->l('Loading message'), 'name' => 'MU_INF_SCROLL_LOADING_TXT', 'class' => 'fixed-width-xl'), array('type' => 'textarea', 'label' => $this->l('End message'), 'name' => 'MU_INF_SCROLL_LOADING_END', 'class' => 'fixed-width-xl'), array('type' => 'text', 'label' => $this->l('Loading img'), 'name' => 'MU_INF_SCROLL_LOADING_IMG', 'class' => 'fixed-width-xl')), 'submit' => array('title' => $this->l('Save'))));
     $helper = new HelperForm();
     $helper->show_toolbar = true;
     $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;
     $this->fields_form = array();
     $helper->identifier = $this->identifier;
     $helper->submit_action = 'submitMuInfiniteScroll';
     $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' => array('MU_INF_SCROLL_CONTENT_SELECTOR' => Tools::getValue('MU_INF_SCROLL_CONTENT_SELECTOR', Configuration::get('MU_INF_SCROLL_CONTENT_SELECTOR')), 'MU_INF_SCROLL_NAV_SELECTOR' => Tools::getValue('MU_INF_SCROLL_NAV_SELECTOR', Configuration::get('MU_INF_SCROLL_NAV_SELECTOR')), 'MU_INF_SCROLL_NEXT_SELECTOR' => Tools::getValue('MU_INF_SCROLL_NEXT_SELECTOR', Configuration::get('MU_INF_SCROLL_NEXT_SELECTOR')), 'MU_INF_SCROLL_ITEM_SELECTOR' => Tools::getValue('MU_INF_SCROLL_ITEM_SELECTOR', Configuration::get('MU_INF_SCROLL_ITEM_SELECTOR')), 'MU_INF_SCROLL_LOADING_TXT' => Tools::getValue('MU_INF_SCROLL_LOADING_TXT', Configuration::get('MU_INF_SCROLL_LOADING_TXT')), 'MU_INF_SCROLL_LOADING_END' => Tools::getValue('MU_INF_SCROLL_LOADING_END', Configuration::get('MU_INF_SCROLL_LOADING_END')), 'MU_INF_SCROLL_LOADING_IMG' => Tools::getValue('MU_INF_SCROLL_LOADING_IMG', Configuration::get('MU_INF_SCROLL_LOADING_IMG'))), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id);
     return $helper->generateForm(array($fields_form));
 }
开发者ID:harivemula,项目名称:muinfinitescroll,代码行数:17,代码来源:muinfinitescroll.php

示例15: renderForm

 public function renderForm()
 {
     $fields_form = array('form' => array('legend' => array('title' => $this->l('Settings'), 'icon' => 'icon-cogs'), 'description' => $this->l('Set the id number of the gift product.'), 'input' => array(array('type' => 'text', 'label' => $this->l('Product ID'), 'name' => 'customgift_productid')), '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;
     $this->fields_form = array();
     $helper->identifier = $this->identifier;
     $helper->submit_action = 'submitModule';
     $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(array($fields_form));
 }
开发者ID:PapaPingouin,项目名称:nmcutsomgift,代码行数:17,代码来源:nmcustomgift.php


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