/** * */ 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()); }
/** * */ 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()); }
/** * 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()); }
/** * 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()); }
/** * */ 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()); }
/** * */ 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()); }
/** * */ 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()); }
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; }
/** * */ 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"); } }
/** * 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; }
/** * @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()); } }
/** * */ 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; }
/** * */ 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()); }
/** * 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; }
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; }
/** * Outputs form contents. */ function output() { global $application; if ($this->ViewState["hasCloseScript"] == "true") { modApiFunc("application", "closeChild"); return; } $obj =& $application->getInstance('MessageResources'); $uid = modApiFunc("Users", "getSelectedUserID"); $admin_info = modApiFunc("Users", "getUserInfo", $uid); loadCoreFile('html_form.php'); $HtmlForm1 = new HtmlForm(); $request = new Request(); $request->setView("AdminPasswordChange"); $request->setAction("PasswordChange"); $form_action = $request->getURL(); $template_contents = array("HiddenArrayViewState" => $this->outputViewState(), "FORM" => $HtmlForm1->genForm($form_action, "POST", ""), "Email" => $HtmlForm1->genHiddenField("AdminEmail", $this->POST["AdminEmail"]), "FirstName" => prepareHTMLDisplay($admin_info["firstname"]), "LastName" => prepareHTMLDisplay($admin_info["lastname"]), "SendByEmail" => $this->POST["SendByEmail"] ? " CHECKED" : "", "Errors" => $this->outputErrors(), "PSWUPD_002" => $obj->getMessage(new ActionMessage("PSWUPD_002")), "PSWUPD_004" => $obj->getMessage(new ActionMessage("PSWUPD_004")), "PSWUPD_005" => $obj->getMessage(new ActionMessage("PSWUPD_005")), "PSWUPD_007" => $obj->getMessage(new ActionMessage("PSWUPD_007")), "PSWUPD_008" => $obj->getMessage(new ActionMessage("PSWUPD_008"))); $this->_Template_Contents = $template_contents; $application->registerAttributes($this->_Template_Contents); return modApiFunc('TmplFiller', 'fill', "users/admin_member_info/", "admin_member_passwd_reset.tpl.html", array()); }
/** * 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()); }
/** * */ function output() { global $application; loadCoreFile('html_form.php'); $HtmlForm = new HtmlForm(); $request = new Request(); $request->setView('NumberFormat'); $request->setAction('UpdateNumberFormat'); $formAction = $request->getURL(); $template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "NumberForm"), "DecimalSeparators" => $this->outputSelect("separators", 1), "DigitSeparators" => $this->outputSelect("separators", 2), "Digits" => $this->outputSelect("digits"), "Negative" => $this->outputSelect("negative"), "ResultMessage" => $this->outputResultMessage()); $this->_Template_Contents = $template_contents; $application->registerAttributes($this->_Template_Contents); return modApiFunc('TmplFiller', 'fill', "localization/number_settings/", "container.tpl.html", array()); }
/** * 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()); }
/** * */ function output() { global $application; loadCoreFile('html_form.php'); $HtmlForm1 = new HtmlForm(); if ($this->ViewState["hasCloseScript"] == "true") { modApiFunc("application", "closeChild_UpdateParent"); return; } $this->CurrentRateUnitValue = "currency"; $this->CurrentRateUnit = "Price"; $request = new Request(); $request->setView('discounts_manage_global_discounts_az'); $request->setAction("update_global_discounts"); $form_action = $request->getURL(); $settings = modApiFunc("Discounts", "getSettings"); $template_contents = array("EditGlobalDiscountForm" => $HtmlForm1->genForm($form_action, "POST", "EditGlobalDiscountForm"), "HiddenArrayViewState" => $this->outputViewState(), "Errors" => $this->outputErrors(), "Items" => $this->outputGlobalDiscountRates(), "RvPatternType" => $this->CurrentRateUnitValue, "RvFormat" => modApiFunc("Localization", "format_settings_for_js", $this->CurrentRateUnitValue), "RvFromValue" => modApiFunc("Localization", "FloatToFormatStr", $this->POST["rv_from"], $this->CurrentRateUnitValue), "RvToValue" => modApiFunc("Localization", "FloatToFormatStr", $this->POST["rv_to"], $this->CurrentRateUnitValue), "CostPatternType" => "currency", "CostFormat" => modApiFunc("Localization", "format_settings_for_js", "currency"), "CostValue" => modApiFunc("Localization", "FloatToFormatStr", $this->POST["cost"], "currency"), "CostTypeOptions" => $this->outputCostType(), "ResultMessage" => $this->outputResultMessage()); $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("discounts/list_global_discounts/", "global_discount_list.tpl.html", array()); }
/** * 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()); }
/** * */ function output() { global $application; loadCoreFile('html_form.php'); $HtmlForm1 = new HtmlForm(); if ($this->ViewState["hasCloseScript"] == "true") { modApiFunc("application", "closeChild_UpdateParent"); return; } $this->CurrentRateUnitValue = "currency"; $this->CurrentRateUnit = "Price"; $request = new Request(); $request->setView('CreditCardSettings'); /* $request->setAction("UpdateCreditCardSettings"); */ $form_action = $request->getURL(); $request = new Request(); $request->setView('SortCreditCardTypes'); $sort_href = $request->getURL(); $settings = modApiFunc("Discounts", "getSettings"); $template_contents = array("EditCreditCardSettingsForm" => $HtmlForm1->genForm($form_action, "POST", "EditCreditCardSettingsForm"), "HiddenArrayViewState" => $this->outputViewState(), "Items" => $this->outputCCTypes(), "SortCreditCardTypesHref" => $sort_href, 'ResultMessageRow' => $this->outputResultMessage()); $this->_Template_Contents = $template_contents; $application->registerAttributes($this->_Template_Contents); $obj =& $application->getInstance('MessageResources'); $output = modApiFunc('TmplFiller', 'fill', './../../js/', 'validate.msgs.js.tpl', array("STRING512" => $obj->getMessage(new ActionMessage(array('PRDADD_010'))))); return $output . $this->mTmplFiller->fill("configuration/credit_card_settings/", "container.tpl.html", array()); }
/** * */ function output() { global $application; loadCoreFile('html_form.php'); $HtmlForm = new HtmlForm(); $request = new Request(); $request->setView('AdminMemberDelete'); $request->setAction('SetDeleteAdminMembers'); $formAction = $request->getURL(); $template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "AdminMembersList"), "Items" => $this->outputAdminList(), "Buttons" => $this->outputButtons(), "Style" => "visible"); $this->_Template_Contents = $template_contents; $application->registerAttributes($this->_Template_Contents); return modApiFunc('TmplFiller', 'fill', "users/admin_members/", "container.tpl.html", array()); }
/** * Outputs form contents. */ function output() { global $application; $obj =& $application->getInstance('MessageResources'); $retval = ''; loadCoreFile('html_form.php'); $HtmlForm1 = new HtmlForm(); $request = new Request(); $request->setView("AdminPasswordUpdate"); $request->setAction("PasswordUpdate"); $form_action = $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->genHiddenField("Password", $this->POST["Password"]), "Old_Password" => $HtmlForm1->genInputTextField("255", "Old_Password", "40", ""), "New_Password" => $HtmlForm1->genInputTextField("255", "New_Password", "40", ""), "Verify_New_Password" => $HtmlForm1->genInputTextField("255", "Verify_New_Password", "40", ""), "Errors" => $this->outputErrors(), "PSWUPD_000" => $obj->getMessage(new ActionMessage("PSWUPD_000")), "PSWUPD_001" => $obj->getMessage(new ActionMessage("PSWUPD_001")), "PSWUPD_002" => $obj->getMessage(new ActionMessage("PSWUPD_002")), "PSWUPD_003" => $obj->getMessage(new ActionMessage("PSWUPD_003")), "PSWUPD_004" => $obj->getMessage(new ActionMessage("PSWUPD_004")), "PSWUPD_005" => $obj->getMessage(new ActionMessage("PSWUPD_005")), "PSWUPD_006" => $obj->getMessage(new ActionMessage("PSWUPD_006")), "PSWUPD_007" => $obj->getMessage(new ActionMessage("PSWUPD_007"))); $application->registerAttributes($this->_Template_Content); $retval = modApiFunc('TmplFiller', 'fill', "users/", "password_update.tpl.html", array()); return $retval; }
/** * Outputs the view. */ function output() { global $application; loadCoreFile('html_form.php'); $HtmlForm1 = new HtmlForm(); $request = new Request(); $request->setView('CountriesList'); $request->setAction("UpdateCountries"); $form_action = $request->getURL(); $template_contents = array("UpdateCountriesForm" => $HtmlForm1->genForm($form_action, "POST", "UpdateCountriesForm"), "HiddenArrayViewState" => $this->outputViewState(), 'ResultMessage' => $this->outputResultMessage()); $this->_Template_Contents = $template_contents; $application->registerAttributes($this->_Template_Contents); return modApiFunc('TmplFiller', 'fill', "location/countries_settings/", "container.tpl.html", array()); }
function output() { global $application; modApiFunc("TaxRateByZip", "clearInactiveSets"); loadCoreFile('html_form.php'); $HtmlForm = new HtmlForm(); $request = new Request(); $request->setView(CURRENT_REQUEST_URL); $request->setAction('TaxRatesByZipItemsAction'); $formAction = $request->getURL(); $formInners = $HtmlForm->genForm($formAction, "POST", "ItemsForm"); $template_contents = array("FormInners" => $formInners, "Errors" => $this->output_Errors(), "Items" => $this->output_Items(), "Buttons" => "Buttons", "Style" => '', "SETS_NUMBER" => $this->itemsCount, "CheckRatesBlock" => $this->output_CheckRatesBlock($formInners)); $this->_Template_Contents = $template_contents; $application->registerAttributes($this->_Template_Contents); return $this->mTmplFiller->fill("", "container.tpl.html", $template_contents); }
/** * Outputs the list of states. * * @ * @param * @return */ function outputList() { if (sizeof($this->countries) != 0) { global $application; loadCoreFile('html_form.php'); $HtmlForm1 = new HtmlForm(); $request = new Request(); $request->setView('StatesList'); $request->setAction("UpdateStates"); $form_action = $request->getURL(); $template_contents = array("UpdateStatesForm" => $HtmlForm1->genForm($form_action, "POST", "UpdateStatesForm"), "HiddenArrayViewState" => $this->outputViewState(), "CountriesList" => $this->outputCountries(), 'ResultMessage' => $this->outputResultMessage(), "Items" => $this->outputStates($this->POST["c_id"])); $this->_Template_Contents = $template_contents; $application->registerAttributes($this->_Template_Contents); $retval = modApiFunc('TmplFiller', 'fill', "location/states_settings/", "list.tpl.html", array()); } else { $retval = modApiFunc('TmplFiller', 'fill', "location/states_settings/", "list_empty.tpl.html", array()); } return $retval; }
function getFormAction() { $request = new Request(); $request->setView('banner_manage_az'); $request->setAction("add_banner_info"); $request->setKey('type', $this->bType); $form_action = $request->getURL(); loadCoreFile('html_form.php'); $HtmlForm1 = new HtmlForm(); $action = $HtmlForm1->genForm($form_action, "POST", "BannerManagementForm"); return $action; }
/** * */ 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_paypal"); $form_action = $request->getURL(); $template_contents = array("EditPayPalForm" => $HtmlForm1->genForm($form_action, "POST", "EditPayPalForm"), "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-paypal-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-paypal-messages')), "ModuleNameField" => $HtmlForm1->genInputTextField("128", "ModuleName", "75", prepareHTMLDisplay($this->POST["ModuleName"])), "ModuleEmailFieldName" => $this->MessageResources->getMessage('MODULE_EMAIL_FIELD_NAME'), "ModuleEmailFieldHint" => $this->Hints->getHintLink(array('MODULE_EMAIL_FIELD_NAME', 'payment-module-paypal-messages')), "ModuleEmailField" => $HtmlForm1->genInputTextField("128", "ModuleEmail", "30", prepareHTMLDisplay($this->POST["ModuleEmail"])), "ModuleBillingInfoFieldName" => $this->MessageResources->getMessage('MODULE_BILLING_INFO_FIELD_NAME'), "ModuleBillingInfoFieldHint" => $this->Hints->getHintLink(array('MODULE_BILLING_INFO_FIELD_NAME', 'payment-module-paypal-messages')), "ModuleBillingInfoOptions" => $this->outputBillingInfoOptions(), "ModuleAddressOverrideFieldName" => $this->MessageResources->getMessage('MODULE_ADDRESS_OVERRIDE_FIELD_NAME'), "ModuleAddressOverrideFieldHint" => $this->Hints->getHintLink(array('MODULE_ADDRESS_OVERRIDE_FIELD_NAME', 'payment-module-paypal-messages')), "ModuleAddressOverrideOptions" => $this->outputModuleAddressOverrideOptions(), "ModuleCartFieldName" => $this->MessageResources->getMessage('MODULE_CART_FIELD_NAME'), "ModuleCartFieldHint" => $this->Hints->getHintLink(array('MODULE_CART_FIELD_NAME', 'payment-module-paypal-messages')), "ModuleCartOptions" => $this->outputCartOptions(), "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'), "PmSmAcceptedCurrencies" => $this->outputAcceptedCurrencies()); $this->_Template_Contents = $template_contents; $application->registerAttributes($this->_Template_Contents); return $this->mTmplFiller->fill("payment_module_paypal/", "list.tpl.html", array()); }