public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var isInstalled = !AppManager.IsNeedInstall(); if (isInstalled) { Page.Response.Write("系统已安装成功,向导被禁用"); Page.Response.End(); return; } LtlVersionInfo.Text = $"SITESERVER {AppManager.GetFullVersion()}"; LtlStepTitle.Text = GetSetpTitleString(1); DdlSqlDatabaseType.Items.Add(new ListItem { Text = "SqlServer", Value = "SqlServer" }); DdlSqlDatabaseType.Items.Add(new ListItem { Text = "MySql", Value = "MySql" }); EBooleanUtils.AddListItems(DdlIsProtectData, "加密", "不加密"); ControlUtils.SelectListItemsIgnoreCase(DdlIsProtectData, true.ToString()); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } if (!IsPostBack) { BreadCrumbUser(AppManager.User.LeftMenu.UserConfiguration, "用户登录配置", AppManager.User.Permission.UserConfiguration); EBooleanUtils.AddListItems(rblIsRecordIP, "是", "否"); ControlUtils.SelectListItemsIgnoreCase(rblIsRecordIP, ConfigManager.UserConfigInfo.IsRecordIp.ToString()); EBooleanUtils.AddListItems(rblIsRecordSource, "是", "否"); ControlUtils.SelectListItemsIgnoreCase(rblIsRecordSource, ConfigManager.UserConfigInfo.IsRecordSource.ToString()); EBooleanUtils.AddListItems(rblIsFailToLock, "是", "否"); ControlUtils.SelectListItemsIgnoreCase(rblIsFailToLock, ConfigManager.UserConfigInfo.IsLoginFailToLock.ToString()); phFailToLock.Visible = false; if (ConfigManager.UserConfigInfo.IsLoginFailToLock) { phFailToLock.Visible = true; } loginFailCount.Text = ConfigManager.UserConfigInfo.LoginFailToLockCount.ToString(); ddlLockType.Items.Add(new ListItem("按小时锁定", EUserLockTypeUtils.GetValue(EUserLockType.Hours))); ddlLockType.Items.Add(new ListItem("永久锁定", EUserLockTypeUtils.GetValue(EUserLockType.Forever))); ControlUtils.SelectListItemsIgnoreCase(ddlLockType, ConfigManager.UserConfigInfo.LoginLockingType); lockingTime.Text = ConfigManager.UserConfigInfo.LoginLockingHours.ToString(); phLockingTime.Visible = false; phLockingTime.Visible = EUserLockTypeUtils.Equals(ConfigManager.UserConfigInfo.LoginLockingType, EUserLockType.Hours); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID", "NodeID"); var nodeID = int.Parse(Body.GetQueryString("NodeID")); nodeInfo = NodeManager.GetNodeInfo(PublishmentSystemId, nodeID); if (!IsPostBack) { ECrossSiteTransTypeUtils.AddAllListItems(TransType); ControlUtils.SelectListItems(TransType, ECrossSiteTransTypeUtils.GetValue(nodeInfo.Additional.TransType)); TransType_OnSelectedIndexChanged(null, EventArgs.Empty); ControlUtils.SelectListItems(PublishmentSystemIDCollection, nodeInfo.Additional.TransPublishmentSystemID.ToString()); PublishmentSystemIDCollection_OnSelectedIndexChanged(null, EventArgs.Empty); ControlUtils.SelectListItems(NodeIDCollection, TranslateUtils.StringCollectionToStringList(nodeInfo.Additional.TransNodeIDs)); NodeNames.Text = nodeInfo.Additional.TransNodeNames; EBooleanUtils.AddListItems(IsAutomatic, "自动", "提示"); ControlUtils.SelectListItemsIgnoreCase(IsAutomatic, nodeInfo.Additional.TransIsAutomatic.ToString()); ETranslateContentTypeUtils.AddListItems(ddlTranslateDoneType, false); ControlUtils.SelectListItems(ddlTranslateDoneType, ETranslateContentTypeUtils.GetValue(nodeInfo.Additional.TransDoneType)); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } if (!IsPostBack) { BreadCrumbUser(AppManager.User.LeftMenu.UserConfiguration, "用户注册配置", AppManager.User.Permission.UserConfiguration); EBooleanUtils.AddListItems(RblIsRegisterAllowed); TbRegisterPasswordMinLength.Text = ConfigManager.UserConfigInfo.RegisterPasswordMinLength.ToString(); EUserPasswordRestrictionUtils.AddListItems(DdlRegisterPasswordRestriction); ControlUtils.SelectListItemsIgnoreCase(DdlRegisterPasswordRestriction, EUserPasswordRestrictionUtils.GetValue(ConfigManager.UserConfigInfo.RegisterPasswordRestriction)); EUserVerifyTypeUtils.AddListItems(DdlRegisterVerifyType); ControlUtils.SelectListItemsIgnoreCase(RblIsRegisterAllowed, ConfigManager.UserConfigInfo.IsRegisterAllowed.ToString()); ControlUtils.SelectListItemsIgnoreCase(DdlRegisterVerifyType, EUserVerifyTypeUtils.GetValue(ConfigManager.UserConfigInfo.RegisterVerifyType)); TbRegisterMinMinutesOfIpAddress.Text = ConfigManager.UserConfigInfo.RegisterMinMinutesOfIpAddress.ToString(); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); if (!IsPostBack) { BreadCrumb(AppManager.Cms.LeftMenu.IdConfigration, "跨站转发设置", AppManager.Cms.Permission.WebSite.Configration); ClientScriptRegisterClientScriptBlock("NodeTreeScript", ChannelLoading.GetScript(PublishmentSystemInfo, ELoadingType.ConfigurationCrossSiteTrans, null)); if (Body.IsQueryExists("CurrentNodeID")) { _currentNodeId = Body.GetQueryInt("CurrentNodeID"); var onLoadScript = ChannelLoading.GetScriptOnLoad(PublishmentSystemId, _currentNodeId); if (!string.IsNullOrEmpty(onLoadScript)) { ClientScriptRegisterClientScriptBlock("NodeTreeScriptOnLoad", onLoadScript); } } BindGrid(); EBooleanUtils.AddListItems(IsCrossSiteTransChecked, "无需审核", "需要审核"); ControlUtils.SelectListItems(IsCrossSiteTransChecked, PublishmentSystemInfo.Additional.IsCrossSiteTransChecked.ToString()); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("siteId"); if (IsPostBack) { return; } VerifySitePermissions(ConfigManager.WebSitePermissions.Configration); ClientScriptRegisterClientScriptBlock("NodeTreeScript", ChannelLoading.GetScript(SiteInfo, string.Empty, ELoadingType.ConfigurationCrossSiteTrans, null)); if (AuthRequest.IsQueryExists("CurrentChannelId")) { _currentChannelId = AuthRequest.GetQueryInt("CurrentChannelId"); var onLoadScript = ChannelLoading.GetScriptOnLoad(SiteId, _currentChannelId); if (!string.IsNullOrEmpty(onLoadScript)) { ClientScriptRegisterClientScriptBlock("NodeTreeScriptOnLoad", onLoadScript); } } EBooleanUtils.AddListItems(RblIsCrossSiteTransChecked, "无需审核", "需要审核"); ControlUtils.SelectSingleItem(RblIsCrossSiteTransChecked, SiteInfo.Additional.IsCrossSiteTransChecked.ToString()); }
public void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } if (!SystemManager.IsNeedInstall()) { Page.Response.Write("系统已安装成功,向导被禁用"); Page.Response.End(); return; } LtlVersionInfo.Text = SystemManager.ProductVersion; SetSetp(1); DatabaseTypeUtils.AddListItems(DdlSqlDatabaseType); DdlOraclePrivilege.Items.Add(new ListItem(EOraclePrivilegeUtils.GetValue(EOraclePrivilege.Normal), EOraclePrivilegeUtils.GetValue(EOraclePrivilege.Normal))); DdlOraclePrivilege.Items.Add(new ListItem(EOraclePrivilegeUtils.GetValue(EOraclePrivilege.SYSDBA), EOraclePrivilegeUtils.GetValue(EOraclePrivilege.SYSDBA))); DdlOraclePrivilege.Items.Add(new ListItem(EOraclePrivilegeUtils.GetValue(EOraclePrivilege.SYSOPER), EOraclePrivilegeUtils.GetValue(EOraclePrivilege.SYSOPER))); EBooleanUtils.AddListItems(DdlIsOracleSid, "SID", "Service name"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsOracleSid, true.ToString()); EBooleanUtils.AddListItems(DdlIsDefaultPort, "默认数据库端口", "自定义数据库端口"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsDefaultPort, true.ToString()); PhSqlPort.Visible = false; EBooleanUtils.AddListItems(DdlIsProtectData, "加密", "不加密"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsProtectData, false.ToString()); LtlGo.Text = $@"<a class=""btn btn-success m-l-5"" href=""{PageUtils.GetAdminUrl(string.Empty)}"">进入后台</a>"; }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("siteId", "channelId"); var channelId = int.Parse(Body.GetQueryString("channelId")); _channelInfo = ChannelManager.GetChannelInfo(SiteId, channelId); if (IsPostBack) { return; } ECrossSiteTransTypeUtils.AddAllListItems(DdlTransType, SiteInfo.ParentId > 0); ControlUtils.SelectSingleItem(DdlTransType, ECrossSiteTransTypeUtils.GetValue(_channelInfo.Additional.TransType)); DdlTransType_OnSelectedIndexChanged(null, EventArgs.Empty); ControlUtils.SelectSingleItem(DdlSiteId, _channelInfo.Additional.TransSiteId.ToString()); DdlSiteId_OnSelectedIndexChanged(null, EventArgs.Empty); ControlUtils.SelectMultiItems(LbChannelId, TranslateUtils.StringCollectionToStringList(_channelInfo.Additional.TransChannelIds)); TbNodeNames.Text = _channelInfo.Additional.TransChannelNames; EBooleanUtils.AddListItems(DdlIsAutomatic, "自动", "提示"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsAutomatic, _channelInfo.Additional.TransIsAutomatic.ToString()); ETranslateContentTypeUtils.AddListItems(DdlTranslateDoneType, false); ControlUtils.SelectSingleItem(DdlTranslateDoneType, ETranslateContentTypeUtils.GetValue(_channelInfo.Additional.TransDoneType)); }
private void RptGroup_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { var pair = (KeyValuePair <int, string>)e.Item.DataItem; var hfGroupId = (HiddenField)e.Item.FindControl("hfGroupID"); var ltlGroupName = (Literal)e.Item.FindControl("ltlGroupName"); var ddlIsGroupWritingEnabled = (DropDownList)e.Item.FindControl("ddlIsGroupWritingEnabled"); var phIsGroupWritingEnabled = (PlaceHolder)e.Item.FindControl("phIsGroupWritingEnabled"); var tbGroupWritingAdminUserName = (TextBox)e.Item.FindControl("tbGroupWritingAdminUserName"); hfGroupId.Value = pair.Key.ToString(); ltlGroupName.Text = pair.Value; var groupInfo = UserGroupManager.GetGroupInfo(pair.Key); var isWritingEnabled = groupInfo.Additional.IsWritingEnabled; var writingAdminUserName = groupInfo.Additional.WritingAdminUserName; EBooleanUtils.AddListItems(ddlIsGroupWritingEnabled, "开启", "关闭"); ControlUtils.SelectListItemsIgnoreCase(ddlIsGroupWritingEnabled, isWritingEnabled.ToString()); phIsGroupWritingEnabled.Visible = isWritingEnabled; tbGroupWritingAdminUserName.Text = writingAdminUserName; } }
public void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } if (SystemManager.IsInstalled) { Page.Response.Write("系统已安装成功,向导被禁用。<a href=\"" + PageUtils.GetAdminUrl("/") + "\">返回后台管理首页</a>"); Page.Response.End(); return; } LtlVersionInfo.Text = SystemManager.ProductVersion; SetSetp(1); DatabaseTypeUtils.AddListItems(DdlSqlDatabaseType); EBooleanUtils.AddListItems(DdlIsDefaultPort, "默认数据库端口", "自定义数据库端口"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsDefaultPort, true.ToString()); PhSqlPort.Visible = false; EBooleanUtils.AddListItems(DdlIsProtectData, "加密", "不加密"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsProtectData, false.ToString()); LtlGo.Text = $@"<a class=""btn btn-success m-l-5"" href=""{PageUtils.GetAdminUrl(string.Empty)}"">进入后台</a>"; }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); if (!IsPostBack) { BreadCrumb(AppManager.Cms.LeftMenu.IdFunction, AppManager.Cms.LeftMenu.Function.IdInnerLink, "站内链接设置", AppManager.Cms.Permission.WebSite.InnerLink); EBooleanUtils.AddListItems(IsInnerLink, "启用", "禁用"); ControlUtils.SelectListItemsIgnoreCase(IsInnerLink, PublishmentSystemInfo.Additional.IsInnerLink.ToString()); EBooleanUtils.AddListItems(IsInnerLinkByChannelName); ControlUtils.SelectListItemsIgnoreCase(IsInnerLinkByChannelName, PublishmentSystemInfo.Additional.IsInnerLinkByChannelName.ToString()); InnerLinkFormatString.Text = PublishmentSystemInfo.Additional.InnerLinkFormatString; InnerLinkMaxNum.Text = PublishmentSystemInfo.Additional.InnerLinkMaxNum.ToString(); IsInnerLink_SelectedIndexChanged(null, null); } }
public void Page_Load(object sender, EventArgs e) { PageUtils.CheckRequestParameter("PublishmentSystemID"); if (Body.IsQueryExists("AdAreaName")) { _isEdit = true; _theAdAreaName = Body.GetQueryString("AdAreaName"); } if (!Page.IsPostBack) { var pageTitle = _isEdit ? "编辑广告位" : "添加广告位"; BreadCrumb(AppManager.Cms.LeftMenu.IdFunction, AppManager.Cms.LeftMenu.Function.IdAdvertisement, pageTitle, AppManager.Cms.Permission.WebSite.Advertisement); ltlPageTitle.Text = pageTitle; EBooleanUtils.AddListItems(IsEnabled); ControlUtils.SelectListItems(IsEnabled, true.ToString()); if (_isEdit) { var adAreaInfo = DataProvider.AdAreaDao.GetAdAreaInfo(_theAdAreaName, PublishmentSystemId); AdAreaName.Text = adAreaInfo.AdAreaName; IsEnabled.SelectedValue = adAreaInfo.IsEnabled.ToString(); Width.Text = adAreaInfo.Width.ToString(); Height.Text = adAreaInfo.Height.ToString(); Summary.Text = adAreaInfo.Summary; } } SuccessMessage(string.Empty); }
public void DdlValidate_SelectedIndexChanged(object sender, EventArgs e) { PhValidate.Visible = !EBooleanUtils.Equals(EBoolean.False, DdlIsValidate.SelectedValue); var type = ValidateTypeUtils.GetEnumType(DdlValidateType.SelectedValue); PhRegExp.Visible = type == ValidateType.RegExp; }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); if (!Page.IsPostBack) { TbPublishmentSystemUrl.Text = PublishmentSystemInfo.PublishmentSystemUrl; EBooleanUtils.AddListItems(DdlIsMultiDeployment, "内外网分离部署", "默认部署"); ControlUtils.SelectListItems(DdlIsMultiDeployment, PublishmentSystemInfo.Additional.IsMultiDeployment.ToString()); TbSiteUrl.Text = PublishmentSystemInfo.Additional.SiteUrl; TbApiUrl.Text = PublishmentSystemInfo.Additional.ApiUrl; TbOuterSiteUrl.Text = PublishmentSystemInfo.Additional.OuterSiteUrl; TbInnerSiteUrl.Text = PublishmentSystemInfo.Additional.InnerSiteUrl; TbOuterApiUrl.Text = PublishmentSystemInfo.Additional.OuterApiUrl; TbInnerApiUrl.Text = PublishmentSystemInfo.Additional.InnerApiUrl; TbHomeUrl.Text = PublishmentSystemInfo.Additional.HomeUrl; DdlIsMultiDeployment_SelectedIndexChanged(null, EventArgs.Empty); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } if (IsPostBack) { return; } BreadCrumbUser(AppManager.User.LeftMenu.UserConfiguration, "投稿基本设置", AppManager.User.Permission.UserConfiguration); EBooleanUtils.AddListItems(DdlIsWritingEnabled, "开启", "关闭"); ControlUtils.SelectListItemsIgnoreCase(DdlIsWritingEnabled, ConfigManager.UserConfigInfo.IsWritingEnabled.ToString()); PhWriting.Visible = ConfigManager.UserConfigInfo.IsWritingEnabled; var pairList = new List <KeyValuePair <int, string> >(); var defaultGroupInfo = UserGroupManager.GetDefaultGroupInfo(); pairList.Add(new KeyValuePair <int, string>(defaultGroupInfo.GroupId, defaultGroupInfo.GroupName)); var groupInfoList = UserGroupManager.GetGroupInfoList(); foreach (var groupInfo in groupInfoList) { if (groupInfo.GroupId != defaultGroupInfo.GroupId) { pairList.Add(new KeyValuePair <int, string>(groupInfo.GroupId, groupInfo.GroupName)); } } RptGroup.DataSource = pairList; RptGroup.ItemDataBound += RptGroup_ItemDataBound; RptGroup.DataBind(); }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } if (Body.IsQueryExists("uploadLogo")) { var attributes = UploadLogo(); var json = JsonMapper.ToJson(attributes); Response.Write(json); Response.End(); return; } LtlLogoUrl.Text = $@"<img id=""logoUrl"" src=""{ConfigManager.UserConfigInfo.LogoUrl}"" />"; if (IsPostBack) { return; } BreadCrumbUser(AppManager.User.LeftMenu.UserConfiguration, "基本配置", AppManager.User.Permission.UserConfiguration); EBooleanUtils.AddListItems(DdlIsEnable, "开启", "关闭"); ControlUtils.SelectListItemsIgnoreCase(DdlIsEnable, ConfigManager.UserConfigInfo.IsEnable.ToString()); TbTitle.Text = ConfigManager.UserConfigInfo.Title; TbCopyright.Text = ConfigManager.UserConfigInfo.Copyright; TbBeianNo.Text = ConfigManager.UserConfigInfo.BeianNo; PhOpen.Visible = ConfigManager.UserConfigInfo.IsEnable; }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); if (!IsPostBack) { BreadCrumb(AppManager.Cms.LeftMenu.IdFunction, AppManager.Cms.LeftMenu.Function.IdSeo, "站点地图(SiteMap) / 谷歌站点地图", AppManager.Cms.Permission.WebSite.Seo); SiteMapGooglePath.Text = PublishmentSystemInfo.Additional.SiteMapGooglePath; SiteMapGoogleChangeFrequency.Items.Add(new ListItem("每天", "daily")); SiteMapGoogleChangeFrequency.Items.Add(new ListItem("每周", "weekly")); SiteMapGoogleChangeFrequency.Items.Add(new ListItem("每月", "monthly")); SiteMapGoogleChangeFrequency.Items.Add(new ListItem("每年", "yearly")); SiteMapGoogleChangeFrequency.Items.Add(new ListItem("永不改变", "never")); ControlUtils.SelectListItemsIgnoreCase(SiteMapGoogleChangeFrequency, PublishmentSystemInfo.Additional.SiteMapGoogleChangeFrequency); EBooleanUtils.AddListItems(SiteMapGoogleIsShowLastModified, "显示", "不显示"); ControlUtils.SelectListItemsIgnoreCase(SiteMapGoogleIsShowLastModified, PublishmentSystemInfo.Additional.SiteMapGoogleIsShowLastModified.ToString()); SiteMapGooglePageCount.Text = PublishmentSystemInfo.Additional.SiteMapGooglePageCount.ToString(); var path = PageUtils.AddProtocolToUrl(PageUtility.ParseNavigationUrl(PublishmentSystemInfo, PublishmentSystemInfo.Additional.SiteMapGooglePath)); ltlGoogleSiteMapUrl.Text = ltlYahooSiteMapUrl.Text = $@"<a href=""{path}"" target=""_blank"">{path}</a>"; } }
public RadioButtonList IsCreateMultiThread; // 是否启用多线程生成页面 public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); if (!IsPostBack) { BreadCrumb(AppManager.Cms.LeftMenu.IdCreate, AppManager.Cms.LeftMenu.Create.IdConfigurationCreate, "页面生成设置", AppManager.Cms.Permission.WebSite.Create); EBooleanUtils.AddListItems(IsCreateContentIfContentChanged, "生成", "不生成"); ControlUtils.SelectListItemsIgnoreCase(IsCreateContentIfContentChanged, PublishmentSystemInfo.Additional.IsCreateContentIfContentChanged.ToString()); EBooleanUtils.AddListItems(IsCreateChannelIfChannelChanged, "生成", "不生成"); ControlUtils.SelectListItemsIgnoreCase(IsCreateChannelIfChannelChanged, PublishmentSystemInfo.Additional.IsCreateChannelIfChannelChanged.ToString()); EBooleanUtils.AddListItems(IsCreateShowPageInfo, "显示", "不显示"); ControlUtils.SelectListItemsIgnoreCase(IsCreateShowPageInfo, PublishmentSystemInfo.Additional.IsCreateShowPageInfo.ToString()); EBooleanUtils.AddListItems(IsCreateIE8Compatible, "强制兼容", "不设置"); ControlUtils.SelectListItemsIgnoreCase(IsCreateIE8Compatible, PublishmentSystemInfo.Additional.IsCreateIe8Compatible.ToString()); EBooleanUtils.AddListItems(IsCreateBrowserNoCache, "强制清除缓存", "不设置"); ControlUtils.SelectListItemsIgnoreCase(IsCreateBrowserNoCache, PublishmentSystemInfo.Additional.IsCreateBrowserNoCache.ToString()); EBooleanUtils.AddListItems(IsCreateJsIgnoreError, "包含JS容错代码", "不设置"); ControlUtils.SelectListItemsIgnoreCase(IsCreateJsIgnoreError, PublishmentSystemInfo.Additional.IsCreateJsIgnoreError.ToString()); EBooleanUtils.AddListItems(IsCreateSearchDuplicate, "包含", "不包含"); ControlUtils.SelectListItemsIgnoreCase(IsCreateSearchDuplicate, PublishmentSystemInfo.Additional.IsCreateSearchDuplicate.ToString()); EBooleanUtils.AddListItems(IsCreateWithJQuery, "是", "否"); ControlUtils.SelectListItemsIgnoreCase(IsCreateWithJQuery, PublishmentSystemInfo.Additional.IsCreateWithJQuery.ToString()); EBooleanUtils.AddListItems(IsCreateIncludeToSSI, "是", "否"); ControlUtils.SelectListItemsIgnoreCase(IsCreateIncludeToSSI, PublishmentSystemInfo.Additional.IsCreateIncludeToSsi.ToString()); EBooleanUtils.AddListItems(IsCreateDoubleClick, "启用双击生成", "不启用"); ControlUtils.SelectListItemsIgnoreCase(IsCreateDoubleClick, PublishmentSystemInfo.Additional.IsCreateDoubleClick.ToString()); tbCreateStaticMaxPage.Text = PublishmentSystemInfo.Additional.CreateStaticMaxPage.ToString(); EBooleanUtils.AddListItems(IsCreateStaticContentByAddDate, "启用", "不启用"); ControlUtils.SelectListItemsIgnoreCase(IsCreateStaticContentByAddDate, PublishmentSystemInfo.Additional.IsCreateStaticContentByAddDate.ToString()); phIsCreateStaticContentByAddDate.Visible = PublishmentSystemInfo.Additional.IsCreateStaticContentByAddDate; if (PublishmentSystemInfo.Additional.CreateStaticContentAddDate != DateTime.MinValue) { tbCreateStaticContentAddDate.DateTime = PublishmentSystemInfo.Additional.CreateStaticContentAddDate; } EBooleanUtils.AddListItems(IsCreateMultiThread, "启用", "不启用"); ControlUtils.SelectListItemsIgnoreCase(IsCreateMultiThread, PublishmentSystemInfo.Additional.IsCreateMultiThread.ToString()); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); if (IsPostBack) { return; } BreadCrumb(AppManager.Cms.LeftMenu.IdConfigration, "内容管理设置", AppManager.Cms.Permission.WebSite.Configration); EBooleanUtils.AddListItems(DdlIsGroupContent, "使用内容组", "不使用内容组"); ControlUtils.SelectListItemsIgnoreCase(DdlIsGroupContent, PublishmentSystemInfo.Additional.IsGroupContent.ToString()); EBooleanUtils.AddListItems(DdlIsRelatedByTags, "使用标签", "不使用标签"); ControlUtils.SelectListItemsIgnoreCase(DdlIsRelatedByTags, PublishmentSystemInfo.Additional.IsRelatedByTags.ToString()); EBooleanUtils.AddListItems(DdlIsTranslate, "使用内容转移", "不使用内容转移"); ControlUtils.SelectListItemsIgnoreCase(DdlIsTranslate, PublishmentSystemInfo.Additional.IsTranslate.ToString()); EBooleanUtils.AddListItems(DdlIsSaveImageInTextEditor, "保存", "不保存"); ControlUtils.SelectListItemsIgnoreCase(DdlIsSaveImageInTextEditor, PublishmentSystemInfo.Additional.IsSaveImageInTextEditor.ToString()); EBooleanUtils.AddListItems(DdlIsAutoPageInTextEditor, "自动分页", "手动分页"); ControlUtils.SelectListItemsIgnoreCase(DdlIsAutoPageInTextEditor, PublishmentSystemInfo.Additional.IsAutoPageInTextEditor.ToString()); TbAutoPageWordNum.Text = PublishmentSystemInfo.Additional.AutoPageWordNum.ToString(); EBooleanUtils.AddListItems(RblIsContentTitleBreakLine, "启用标题换行", "不启用"); ControlUtils.SelectListItemsIgnoreCase(RblIsContentTitleBreakLine, PublishmentSystemInfo.Additional.IsContentTitleBreakLine.ToString()); //保存时,敏感词自动检测 EBooleanUtils.AddListItems(RblIsAutoCheckKeywords, "启用敏感词自动检测", "不启用"); ControlUtils.SelectListItemsIgnoreCase(RblIsAutoCheckKeywords, PublishmentSystemInfo.Additional.IsAutoCheckKeywords.ToString()); //编辑器上传文件URL前缀 TbEditorUploadFilePre.Text = PublishmentSystemInfo.Additional.EditorUploadFilePre; RblIsCheckContentUseLevel.Items.Add(new ListItem("默认审核机制", false.ToString())); RblIsCheckContentUseLevel.Items.Add(new ListItem("多级审核机制", true.ToString())); ControlUtils.SelectListItems(RblIsCheckContentUseLevel, PublishmentSystemInfo.IsCheckContentUseLevel.ToString()); if (PublishmentSystemInfo.IsCheckContentUseLevel) { ControlUtils.SelectListItems(DdlCheckContentLevel, PublishmentSystemInfo.CheckContentLevel.ToString()); PhCheckContentLevel.Visible = true; } else { PhCheckContentLevel.Visible = false; } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("siteId"); if (IsPostBack) { return; } VerifySitePermissions(ConfigManager.WebSitePermissions.Create); EBooleanUtils.AddListItems(DdlIsCreateContentIfContentChanged, "生成", "不生成"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateContentIfContentChanged, SiteInfo.Additional.IsCreateContentIfContentChanged.ToString()); EBooleanUtils.AddListItems(DdlIsCreateChannelIfChannelChanged, "生成", "不生成"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateChannelIfChannelChanged, SiteInfo.Additional.IsCreateChannelIfChannelChanged.ToString()); EBooleanUtils.AddListItems(DdlIsCreateShowPageInfo, "显示", "不显示"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateShowPageInfo, SiteInfo.Additional.IsCreateShowPageInfo.ToString()); EBooleanUtils.AddListItems(DdlIsCreateIe8Compatible, "强制兼容", "不设置"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateIe8Compatible, SiteInfo.Additional.IsCreateIe8Compatible.ToString()); EBooleanUtils.AddListItems(DdlIsCreateBrowserNoCache, "强制清除缓存", "不设置"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateBrowserNoCache, SiteInfo.Additional.IsCreateBrowserNoCache.ToString()); EBooleanUtils.AddListItems(DdlIsCreateJsIgnoreError, "包含JS容错代码", "不设置"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateJsIgnoreError, SiteInfo.Additional.IsCreateJsIgnoreError.ToString()); EBooleanUtils.AddListItems(DdlIsCreateWithJQuery, "是", "否"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateWithJQuery, SiteInfo.Additional.IsCreateWithJQuery.ToString()); EBooleanUtils.AddListItems(DdlIsCreateDoubleClick, "启用双击生成", "不启用"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateDoubleClick, SiteInfo.Additional.IsCreateDoubleClick.ToString()); TbCreateStaticMaxPage.Text = SiteInfo.Additional.CreateStaticMaxPage.ToString(); EBooleanUtils.AddListItems(DdlIsCreateUseDefaultFileName, "启用", "不启用"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateUseDefaultFileName, SiteInfo.Additional.IsCreateUseDefaultFileName.ToString()); PhIsCreateUseDefaultFileName.Visible = SiteInfo.Additional.IsCreateUseDefaultFileName; TbCreateDefaultFileName.Text = SiteInfo.Additional.CreateDefaultFileName; EBooleanUtils.AddListItems(DdlIsCreateStaticContentByAddDate, "启用", "不启用"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsCreateStaticContentByAddDate, SiteInfo.Additional.IsCreateStaticContentByAddDate.ToString()); PhIsCreateStaticContentByAddDate.Visible = SiteInfo.Additional.IsCreateStaticContentByAddDate; if (SiteInfo.Additional.CreateStaticContentAddDate != DateTime.MinValue) { TbCreateStaticContentAddDate.DateTime = SiteInfo.Additional.CreateStaticContentAddDate; } }
public void IsInnerLink_SelectedIndexChanged(object sender, EventArgs e) { if (EBooleanUtils.Equals(IsInnerLink.SelectedValue, EBoolean.True)) { phInnerLink.Visible = true; } else { phInnerLink.Visible = false; } }
public void IsCheckContentUseLevel_OnSelectedIndexChanged(object sender, EventArgs e) { if (EBooleanUtils.Equals(IsCheckContentUseLevel.SelectedValue, EBoolean.True)) { CheckContentLevelRow.Visible = true; } else { CheckContentLevelRow.Visible = false; } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } _ruleId = TranslateUtils.ToInt(Request.QueryString["RuleID"]); if (!IsPostBack) { EGovPublicIdentifierTypeUtils.AddListItems(ddlIdentifierType); var styleInfoList = TableStyleManager.GetTableStyleInfoList(ETableStyle.GovPublicContent, PublishmentSystemInfo.AuxiliaryTableForGovPublic, null); foreach (var tableStyleInfo in styleInfoList) { if (tableStyleInfo.AttributeName == ContentAttribute.Title || tableStyleInfo.AttributeName == GovPublicContentAttribute.Content || tableStyleInfo.AttributeName == GovPublicContentAttribute.DepartmentId || tableStyleInfo.AttributeName == GovPublicContentAttribute.Description || tableStyleInfo.AttributeName == GovPublicContentAttribute.ImageUrl || tableStyleInfo.AttributeName == GovPublicContentAttribute.FileUrl || tableStyleInfo.AttributeName == GovPublicContentAttribute.Identifier || tableStyleInfo.AttributeName == GovPublicContentAttribute.Keywords || tableStyleInfo.AttributeName == GovPublicContentAttribute.DocumentNo || tableStyleInfo.AttributeName == GovPublicContentAttribute.Publisher) { continue; } ddlAttributeName.Items.Add(new ListItem(tableStyleInfo.DisplayName + "(" + tableStyleInfo.AttributeName + ")", tableStyleInfo.AttributeName)); } EBooleanUtils.AddListItems(rblIsSequenceChannelZero); EBooleanUtils.AddListItems(rblIsSequenceDepartmentZero); EBooleanUtils.AddListItems(rblIsSequenceYearZero); ControlUtils.SelectListItemsIgnoreCase(rblIsSequenceChannelZero, true.ToString()); ControlUtils.SelectListItemsIgnoreCase(rblIsSequenceDepartmentZero, false.ToString()); ControlUtils.SelectListItemsIgnoreCase(rblIsSequenceYearZero, true.ToString()); if (_ruleId > 0) { var ruleInfo = DataProvider.GovPublicIdentifierRuleDao.GetIdentifierRuleInfo(_ruleId); if (ruleInfo != null) { tbRuleName.Text = ruleInfo.RuleName; ControlUtils.SelectListItems(ddlIdentifierType, EGovPublicIdentifierTypeUtils.GetValue(ruleInfo.IdentifierType)); ControlUtils.SelectListItems(ddlAttributeName, ruleInfo.AttributeName); tbMinLength.Text = ruleInfo.MinLength.ToString(); tbFormatString.Text = ruleInfo.FormatString; tbSuffix.Text = ruleInfo.Suffix; tbSequence.Text = ruleInfo.Sequence.ToString(); ControlUtils.SelectListItemsIgnoreCase(rblIsSequenceChannelZero, ruleInfo.Additional.IsSequenceChannelZero.ToString()); ControlUtils.SelectListItemsIgnoreCase(rblIsSequenceDepartmentZero, ruleInfo.Additional.IsSequenceDepartmentZero.ToString()); ControlUtils.SelectListItemsIgnoreCase(rblIsSequenceYearZero, ruleInfo.Additional.IsSequenceYearZero.ToString()); } } ddlIdentifierType.SelectedIndexChanged += ddlIdentifierType_SelectedIndexChanged; ddlIdentifierType_SelectedIndexChanged(null, EventArgs.Empty); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("siteId"); if (IsPostBack) { return; } VerifySitePermissions(ConfigManager.WebSitePermissions.Configration); EBooleanUtils.AddListItems(DdlIsWaterMark); ControlUtils.SelectSingleItemIgnoreCase(DdlIsWaterMark, SiteInfo.Additional.IsWaterMark.ToString()); LoadWaterMarkPosition(SiteInfo.Additional.WaterMarkPosition); for (var i = 1; i <= 10; i++) { DdlWaterMarkTransparency.Items.Add(new ListItem(i + "0%", i.ToString())); } ControlUtils.SelectSingleItemIgnoreCase(DdlWaterMarkTransparency, SiteInfo.Additional.WaterMarkTransparency.ToString()); TbWaterMarkMinWidth.Text = SiteInfo.Additional.WaterMarkMinWidth.ToString(); TbWaterMarkMinHeight.Text = SiteInfo.Additional.WaterMarkMinHeight.ToString(); EBooleanUtils.AddListItems(DdlIsImageWaterMark, "图片型", "文字型"); ControlUtils.SelectSingleItemIgnoreCase(DdlIsImageWaterMark, SiteInfo.Additional.IsImageWaterMark.ToString()); TbWaterMarkFormatString.Text = SiteInfo.Additional.WaterMarkFormatString; LoadSystemFont(); ControlUtils.SelectSingleItemIgnoreCase(DdlWaterMarkFontName, SiteInfo.Additional.WaterMarkFontName); TbWaterMarkFontSize.Text = SiteInfo.Additional.WaterMarkFontSize.ToString(); TbWaterMarkImagePath.Text = SiteInfo.Additional.WaterMarkImagePath; DdlIsWaterMark_SelectedIndexChanged(null, null); TbWaterMarkImagePath.Attributes.Add("onchange", GetShowImageScript("preview_WaterMarkImagePath", SiteInfo.Additional.WebUrl)); var showPopWinString = ModalSelectImage.GetOpenWindowString(SiteInfo, TbWaterMarkImagePath.ClientID); BtnImageUrlSelect.Attributes.Add("onclick", showPopWinString); showPopWinString = ModalUploadImageSingle.GetOpenWindowStringToTextBox(SiteId, TbWaterMarkImagePath.ClientID); BtnImageUrlUpload.Attributes.Add("onclick", showPopWinString); }
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BreadCrumb(AppManager.Wcm.LeftMenu.IdGovInteract, AppManager.Wcm.LeftMenu.GovInteract.IdGovInteractConfiguration, "互动交流设置", AppManager.Wcm.Permission.WebSite.GovInteractConfiguration); AddListItemsForGovInteract(ddlGovInteractNodeID.Items); ControlUtils.SelectListItems(ddlGovInteractNodeID, PublishmentSystemInfo.Additional.GovInteractNodeId.ToString()); EBooleanUtils.AddListItems(rblGovInteractApplyIsOpenWindow); ControlUtils.SelectListItems(rblGovInteractApplyIsOpenWindow, PublishmentSystemInfo.Additional.GovInteractApplyIsOpenWindow.ToString()); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } if (IsPostBack) { return; } VerifyAdministratorPermissions(ConfigManager.Permissions.Settings.User); EBooleanUtils.AddListItems(RblIsRegisterAllowed); TbRegisterPasswordMinLength.Text = ConfigManager.SystemConfigInfo.UserPasswordMinLength.ToString(); EUserPasswordRestrictionUtils.AddListItems(DdlRegisterPasswordRestriction); ControlUtils.SelectSingleItemIgnoreCase(DdlRegisterPasswordRestriction, ConfigManager.SystemConfigInfo.UserPasswordRestriction); EUserVerifyTypeUtils.AddListItems(DdlRegisterVerifyType); PhRegisterSms.Visible = EUserVerifyTypeUtils.Equals(ConfigManager.SystemConfigInfo.UserRegistrationVerifyType, EUserVerifyType.Mobile); TbRegisterSmsTplId.Text = ConfigManager.SystemConfigInfo.UserRegistrationSmsTplId; ControlUtils.SelectSingleItemIgnoreCase(RblIsRegisterAllowed, ConfigManager.SystemConfigInfo.IsUserRegistrationAllowed.ToString()); ControlUtils.SelectSingleItemIgnoreCase(DdlRegisterVerifyType, ConfigManager.SystemConfigInfo.UserRegistrationVerifyType); TbRegisterMinMinutesOfIpAddress.Text = ConfigManager.SystemConfigInfo.UserRegistrationMinMinutes.ToString(); EBooleanUtils.AddListItems(RblIsFailToLock, "是", "否"); ControlUtils.SelectSingleItemIgnoreCase(RblIsFailToLock, ConfigManager.SystemConfigInfo.IsUserLockLogin.ToString()); PhFailToLock.Visible = ConfigManager.SystemConfigInfo.IsUserLockLogin; TbLoginFailCount.Text = ConfigManager.SystemConfigInfo.UserLockLoginCount.ToString(); DdlLockType.Items.Add(new ListItem("按小时锁定", EUserLockTypeUtils.GetValue(EUserLockType.Hours))); DdlLockType.Items.Add(new ListItem("永久锁定", EUserLockTypeUtils.GetValue(EUserLockType.Forever))); ControlUtils.SelectSingleItemIgnoreCase(DdlLockType, ConfigManager.SystemConfigInfo.UserLockLoginType); TbLockingTime.Text = ConfigManager.SystemConfigInfo.UserLockLoginHours.ToString(); PhLockingTime.Visible = false; PhLockingTime.Visible = EUserLockTypeUtils.Equals(ConfigManager.SystemConfigInfo.UserLockLoginType, EUserLockType.Hours); EBooleanUtils.AddListItems(RblIsFindPassword, "启用", "禁用"); ControlUtils.SelectSingleItemIgnoreCase(RblIsFindPassword, ConfigManager.SystemConfigInfo.IsUserFindPassword.ToString()); PhFindPassword.Visible = ConfigManager.SystemConfigInfo.IsUserFindPassword; TbFindPasswordSmsTplId.Text = ConfigManager.SystemConfigInfo.UserFindPasswordSmsTplId; }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); if (!IsPostBack) { BreadCrumb(AppManager.Cms.LeftMenu.IdConfigration, "图片水印设置", AppManager.Cms.Permission.WebSite.Configration); EBooleanUtils.AddListItems(IsWaterMark); ControlUtils.SelectListItemsIgnoreCase(IsWaterMark, PublishmentSystemInfo.Additional.IsWaterMark.ToString()); LoadWaterMarkPosition(PublishmentSystemInfo.Additional.WaterMarkPosition); for (var i = 1; i <= 10; i++) { WaterMarkTransparency.Items.Add(new ListItem(i + "0%", i.ToString())); } ControlUtils.SelectListItemsIgnoreCase(WaterMarkTransparency, PublishmentSystemInfo.Additional.WaterMarkTransparency.ToString()); WaterMarkMinWidth.Text = PublishmentSystemInfo.Additional.WaterMarkMinWidth.ToString(); WaterMarkMinHeight.Text = PublishmentSystemInfo.Additional.WaterMarkMinHeight.ToString(); EBooleanUtils.AddListItems(IsImageWaterMark, "图片型", "文字型"); ControlUtils.SelectListItemsIgnoreCase(IsImageWaterMark, PublishmentSystemInfo.Additional.IsImageWaterMark.ToString()); WaterMarkFormatString.Text = PublishmentSystemInfo.Additional.WaterMarkFormatString; LoadSystemFont(); ControlUtils.SelectListItemsIgnoreCase(WaterMarkFontName, PublishmentSystemInfo.Additional.WaterMarkFontName); WaterMarkFontSize.Text = PublishmentSystemInfo.Additional.WaterMarkFontSize.ToString(); WaterMarkImagePath.Text = PublishmentSystemInfo.Additional.WaterMarkImagePath; IsWaterMark_SelectedIndexChanged(null, null); WaterMarkImagePath.Attributes.Add("onchange", GetShowImageScript("preview_WaterMarkImagePath", PublishmentSystemInfo.PublishmentSystemUrl)); var showPopWinString = ModalSelectImage.GetOpenWindowString(PublishmentSystemInfo, WaterMarkImagePath.ClientID); ImageUrlSelect.Attributes.Add("onclick", showPopWinString); showPopWinString = ModalUploadImageSingle.GetOpenWindowStringToTextBox(PublishmentSystemId, WaterMarkImagePath.ClientID); ImageUrlUpload.Attributes.Add("onclick", showPopWinString); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } if (IsPostBack) { return; } EBooleanUtils.AddListItems(RblInstallType, "上传插件包", "指定插件Id与版本号"); ControlUtils.SelectSingleItem(RblInstallType, true.ToString()); }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); if (!IsPostBack) { BreadCrumb(AppManager.Cms.LeftMenu.IdConfigration, "站点配置管理", AppManager.Cms.Permission.WebSite.Configration); TbPublishmentSystemUrl.Text = PublishmentSystemInfo.PublishmentSystemUrl; TbHomeUrl.Text = PublishmentSystemInfo.Additional.HomeUrl; EBooleanUtils.AddListItems(DdlIsMultiDeployment, "内外网分离部署", "默认部署"); ControlUtils.SelectListItems(DdlIsMultiDeployment, PublishmentSystemInfo.Additional.IsMultiDeployment.ToString()); TbSiteUrl.Text = PublishmentSystemInfo.Additional.SiteUrl; TbApiUrl.Text = PublishmentSystemInfo.Additional.ApiUrl; TbOuterSiteUrl.Text = PublishmentSystemInfo.Additional.OuterSiteUrl; TbInnerSiteUrl.Text = PublishmentSystemInfo.Additional.InnerSiteUrl; TbOuterApiUrl.Text = PublishmentSystemInfo.Additional.OuterApiUrl; TbInnerApiUrl.Text = PublishmentSystemInfo.Additional.InnerApiUrl; DdlIsMultiDeployment_SelectedIndexChanged(null, EventArgs.Empty); ECharsetUtils.AddListItems(DdlCharset); ControlUtils.SelectListItems(DdlCharset, PublishmentSystemInfo.Additional.Charset); TbPageSize.Text = PublishmentSystemInfo.Additional.PageSize.ToString(); EBooleanUtils.AddListItems(RblIsCountHits, "统计", "不统计"); ControlUtils.SelectListItemsIgnoreCase(RblIsCountHits, PublishmentSystemInfo.Additional.IsCountHits.ToString()); EBooleanUtils.AddListItems(RblIsCountHitsByDay, "统计", "不统计"); ControlUtils.SelectListItemsIgnoreCase(RblIsCountHitsByDay, PublishmentSystemInfo.Additional.IsCountHitsByDay.ToString()); EBooleanUtils.AddListItems(RblIsCountDownload, "统计", "不统计"); ControlUtils.SelectListItemsIgnoreCase(RblIsCountDownload, PublishmentSystemInfo.Additional.IsCountDownload.ToString()); EBooleanUtils.AddListItems(RblIsCreateDoubleClick, "启用双击生成", "不启用"); ControlUtils.SelectListItemsIgnoreCase(RblIsCreateDoubleClick, PublishmentSystemInfo.Additional.IsCreateDoubleClick.ToString()); RblIsCountHits_SelectedIndexChanged(null, EventArgs.Empty); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } if (!Page.IsPostBack) { EBooleanUtils.AddListItems(rblImportType, "上传压缩包并导入", "从指定地址下载压缩包并导入"); ControlUtils.SelectListItemsIgnoreCase(rblImportType, true.ToString()); phUpload.Visible = true; phDownload.Visible = false; } }