protected void Util_SetLabels() { switch (this.m_sPageAction) { case "displayhandoff": if (!(pseudoLocJob || transMemJob)) { workareamenu displayActionMenu = new workareamenu("action", this.GetMessage("lbl action"), this.AppImgPath + "../UI/Icons/check.png"); displayActionMenu.AddItem(m_refContentApi.AppPath + "images/ui/icons/cancel.png", "Close", "parent.CloseJobsModal();"); this.AddMenu(displayActionMenu); SetTitleBarToString("Export status"); } break; case "createhandoff": workareamenu createActionMenu = new workareamenu("action", this.GetMessage("lbl action"), this.AppImgPath + "../UI/Icons/check.png"); if (invalidDependency) { string overrideLink = string.Format("{0}?action=createhandoff&id={1}&test={2}&override=true" , m_sPageName , m_iID , isTest); createActionMenu.AddLinkItem(m_refContentApi.AppPath + "images/UI/Icons/translationExport.png", "Export", overrideLink); createActionMenu.AddBreak(); } createActionMenu.AddItem(m_refContentApi.AppPath + "images/ui/icons/cancel.png", "Close", "parent.CloseJobsModal();"); this.AddMenu(createActionMenu); if (isTest) SetTitleBarToString("Create test handoff"); else SetTitleBarToString("Create handoff"); break; //default: // workareamenu defaultActionMenu = new workareamenu("action", this.GetMessage("lbl action"), this.AppImgPath + "../UI/Icons/check.png"); // // defaultActionMenu.AddItem(m_refContentApi.AppPath + "images/ui/icons/save.png", this.GetMessage("btn save"), "document.forms[0].submit();"); // // defaultActionMenu.AddBreak(); // defaultActionMenu.AddItem(m_refContentApi.AppPath + "images/ui/icons/cancel.png", "Close", "parent.$ektron(\'.ektronExportHandoffModal\').modalHide();"); // this.AddMenu(defaultActionMenu); // SetTitleBarToString("lbl reorder reorder shipping methods"); // AddHelpButton("ReorderShippingMethods"); // break; } }
protected void Util_SetLabels() { char[] endColon = new char[] {':'}; litTitleLabel.Text = GetMessage("generic title") + ":"; litIdLabel.Text = GetMessage("generic id").TrimEnd(endColon.ToString().ToCharArray()) + ":"; litDescriptionLabel.Text = GetMessage("generic description").TrimEnd(endColon.ToString().ToCharArray()) + ":"; litTypeLabel.Text = GetMessage("lbl product type class") + ":"; litDisplayLabel.Text = GetMessage("display info label").TrimEnd(endColon.ToString().ToCharArray()) + ":"; litDisplayXsltPathMessage.Text = GetMessage("files prefixed with msg") + " " + m_refContentApi.XmlPath; ltr_deflabel.Text = GetMessage("default label").TrimEnd(endColon.ToString().ToCharArray()); litXslt1Label.Text = GetMessage("xslt 1 label").TrimEnd(endColon.ToString().ToCharArray()) + ":"; litXslt2Label.Text = GetMessage("xslt 2 label").TrimEnd(endColon.ToString().ToCharArray()) + ":"; litXslt3Label.Text = GetMessage("xslt 3 label").TrimEnd(endColon.ToString().ToCharArray()) + ":"; litXsltDefaultLabel.Text = "XSLT 0:"; ltr_def.Text = GetMessage("default label"); ltr_attrtype.Text = GetMessage("type label"); ltr_attrname.Text = GetMessage("generic name"); ltr_name.Text = GetMessage("lbl name").TrimEnd(endColon.ToString().ToCharArray()) + ":"; ltr_width.Text = GetMessage("lbl width").TrimEnd(endColon.ToString().ToCharArray()) + ":"; ltr_height.Text = GetMessage("lbl height").TrimEnd(endColon.ToString().ToCharArray()) + ":"; ltr_subprovider.Text = GetMessage("lbl commerce subscription provider"); drp_attrtype.Items.Add(new ListItem(Util_AttrText(Convert.ToInt32(Ektron.Cms.Common.EkEnumeration.ProductTypeAttributeDataType.String)), "text")); drp_attrtype.Items.Add(new ListItem(Util_AttrText(Convert.ToInt32(Ektron.Cms.Common.EkEnumeration.ProductTypeAttributeDataType.Numeric)), "number")); drp_attrtype.Items.Add(new ListItem(Util_AttrText(Convert.ToInt32(Ektron.Cms.Common.EkEnumeration.ProductTypeAttributeDataType.Boolean)), "boolean")); drp_attrtype.Attributes.Add("onchange", "ChangeOption(this);"); if (_SelectedAttributeIndex > -1) { drp_attrtype.SelectedIndex = _SelectedAttributeIndex; } txt_xslt1.Attributes.Add("onkeyup", "MakeNoVerify(this);"); txt_xslt1.Attributes.Add("onkeypress", "return CheckKeyValue(event,\'34\');"); txt_xslt2.Attributes.Add("onkeyup", "MakeNoVerify(this);"); txt_xslt2.Attributes.Add("onkeypress", "return CheckKeyValue(event,\'34\');"); txt_xslt3.Attributes.Add("onkeyup", "MakeNoVerify(this);"); txt_xslt3.Attributes.Add("onkeypress", "return CheckKeyValue(event,\'34\');"); switch (this.m_sPageAction) { case "addthumbnail": System.Text.StringBuilder result = new System.Text.StringBuilder(); this.SetTitleBarToMessage("lbl add thumbnail default"); ltr_addthumbnail.Text = GetMessage("lbl add thumbnail default"); result.Append("<table><tr>" + Environment.NewLine); string buttonId = Guid.NewGuid().ToString(); result.Append("<td class=\"menuRootItem\" onclick=\"MenuUtil.use(event, \'action\', \'" + buttonId + "\');\" onmouseover=\"this.className=\'menuRootItemSelected\';MenuUtil.use(event, \'action\', \'" + buttonId + "\');\" onmouseout=\"this.className=\'menuRootItem\'\"><span id=\"" + buttonId + "\" class=\"action\">" + m_refMsg.GetMessage("lbl Action") + "</span></td>" + Environment.NewLine); result.Append("</tr></table>" + Environment.NewLine); result.Append("<script tyle=\"text/javascript\">" + Environment.NewLine); result.Append(" var actionmenu = new Menu( \"action\" );" + Environment.NewLine); result.Append(" actionmenu.addItem(\" <img height=\'16px\' width=\'16px\' src=\'" + m_refContentApi.AppPath + "images/UI/Icons/save.png" + " \' /> " + m_refMsg.GetMessage("generic add title") + "\", function() { OnClick=validate(); } );" + Environment.NewLine); result.Append(" actionmenu.addItem(\" <img height=\'16px\' width=\'16px\' src=\'" + m_refContentApi.AppPath + "images/UI/Icons/delete.png" + " \' /> " + m_refMsg.GetMessage("generic cancel") + "\", function() { OnClick=Close(); } );" + Environment.NewLine); result.Append(" MenuUtil.add( actionmenu );" + Environment.NewLine); result.Append("</script>" + Environment.NewLine); break; case "addattribute": AddButtonwithMessages(m_refContentApi.AppPath + "images/UI/Icons/back.png", "#", "alt back button text", "btn back", " onclick=\"self.parent.ektb_remove();\" ", StyleHelper.BackButtonCssClass, true); AddButtonwithMessages(m_refContentApi.AppPath + "images/UI/Icons/save.png", "#", "btn save", "btn save", "Onclick=\"SubmitAttrForm(); return false;\"", StyleHelper.SaveButtonCssClass, true); AddHelpButton(m_sPageAction); break; case "editattribute": AddButtonwithMessages(m_refContentApi.AppPath + "images/UI/Icons/back.png", "#", "alt back button text", "btn back", " onclick=\"self.parent.ektb_remove();\" ", StyleHelper.BackButtonCssClass, true); AddButtonwithMessages(m_refContentApi.AppPath + "images/UI/Icons/save.png", "#", "alt update product type", "btn update", "Onclick=\"SubmitAttrForm(); return false;\"", StyleHelper.SaveButtonCssClass, true); AddHelpButton(m_sPageAction); break; case "addproducttype": SetTitleBarToMessage("btn add product type"); AddBackButton(_PageName); AddButtonwithMessages(m_refContentApi.AppPath + "images/UI/Icons/save.png", "#", "lbl Select to continue", "btn save", "Onclick=\"SubmitForm(); return false;\"", StyleHelper.SaveButtonCssClass, true); AddHelpButton(m_sPageAction); break; case "editproducttype": SetTitleBarToMessage("lbl edit product type"); AddBackButton(_PageName + "?action=viewproducttype&id=" + m_iID.ToString()); AddButtonwithMessages(m_refContentApi.AppPath + "images/UI/Icons/save.png", "#", "alt update product type", "btn update", "onclick=\"SubmitForm(); return false;\"", StyleHelper.SaveButtonCssClass, true); AddHelpButton(m_sPageAction); break; case "viewproducttype": XmlConfigData product_type_data = null; string pkDisplay = string.Empty; string PackageXslt = string.Empty; SetTitleBarToMessage("lbl view product type msg"); phTabDisplayInfo.Visible = true; product_type_data = m_refContentApi.GetXmlConfiguration(m_iID); if (product_type_data != null) { pkDisplay = product_type_data.PackageDisplayXslt; PackageXslt = product_type_data.PackageXslt; } AddBackButton(_PageName); AddButtonwithMessages(m_refContentApi.AppPath + "images/UI/Icons/contentEdit.png", (string) ("producttypes.aspx" + "?action=editproducttype&id=" + m_iID), "alt edit button text (xml config)", "btn edit", "", StyleHelper.EditButtonCssClass, true); if (! _IsUsed) { AddButtonwithMessages(m_refContentApi.AppPath + "images/UI/Icons/delete.png", (string) ("producttypes.aspx" + "?action=deleteproducttype&id=" + m_iID), "generic delete title", "generic delete title", " onclick=\"return confirm(\'" + GetMessage("js confirm del product type") + "\');\" ", StyleHelper.DeleteButtonCssClass); } if (product_type_data != null) { if ((product_type_data.EditXslt.Length == 0) || pkDisplay.Length > 0) { AddButtonwithMessages(m_refContentApi.AppPath + "images/UI/Icons/contentFormEdit.png", (string) ("../editdesign.aspx?action=EditPackage&type=product&id=" + m_iID), "alt Design mode Package", "btn data design", "", StyleHelper.EditContentFormButtonCssClass); } } if (pkDisplay.Length > 0) { AddButtonwithMessages(m_refContentApi.AppPath + "Images/ui/icons/FileTypes/xsl.png", (string) ("../viewXslt.aspx?id=" + m_iID), "alt View the presentation Xslt", "btn view xslt", "", StyleHelper.ViewXslButtonCssClass); } AddHelpButton(m_sPageAction); break; default: SetTitleBarToMessage("lbl view product types"); workareamenu newMenu = new workareamenu("file", GetMessage("lbl new"), m_refContentApi.AppPath + "images/UI/Icons/star.png"); newMenu.AddLinkItem(AppImgPath + "commerce/producttype1.gif", GetMessage("lbl product type xml config"), _PageName + "?action=addproducttype"); AddMenu(newMenu); AddHelpButton("viewproducttypes"); break; } }
protected void Util_SetLabels() { switch (this.m_sPageAction) { case "addedit": AddBackButton(_PageName + (m_iID > 0 ? ("?action=view&id=" + this.m_iID.ToString() + "&postalid=" + txt_name.Text) : "")); this.AddButtonwithMessages(AppPath + "images/UI/Icons/save.png", _PageName + "?action=addedit&id=" + m_iID.ToString(), "btn save", "btn save", " onclick=\"TaxSubmitForm(); return SubmitForm();\" ", StyleHelper.SaveButtonCssClass, true); if (this.m_iID > 0) { SetTitleBarToMessage("lbl edit postal tax rate"); AddHelpButton("EditPostalCodeTaxRate"); } else { SetTitleBarToMessage("lbl add postal tax rate"); AddHelpButton("AddPostalCodeTaxRate"); } break; case "view": AddBackButton(_PageName); this.AddButtonwithMessages(AppPath + "images/UI/Icons/contentEdit.png", _PageName + "?action=addedit&id=" + m_iID.ToString() + "&postalid=" + txt_name.Text, "generic edit title", "generic edit title", "", StyleHelper.EditButtonCssClass, true); this.AddButtonwithMessages(AppPath + "images/UI/Icons/delete.png", _PageName + "?action=del&id=" + m_iID.ToString() + "&postalid=" + txt_name.Text, "generic delete title", "generic delete title", " onclick=\"return confirm(\'" + GetMessage("js confirm delete postal") + "\');\" ", StyleHelper.DeleteButtonCssClass); SetTitleBarToMessage("lbl view postal tax rate"); AddHelpButton("ViewPostalCodeTaxRate"); break; default: workareamenu newMenu = new workareamenu("file", GetMessage("lbl new"), AppPath + "images/UI/Icons/star.png"); newMenu.AddLinkItem(AppImgPath + "menu/document.gif", GetMessage("lbl postal"), _PageName + "?action=addedit"); this.AddMenu(newMenu); SetTitleBarToMessage("lbl postal tax table"); AddHelpButton("PostalCodeTaxRate"); break; } ltr_name.Text = GetMessage("lbl address postal"); ltr_id.Text = GetMessage("generic id"); ltr_region.Text = GetMessage("lbl address region"); ltr_country.Text = GetMessage("lbl country"); }
protected void Util_SetLabels() { switch (this.m_sPageAction) { case "addedit": AddBackButton(m_sPageName + (m_iID > 0 ? ("?action=view&id=" + this.m_iID.ToString()) : "")); this.AddButtonwithMessages(AppImgPath + "../UI/Icons/save.png", m_sPageName + "?action=addedit&id=" + m_iID.ToString(), "btn save", "btn save", " onclick=\" return SubmitForm();\" ", StyleHelper.SaveButtonCssClass, true); if (this.m_iID > 0) { SetTitleBarToMessage("lbl edit region"); AddHelpButton("EditRegion"); } else { SetTitleBarToMessage("lbl add region"); AddHelpButton("AddRegion"); } break; case "view": AddBackButton(m_sPageName); this.AddButtonwithMessages(AppImgPath + "../UI/Icons/contentEdit.png", m_sPageName + "?action=addedit&id=" + m_iID.ToString(), "generic edit title", "generic edit title", "", StyleHelper.EditButtonCssClass, true); if (m_refRegion.CanDelete(this.m_iID, out validateResult)) { this.AddButtonwithMessages(AppImgPath + "../UI/Icons/delete.png", m_sPageName + "?action=del&id=" + m_iID.ToString(), "generic delete title", "generic delete title", " onclick=\"return confirm(\'" + GetMessage("js confirm delete Region") + "\');\" ", StyleHelper.DeleteButtonCssClass); } SetTitleBarToMessage("lbl view region"); AddHelpButton("ViewRegion"); break; default: workareamenu newMenu = new workareamenu("file", GetMessage("lbl new"), AppImgPath + "../UI/Icons/star.png"); newMenu.AddLinkItem(AppImgPath + "/menu/document.gif", GetMessage("lbl Region"), m_sPageName + "?action=addedit"); this.AddMenu(newMenu); this.AddSearchBox(EkFunctions.HtmlEncode(searchCriteria), new ListItemCollection(), "searchRegion"); SetTitleBarToMessage("lbl regions"); AddHelpButton("region"); break; } ltr_name.Text = GetMessage("generic name"); ltr_id.Text = GetMessage("generic id"); ltr_enabled.Text = GetMessage("enabled"); ltr_code.Text = GetMessage("lbl code"); ltr_country.Text = GetMessage("lbl address country"); ltr_addanother.Text = GetMessage("lbl add another region"); }
protected void Util_SetLabels() { switch (m_sPageAction) { case "crosssell": SetTitleBarToMessage("lbl cross sell rec"); break; case "upsell": SetTitleBarToMessage("lbl up sell rec"); break; } workareamenu actionMenu = new workareamenu("action", this.GetMessage("lbl action"), m_refContentApi.AppPath + "images/ui/icons/brick.png"); // check2.gif AddBackButton((string)("../../content.aspx?action=View&folder_id=" + m_iFolderId + "&id=" + m_iID + "&LangType=" + ContentLanguage + "&callerpage=content.aspx&origurl=action=%3dViewContentByCategory%26id%3d" + m_iFolderId)); if (security_data.CanEdit) { actionMenu.AddItem(m_refContentApi.AppPath + "images/ui/icons/save.png", this.GetMessage("btn save"), "document.forms[0].submit();"); actionMenu.AddBreak(); } actionMenu.AddLinkItem(m_refContentApi.AppPath + "images/ui/icons/cancel.png", this.GetMessage("generic cancel"), (string)("../../content.aspx?action=View&folder_id=" + m_iFolderId + "&id=" + m_iID + "&LangType=" + ContentLanguage + "&callerpage=content.aspx&origurl=action=%3dViewContentByCategory%26id%3d" + m_iFolderId)); this.AddMenu(actionMenu); AddHelpButton(EkFunctions.HtmlEncode(m_sPageAction)); }
protected void Util_SetLabels() { switch (this.m_sPageAction) { case "addedit": AddBackButton(m_sPageName + (m_iID > 0 ? ("?action=view&id=" + this.m_iID.ToString()) : "")); this.AddButtonwithMessages(AppPath + "images/UI/Icons/save.png", m_sPageName + "?action=addedit&id=" + m_iID.ToString(), "btn save", "btn save", " onclick=\" return SubmitForm();\" ", StyleHelper.SaveButtonCssClass, true); if (this.m_iID > 0) { SetTitleBarToMessage("lbl edit tax class"); AddHelpButton("Edittaxclass"); } else { SetTitleBarToMessage("lbl add tax class"); AddHelpButton("Addtaxclass"); } break; case "view": AddBackButton(m_sPageName); this.AddButtonwithMessages(AppPath + "images/UI/Icons/contentEdit.png", m_sPageName + "?action=addedit&id=" + m_iID.ToString(), "generic edit title", "generic edit title", "", StyleHelper.EditButtonCssClass, true); if (!m_refTaxClass.IsUsed(m_iID) && m_iID != 5) { this.AddButtonwithMessages(AppPath + "images/UI/Icons/delete.png", m_sPageName + "?action=del&id=" + m_iID.ToString(), "generic delete title", "generic delete title", " onclick=\"return confirm(\'" + GetMessage("js confirm delete tax class") + "\');\" ", StyleHelper.DeleteButtonCssClass); } SetTitleBarToMessage("lbl view tax class"); AddHelpButton("Viewtaxclass"); break; default: workareamenu newMenu = new workareamenu("file", GetMessage("lbl new"), AppPath + "images/UI/Icons/star.png"); newMenu.AddLinkItem(AppImgPath + "/menu/document.gif", GetMessage("lbl tax class"), m_sPageName + "?action=addedit"); this.AddMenu(newMenu); SetTitleBarToMessage("lbl tax classes"); AddHelpButton("taxclass"); break; } ltr_name.Text = GetMessage("generic name"); ltr_id.Text = GetMessage("generic id"); }
protected void SetLabels() { this.ltr_package_name.Text = this.GetMessage("generic name"); this.ltr_package_id.Text = this.GetMessage("generic id"); this.ltr_package_length.Text = this.GetMessage("lbl length"); this.ltr_package_width.Text = this.GetMessage("lbl width"); this.ltr_package_height.Text = this.GetMessage("lbl height"); this.ltr_package_weight.Text = this.GetMessage("lbl maxweight"); switch (base.m_sPageAction) { case "addedit": this.pnl_viewaddress.Visible = true; this.AddBackButton(this.m_sPageName + (this.m_iID > 0 ? ("?action=view&id=" + this.m_iID.ToString()) : "")); this.AddButtonwithMessages(this.AppImgPath + "../UI/Icons/save.png", m_sPageName + "?action=addedit&id=" + this.m_iID.ToString(), "lbl alt save package", "btn save", " onclick=\" return SubmitForm(); \" ", StyleHelper.SaveButtonCssClass, true); if (this.m_iID > 0) { this.SetTitleBarToMessage("lbl edit package"); this.AddHelpButton("EditPackages"); } else { this.SetTitleBarToMessage("lbl add package"); this.AddHelpButton("Addpackage"); } break; case "view": this.pnl_viewall.Visible = false; this.pnl_viewaddress.Visible = true; this.AddBackButton(this.m_sPageName); this.AddButtonwithMessages(this.AppImgPath + "../UI/Icons/contentEdit.png", this.m_sPageName + "?action=addedit&id=" + this.m_iID.ToString(), "generic edit title", "generic edit title", "", StyleHelper.EditButtonCssClass, true); this.AddButtonwithMessages(this.AppImgPath + "../UI/Icons/delete.png", this.m_sPageName + "?action=del&id=" + this.m_iID.ToString(), "alt del package button text", "btn delete", " onclick=\" return CheckDelete();\" ", StyleHelper.DeleteButtonCssClass); this.SetTitleBarToMessage("lbl view package"); this.AddHelpButton("Viewpackage"); break; default: // "viewall" workareamenu newMenu = new workareamenu("file", this.GetMessage("lbl new"), this.AppImgPath + "../UI/Icons/star.png"); newMenu.AddLinkItem(this.AppImgPath + "menu/card.gif", this.GetMessage("lbl package"), this.m_sPageName + "?action=addedit"); this.AddMenu(newMenu); this.SetTitleBarToMessage("lbl packages"); this.AddHelpButton("packages"); break; } SetJs(); }
protected void SetLabels() { this.ltr_address_name.Text = this.GetMessage("lbl address name"); this.ltr_address_id.Text = this.GetMessage("generic id"); this.ltr_address_line1.Text = this.GetMessage("lbl address line1"); this.ltr_address_line2.Text = this.GetMessage("lbl address line2"); this.ltr_address_city_lbl.Text = this.GetMessage("lbl address city"); this.ltr_address_region.Text = this.GetMessage("lbl state province"); this.ltr_address_postal.Text = this.GetMessage("lbl address postal"); this.ltr_address_country.Text = this.GetMessage("lbl address country"); this.ltr_default_warehouse.Text = this.GetMessage("lbl default warehouse"); switch (base.m_sPageAction) { case "addedit": this.pnl_viewaddress.Visible = true; this.AddBackButton(this.m_sPageName + (this.m_iID > 0 ? ("?action=view&id=" + this.m_iID.ToString()) : "")); this.AddButtonwithMessages(this.AppImgPath + "../UI/Icons/save.png", m_sPageName + "?action=addedit&id=" + this.m_iID.ToString(), "lbl alt save warehouse", "btn save", " onclick=\" resetCPostback(); return SubmitForm(); \" ", StyleHelper.SaveButtonCssClass, true); if (this.m_iID > 0) { this.SetTitleBarToMessage("lbl edit warehouse"); this.AddHelpButton("Editwarehouse"); } else { this.SetTitleBarToMessage("lbl add warehouse"); this.AddHelpButton("Addwarehouse"); } break; case "view": this.pnl_viewall.Visible = false; this.pnl_viewaddress.Visible = true; this.AddBackButton(this.m_sPageName); this.AddButtonwithMessages(this.AppImgPath + "../UI/Icons/contentEdit.png", this.m_sPageName + "?action=addedit&id=" + this.m_iID.ToString(), "generic edit title", "generic edit title", "", StyleHelper.EditButtonCssClass, true); if (!m_bIsDefault) { this.AddButtonwithMessages(this.AppImgPath + "icon_survey_enable.gif", this.m_sPageName + "?action=markdef&id=" + this.m_iID.ToString(), "lbl warehouse mark def", "lbl warehouse mark def", "", StyleHelper.EnableButtonCssClass); this.AddButtonwithMessages(this.AppImgPath + "../UI/Icons/delete.png", this.m_sPageName + "?action=del&id=" + this.m_iID.ToString(), "alt del warehouse button text", "btn delete", " onclick=\" return CheckDelete();\" ", StyleHelper.DeleteButtonCssClass); } this.SetTitleBarToMessage("lbl view warehouse"); this.AddHelpButton("Viewwarehouse"); break; default: // "viewall" workareamenu newMenu = new workareamenu("file", this.GetMessage("lbl new"), this.AppImgPath + "../UI/Icons/star.png"); newMenu.AddLinkItem(this.AppImgPath + "menu/card.gif", this.GetMessage("lbl warehouse"), this.m_sPageName + "?action=addedit"); this.AddMenu(newMenu); workareamenu actionMenu = new workareamenu("action", this.GetMessage("lbl action"), this.AppImgPath + "../UI/Icons/check.png"); actionMenu.AddItem(this.AppImgPath + "icon_survey_enable.gif", this.GetMessage("lbl warehouse mark def"), "CheckMarkAsDef();"); this.AddMenu(actionMenu); this.SetTitleBarToMessage("lbl warehouses"); this.AddHelpButton("warehouses"); break; } SetJs(); }
protected void Util_SetLabels() { lbl_id.Text = GetMessage("generic id"); lbl_used.Text = GetMessage("lbl coupon used"); ltr_code.Text = GetMessage("lbl coupon code"); ltr_desc.Text = GetMessage("lbl coupon desc"); ltr_type.Text = GetMessage("lbl coupon type"); ltr_oneper.Text = GetMessage("lbl coupon one per"); ltr_active.Text = GetMessage("lbl coupon active"); ltr_discountval.Text = GetMessage("lbl coupon discount"); ltr_minamount.Text = GetMessage("lbl coupon min ammount"); ltr_maxamount.Text = GetMessage("lbl coupon max ammount"); ltr_expireafter.Text = GetMessage("lbl coupon expires after"); ltr_startdate.Text = GetMessage("lbl coupon start date"); ltr_enddate.Text = GetMessage("lbl coupon exp date"); ltr_instructions.Text = GetMessage("lbl select entries for coupon"); switch (m_sPageAction) { case "view": this.Tabs.On(); this.Tabs.AddTabByMessage("properties text", "dvProp"); Tabs.AddTabByMessage("generic type", "dvType"); Tabs.AddTabByMessage("generic options", "dvOptions"); this.Tabs.AddTabByMessage("lbl applies to", "dvApplies"); SetTitleBarToMessage("lbl view coupon"); workareamenu actionMenu_1 = new workareamenu("action", this.GetMessage("lbl action"), this.AppPath + "images/UI/Icons/check.png"); actionMenu_1.AddLinkItem(this.AppImgPath + "edit.gif", this.GetMessage("generic edit title"), m_sPageName + "?id=" + m_iID.ToString() + "&action=addedit"); actionMenu_1.AddBreak(); if (IsActive) { actionMenu_1.AddItem(this.AppImgPath + "commerce/coupon-inactive.gif", this.GetMessage("lbl coupon mark inactive"), "if(confirm(\'" + GetMessage("js confirm coupon mark inactive") + "\')) { window.location.href = \'" + m_sPageName + "?id=" + m_iID.ToString() + "&action=deactivate" + "\'; } "); } if (!IsUsed) { actionMenu_1.AddItem(this.AppPath + "images/UI/Icons/delete.png", this.GetMessage("btn delete"), "if(confirm(\'" + GetMessage("js confirm coupon delete") + "\')) { window.location.href = \'" + m_sPageName + "?id=" + m_iID.ToString() + "&action=delete" + "\'; } "); } this.AddMenu(actionMenu_1); this.AddBackButton(this.m_sPageName); break; case "addedit": this.Tabs.On(); if (m_iID == 0) { Tabs.ViewAsWizard(); Tabs.AddTabByString("1", "dvProp"); Tabs.AddTabByString("2", "dvType"); Tabs.AddTabByString("3", "dvOptions"); Tabs.AddTabByString("4", "dvApplies"); } else { this.Tabs.AddTabByMessage("properties text", "dvProp"); Tabs.AddTabByMessage("generic type", "dvType"); Tabs.AddTabByMessage("generic options", "dvOptions"); this.Tabs.AddTabByMessage("lbl applies to", "dvApplies"); } if (this.m_iID > 0) { SetTitleBarToMessage("lbl edit coupon"); } else { SetTitleBarToMessage("lbl add coupon"); } workareamenu actionMenu = new workareamenu("action", this.GetMessage("lbl action"), this.AppImgPath + "../UI/Icons/check.png"); actionMenu.AddItem(AppPath + "images/ui/icons/save.png", this.GetMessage("btn save"), "SubmitForm(" + EkEnumeration.AssetActionType.Save + ");"); actionMenu.AddBreak(); actionMenu.AddLinkItem(AppPath + "images/ui/icons/cancel.png", this.GetMessage("generic cancel"), (string)(m_iID > 0 ? (m_sPageName + "?id=" + m_iID.ToString() + "&action=view") : m_sPageName)); this.AddMenu(actionMenu); if (this.m_iID > 0) { this.AddHelpButton("editcoupon"); } else { this.AddHelpButton("addcoupon"); } break; default: SetTitleBarToMessage("lbl coupons"); workareamenu newMenu = new workareamenu("file", this.GetMessage("lbl new"), AppPath + "images/UI/Icons/star.png"); newMenu.AddLinkItem(this.AppImgPath + "commerce/coupon.gif", this.GetMessage("lbl coupon"), m_sPageName + "?action=addedit"); this.AddMenu(newMenu); this.AddHelpButton("coupons"); break; } }
protected void SetLabels() { this.litPaymentOptions.Text = GetMessage("lbl commerce payment options"); this.litPaymentGatways.Text = GetMessage("lbl payment gateways"); this.ltr_name.Text = this.GetMessage("lbl gateway name"); this.ltr_id.Text = this.GetMessage("lbl gateway id"); this.ltr_default.Text = this.GetMessage("lbl gateway default"); this.ltr_uid.Text = this.GetMessage("lbl gateway userid"); this.ltr_pwd.Text = this.GetMessage("lbl gateway password"); this.ltr_showcustom.Text = "<a href=\"javascript: void(0);\" onclick=\"ToggleDiv(\'tbl_custom\');\">" + GetMessage("lbl gateway expand custom") + "</a>"; this.ltr_spare1.Text = this.GetMessage("lbl gateway custom1"); this.ltr_spare2.Text = this.GetMessage("lbl gateway custom2"); switch (base.m_sPageAction) { case "view": this.pnl_view.Visible = true; this.pnl_viewall.Visible = false; this.AddBackButton(this.m_sPageName); this.AddButtonwithMessages(imageIconsPath + "contentEdit.png", this.m_sPageName + "?action=addedit&id=" + this.m_iID.ToString(), "generic edit title", "generic edit title", "", StyleHelper. EditButtonCssClass, true); if (!m_bIsDefault) { this.AddButtonwithMessages(this.AppImgPath + "icon_survey_enable.gif", this.m_sPageName + "?action=markdef&id=" + this.m_iID.ToString(), "lbl gateway mark def", "lbl gateway mark def", "", StyleHelper.EnableButtonCssClass); this.AddButtonwithMessages(imageIconsPath + "delete.png", this.m_sPageName + "?action=del&id=" + this.m_iID.ToString(), "alt del gateway button text", "btn delete", " onclick=\"return CheckDelete();\" ", StyleHelper.DeleteButtonCssClass); } this.SetTitleBarToMessage("lbl view gateway"); this.AddHelpButton("ViewPaymentGateway"); break; case "addedit": this.pnl_view.Visible = true; this.pnl_viewall.Visible = false; if (this.m_iID > 0) { this.AddBackButton(this.m_sPageName + "?action=view&id=" + m_iID.ToString()); this.AddButtonwithMessages(imageIconsPath + "save.png", "#", "lbl alt save gateway", "btn save", " onclick=\"SubmitForm(); return false;\" ", StyleHelper.SaveButtonCssClass, true); this.SetTitleBarToMessage("lbl edit gateway"); Page.ClientScript.RegisterStartupScript(this.GetType(), "protectpwd", "ProtectPassword();", true); this.AddHelpButton("EditPaymentGateway"); } else { this.AddBackButton(this.m_sPageName); this.AddButtonwithMessages(imageIconsPath + "save.png", "#", "lbl alt add gateway", "btn save", " onclick=\"SubmitForm(); return false;\" ", StyleHelper.SaveButtonCssClass, true); this.SetTitleBarToMessage("lbl add gateway"); this.AddHelpButton("AddPaymentGateway"); } break; case "editoptions": AddBackButton(this.m_sPageName); AddButtonwithMessages(imageIconsPath + "save.png", "#", "lbl alt save payment options", "btn save", " onclick=\"SubmitOptionsForm(); return false;\" ", StyleHelper.SaveButtonCssClass, true); SetTitleBarToMessage("lbl payment options edit"); AddHelpButton("paymentgateway"); break; default: // "viewall" workareamenu newMenu = new workareamenu("file", this.GetMessage("lbl new"), imageIconsPath + "star.png"); newMenu.AddLinkItem(this.AppImgPath + "menu/card.gif", this.GetMessage("lbl payment gateway"), this.m_sPageName + "?action=addedit"); this.AddMenu(newMenu); workareamenu actionMenu = new workareamenu("action", this.GetMessage("lbl action"), imageIconsPath + "check.png"); actionMenu.AddItem(this.AppImgPath + "icon_survey_enable.gif", this.GetMessage("lbl gateway mark def"), "CheckMarkAsDef();"); actionMenu.AddBreak(); actionMenu.AddLinkItem(imageIconsPath + "contentEdit.png", this.GetMessage("lbl payment options edit"), this.m_sPageName + "?action=editoptions"); this.AddMenu(actionMenu); this.SetTitleBarToMessage("lbl payment options"); this.AddHelpButton("paymentgateway"); break; } SetJs(); }
protected void Util_SetLabels() { ltr_name.Text = GetMessage("lbl cc type name"); ltr_id.Text = GetMessage("lbl cc type id"); ltr_accepted.Text = GetMessage("lbl cc type accepted"); ltr_image.Text = GetMessage("lbl cc type image"); ltr_regex.Text = GetMessage("lbl cc type regex"); switch (base.m_sPageAction) { case "view": this.pnl_view.Visible = true; this.pnl_viewall.Visible = false; this.AddBackButton(this._PageName); this.AddButtonwithMessages(this.AppImgPath + "../UI/Icons/contentEdit.png", this._PageName + "?action=addedit&id=" + this.m_iID.ToString(), "generic edit title", "generic edit title", "", StyleHelper.EditButtonCssClass, true); this.AddButtonwithMessages(this.AppImgPath + "../UI/Icons/delete.png", this._PageName + "?action=del&id=" + this.m_iID.ToString(), "alt del cc type button text", "btn delete", " onclick=\"return CheckDelete();\" ", StyleHelper.DeleteButtonCssClass); this.SetTitleBarToMessage("lbl view cc type"); this.AddHelpButton("ViewCreditCardType"); break; case "addedit": // Me.ltr_cmd_img_prv.Text = "<img src=""" & AppImgPath & "btn_preview-nm.gif"" border=""0"" alt=""" & GetMessage("lbl cc type img review") & """ title=""" & GetMessage("lbl cc type img preview") & """ onclick="" PreviewImage(); return false;"" />" this.pnl_view.Visible = true; this.pnl_viewall.Visible = false; this.AddBackButton(this._PageName + (this.m_iID > 0 ? "?action=view&id=" + this.m_iID : "")); this.AddButtonwithMessages(this.AppImgPath + "../UI/Icons/save.png", "#", "lbl alt edit cc type", "btn save", " onclick=\"SubmitForm(); return false;\" ", StyleHelper.SaveButtonCssClass, true); this.SetTitleBarToString((string)(this.m_iID > 0 ? (this.GetMessage("lbl edit cc type")) : (this.GetMessage("lbl add cc type")))); this.AddHelpButton((string)(this.m_iID > 0 ? ("EditCreditCardType") : ("AddCreditCardType"))); break; default: // "viewall" workareamenu newMenu = new workareamenu("file", this.GetMessage("lbl new"), this.AppImgPath + "../UI/Icons/star.png"); newMenu.AddLinkItem(this.AppImgPath + "/menu/card.gif", this.GetMessage("lbl cc type"), this._PageName + "?action=addedit"); this.AddMenu(newMenu); this.SetTitleBarToMessage("lbl cc types"); this.AddHelpButton("cctype"); break; } Util_SetJs(); }