protected void Page_Load(object sender, EventArgs e) { this.m_GeneralId = BaseUserControl.RequestInt32("GeneralID"); this.Path = this.Page.Request.ApplicationPath.Equals("/") ? string.Empty : this.Page.Request.ApplicationPath; this.Path = this.Page.Request.Url.Scheme + "://" + this.Page.Request.Url.Authority + this.Path; this.InitComment(); }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { if (BaseUserControl.RequestInt32("GroupId") == -2) { this.ChkManageSelfPublicInfo.Visible = false; this.ChkSetToNotCheck.Visible = false; this.ChkSetEditor.Visible = false; this.LblMaxPublicInfoOneDay.Visible = false; this.LblGetExp.Visible = false; this.LblManageSelfPublicInfo.Visible = false; this.LblSetToNotCheck.Visible = false; this.LblSetEditor.Visible = false; this.LblMaxPublicInfoOneDay.Visible = false; this.LblMaxPublicInfoOneDay2.Visible = false; this.LblGetExp.Visible = false; this.LblGetExp2.Visible = false; this.TxtMaxPublicInfoOneDay.Visible = false; this.TxtGetExp.Visible = false; this.PnlComment.Visible = false; this.PnlMessage.Visible = false; this.PnlFavorite.Visible = false; this.PnlShop.Visible = false; this.PnlCharge.Visible = false; this.PnlMinusPoint.Visible = false; this.PnlEnableExchange.Visible = false; } else { this.PnlShop.Visible = BaseUserControl.IseShop; } if (!SiteConfig.SiteOption.EnablePointMoneyExp) { this.LblGetExp.Visible = false; this.TxtGetExp.Visible = false; this.LblGetExp2.Visible = false; this.PnlCharge.Style.Add("display", "none"); this.PnlMinusPoint.Style.Add("display", "none"); this.PnlEnableExchange.Style.Add("display", "none"); } } if (this.PublicInfoNoNeedCheck) { this.SpanSetToNotCheck.Style.Add("display", "none"); } this.ChkPublicInfoNoNeedCheck.Attributes.Add("onclick", "SwicthPublicInfoNoNeedCheck(this);"); StringBuilder builder = new StringBuilder(); builder.Append("<script type=\"text/javascript\">"); builder.Append("function SwicthPublicInfoNoNeedCheck(obj)"); builder.Append("{"); builder.Append("if(obj.checked){"); builder.Append("document.getElementById(\"" + this.SpanSetToNotCheck.ClientID + "\").style.display = \"none\";"); builder.Append("}else{"); builder.Append("document.getElementById(\"" + this.SpanSetToNotCheck.ClientID + "\").style.display = \"\";"); builder.Append("}}</script>"); this.Page.ClientScript.RegisterStartupScript(base.GetType(), "SwicthPublicInfoNoNeedCheck", builder.ToString()); }
protected void Pager_PageChanged(object src, PageChangedEventArgs e) { this.Pager.CurrentPageIndex = e.NewPageIndex; string searchType = BaseUserControl.RequestString("SearchType"); string keyword = base.Request.Form["Author"]; int listType = BaseUserControl.RequestInt32("ListType"); this.AuthorsBindData(listType, searchType, keyword); }
protected void ELnkProductHtml_Click(object sender, EventArgs e) { int num = BaseUserControl.RequestInt32("NodeID"); if (num > 0) { BaseUserControl.ResponseRedirect("ProductHtml.aspx?NodeID=" + num.ToString()); } else { BaseUserControl.ResponseRedirect("ProductHtml.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { this.m_GeneralId = BaseUserControl.RequestInt32("GeneralID"); this.contentDataTable = ContentManage.GetContentDataById(this.m_GeneralId); if (this.contentDataTable.Rows.Count > 0) { ModelInfo modelInfoById = ModelManager.GetModelInfoById(DataConverter.CLng(this.contentDataTable.Rows[0]["ModelID"].ToString())); this.InitSigin(this.m_GeneralId, modelInfoById.EnableSignIn); } else { BaseUserControl.WriteErrMsg("对不起,错误的参数!", SiteConfig.SiteInfo.VirtualPath + "Default.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { string searchType = BaseUserControl.RequestString("SearchType"); string keyword = base.Request.Form["Author"]; int listType = BaseUserControl.RequestInt32("ListType", 0); if (listType == 0) { listType = DataConverter.CLng(base.Request.Form["HdnListType"]); } this.RptAuthorType.DataSource = Choiceset.GetDictionaryFieldValueByName("PE_Author", "Type"); this.RptAuthorType.DataBind(); this.AuthorsBindData(listType, searchType, keyword); }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.HdnField.Value)) { this.HdnField.Value = BaseUserControl.RequestInt32("Field").ToString(); } if (string.IsNullOrEmpty(this.HdnKeyword.Value)) { this.HdnKeyword.Value = BaseUserControl.RequestString("KeyWord"); } if (string.IsNullOrEmpty(this.HdnSearchType.Value)) { this.HdnSearchType.Value = BaseUserControl.RequestInt32("SearchType").ToString(); } if (string.IsNullOrEmpty(this.m_AdminName)) { this.EgvUserValid.Columns[1].Visible = false; this.EgvUserValid.Columns[4].Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { this.m_FieldName = base.FieldName; this.m_ModelId = BaseUserControl.RequestInt32("ModelId").ToString(); this.m_ShowUploadFilePath = base.BasePath; this.m_ShowUploadFilePath = this.Page.Request.Url.Scheme + "://" + this.Page.Request.Url.Authority + this.m_ShowUploadFilePath; if (base.IsAdminManage) { this.m_ShowUploadFilePath = this.m_ShowUploadFilePath + SiteConfig.SiteOption.ManageDir; } else { this.m_ShowUploadFilePath = this.m_ShowUploadFilePath + "User"; } this.m_JSPrefix = this.ClientID.Replace("$", "").Replace("_", ""); if (!base.IsPostBack) { this.InitJavaScript(); this.PhotoUrl.Attributes.Add("ondblclick", "return " + this.m_JSPrefix + "ModifyPhotoUrl('" + this.PhotoUrl.ClientID + "');"); } }
protected void Page_Load(object sender, EventArgs e) { this.EgvUserPoint.Columns[3].HeaderText = SiteConfig.UserConfig.PointName + "数"; if (string.IsNullOrEmpty(this.HdnField.Value)) { this.HdnField.Value = BaseUserControl.RequestInt32("Field").ToString(); } if (string.IsNullOrEmpty(this.HdnKeyword.Value)) { this.HdnKeyword.Value = BaseUserControl.RequestString("KeyWord"); } if (string.IsNullOrEmpty(this.HdnSearchType.Value)) { this.HdnSearchType.Value = BaseUserControl.RequestInt32("SearchType").ToString(); } if (this.m_ShowType == 1) { this.EgvUserPoint.Columns[1].Visible = false; this.EgvUserPoint.Columns[5].Visible = false; } }
protected void InitComment() { if (this.m_GeneralId == 0) { BaseUserControl.WriteErrMsg("<li>没有找到隶属信息评论,请返回!</li>"); } else { string s = BaseUserControl.RequestString("Title"); this.LblTitle.Text = s; string returnurl = this.ViewFile + "?GeneralID=" + this.m_GeneralId.ToString() + "&title=" + base.Server.UrlEncode(s); int commentId = BaseUserControl.RequestInt32("CommentID"); switch (BaseUserControl.RequestString("Action")) { case "Delete": if (Comment.Delete(commentId)) { BaseUserControl.WriteSuccessMsg("<li>删除指定信息评论成功!</li>", returnurl); } break; case "Audited": if (Comment.SetStatus(commentId, true)) { BaseUserControl.WriteSuccessMsg("<li>指定信息评论审核成功!</li>", returnurl); } break; case "UnAudited": if (Comment.SetStatus(commentId, false)) { BaseUserControl.WriteSuccessMsg("<li>已取消指定评论审核!</li>", returnurl); } break; case "Premier": if (Comment.Elite(commentId, true)) { BaseUserControl.WriteSuccessMsg("<li>设定指定评论精华成功!</li>", returnurl); } break; case "UnPremier": if (Comment.Elite(commentId, false)) { BaseUserControl.WriteSuccessMsg("<li>已取消指定评论精华!</li>", returnurl); } break; case "AddPKZone": { CommentPKZoneInfo commentPKZoneInfo = new CommentPKZoneInfo(); commentPKZoneInfo.CommentId = commentId; commentPKZoneInfo.Content = base.Request["ItemContent"]; commentPKZoneInfo.Position = DataConverter.CLng(base.Request["RadlPosition"]); commentPKZoneInfo.IP = PEContext.Current.UserHostAddress; commentPKZoneInfo.UpdateTime = DateTime.Now; commentPKZoneInfo.UserName = "******"; CommentPKZone.Add(commentPKZoneInfo); BaseUserControl.WriteSuccessMsg("<li>感谢您的参与,添加辩论成功!</li>", returnurl); break; } } this.CommentBindData(); } }
protected void Page_Load(object sender, EventArgs e) { this.generalId = BaseUserControl.RequestInt32("GeneralId", 0); this.InitControl(); }
protected void ELnkCheckContent_Click(object sender, EventArgs e) { BaseUserControl.ResponseRedirect("ContentManage.aspx?NodeID=" + BaseUserControl.RequestInt32("NodeID").ToString() + "&Status=101&ListType=0"); }
protected void ELnkSiginManage_Click(object sender, EventArgs e) { BaseUserControl.ResponseRedirect("ContentSignin.aspx?NodeID=" + BaseUserControl.RequestInt32("NodeID").ToString()); }
protected void Page_Load(object sender, EventArgs e) { string basePath = ""; basePath = base.BasePath; basePath = this.Page.Request.Url.Scheme + "://" + this.Page.Request.Url.Authority + basePath; this.Adrp.DropArrowImageUrl = basePath + "Admin/Images/sitelist.gif"; int nodeId = BaseUserControl.RequestInt32("NodeID"); bool isSuperAdmin = PEContext.Current.Admin.IsSuperAdmin; bool flag2 = false; bool flag3 = false; if (!isSuperAdmin) { string roleNodeId = RolePermissions.GetRoleNodeId(PEContext.Current.Admin.Roles, OperateCode.NodeContentInput); string checkStr = RolePermissions.GetRoleNodeId(PEContext.Current.Admin.Roles, OperateCode.NodeContentManage); if (nodeId > 0) { string findStr = nodeId.ToString(); NodeInfo cacheNodeById = EasyOne.Contents.Nodes.GetCacheNodeById(nodeId); if (cacheNodeById.IsNull) { BaseUserControl.WriteErrMsg("当前栏目不存在,可能被删除了请返回!"); } if (cacheNodeById.ParentId > 0) { findStr = findStr + "," + cacheNodeById.ParentPath; } flag3 = StringHelper.FoundCharInArr(checkStr, findStr); flag2 = StringHelper.FoundCharInArr(roleNodeId, findStr); } else { flag3 = RolePermissions.AccessCheckNodePermission(OperateCode.NodeContentManage, -1); flag2 = RolePermissions.AccessCheckNodePermission(OperateCode.NodeContentInput, -1); } if (!flag2) { this.LblAddProduct.Enabled = false; this.ELnkProductImport.Enabled = false; } if (!flag3) { this.ELnkContentList.Enabled = false; this.ELnkProductRecycle.Enabled = false; this.ELnkProductStockManage.Enabled = false; this.ELnkProductBatchModify.Enabled = false; this.ELnkProductHtml.Enabled = false; } } if ((nodeId > 0) && ((flag2 || flag3) || isSuperAdmin)) { DataTable shopModelListByNodeId = ModelManager.GetShopModelListByNodeId(nodeId, true); if (shopModelListByNodeId.Rows.Count <= 1) { this.LblAddProduct.Visible = false; } else { this.RptModelList.DataSource = shopModelListByNodeId; this.RptModelList.DataBind(); } if (shopModelListByNodeId.Rows.Count == 1) { this.HlkModel.Visible = true; string str5 = ""; str5 = string.Concat(new object[] { "~/Admin/Shop/", shopModelListByNodeId.Rows[0]["AddInfoFilePath"].ToString(), "?Action=add&modelId=", shopModelListByNodeId.Rows[0]["ModelId"].ToString(), "&NodeID=", BaseUserControl.RequestInt32("NodeID") }); this.HlkModel.NavigateUrl = str5; this.HlkModel.Text = "添加" + shopModelListByNodeId.Rows[0]["ItemName"].ToString(); } if (!this.LblAddProduct.Visible && !this.HlkModel.Visible) { this.LitSeparator.Visible = false; } } else { this.LblAddProduct.Visible = false; this.HlkModel.Visible = false; this.LitSeparator.Visible = false; } }
protected void ELnkReplaceManage_Click(object sender, EventArgs e) { BaseUserControl.ResponseRedirect("ProductBatchModify.aspx?NodeID=" + BaseUserControl.RequestInt32("NodeID").ToString()); }
protected void ELnkProductRecycle_Click(object sender, EventArgs e) { BaseUserControl.ResponseRedirect("ProductRecycle.aspx?NodeID=" + BaseUserControl.RequestInt32("NodeID").ToString()); }
protected void Page_Load(object sender, EventArgs e) { ContentChargeInfo info4; int generalId = BaseUserControl.RequestInt32("GeneralID"); this.contentDataTable = ContentManage.GetContentDataById(generalId); if ((this.contentDataTable == null) || (this.contentDataTable.Rows.Count == 0)) { BaseUserControl.WriteErrMsg("指定的信息不存在!"); } if (ModelManager.GetModelInfoById(DataConverter.CLng(this.contentDataTable.Rows[0]["ModelID"].ToString())).IsNull) { BaseUserControl.WriteErrMsg("信息隶属模型不存在!"); } IList <UserGroupsInfo> userGroupList = UserGroups.GetUserGroupList(0, 0); ContentPermissionInfo contentPermissionInfoById = PermissionContent.GetContentPermissionInfoById(generalId); if (!contentPermissionInfoById.IsNull) { switch (contentPermissionInfoById.PermissionType) { case 0: this.LitInfoPurview.Text = "继承栏目权限"; goto Label_0186; case 1: this.LitInfoPurview.Text = "所有会员"; goto Label_0186; } this.LitInfoPurview.Text = "指定会员组:"; if (!string.IsNullOrEmpty(contentPermissionInfoById.ArrGroupId)) { string[] strArray = contentPermissionInfoById.ArrGroupId.Split(new char[] { ',' }); for (int i = 0; i < strArray.Length; i++) { foreach (UserGroupsInfo info3 in userGroupList) { if (info3.GroupId == DataConverter.CLng(strArray[i])) { this.LitInfoPurview.Text = this.LitInfoPurview.Text + " " + info3.GroupName; break; } } } } } Label_0186: info4 = EasyOne.Contents.ContentCharge.GetContentChargeInfoById(generalId); if (!info4.IsNull) { this.LblInfoPoint.Text = DataConverter.CLng(info4.InfoPoint).ToString(); switch (info4.ChargeType) { case 1: this.LblChargeType.Text = "距离上次收费时间" + DataConverter.CLng(info4.PitchTime).ToString() + "小时后重新收费"; break; case 2: this.LblChargeType.Text = "会员重复阅读此文章" + DataConverter.CLng(info4.ReadTimes).ToString() + "次后重新收费"; break; case 3: this.LblChargeType.Text = "上述两者都满足时重新收费"; break; case 4: this.LblChargeType.Text = "上述两者任一个满足时就重新收费"; break; case 5: this.LblChargeType.Text = "每阅读一次就重复收费一次(建议不要使用)"; break; default: this.LblChargeType.Text = "不重复收费"; break; } this.LblDividePercent.Text = DataConverter.CLng(info4.DividePercent).ToString() + "%"; } }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsAdminManage) { this.LitSaveRemotePic.Visible = false; this.ChkSaveRemotePic.Visible = false; } if (base.EnableNull) { this.ValrContent.Visible = true; } this.EditorContent.Width = new Unit(DataConverter.CLng(base.Settings[0])); this.EditorContent.Height = new Unit(DataConverter.CLng(base.Settings[1])); if (base.Settings.Count > 9) { if (!string.IsNullOrEmpty(base.Settings[6])) { this.EditorContent.ImageUploadAllowedExtensions = base.Settings[6]; } if (!string.IsNullOrEmpty(base.Settings[7])) { this.EditorContent.FlashUploadAllowedExtensions = base.Settings[7]; } if (!string.IsNullOrEmpty(base.Settings[8])) { this.EditorContent.LinkUploadAllowedExtensions = base.Settings[8]; } if (!string.IsNullOrEmpty(base.Settings[9])) { this.EditorContent.IsWatermark = base.Settings[9]; } if (!string.IsNullOrEmpty(base.Settings[10])) { this.EditorContent.IsThumb = base.Settings[10]; } } else if (base.Settings.Count != 6) { this.EditorContent.ImageUploadAllowedExtensions = base.Settings[2]; this.EditorContent.FlashUploadAllowedExtensions = base.Settings[3]; this.EditorContent.LinkUploadAllowedExtensions = base.Settings[4]; this.EditorContent.IsWatermark = base.Settings[5]; this.EditorContent.IsThumb = base.Settings[6]; } if (base.Settings.Count != 6) { this.EditorContent.ModelId = BaseUserControl.RequestInt32("ModelID").ToString(); this.EditorContent.FieldName = base.FieldName; } this.EditorContent.ImgPreview = "true"; if (this.IsUpload) { this.EditorContent.IsUpload = "true"; } if ((!base.IsPostBack && !string.IsNullOrEmpty(this.m_DefaultPicUrl)) && !this.Page.ClientScript.IsStartupScriptRegistered(base.GetType(), "initDefaultPicUrl")) { StringBuilder builder = new StringBuilder(); builder.Append("<script language=\"JavaScript\">\n"); builder.Append("<!--\n"); builder.Append("setTimeout(\"try{setpic('" + this.DefaultPicurl + "')}catch(e){}\",1000);\n"); builder.Append("//-->\n"); builder.Append("</script>\n"); this.Page.ClientScript.RegisterStartupScript(base.GetType(), "initDefaultPicUrl", builder.ToString()); } }