本文整理汇总了PHP中HtmlForm::genForm方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlForm::genForm方法的具体用法?PHP HtmlForm::genForm怎么用?PHP HtmlForm::genForm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HtmlForm
的用法示例。
在下文中一共展示了HtmlForm::genForm方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: output
/**
*
*/
function output()
{
global $application;
loadCoreFile('html_form.php');
$HtmlForm = new HtmlForm();
$request = new Request();
$request->setView('WeightUnit');
$request->setAction('UpdateWeightUnit');
$formAction = $request->getURL();
$template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "WeightForm"), "WeightUnit" => modApiFunc("Localization", "getValue", "WEIGHT_UNIT"), "WeightCoeff" => modApiFunc("Localization", "FloatToFormatStr", modApiFunc("Localization", "getValue", "WEIGHT_COEFF"), "weight_coeff"), "CoeffFormat" => modApiFunc("Localization", "format_settings_for_js", "weight_coeff"), "ResultMessage" => $this->outputResultMessage());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
return modApiFunc('TmplFiller', 'fill', "localization/weight_settings/", "container.tpl.html", array());
}
示例2: output
/**
*
*/
function output()
{
global $application;
loadCoreFile('html_form.php');
$HtmlForm = new HtmlForm();
$request = new Request();
$request->setView('DateTimeFormat');
$request->setAction('UpdateDateTimeFormat');
$formAction = $request->getURL();
$template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "DateTimeForm"), "DateFormats" => $this->outputDateTimeFormats("date"), "TimeFormats" => $this->outputDateTimeFormats("time"), "ResultMessage" => $this->outputResultMessage());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
return modApiFunc('TmplFiller', 'fill', "localization/date_settings/", "container.tpl.html", array());
}
示例3: output
/**
* The main function to output the viewer content.
*/
function output()
{
global $application;
// getting the list of languages
$this->_languages = modApiFunc('MultiLang', 'getLanguageList', false);
// getting the codes of active languages
$lng_codes = array();
if (is_array($this->_languages)) {
foreach ($this->_languages as $v) {
$lng_codes[] = $v['lng'];
}
}
// getting all languages except the ones from the _languages array
$this->_all_languages = modApiFunc('MultiLang', 'getAllLanguages', $lng_codes);
$request = new Request();
$request->setView('LanguageSettings');
$form_action = $request->getURL();
$template_contents = array('UpdateLanguagesForm' => HtmlForm::genForm($form_action, "POST", "language_settings"), 'HiddenData' => $this->outputHiddenData(), 'ConfigurationMessage' => $this->outputConfigurationMessage(), 'ResultMessage' => $this->outputResultMessage(), 'AvailableLanguages' => $this->outputAvailableLanguages(), 'NewLanguages' => $this->outputNewLanguages(), 'DefaultLanguage' => modApiFunc('MultiLang', '_readDefaultLanguage'));
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
return $this->mTmplFiller->fill('multilang/language_settings/', 'container.tpl.html', array());
}
示例4: output
/**
* Outputs the view.
*/
function output()
{
global $application;
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
if ($this->ViewState["hasCloseScript"] == "true") {
modApiFunc("application", "closeChild");
return;
}
$request = new Request();
$request->setView('AcceptedCurrencies');
$request->setAction("UpdateAcceptedCurrencies");
$form_action = $request->getURL();
$template_contents = array("UpdateAcceptedCurrenciesForm" => $HtmlForm1->genForm($form_action, "POST", "UpdateAcceptedCurrenciesForm"), "HiddenArrayViewState" => $this->outputViewState());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
return modApiFunc('TmplFiller', 'fill', "localization/accepted_currencies/", "container.tpl.html", array());
}
示例5: output
/**
*
*/
function output()
{
global $application;
if ($this->ViewState["hasCloseScript"] == "true") {
modApiFunc("application", "closeChild_UpdateParent");
return;
}
loadCoreFile('html_form.php');
$HtmlForm = new HtmlForm();
$formAction = $this->outputFormAction();
$template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", ""), "FormAction" => $this->outputFormActionJS(), "HiddenArrayViewState" => $this->outputViewState(), "PageTitle" => $this->outputPageTitle(), "FirstName" => $HtmlForm->genInputTextField("128", "FirstName", "25", prepareHTMLDisplay($this->POST["FirstName"])), "LastName" => $HtmlForm->genInputTextField("128", "LastName", "25", prepareHTMLDisplay($this->POST["LastName"])), "Email" => $HtmlForm->genInputTextField("128", "Email", "25", $this->POST["Email"]), "PasswordFields" => $this->outputPasswordFields(), "PasswordRequirements" => $this->outputPasswordRequirements(), "PermissionsList" => $this->outputPermissionsList(), "Errors" => $this->outputErrors(), "PSWUPD_000" => $this->MessageResources->getMessage(new ActionMessage("PSWUPD_000")), "PSWUPD_009" => $this->MessageResources->getMessage(new ActionMessage("PSWUPD_009")), "PSWUPD_002" => $this->MessageResources->getMessage(new ActionMessage("PSWUPD_002")), "PSWUPD_004" => $this->MessageResources->getMessage(new ActionMessage("PSWUPD_004")), "PSWUPD_005" => $this->MessageResources->getMessage(new ActionMessage("PSWUPD_005")), "PSWUPD_007" => $this->MessageResources->getMessage(new ActionMessage("PSWUPD_007")), "PSWUPD_011" => $this->MessageResources->getMessage(new ActionMessage("PSWUPD_011")));
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
return modApiFunc('TmplFiller', 'fill', "users/admin_member_add/", "admin_member_add.tpl.html", array());
}
示例6: output
/**
*
*/
function output()
{
global $application;
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
if ($this->ViewState["hasCloseScript"] == "true") {
modApiFunc("application", "closeChild_UpdateParent");
return;
}
$request = new Request();
$request->setView('CheckoutPaymentModuleSettings');
$request->setAction("update_offline_cc");
$form_action = $request->getURL();
$request = new Request();
$request->setView('CheckoutPaymentModuleSettings');
$checkout_payment_module_settings_url = $request->getURL();
$template_contents = array("EditOfflineCCForm" => $HtmlForm1->genForm($form_action, "POST", "EditOfflineCCForm"), "HiddenArrayViewState" => $this->outputViewState(), "ModuleType" => $this->MessageResources->getMessage('MODULE_TYPE'), "ModuleName" => $this->MessageResources->getMessage('MODULE_NAME'), "Subtitle" => $this->MessageResources->getMessage('FORM_SUBTITLE'), "Errors" => $this->outputErrors(), "ModuleStatusFieldName" => $this->MessageResources->getMessage('MODULE_STATUS_FIELD_NAME'), "ModuleStatusFieldHint" => $this->Hints->getHintLink(array('MODULE_STATUS_FIELD_NAME', 'payment-module-offline-messages')), "ModuleStatusField" => $this->outputStatus(), "ModuleNameFieldName" => $this->MessageResources->getMessage('MODULE_NAME_FIELD_NAME'), "ModuleNameFieldHint" => $this->Hints->getHintLink(array('MODULE_NAME_FIELD_NAME', 'payment-module-offline-messages')), "ModuleNameField" => $HtmlForm1->genInputTextField("128", "ModuleName", "60", prepareHTMLDisplay($this->POST["ModuleName"])), "MathLibNameFieldName" => $this->MessageResources->getMessage('MATH_LIB_NAME_FIELD_NAME'), "MathLibNameFieldHint" => $this->Hints->getHintLink(array('MATH_LIB_NAME_FIELD_NAME', 'payment-module-offline-messages')), "MathLibNameField" => $this->outputMathLibName(), "HTTPSRequirement" => $this->outputHTTPSRequirement(), "RSAKeyPairGenerator" => $this->outputGenRSAKeyPair(), "ReplacementRSAKeyPairGenerator" => $this->outputGenReplacementRSAKeyPair(), "Alert_001" => $this->MessageResources->getMessage('ALERT_001'), "Alert_002" => $this->MessageResources->getMessage('ALERT_002'), "Alert_003" => $this->MessageResources->getMessage('ALERT_003'), "Alert_004" => $this->MessageResources->getMessage('ALERT_004'), "Alert_005" => $this->MessageResources->getMessage('ALERT_005'), "Alert_006" => $this->MessageResources->getMessage('ALERT_006'), "MODULE_PAYMENT_OFFLINE_CC_MSG_GENERATE_KEY_008" => $this->MessageResources->getMessage('MODULE_PAYMENT_OFFLINE_CC_MSG_GENERATE_KEY_008'), "checkout_payment_module_settings_url" => $checkout_payment_module_settings_url);
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
return $this->mTmplFiller->fill("payment_module_offline_cc/", "list.tpl.html", array());
}
示例7: output
/**
*
*/
function output()
{
global $application;
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
if ($this->ViewState["hasCloseScript"] == "true") {
modApiFunc("application", "closeChild_UpdateParent");
return;
}
$request = new Request();
$request->setView('CheckoutPaymentModuleSettings');
$request->setAction("update_wtp");
$form_action = $request->getURL();
$template_contents = array("EditWtpForm" => $HtmlForm1->genForm($form_action, "POST", "EditWtpForm"), "HiddenArrayViewState" => $this->outputViewState(), "ModuleType" => $this->MessageResources->getMessage('MODULE_TYPE'), "ModuleName" => $this->MessageResources->getMessage('MODULE_NAME'), "Subtitle" => $this->MessageResources->getMessage('FORM_SUBTITLE'), "Errors" => $this->outputErrors(), "ModuleStatusFieldName" => $this->MessageResources->getMessage('MODULE_STATUS_FIELD_NAME'), "ModuleStatusFieldHint" => $this->Hints->getHintLink(array('MODULE_STATUS_FIELD_NAME', 'payment-module-wtp-messages')), "ModuleStatusField" => $this->outputStatus(), "ModuleMethodNameFieldName" => $this->MessageResources->getMessage('MODULE_METHOD_NAME_FIELD_NAME'), "ModuleNameFieldHint" => $this->Hints->getHintLink(array('MODULE_METHOD_NAME_FIELD_NAME', 'payment-module-wtp-messages')), "ModuleNameField" => $HtmlForm1->genInputTextField("128", "ModuleName", "75", prepareHTMLDisplay($this->POST["ModuleName"])), "ModuleMethodIDFieldName" => $this->MessageResources->getMessage('MODULE_METHOD_ID_FIELD_NAME'), "ModuleIDFieldHint" => $this->Hints->getHintLink(array('MODULE_METHOD_ID_FIELD_NAME', 'payment-module-wtp-messages')), "ModuleIDField" => $HtmlForm1->genInputTextField("128", "ModuleID", "75", prepareHTMLDisplay($this->POST["ModuleID"])), "ModuleMethodPassFieldName" => $this->MessageResources->getMessage('MODULE_METHOD_PASS_FIELD_NAME'), "ModulePassFieldHint" => $this->Hints->getHintLink(array('MODULE_METHOD_PASS_FIELD_NAME', 'payment-module-wtp-messages')), "ModulePassField" => $HtmlForm1->genInputTextField("128", "ModulePass", "75", prepareHTMLDisplay($this->POST["ModulePass"])), "ModuleModeFieldName" => $this->MessageResources->getMessage('MODULE_MODE_FIELD_NAME'), "ModuleModeFieldHint" => $this->Hints->getHintLink(array('MODULE_MODE_FIELD_NAME', 'payment-module-paypal-messages')), "ModuleModeOptions" => $this->outputModeOptions(), "Alert_001" => $this->MessageResources->getMessage('ALERT_001'), "Alert_002" => $this->MessageResources->getMessage('ALERT_002'), "Alert_003" => $this->MessageResources->getMessage('ALERT_003'));
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
$obj =& $application->getInstance('MessageResources');
$output = modApiFunc('TmplFiller', 'fill', './../../js/', 'validate.msgs.js.tpl', array("INTEGER" => $obj->getMessage(new ActionMessage(array('PRDADD_001'))), "FLOAT" => $obj->getMessage(new ActionMessage(array('PRDADD_002'))), "STRING1024" => $obj->getMessage(new ActionMessage(array('PRDADD_007'))), "STRING128" => $obj->getMessage(new ActionMessage(array('PRDADD_008'))), "STRING256" => $obj->getMessage(new ActionMessage(array('PRDADD_009'))), "STRING512" => $obj->getMessage(new ActionMessage(array('PRDADD_010'))), "CURRENCY" => addslashes($obj->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($obj->getMessage(new ActionMessage(array('WEIGHT_FIELD', modApiFunc("Localization", "FloatToFormatStr", 23.325, "weight"), modApiFunc("Localization", "FloatToFormatStr", 34, "weight"), modApiFunc("Localization", "FloatToFormatStr", 99.2, "weight"))))), "ITEM" => $obj->getMessage(new ActionMessage(array('ITEM_FIELD')))));
return $output . $this->mTmplFiller->fill("payment_module_wtp/", "list.tpl.html", array());
}
示例8: getTag
function getTag($tag)
{
global $application;
$value = null;
switch ($tag) {
case 'HiddenArrayViewState':
$value = $this->outputViewState();
break;
case 'MessageBox':
$value = $this->getMessageBox();
break;
case 'Messages':
$value = $this->__msg;
break;
case 'Errors':
$value = '';
//$this->__msg;
break;
case 'CreditCardAttributesAction':
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
$request = new Request();
$request->setView('CreditCardAttributes');
$request->setAction("UpdateCreditCardAttributes");
$request->setKey('cc_id', $this->cc_id);
$form_action = $request->getURL();
$value = $HtmlForm1->genForm($form_action, "POST", "CreditCardAttributesForm");
break;
case "CardName":
$value = '';
if (isset($this->card['name'])) {
$value = $this->card['name'];
}
break;
case 'Items':
$value = '';
foreach ($this->attr as $id => $a) {
$value .= $this->outputItem($id);
}
break;
default:
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
break;
}
return $value;
}
示例9: output
/**
*
*/
function output()
{
global $application;
if ($this->ViewState["hasCloseScript"] == "true") {
modApiFunc("application", "closeChild_UpdateParent");
return;
}
loadCoreFile('html_form.php');
$HtmlForm = new HtmlForm();
$request = new Request();
$request->setView('AdminMemberDelete');
$request->setAction('ConfirmDeleteAdmins');
$formAction = $request->getURL();
$template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "DeleteAdminsForm"), "HiddenArrayViewState" => $this->outputViewState(), "Items" => $this->outputAdminList());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
// - "Delete"
$data = modApiFunc("Users", "getDeleteAdminMembersID");
$removable_admins = $data['removable_admins'];
if (sizeof($removable_admins) > 0) {
return modApiFunc('TmplFiller', 'fill', "users/admin_member_delete/", "admin_member_delete.tpl.html", array());
} else {
return modApiFunc('TmplFiller', 'fill', "users/admin_member_delete/", "admin_member_delete.all_unremovable.tpl.html", array());
modApiFunc("Users", "unsetDeleteAdminMembersID");
}
}
示例10: output
/**
* Outputs form contents.
*/
function output()
{
global $application;
$retval = '';
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
$request = new Request();
$request->setView("AdminSignIn");
$request->setAction("SignIn");
$form_action = $request->getURL();
$request = new Request();
$request->setView("AdminPasswordRecovery");
$PasswordForgottenLink = $request->getURL();
$this->_Template_Content = array("HiddenArrayViewState" => $this->outputViewState(), "FORM" => $HtmlForm1->genForm($form_action, "POST", ""), "Email" => $HtmlForm1->genInputTextField("255", "AdminEmail", "40", $this->POST["AdminEmail"]), "Password" => $HtmlForm1->genInputTextField("255", "Password", "40", ""), "RememberChecked" => $this->POST["RememberEmail"] != '' ? 'CHECKED' : '', "PasswordForgottenLink" => $PasswordForgottenLink, "Errors" => $this->outputErrors(), "Version" => PRODUCT_VERSION_NUMBER . " " . PRODUCT_VERSION_TYPE . ', build ' . PRODUCT_VERSION_BUILD);
$application->registerAttributes($this->_Template_Content);
$retval = modApiFunc('TmplFiller', 'fill', "users/", "signin.tpl.html", array());
return $retval;
}
示例11: output
/**
* @return HTML code for this view
*/
function output()
{
global $application;
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
if ($this->ViewState["hasCloseScript"] == "true") {
modApiFunc("application", "closeChild_UpdateParent");
return;
}
$outputed_rate_units = $this->outputRateUnits();
$request = new Request();
$request->setView('CheckoutShippingModuleSettings');
$request->setAction("update_dsr_settings");
$form_action = $request->getURL();
$request = new Request();
$request->setView(CURRENT_REQUEST_URL);
$return_link = $request->getURL();
$template_contents = array("EditSMForm" => $HtmlForm1->genForm($form_action, "POST", "EditSMForm"), "HiddenArrayViewState" => $this->outputViewState(), "ModuleType" => $this->MessageResources->getMessage('MODULE_TYPE'), "ModuleName" => $this->MessageResources->getMessage('MODULE_NAME'), "Subtitle" => $this->MessageResources->getMessage('FORM_SUBTITLE'), "TopErrors" => $this->outputTopErrors(), "ModuleStatusFieldName" => $this->MessageResources->getMessage('MODULE_STATUS_FIELD_NAME'), "ModuleStatusField" => $this->outputStatus(), "ModuleNameFieldName" => $this->MessageResources->getMessage('MODULE_NAME_FIELD_NAME'), "ModuleNameField" => $this->MessageResources->getMessage('MODULE_NAME'), "ModuleDescrFieldName" => $this->MessageResources->getMessage('MODULE_DESCR_FIELD_NAME'), "ModuleDescrFieldValue" => $this->MessageResources->getMessage('MODULE_DESCR'), "ModuleRateUnitFieldName" => $this->MessageResources->getMessage('MODULE_RATE_UNIT_FIELD_NAME'), "ModuleRateUnitDescrFieldName" => $this->Hints->getHintLink(array('MODULE_RATE_UNIT_FIELD_NAME', 'shipping-module-dsr-messages')), "RateUnits" => $outputed_rate_units, "RateUnitUnitsValue" => $this->CurrentRateUnitSign, "UnitType" => $this->CurrentRateUnitValue, "JSmethodsIDs" => $this->outputJSmethodsIDs(), "MethodsHeader" => $this->MessageResources->getMessage('METHODS_HEADER'), "MethodsList" => $this->outputShippingMethods(), "LabelSMName" => $this->MessageResources->getMessage('LABEL_SHIPPING_METHOD_NAME'), "LabelSMDestination" => $this->MessageResources->getMessage('LABEL_SHIPPING_METHOD_DESTINATION'), "LabelSMAvailable" => $this->MessageResources->getMessage('LABEL_SHIPPING_METHOD_AVAILABLE'), "MethodsCount" => count($this->shipping_methods), "lbl_DeleteSelected" => $this->MessageResources->getMessage('LBL_DELETE_SELECTED'), "lbl_CloneSelected" => $this->MessageResources->getMessage('LBL_CLONE_SELECTED'), "lbl_RenameSelected" => $this->MessageResources->getMessage('LBL_RENAME_SELECTED'), "lbl_NewMethodName" => $this->MessageResources->getMessage('LBL_NEW_METHOD_NAME'), "RatesTable" => $this->outputRatesTable(), "Alert_001" => $this->MessageResources->getMessage('ALERT_001'), "Alert_002" => $this->MessageResources->getMessage('ALERT_002'), "Alert_003" => $this->MessageResources->getMessage('ALERT_003'), "Alert_004" => $this->MessageResources->getMessage('ALERT_004'), "Alert_005" => $this->MessageResources->getMessage('ALERT_005'), "HintLink_MDESCR" => $this->Hints->getHintLink(array('MODULE_DESCR_FIELD_NAME', 'shipping-module-dsr-messages')), "DSR_Return_Link" => "location.href='{$return_link}'");
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
if (!$request->getValueByKey("rates_method_id", NULL)) {
return $this->mTmplFiller->fill("shipping_module_dsr/", "list.tpl.html", array());
} else {
return $this->mTmplFiller->fill("shipping_module_dsr/", "rates-list.tpl.html", array());
}
}
示例12: output
/**
*
*/
function output()
{
global $application;
loadCoreFile('html_form.php');
$HtmlForm = new HtmlForm();
$request = new Request();
$request->setView('CurrencyFormat');
$request->setAction('UpdateCurrencyFormat');
$formAction = $request->getURL();
$template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "CurrencyForm"), "CurrenciesList" => $this->outputCurrenciesList(), "CurrencySign" => $this->CurrentCurrency[1], "DecimalSeparators" => $this->outputSelect("separators", 1, "currency_format"), "DigitSeparators" => $this->outputSelect("separators", 2, "currency_format"), "Digits" => $this->outputSelect("currency_digits", "", "currency_format"), "PositiveCurrency" => $this->outputSelect("positive_currency", "", "currency_format"), "NegativeCurrency" => $this->outputSelect("negative_currency", "", "currency_format"), "CurrencySignsArray" => $this->outputCurrencySignsArray(), "ResultMessage" => $this->outputResultMessage(), "JSData" => $this->getJS());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
$res = modApiFunc('TmplFiller', 'fill', "localization/currency_settings/", "container.tpl.html", array());
modApiFunc('Localization', 'unsetCurrencyFormatEdited');
return $res;
}
示例13: 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());
}
示例14: output
/**
* Outputs form contents.
*/
function output()
{
global $application;
$retval = '';
if ($this->outputErrors() == "" && $this->POST["AdminEmail"] != "") {
$request = new Request();
$request->setView("");
$this->_Template_Content = array("Email" => $this->POST["AdminEmail"], "ContinueLink" => $request->getURL());
$application->registerAttributes($this->_Template_Content);
$retval = modApiFunc('TmplFiller', 'fill', "users/", "password_recovery_success.tpl.html", array());
} else {
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
$request = new Request();
$request->setView("AdminPasswordRecovery");
$request->setAction("PasswordRecovery");
$form_action = $request->getURL();
$this->_Template_Content = array("HiddenArrayViewState" => $this->outputViewState(), "FORM" => $HtmlForm1->genForm($form_action, "POST", "PasswordRecoveryForm"), "Email" => $HtmlForm1->genInputTextField("255", "AdminEmail", "40", $this->POST["AdminEmail"]), "Errors" => $this->outputErrors());
$application->registerAttributes($this->_Template_Content);
$retval = modApiFunc('TmplFiller', 'fill', "users/", "password_recovery.tpl.html", array());
}
return $retval;
}
示例15: getTag
function getTag($tag)
{
global $application;
$value = null;
switch ($tag) {
case 'Items':
$value = $this->getModulesList();
break;
case 'EditTransactionTrackingSettingsForm':
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
$request = new Request();
$request->setView('TransactionTrackingSettings');
$form_action = $request->getURL();
$value = $HtmlForm1->genForm($form_action, "POST", "EditTransactionTrackingSettingsForm");
break;
case 'ResultMessageRow':
$value = $this->outputResultMessage();
break;
break;
default:
//Current Module (Modules List Item) details
$value = getKeyIgnoreCase($tag, $this->_Current_Module);
if ($value === NULL) {
$value = getKeyIgnoreCase($tag, $this->_Current_Module_Settings);
}
if ($value === NULL) {
$value = getKeyIgnoreCase($tag, $this->_Template_Contents);
}
break;
}
return $value;
}