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


PHP HtmlForm::genSubmitScript方法代码示例

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


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

示例1: outputSubtitle

 /**
  *
  */
 function outputSubtitle()
 {
     global $application;
     loadCoreFile('html_form.php');
     $HtmlForm1 = new HtmlForm();
     $this->_Template_Contents["SubmitSaveScript"] = $HtmlForm1->genSubmitScript("AddManufacturerForm");
     $application->registerAttributes($this->_Template_Contents);
     return $this->mTmplFiller->fill("manufacturers/edit_manufacturer/", "subtitle.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:12,代码来源:edit_manufacturer_az.php

示例2: outputSubtitle

 /**
  *
  */
 function outputSubtitle()
 {
     global $application;
     loadCoreFile('html_form.php');
     $HtmlForm1 = new HtmlForm();
     $this->_Template_Contents = array("BookmarksBlock" => $this->outputBookmarksBlock("scc_details", 1, "edit"), "SubmitSaveScript" => $HtmlForm1->genSubmitScript("AddFsRuleForm"));
     $application->registerAttributes($this->_Template_Contents);
     return $this->mTmplFiller->fill("shipping_cost_calculator/edit_fs_rule/", "subtitle.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:12,代码来源:edit-fs-rule-az.php

示例3: output

 /**
  * Return the "Manufacturers -> Add Manufacturer" view html code.
  *
  */
 function output()
 {
     global $application;
     loadCoreFile('html_form.php');
     $this->Hints =& $application->getInstance('Hint');
     $HtmlForm1 = new HtmlForm();
     $this->MessageResources =& $application->getInstance('MessageResources', "manufacturers-messages", "AdminZone");
     if ($this->ViewState["hasCloseScript"] == "true") {
         modApiFunc("application", "closeChild_UpdateParent");
         return;
     }
     $manufacturer_summary = $this->outputManufacturerSummary();
     $this->_Template_Contents = array("ManufacturerSummary" => $manufacturer_summary);
     $application->registerAttributes($this->_Template_Contents);
     $template_contents = array("Subtitle" => $this->outputSubtitle(), "Errors" => $this->outputErrors(), "ManufacturerId" => $this->outputManufacturerId(), "ManufacturerSummary" => $manufacturer_summary, "ManufacturerNameError" => isset($this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_001']) ? $this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_001'] : "", "ManufacturerNameInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_001']) ? "error" : "", "ManufacturerName" => $HtmlForm1->genInputTextField("128", "ManufacturerName", "75", prepareHTMLDisplay($this->POST["ManufacturerNameText"])), "ManufacturerIdFieldHint" => $this->Hints->getHintLink(array('MANUFACTURER_ID_NAME', 'manufacturers-messages')), "ManufacturerNameFieldHint" => $this->Hints->getHintLink(array('MNF_NAME_NAME', 'manufacturers-messages')), "ManufacturerImage" => getimage_input_az('mnf_image', $this->POST["ManufacturerImage"]), "ManufacturerImageFieldHint" => $this->Hints->getHintLink(array('MNF_IMAGE_NAME', 'manufacturers-messages')), "ManufacturerUrlError" => isset($this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_004']) ? $this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_004'] : "", "ManufacturerUrlInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_004']) ? "error" : "", "ManufacturerUrl" => $HtmlForm1->genInputTextField("128", "ManufacturerUrl", "75", prepareHTMLDisplay($this->POST["ManufacturerUrlText"] === NULL ? '' : $this->POST["ManufacturerUrlText"])), "ManufacturerUrlFieldHint" => $this->Hints->getHintLink(array('MNF_URL_NAME', 'manufacturers-messages')), "ManufacturerDescError" => isset($this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_002']) ? $this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_002'] : "", "ManufacturerDescInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_002']) ? "error" : "", "ManufacturerDesc" => $HtmlForm1->genInputTextAreaField("77", "ManufacturerDesc", "10"), "ManufacturerDescText" => prepareHTMLDisplay($this->POST["ManufacturerDescText"]), "ManufacturerDescFieldHint" => $this->Hints->getHintLink(array('MNF_DESC_NAME', 'manufacturers-messages')), "ManufacturerStatusError" => isset($this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_003']) ? $this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_003'] : "", "ManufacturerStatusInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_MNF_ADD_MNF_003']) ? "error" : "", "ManufacturerStatus" => $this->outputStatus(), "ManufacturerStatusFieldHint" => $this->Hints->getHintLink(array('MNF_STATUS_NAME', 'manufacturers-messages')), "AddManufacturerForm" => $HtmlForm1->genForm(modApiFunc("application", "getPagenameByViewname", "ManufacturersList", -1, -1, 'AdminZone'), "POST", "AddManufacturer"), "HiddenFormSubmitValue" => $HtmlForm1->genHiddenField("FormSubmitValue", "Save"), "HiddenArrayViewStateConstants" => $this->outputViewStateConstants(), "HiddenArrayViewState" => $this->outputViewState(), "SubmitSaveScript" => $HtmlForm1->genSubmitScript("AddManufacturerForm"));
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $SpecMessageResources =& $application->getInstance('MessageResources');
     //: correct error codes
     return $output = $this->mTmplFiller->fill("manufacturers/add_manufacturer/", "list.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:25,代码来源:add_manufacturer_az.php

示例4: output

 function output()
 {
     global $application;
     loadCoreFile('html_form.php');
     $this->Hints =& $application->getInstance('Hint');
     $HtmlForm1 = new HtmlForm();
     $this->MessageResources =& $application->getInstance('MessageResources', "shipping-cost-calculator-messages", "AdminZone");
     if ($this->ViewState["hasCloseScript"] == "true") {
         modApiFunc("application", "UpdateParentsParent");
         //            modApiFunc("application", "UpdateParent");
     }
     $pbrowser_params = array('show_category_path' => true, 'buttons' => array('add_cat' => array('label' => 'BTN_ADDCAT', 'style_class' => 'button button_8em', 'callback' => 'addCategoryToCatList(%CID%,%CNAME%);', 'default_state' => 'disabled', 'enable_condition' => 'category_selected'), 'add_prod' => array('label' => 'BTN_ADDPRD', 'style_class' => 'button button_8em', 'callback' => 'addProductToRPList(%PID%,%PNAME%);', 'default_state' => 'disabled', 'enable_condition' => 'product_selected')), 'choosed_control_array' => 'product_array');
     loadClass('ProductsBrowser');
     $this->pb_obj = new ProductsBrowser();
     $request = new Request();
     $request->setView('EditFsRuleArea');
     $request->setAction('UpdateFsRuleArea');
     $template_contents = array("Subtitle" => $this->outputSubtitle(), "Errors" => $this->outputErrors(), "Local_ProductsBrowser" => $this->pb_obj->output($pbrowser_params), 'jsProductArray' => $this->out_jsProductArray(), 'jsCatArray' => $this->out_jsCatArray(), 'ProductList' => $this->out_ProductList(), 'CategoriesList' => $this->out_CategoriesList(), 'RPFormAction' => $request->getURL(), 'jsControlPListFunc' => str_replace(array('%PID%'), array('product_id'), $this->pb_obj->getControlPListFunction()), "AddFsRuleForm" => $request->getURL(), "HiddenFormSubmitValue" => $HtmlForm1->genHiddenField("FormSubmitValue", "SaveArea"), "HiddenArrayViewStateConstants" => $this->outputViewStateConstants(), "HiddenArrayViewState" => $this->outputViewState(), "SubmitSaveScript" => $HtmlForm1->genSubmitScript("AddFsRuleForm"));
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     return $this->mTmplFiller->fill("shipping_cost_calculator/edit_fs_rule_area/", "list.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:22,代码来源:edit-fs-rule-area-az.php

示例5: output

 /**
  *
  */
 function output()
 {
     global $application;
     loadCoreFile('html_form.php');
     $this->Hints =& $application->getInstance('Hint');
     $HtmlForm1 = new HtmlForm();
     $this->MessageResources =& $application->getInstance('MessageResources', "shipping-cost-calculator-messages", "AdminZone");
     if ($this->ViewState["hasCloseScript"] == "true") {
         modApiFunc("application", "UpdateParentsParent");
         //modApiFunc("application", "closeChild_UpdateParent");
     }
     $request = new Request();
     $request->setView("EditFsRule");
     $request->setAction($this->getAction());
     $form_url = $request->getURL();
     $template_contents = array("Subtitle" => $this->outputSubtitle(), "Errors" => $this->outputErrors(), "FsRuleNameError" => isset($this->ErrorMessages['ERR_AZ_SCC_ADD_PROMO_CODE_001']) ? $this->ErrorMessages['ERR_AZ_SCC_ADD_PROMO_CODE_001'] : "", "FsRuleNameInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_SCC_ADD_PROMO_CODE_001']) ? "error" : "", "FsRuleName" => $HtmlForm1->genInputTextField("128", "FsRuleName", "50", prepareHTMLDisplay($this->POST["FsRuleName"])), "FsRuleFieldHint" => $this->Hints->getHintLink(array('SCC_FSTABLE_RULE_NAME_LABEL', 'shipping-cost-calculator-messages')), "FsRuleEffectiveAreaLaconic" => $this->outputEffectiveAreaLaconic(), "FsRuleStrictCartSelect" => $this->outputFsRuleStrictCartSelect(), "FsRuleMinSubtotalError" => isset($this->ErrorMessages['ERR_AZ_SCC_ADD_PROMO_CODE_005']) ? $this->ErrorMessages['ERR_AZ_SCC_ADD_PROMO_CODE_005'] : "", "FsRuleMinSubtotalInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_SCC_ADD_PROMO_CODE_005']) ? "error" : "", "FsRuleMinSubtotal" => $HtmlForm1->genInputTextField("10", "FsRuleMinSubtotal", "10", prepareHTMLDisplay($this->POST["FsRuleMinSubtotal"])), "FsRuleMinSubtotalFormat" => modApiFunc("Localization", "format_settings_for_js", "currency"), "FsRuleMinSubtotalSign" => modApiFunc("Localization", "getCurrencySign"), "FsRuleMinSubtotalFieldHint" => $this->Hints->getHintLink(array('SCC_MIN_SUBTOTAL_LABEL', 'shipping-cost-calculator-messages')), "AddFsRuleForm" => $HtmlForm1->genForm($form_url, "POST", "AddFsRuleForm"), "HiddenFormSubmitValue" => $HtmlForm1->genHiddenField("FormSubmitValue", "Save"), "HiddenArrayViewStateConstants" => $this->outputViewStateConstants(), "HiddenArrayViewState" => $this->outputViewState(), "SubmitSaveScript" => $HtmlForm1->genSubmitScript("AddFsRuleForm"));
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $SpecMessageResources =& $application->getInstance('MessageResources');
     //: correct error codes
     $output = '';
     $output = modApiFunc('TmplFiller', 'fill', './../../js/', 'validate.msgs.js.tpl', array("STRING1024" => $SpecMessageResources->getMessage(new ActionMessage(array('CATADD_001'))), "STRING128" => $SpecMessageResources->getMessage(new ActionMessage(array('CATADD_002'))), "STRING256" => $SpecMessageResources->getMessage(new ActionMessage(array('CATADD_003'))), "STRING512" => $SpecMessageResources->getMessage(new ActionMessage(array('CATADD_004'))), "INTEGER" => $SpecMessageResources->getMessage(new ActionMessage(array('PRDADD_001'))), "FLOAT" => $SpecMessageResources->getMessage(new ActionMessage(array('PRDADD_002'))), "CURRENCY" => addslashes($SpecMessageResources->getMessage(new ActionMessage(array('CURRENCY_FIELD', modApiFunc("Localization", "FloatToFormatStr", 12.35, "currency"), modApiFunc("Localization", "FloatToFormatStr", 34, "currency"), modApiFunc("Localization", "FloatToFormatStr", 99.0, "currency"))))), "WEIGHT" => addslashes($SpecMessageResources->getMessage(new ActionMessage(array('WEIGHT_FIELD', modApiFunc("Localization", "FloatToFormatStr", 23.325, "weight"), modApiFunc("Localization", "FloatToFormatStr", 34, "weight"), modApiFunc("Localization", "FloatToFormatStr", 99.2, "weight"))))), "ITEM" => $SpecMessageResources->getMessage(new ActionMessage(array('ITEM_FIELD')))));
     return $output . $this->mTmplFiller->fill("shipping_cost_calculator/add_fs_rule/", "list.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:27,代码来源:add-fs-rule-az.php

示例6: output

 /**
  * Returns the "Catalog -> Add Category" view html code.
  *
  */
 function output()
 {
     global $application;
     loadCoreFile('html_form.php');
     $HtmlForm1 = new HtmlForm();
     $this->MessageResources =& $application->getInstance('MessageResources');
     if ($this->ViewState["hasCloseScript"] == "true") {
         $this->outputFinalScript();
         return;
     }
     $template_contents_l1 = array("CatImageControls" => $this->outputCatImageControls($this->ViewState));
     $template_contents = array();
     $template_contents = array("Local_CategoryBookmarks" => getCategoryBookmarks('details', $this->_cat_id, $this->_bms_page_stat), "Subtitle" => $this->outputSubtitle(), "Errors" => $this->outputErrors(), "SubcategoriesError" => isset($this->ErrorMessages['ERR_AZ_CAT_ADDCAT_001']) ? $this->ErrorMessages['ERR_AZ_CAT_ADDCAT_001'] : "", "MetaKeywordsError" => isset($this->ErrorMessages['ERR_AZ_CAT_ADDCAT_003']) ? $this->ErrorMessages['ERR_AZ_CAT_ADDCAT_003'] : "", "MetaDescriptionError" => isset($this->ErrorMessages['ERR_AZ_CAT_ADDCAT_004']) ? $this->ErrorMessages['ERR_AZ_CAT_ADDCAT_004'] : "", "SubcategoriesInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_CAT_ADDCAT_001']) ? "error" : "", "MetaKeywordsInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_CAT_ADDCAT_003']) ? "error" : "", "MetaDescriptionInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_CAT_ADDCAT_004']) ? "error" : "", "AddCatForm" => $HtmlForm1->genForm(modApiFunc("application", "getPagenameByViewname", "NavigationBar", -1, -1, 'AdminZone'), "POST", "AddCatForm"), "HiddenFormSubmitValue" => $HtmlForm1->genHiddenField("FormSubmitValue", "UploadImagesAndSave"), "HiddenArrayViewStateConstants" => $this->outputViewStateConstants(), "HiddenArrayViewState" => $this->outputViewState(), "SubcategoryId" => $this->outputCategoryId(), "Subcategory" => $HtmlForm1->genInputTextField("255", "Subcategory", "75", prepareHTMLDisplay($this->POST["SubcategoryText"])), "CategoryStatus" => $this->outputCategoryStatus(), "CategoryShowProductsRecursivelyStatus" => $this->outputCategoryShowProductsRecursivelyStatus(), "CategoryDescription" => $HtmlForm1->genInputTextAreaField("77", "CategoryDescription", "10"), "DescriptionText" => prepareHTMLDisplay($this->POST["DescriptionText"]), "ImageControls" => $template_contents_l1["CatImageControls"], "PageTitle" => $HtmlForm1->genInputTextField("256", "PageTitle", "76", prepareHTMLDisplay($this->POST["PageTitleText"])), "MetaKeywords" => $HtmlForm1->genInputTextAreaField("75", "MetaKeywords", "5"), "MetaKeywordsText" => prepareHTMLDisplay($this->POST["MetaKeywordsText"]), "MetaDescription" => $HtmlForm1->genInputTextAreaField("75", "MetaDescription", "5"), "MetaDescriptionText" => prepareHTMLDisplay($this->POST["MetaDescriptionText"]), "SEO_URL_prefix" => $HtmlForm1->genInputTextField("256", "SEO_URL_prefix", "76", prepareHTMLDisplay($this->POST["SEO_URL_prefix"])), "SubmitSaveScript" => $HtmlForm1->genSubmitScript("AddCatForm"));
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->MessageResources =& $application->getInstance('MessageResources');
     //: correct error codes
     $output = modApiFunc('TmplFiller', 'fill', './../../js/', 'validate.msgs.js.tpl', array("STRING1024" => $this->MessageResources->getMessage(new ActionMessage(array('CATADD_001'))), "STRING128" => $this->MessageResources->getMessage(new ActionMessage(array('CATADD_002'))), "STRING256" => $this->MessageResources->getMessage(new ActionMessage(array('CATADD_003'))), "STRING512" => $this->MessageResources->getMessage(new ActionMessage(array('CATADD_004')))));
     return $output . $this->mTmplFiller->fill("catalog/add_cat/", "list.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:24,代码来源:add_category_az.php

示例7: output

 /**
  * Return the "PromoCodes -> Add Promo Code" view html code.
  *
  */
 function output()
 {
     global $application;
     loadCoreFile('html_form.php');
     $this->Hints =& $application->getInstance('Hint');
     $HtmlForm1 = new HtmlForm();
     $this->MessageResources =& $application->getInstance('MessageResources', "promo-codes-messages", "AdminZone");
     if ($this->ViewState["hasCloseScript"] == "true") {
         modApiFunc("application", "closeChild_UpdateParent");
     }
     //        $promo_code_summary = ;
     $promo_code_order_list = $this->outputOrderList();
     $this->_Template_Contents = array("OrderList" => $promo_code_order_list);
     $application->registerAttributes($this->_Template_Contents);
     $template_contents = array("Subtitle" => $this->outputSubtitle(), "Errors" => $this->outputErrors(), "PromoCodeId" => $this->outputPromoCodeId(), "PromoCodeSummary" => $this->outputPromoCodeSummary(), "PromoCodeEffectiveAreaLaconic" => $this->outputEffectiveAreaLaconic(), "OrderList" => $promo_code_order_list, "PromoCodeCampaignNameError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_001']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_001'] : "", "PromoCodeCampaignNameInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_001']) ? "error" : "", "PromoCodeCampaignName" => $HtmlForm1->genInputTextField("128", "PromoCodeCampaignName", "75", prepareHTMLDisplay($this->POST["PromoCodeCampaignNameText"])), "PromoCodeCampaignFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_CAMPAIGN_NAME_NAME', 'promo-codes-messages')), "PromoCodePromoCodeError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_002']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_002'] : "", "PromoCodePromoCodeInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_002']) ? "error" : "", "PromoCodePromoCode" => $HtmlForm1->genInputTextField("128", "PromoCodePromoCode", "75", prepareHTMLDisplay($this->POST["PromoCodePromoCodeText"])), "PromoCodePromoCodeFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_PROMO_CODE_NAME', 'promo-codes-messages')), "PromoCodeStatusError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_004']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_004'] : "", "PromoCodeStatusInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_004']) ? "error" : "", "PromoCodeStatus" => $this->outputStatus(), "PromoCodeStatusFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_STATUS_NAME', 'promo-codes-messages')), "PromoCodeMinSubtotalError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_005']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_005'] : "", "PromoCodeMinSubtotalInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_005']) ? "error" : "", "PromoCodeMinSubtotal" => $HtmlForm1->genInputTextField("10", "PromoCodeMinSubtotal", "10", prepareHTMLDisplay($this->POST["PromoCodeMinSubtotalText"])), "PromoCodeMinSubtotalFormat" => modApiFunc("Localization", "format_settings_for_js", "currency"), "PromoCodeMinSubtotalSign" => modApiFunc("Localization", "getCurrencySign"), "PromoCodeMinSubtotalFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_MIN_SUBTOTAL_NAME', 'promo-codes-messages')), "PromoCodeDiscountCostError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_006']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_006'] : "", "PromoCodeDiscountCostInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_006']) ? "error" : "", "PromoCodeDiscountCost" => $HtmlForm1->genInputTextField("10", "PromoCodeDiscountCost", "10", prepareHTMLDisplay($this->POST["PromoCodeDiscountCostText"])), "PromoCodeDiscountCostFormat" => modApiFunc("Localization", "format_settings_for_js", "currency"), "PromoCodeDiscountCostFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_DISCOUNT_COST_NAME', 'promo-codes-messages')), "PromoCodeDiscountCostTypeIDError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_007']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_007'] : "", "PromoCodeDiscountCostTypeIDInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_007']) ? "error" : "", "PromoCodeDiscountCostTypeID" => $this->outputDiscountCostTypeID(), "PromoCodeStartDateFYearError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_008']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_008'] : "", "PromoCodeStartDateFYearInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_008']) ? "error" : "", "PromoCodeStartDateFYear" => $this->outputFYear("StartDate"), "PromoCodeStartDateFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_START_DATE_NAME', 'promo-codes-messages')), "PromoCodeStartDateMonthError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_009']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_009'] : "", "PromoCodeStartDateMonthInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_009']) ? "error" : "", "PromoCodeStartDateMonth" => $this->outputMonth("StartDate"), "PromoCodeStartDateDayError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_010']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_010'] : "", "PromoCodeStartDateDayInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_010']) ? "error" : "", "PromoCodeStartDateDay" => $this->outputDay("StartDate"), "PromoCodeEndDateFYearError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_011']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_011'] : "", "PromoCodeEndDateFYearInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_011']) ? "error" : "", "PromoCodeEndDateFYear" => $this->outputFYear("EndDate"), "PromoCodeEndDateFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_END_DATE_NAME', 'promo-codes-messages')), "PromoCodeEndDateMonthError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_012']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_012'] : "", "PromoCodeEndDateMonthInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_012']) ? "error" : "", "PromoCodeEndDateMonth" => $this->outputMonth("EndDate"), "PromoCodeEndDateDayError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_013']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_013'] : "", "PromoCodeEndDateDayInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_013']) ? "error" : "", "PromoCodeEndDateDay" => $this->outputDay("EndDate"), "PromoCodeTimesToUseError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_014']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_014'] : "", "PromoCodeTimesToUseInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_014']) ? "error" : "", "PromoCodeTimesToUse" => $HtmlForm1->genInputTextField("10", "PromoCodeTimesToUse", "10", prepareHTMLDisplay($this->POST["PromoCodeTimesToUseText"])), "PromoCodeTimesToUseFormat" => modApiFunc("Localization", "format_settings_for_js", "item"), "PromoCodeTimesToUseFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_TIMES_TO_USE_NAME', 'promo-codes-messages')), "PromoCodeBIgnoreOtherDiscountsError" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_003']) ? $this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_003'] : "", "PromoCodeBIgnoreOtherDiscountsInputStyleClass" => isset($this->ErrorMessages['ERR_AZ_PROMOCODES_ADD_PROMO_CODE_003']) ? "error" : "", "PromoCodeBIgnoreOtherDiscounts" => $this->outputBIgnoreOtherDiscounts(), "PromoCodeBIgnoreOtherDiscountsFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_B_IGNORE_OTHER_DISCOUNTS_NAME', 'promo-codes-messages')), "PromoCodeOffersFreeShippingFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_OFFERS_FREE_SHIPPING_NAME', 'promo-codes-messages')), "PromoCodeOffersFreeShippingOptions" => $this->outputFreeShippingOptions(), "PromoCodeOffersFreeHandlingFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_OFFERS_FREE_HANDLING_NAME', 'promo-codes-messages')), "PromoCodeOffersFreeHandlingOptions" => $this->outputFreeHandlingOptions(), "PromoCodeStrictCartFieldHint" => $this->Hints->getHintLink(array('PROMO_CODE_STRICT_CART_NAME', 'promo-codes-messages')), "PromoCodeStrictCartOptions" => $this->outputStrictCartOptions(), "AddPromoCodeForm" => $HtmlForm1->genForm(modApiFunc("application", "getPagenameByViewname", "PromoCodesNavigationBar", -1, -1, 'AdminZone'), "POST", "AddPromoCodeForm"), "HiddenFormSubmitValue" => $HtmlForm1->genHiddenField("FormSubmitValue", "Save"), "HiddenArrayViewStateConstants" => $this->outputViewStateConstants(), "HiddenArrayViewState" => $this->outputViewState(), "SubmitSaveScript" => $HtmlForm1->genSubmitScript("AddPromoCodeForm"));
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $SpecMessageResources =& $application->getInstance('MessageResources');
     //: correct error codes
     $output = modApiFunc('TmplFiller', 'fill', './../../js/', 'validate.msgs.js.tpl', array("STRING1024" => $SpecMessageResources->getMessage(new ActionMessage(array('CATADD_001'))), "STRING128" => $SpecMessageResources->getMessage(new ActionMessage(array('CATADD_002'))), "STRING256" => $SpecMessageResources->getMessage(new ActionMessage(array('CATADD_003'))), "STRING512" => $SpecMessageResources->getMessage(new ActionMessage(array('CATADD_004'))), "INTEGER" => $SpecMessageResources->getMessage(new ActionMessage(array('PRDADD_001'))), "FLOAT" => $SpecMessageResources->getMessage(new ActionMessage(array('PRDADD_002'))), "CURRENCY" => addslashes($SpecMessageResources->getMessage(new ActionMessage(array('CURRENCY_FIELD', modApiFunc("Localization", "FloatToFormatStr", 12.35, "currency"), modApiFunc("Localization", "FloatToFormatStr", 34, "currency"), modApiFunc("Localization", "FloatToFormatStr", 99.0, "currency"))))), "WEIGHT" => addslashes($SpecMessageResources->getMessage(new ActionMessage(array('WEIGHT_FIELD', modApiFunc("Localization", "FloatToFormatStr", 23.325, "weight"), modApiFunc("Localization", "FloatToFormatStr", 34, "weight"), modApiFunc("Localization", "FloatToFormatStr", 99.2, "weight"))))), "ITEM" => $SpecMessageResources->getMessage(new ActionMessage(array('ITEM_FIELD')))));
     return $output . $this->mTmplFiller->fill("promo_codes/add_promo_code/", "list.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:26,代码来源:add_promo_code_az.php


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