private void DeleteBBCode_Click(object sender, EventArgs e) { #region 除当前Discuz!NT代码信息 if (this.CheckCookie()) { //DbHelper.ExecuteNonQuery("DELETE FROM [" + BaseConfigs.GetTablePrefix + "bbcodes] WHERE [id]=" + DNTRequest.GetString("id")); BBCodes.DeleteBBCode(DNTRequest.GetString("id")); AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "删除Discuz!NT代码", "TAB为:" + tag.Text); base.RegisterStartupScript("PAGE", "window.location.href='forum_bbcodegrid.aspx';"); } #endregion }
private void DelRec_Click(object sender, EventArgs e) { #region 除选定的discuz!NT代码 if (this.CheckCookie()) { if (DNTRequest.GetString("id") != "") { BBCodes.DeleteBBCode(DNTRequest.GetString("id")); Response.Redirect("forum_bbcodegrid.aspx"); } else { base.RegisterStartupScript("", "<script>alert('您未选中任何选项');window.location.href='forum_bbcodegrid.aspx';</script>"); } } #endregion }