protected void add_Click(object sender, EventArgs e) { #region 增加帮助类别 if (this.CheckCookie()) { Helps.AddHelp(title.Text, "", 0); AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "添加帮助分类", "添加帮助分类,标题为:" + title.Text); base.RegisterStartupScript("", "<script>window.location.href='global_helplist.aspx';</script>"); } #endregion }
protected void Addhelp_Click(object sender, EventArgs e) { #region 增加帮助项 if (this.CheckCookie()) { if (int.Parse(type.SelectedItem.Value) == 0) { base.RegisterStartupScript("", "<script>alert('您未选中任何选项');window.location.href='global_addhelp.aspx';</script>"); } else { Helps.AddHelp(title.Text, DNTRequest.GetString("helpmessage_hidden").Trim(), int.Parse(type.SelectedItem.Value)); AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "添加帮助", "添加帮助,标题为:" + title.Text); base.RegisterStartupScript("", "<script>window.location.href='global_helplist.aspx';</script>"); } } #endregion }