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


PHP HtmlForm::genDropdownSingleChoice方法代码示例

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


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

示例1: outputAcceptedCurrenciesRule

 function outputAcceptedCurrenciesRule($options_values, $selected_value)
 {
     $options = array();
     foreach ($options_values as $rule) {
         $options[] = array("value" => $rule['rule_name'], "contents" => getMsg('SYS', $rule['rule_name']));
     }
     loadCoreFile('html_form.php');
     $HtmlForm1 = new HtmlForm();
     $value = $HtmlForm1->genDropdownSingleChoice(array("onChange" => "try{accepted_currencies_rule_onchange();} catch(ex) {};", "select_name" => "pm_sm_accepted_currencies_rule", "class" => "input-large", "values" => $options, "selected_value" => $selected_value, "id" => "pm_sm_accepted_currencies_rule"));
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:11,代码来源:pm_sm_input_az.php

示例2: output

 function output()
 {
     global $application;
     $settings = modApiFunc('Quick_Books', 'getSettings');
     $op_as_inv_select = array("select_name" => "qbs[OP_AS_INV]", "selected_value" => $settings['OP_AS_INV'], 'class' => 'form-control input-sm input-xsmall', "values" => array(array('value' => 'Y', 'contents' => getMsg('QB', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('QB', 'LBL_NO'))));
     $template_contents = array("TrnsClassField" => HtmlForm::genInputTextField('255', 'qbs[TRNS_CLASS]', '70', $settings['TRNS_CLASS']), "AccTaxField" => HtmlForm::genInputTextField('255', 'qbs[ACC_TAX]', '70', $settings['ACC_TAX']), "AccProductField" => HtmlForm::genInputTextField('255', 'qbs[ACC_PRODUCT]', '70', $settings['ACC_PRODUCT']), "AccShippingField" => HtmlForm::genInputTextField('255', 'qbs[ACC_SHIPPING]', '70', $settings['ACC_SHIPPING']), "AccInventoryField" => HtmlForm::genInputTextField('255', 'qbs[ACC_INVENTORY]', '70', $settings['ACC_INVENTORY']), "AccGlobalDiscountField" => HtmlForm::genInputTextField('255', 'qbs[ACC_GLOBAL_DISCOUNT]', '70', $settings['ACC_GLOBAL_DISCOUNT']), "AccPromoCodeDiscountField" => HtmlForm::genInputTextField('255', 'qbs[ACC_PROMOCODE_DISCOUNT]', '70', $settings['ACC_PROMOCODE_DISCOUNT']), "AccQuantityDiscountField" => HtmlForm::genInputTextField('255', 'qbs[ACC_QUANTITY_DISCOUNT]', '70', $settings['ACC_QUANTITY_DISCOUNT']), "OpAsInvField" => HtmlForm::genDropdownSingleChoice($op_as_inv_select), "MinQISField" => HtmlForm::genInputTextField('255', 'qbs[MIN_QIS]', '70', $settings['MIN_QIS']), "AccCOGSField" => HtmlForm::genInputTextField('255', 'qbs[ACC_COGS]', '70', $settings['ACC_COGS']), "OrdersPrefixField" => HtmlForm::genInputTextField('255', 'qbs[QB_ORDERS_PREFIX]', '70', $settings['QB_ORDERS_PREFIX']), "ResultMessage" => $this->outputResultMessage());
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("quick_books/settings/", "container.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:11,代码来源:qb_settings_az.php

示例3: output

 function output()
 {
     global $application;
     $cats_select = array('select_name' => 'ProductCategory', 'id' => 'ProductCategory', 'selected_value' => 1, 'values' => array());
     $cats = modApiFunc("Catalog", "getSubcategoriesFullListWithParent", 1, false);
     foreach ($cats as $cat) {
         $cats_select['values'][] = array('value' => $cat['id'], 'contents' => str_repeat('  ', $cat['level']) . $cat['name']);
     }
     $template_contents = array('ProductListSubcategories' => HtmlForm::genDropdownSingleChoice($cats_select, ' style="width: 290px; font-family: courier new; font-size: 11px;"'), 'CategoriesPaths' => $this->outputCategoriesPaths($cats));
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("catalog/export_products/", "container-2.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:14,代码来源:export_products_view_az.php

示例4: output

 function output()
 {
     global $application;
     $settings = modApiFunc('Manufacturers', 'getSettings');
     $ag_select = array("select_name" => "pi_sets[AUTO_GEN_MAIN_SMALL_IMAGE]", "selected_value" => $settings['AUTO_GEN_MAIN_SMALL_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('MNF', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('MNF', 'LBL_NO'))));
     $ag_param = '';
     if (!function_exists('gd_info')) {
         $ag_select["selected_value"] = "N";
         $ag_param = 'disabled';
     }
     $template_contents = array('TSField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMB_SIDE]', '5', $settings['THUMB_SIDE']), 'TPLField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMBS_PER_LINE]', '5', $settings['THUMBS_PER_LINE']), 'AGField' => HtmlForm::genDropdownSingleChoice($ag_select, $ag_param), 'MISField' => HtmlForm::genInputTextField('25', 'pi_sets[MAIN_IMAGE_SIDE]', '5', $settings['MAIN_IMAGE_SIDE'], $ag_param), "ResultMessage" => $this->outputResultMessage());
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("manufacturers/settings/", "container.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:16,代码来源:settings_az.php

示例5: outputField

 /**
  * Outputs the form field for the given params
  */
 function outputField($field_type, $field_name, $def_value, $onchange = '', $id = '')
 {
     $return_value = '';
     switch ($field_type) {
         case 'hidden':
             $return_value = '<input type="hidden"' . HtmlForm::genHiddenField($field_name, $def_value) . ' id="' . $field_name . '" />';
             break;
         case 'rate':
             $return_value = '<input type="text"' . HtmlForm::genInputTextField('255', $field_name, '70', $def_value, $onchange . 'style="width: 98%;" class="form-control input-sm input-large"') . ' />';
             break;
         case 'visible':
             $return_value = HtmlForm::genDropdownSingleChoice(array("select_name" => $field_name, "selected_value" => $def_value, "onChange" => $onchange, "values" => array(array('value' => 'Y', 'contents' => getMsg('CR', 'CR_SHOW')), array('value' => 'N', 'contents' => getMsg('CR', 'CR_HIDE')))));
             break;
         case 'checkbox':
             $return_value = HtmlForm::genCheckbox(array("value" => $def_value, "name" => $field_name, "onclick" => $onchange, "id" => $id, "is_checked" => ''));
             break;
     }
     return $return_value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:22,代码来源:cr_rates_settings_az.php

示例6: output

 function output()
 {
     global $application;
     $request = new Request();
     $request->setView(CURRENT_REQUEST_URL);
     $request->setKey("page_view", "TaxRateByZip_AddNewSet");
     $request->setAction('TaxRatesRedirectToImportAction');
     $formAction = $request->getURL();
     $title = getMsg('TAX_ZIP', 'ADD_NEW_SET_PAGE_TITLE');
     $descr_value = '';
     $updateSid = $request->getValueByKey("updateSid", 0);
     if ($updateSid) {
         $set_to_update = modApiFunc("TaxRateByZip", "getSet", $updateSid);
         if (isset($set_to_update[0]["name"])) {
             $descr_value = $set_to_update[0]["name"];
             $title = getMsg('TAX_ZIP', 'UPDATE_SET_PAGE_TITLE');
             $title = str_replace("%1%", $descr_value, $title);
             $request->setKey("updateSid", $updateSid);
             $formAction = $request->getURL();
         }
     }
     $ptypes_select = array('select_name' => 'TargetPType', 'id' => 'TargetPType', 'selected_value' => '0', 'values' => array());
     $ptypes = modApiFunc('Catalog', 'getProductTypes');
     foreach ($ptypes as $ptype) {
         $ptypes_select['values'][] = array('value' => $ptype['id'], 'contents' => $ptype['name']);
     }
     $cats_select = array('select_name' => 'TargetCategory', 'id' => 'TargetCategory', 'selected_value' => 1, 'values' => array());
     $cats = modApiFunc("Catalog", "getSubcategoriesFullListWithParent", 1, false);
     foreach ($cats as $cat) {
         $cats_select['values'][] = array('value' => $cat['id'], 'contents' => str_repeat('&nbsp;&nbsp;', $cat['level']) . $cat['name']);
     }
     $template_contents = array("FormAction" => $formAction, "DescriptionValue" => $descr_value, "Title" => $title, "Errors" => $this->outputResultMessage(), 'PTypesList' => HtmlForm::genDropdownSingleChoice($ptypes_select, ' style="width: 290px;"'), 'CategoriesList' => HtmlForm::genDropdownSingleChoice($cats_select, ' style="width: 290px;"'));
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     return $this->mTmplFiller->fill("", "container.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:36,代码来源:tax-rate-by-zip-add-new-set.php

示例7: output

 function output()
 {
     global $application;
     $settings = modApiFunc('Product_Images', 'getSettings');
     $detailedFullImageResizeSelect = array("select_name" => "pi_sets[RESIZE_DETAILED_LARGE_IMAGE]", "selected_value" => $settings['RESIZE_DETAILED_LARGE_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
     $fullImageResizeSelect = array("select_name" => "pi_sets[RESIZE_LARGE_IMAGE]", "selected_value" => $settings['RESIZE_LARGE_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
     $ag_select = array("select_name" => "pi_sets[AUTO_GEN_MAIN_SMALL_IMAGE]", "selected_value" => $settings['AUTO_GEN_MAIN_SMALL_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
     $ag_param = '';
     if (!function_exists('gd_info')) {
         $ag_select["selected_value"] = "N";
         $ag_param = 'disabled';
     }
     $cat_ag_select = array("select_name" => "pi_sets[AUTO_GEN_CAT_SMALL_IMAGE]", "selected_value" => $settings['AUTO_GEN_CAT_SMALL_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
     $cat_ag_param = '';
     if (!function_exists('gd_info')) {
         $cat_ag_select["selected_value"] = "N";
         $cat_ag_param = 'disabled';
     }
     $template_contents = array('TSField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMB_SIDE]', '5', $settings['THUMB_SIDE']), 'TPLField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMBS_PER_LINE]', '5', $settings['THUMBS_PER_LINE']), 'TPLSetting' => $application->getAppIni('PRODUCT_LIST_DISABLE_TR_TD'), 'AGField' => HtmlForm::genDropdownSingleChoice($ag_select, $ag_param), 'CatAGField' => HtmlForm::genDropdownSingleChoice($cat_ag_select, $cat_ag_param), 'fullImageResizeField' => HtmlForm::genDropdownSingleChoice($fullImageResizeSelect, $ag_param), 'detailedFullImageResizeField' => HtmlForm::genDropdownSingleChoice($detailedFullImageResizeSelect, $ag_param), 'MISField' => HtmlForm::genInputTextField('25', 'pi_sets[MAIN_IMAGE_SIDE]', '5', $settings['MAIN_IMAGE_SIDE'], $ag_param), 'CatMISField' => HtmlForm::genInputTextField('25', 'pi_sets[CAT_IMAGE_SIDE]', '5', $settings['CAT_IMAGE_SIDE'], $cat_ag_param), 'firField' => HtmlForm::genInputTextField('25', 'pi_sets[LARGE_IMAGE_SIZE]', '5', $settings['LARGE_IMAGE_SIZE'], $ag_param), 'dfirField' => HtmlForm::genInputTextField('25', 'pi_sets[DETAILED_LARGE_IMAGE_SIZE]', '5', $settings['DETAILED_LARGE_IMAGE_SIZE'], $ag_param), "ResultMessage" => $this->outputResultMessage());
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("product_images/settings/", "container.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:24,代码来源:settings_az.php

示例8: outputStatusValue

 /**
  * Outputs the status select box for the given record
  */
 function outputStatusValue($record)
 {
     $values = array();
     $values[] = array('value' => 'A', 'contents' => getMsg('CR', 'CR_STATUS_APPROVED'));
     if ($record['status'] == 'P') {
         $values[] = array('value' => 'P', 'contents' => getMsg('CR', 'CR_STATUS_PENDING'));
     }
     $values[] = array('value' => 'N', 'contents' => getMsg('CR', 'CR_STATUS_NOTAPPROVED'));
     return HtmlForm::genDropdownSingleChoice(array('select_name' => 'data[' . $record['cr_id'] . '][status]', 'selected_value' => $record['status'], 'onChange' => 'javascript: onStatusChanged(' . $record['cr_id'] . ')', 'id' => 'data[' . $record['cr_id'] . '][status]', 'class' => 'form-control input-small', 'values' => $values));
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:13,代码来源:cr_manage_customer_reviews_az.php

示例9: outStatesSelect

 function outStatesSelect()
 {
     if (isset($this->POST["DstCountry"])) {
         $states = modApiFunc("Location", "getStates", $this->POST["DstCountry"]);
     }
     $states_select = array("select_name" => "DstState_menu_select", "id" => "DstState_menu_select", "values" => array());
     if (isset($this->POST["DstState_menu_select"])) {
         $states_select["selected_value"] = $this->POST["DstState_menu_select"];
     }
     if (isset($states) and !empty($states)) {
         foreach ($states as $sid => $sname) {
             $states_select["values"][] = array("value" => $sid, "contents" => $sname);
         }
     }
     $state_name = !empty($this->POST["DstState_text_div"]) ? $this->POST["DstState"] : "";
     $html_ss = HtmlForm::genDropdownSingleChoice($states_select);
     $html_div = "<div id=\"DstState_test_div\"><input class='form-control input-sm input-large' type=\"text\" id=\"DstState_text_div\" " . HtmlForm::genInputTextField("125", "DstState_text_div", "55", $state_name) . "></div>";
     return $html_ss . $html_div;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:19,代码来源:dsr_input_az.php

示例10: outputExtensionTypeFilterSelect

 function outputExtensionTypeFilterSelect()
 {
     $result = execQuery('SELECT_ALL_MARKETPLACE_EXTENSION_DETAILS');
     $values[] = array('value' => getMsg('SYS', 'CUSTOMERS_SEARCH_ALL'), 'contents' => getMsg('SYS', 'CUSTOMERS_SEARCH_ALL'));
     # For displaying All extensions
     if (!empty($result)) {
         foreach ($result as $content) {
             $ext_cat = $content['extension_category'];
             $ext_cat_display = ucwords(str_replace('_', ' ', $content['extension_category']));
             $values[] = array('value' => "{$ext_cat}", 'contents' => "{$ext_cat_display}");
         }
     }
     $filter_select = array('select_name' => 'category_filter_by', 'selected_value' => $this->search_filter['category_filter_by'], 'class' => 'form-contrl input-sm input-small inline', 'onChange' => "window.location = 'configure-extensions.php?category_filter_by='+this.value;", 'values' => array_unique($values, SORT_REGULAR));
     return HtmlForm::genDropdownSingleChoice($filter_select);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:15,代码来源:extension_manage_az.php

示例11: outputSettingsForm

 function outputSettingsForm()
 {
     $return_html_code = "";
     global $application;
     $options_settings = modApiFunc("Product_Options", "getOptionsSettingsForEntity", $this->parent_entity, $this->entity_id);
     if (count($this->Options) > 0) {
         $aawd_select = array("select_name" => "os[AAWD]", "class" => "from-control input-sm input-xsmall", "selected_value" => $options_settings['AAWD'], "values" => array(array("value" => "Y", "contents" => $this->MessageResources->getMessage('LBL_YES')), array("value" => "N", "contents" => $this->MessageResources->getMessage('LBL_NO'))));
         $aanic_select = array("select_name" => "os[AANIC]", "class" => "from-control input-sm input-xsmall", "selected_value" => $options_settings['AANIC'], "values" => array(array("value" => "Y", "contents" => $this->MessageResources->getMessage('LBL_YES')), array("value" => "N", "contents" => $this->MessageResources->getMessage('LBL_NO'))));
         $aanis_select = array("select_name" => "os[AANIS]", "class" => "from-control input-sm input-xsmall", "selected_value" => $options_settings['AANIS'], "values" => array(array("value" => "Y", "contents" => $this->MessageResources->getMessage('LBL_YES')), array("value" => "N", "contents" => $this->MessageResources->getMessage('LBL_NO'))));
         $template_contents = array("_parent_entity" => $this->parent_entity, "_entity_id" => $this->entity_id, "inv_sets_display" => count($this->__for_it_opts) > 0 ? '' : 'none', "setAAWDfield" => HtmlForm::genDropdownSingleChoice($aawd_select), "setAANICfield" => HtmlForm::genDropdownSingleChoice($aanic_select), "WRN_ONS_text" => $options_settings["WRN_ONS"], "WRN_CI_CR_text" => $options_settings["WRN_CI_CR"], "WRN_CI_INV_text" => $options_settings["WRN_CI_INV"], "HintLink_AAWD" => $this->Hints->getHintLink(array('SETTING_AAWD', 'product-options-messages')), "HintLink_ANIC" => $this->Hints->getHintLink(array('SETTING_AANIC', 'product-options-messages')), "HintLink_WRN_ONS" => $this->Hints->getHintLink(array('SETTING_WRN_ONS', 'product-options-messages')), "HintLink_WRN_CI_CR" => $this->Hints->getHintLink(array('SETTING_WRN_CI_CR', 'product-options-messages')), "HintLink_WRN_CI_INV" => $this->Hints->getHintLink(array('SETTING_WRN_CI_INV', 'product-options-messages')), "LL_NTF_value" => $options_settings['LL_NTF'], "setAANISfield" => HtmlForm::genDropdownSingleChoice($aanis_select));
         $this->_Template_Contents = $template_contents;
         $application->registerAttributes($this->_Template_Contents);
         $this->mTmplFiller =& $application->getInstance('TmplFiller');
         $return_html_code .= $this->mTmplFiller->fill("product_options/settings-form/", "container.tpl.html", array());
     }
     return $return_html_code;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:17,代码来源:po_options_list_az.php

示例12: output

 function output()
 {
     global $application;
     $mr_info = modApiFunc('Mod_Rewrite', 'detectModRewrite');
     $rw_schemes = modApiFunc('Mod_Rewrite', 'getRewriteSchemes');
     // <begin>                                      mod_rewrite
     $tests_results = array();
     //                     "     "
     echo "<!-- Tests results:\n";
     for ($i = 1; $i <= 2; $i++) {
         $tests_results[$i] = $this->_makeTest($i, "Ok");
         if ($tests_results[$i]) {
             echo "{$i}: Ok\n";
         } else {
             echo "{$i}: Error\n";
         }
     }
     echo " -->";
     if (!in_array(true, $tests_results)) {
         $mr_info['tests_status'] = false;
     } else {
         //                                    ,
         //        Options +FollowSymLinks   .htaccess
         $mr_info['tests_status'] = true;
         $_sets = array('ADD_FSL_STRING' => array_search(true, $tests_results) == 2 ? 'Y' : 'N');
         modApiFunc('Mod_Rewrite', 'updateSettings', $_sets);
     }
     // <end>                                      mod_rewrite
     $schemes_select = array("id" => "sets[REWRITE_SCHEME]", "select_name" => "sets[REWRITE_SCHEME]", "selected_value" => $this->mr_settings['REWRITE_SCHEME'], "onChange" => "changeSampleLinks(this.value);", "values" => array());
     foreach ($rw_schemes as $k => $scheme_info) {
         $schemes_select['values'][] = array("value" => $scheme_info['scheme_id'], "contents" => getMsg('MR', 'RS_' . _ml_strtoupper($scheme_info['scheme_name'])));
     }
     $template_contents = array('ResultMessage' => $this->outputResultMessage(), 'ServerSoft' => $mr_info['server_soft'], 'MRloaded' => $mr_info['mod_rewrite_loaded'], 'setsCatsPrefix' => HtmlForm::genInputTextField('255', 'sets[CATS_PREFIX]', '50', $this->mr_settings['CATS_PREFIX']), 'setsProdsPrefix' => HtmlForm::genInputTextField('255', 'sets[PRODS_PREFIX]', '50', $this->mr_settings['PRODS_PREFIX']), 'setsCMSPrefix' => HtmlForm::genInputTextField('255', 'sets[CMS_PREFIX]', '50', $this->mr_settings['CMS_PREFIX']), 'MRStatusMessage' => $this->outMRStatusMessage($mr_info), 'setsSchemesSelect' => HtmlForm::genDropdownSingleChoice($schemes_select), 'jsLinkSmaplesArray' => $this->out_jsLinkSmaplesArray(), 'currentSchemeID' => $this->mr_settings['REWRITE_SCHEME'], 'LayoutsSettings' => $this->_form_disabled ? '' : $this->out_LayoutsSettings(), 'disableAllCondition' => $this->_form_disabled ? 'true' : 'false');
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("mod_rewrite/", "container.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:38,代码来源:mr_settings_az.php

示例13: outputStatus

 function outputStatus()
 {
     $selected_index = $this->POST["ManufacturerStatusValue"];
     $options = array(array("value" => DB_TRUE, "contents" => getMsg('MNF', "MNF_STATUS_ACTIVE")), array("value" => DB_FALSE, "contents" => getMsg('MNF', "MNF_STATUS_INACTIVE")));
     $HtmlForm1 = new HtmlForm();
     $value = $HtmlForm1->genDropdownSingleChoice(array("onChange" => "", "select_name" => "ManufacturerStatus", "values" => $options, "selected_value" => $selected_index));
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:8,代码来源:add_manufacturer_az.php

示例14: getThemeSwitcher

 function getThemeSwitcher()
 {
     $switcher = '';
     $themes = modApiStaticFunc('Look_Feel', 'getThemeList');
     if ($themes) {
         $values = array(array('value' => '', 'contents' => getXMsg('LF', 'LF_THEME_DEFAULT')));
         foreach ($themes as $theme) {
             $values[] = array('value' => $theme['name'], 'contents' => $theme['name']);
         }
         $switcher = HtmlForm::genDropdownSingleChoice(array('select_name' => 'active_theme', 'class' => 'input-medium', 'selected_value' => modApiFunc('Look_Feel', 'getActiveTheme'), 'values' => $values, 'onChange' => 'setActiveTheme(this)'));
     }
     return $switcher;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:13,代码来源:skin_list_az.php

示例15: out_SearchLetterFilterSelect

 function out_SearchLetterFilterSelect()
 {
     $filter_select = array('select_name' => 'letter_filter_by', 'selected_value' => $this->search_filter['letter_filter_by'], 'class' => 'form-control input-sm input-small inline', 'onChange' => "window.location = 'customers.php?letter_filter_by='+this.value;", 'values' => array(array('value' => 'account_name', 'contents' => getMsg('CA', 'LBL_FILTER_BY_ACCOUNT')), array('value' => 'customer_name', 'contents' => getMsg('CA', 'LBL_FILTER_BY_LASTNAME'))));
     return HtmlForm::genDropdownSingleChoice($filter_select);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:5,代码来源:customers_list_az.php


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