protected override void ShowPage() { pagetitle = "短消息草稿箱"; if (!IsLogin()) { return; } if (DNTRequest.IsPost()) { if (PrivateMessages.DeletePrivateMessage(userid, Utils.SplitString(DNTRequest.GetFormString("pmitemid"), ",")) == -1) { AddErrLine("参数无效<br />"); return; } SetMetaRefresh(); SetShowBackLink(true); AddMsgLine("删除完毕"); } else { BindPrivateMessage(2); } newnoticecount = Notices.GetNewNoticeCountByUid(userid); }
/// <summary> /// 更新被禁止的用户 /// </summary> /// <param name="groupid">用户组id</param> /// <param name="groupexpiry">过期时间</param> /// <param name="uid">用户id</param> public static void UpdateBanUser(int groupid, string groupexpiry, int uid) { Discuz.Data.Users.UpdateBanUser(groupid, groupexpiry, uid); //此处应该增加日志 把ban的原因记录下来 NoticeInfo noticeinfo = new NoticeInfo(); noticeinfo.New = 1; if (groupid == 4) { noticeinfo.Type = NoticeType.BanPostNotice; } if (groupid == 5) { noticeinfo.Type = NoticeType.BanVisitNotice; } noticeinfo.Postdatetime = DateTime.Now.ToShortDateString(); noticeinfo.Poster = DNTRequest.GetFormString("uname"); noticeinfo.Posterid = uid; noticeinfo.Uid = uid; noticeinfo.Note = DNTRequest.GetFormString("reason") + "截至到" + groupexpiry + "到期"; Notices.CreateNoticeInfo(noticeinfo); }
/// <summary> /// 设置相关附件信息 /// </summary> /// <returns></returns> private StringBuilder SetAttachmentInfo() { string attachId = DNTRequest.GetFormString("attachid"); StringBuilder sb = new StringBuilder(); AttachmentInfo[] editPostAttachArray = Attachments.GetEditPostAttachArray(0, attachId); List <AttachmentInfo> newUploadAttachList = new List <AttachmentInfo>(); //获取本次编辑操作上传的附件 foreach (AttachmentInfo info in editPostAttachArray) { if (info.Pid == 0) { newUploadAttachList.Add(info); } } if (!string.IsNullOrEmpty(attachId)) { Attachments.UpdateAttachment(editPostAttachArray, topic.Tid, postinfo.Pid, postinfo, ref sb, userid, config, usergroupinfo); } //加入相册 if (config.Enablealbum == 1 && apb != null && newUploadAttachList != null) { sb.Append(apb.CreateAttachment(newUploadAttachList.ToArray(), usergroupid, userid, username)); } return(sb); }
public void SubmitButton_Click(object sender, EventArgs e) { #region 保存新建主题鉴定 bool ok = true; for (int i = 1; i <= fileList.Count; i++) { if (DNTRequest.GetFormString("id" + i) != "") { try { if (!DatabaseProvider.GetInstance().AddIdentify(DNTRequest.GetString("name" + i), DNTRequest.GetString("file" + i))) { ok = false; } } catch { base.RegisterStartupScript("", "<script>alert('出现错误,可能名称超出长度!');window.location.href='forum_identifymanage.aspx';</script>"); } } } UpDateInfo("鉴定文件增加", ""); if (!ok) { base.RegisterStartupScript("", "<script>alert('某些记录未能插入,因为与数据库中原有的名称相同');window.location.href='forum_identifymanage.aspx';</script>"); } else { base.RegisterStartupScript("", "<script>window.location.href='forum_identifymanage.aspx';</script>"); } #endregion }
public void SubmitButton_Click(object sender, EventArgs e) { bool err = false; for (int i = 1; i <= fileList.Count; i++) { if (DNTRequest.GetFormString("id" + i) != "") { try { if (!Utils.IsNumeric(DNTRequest.GetInt("typeid", 0))) { err = true; continue; } DatabaseProvider.GetInstance().AddSmiles(DatabaseProvider.GetInstance().GetMaxSmiliesId(), DNTRequest.GetFormInt("order" + i, 0), DNTRequest.GetInt("typeid", 0), DNTRequest.GetFormString("code" + i), DNTRequest.GetFormString("url" + i)); } catch { base.RegisterStartupScript("", "<script>alert('出现错误,可能文件超出长度!');window.location.href='forum_smilegrid.aspx?typeid=" + DNTRequest.GetInt("typeid", 0) + "';</script>"); } } } UpdateSmiliesCache(); base.RegisterStartupScript("", "<script>" + (err ? "alert('增加的记录中某个显示顺序是非数字,该记录未能增加!');" : "") + "window.location.href='forum_smilegrid.aspx?typeid=" + DNTRequest.GetInt("typeid", 0) + "';</script>"); }
protected override void ShowPage() { pagetitle = "短消息发件箱"; if (!IsLogin()) { return; } if (DNTRequest.IsPost()) { if (ForumUtils.IsCrossSitePost()) { AddErrLine("您的请求来路不正确,无法提交。如果您安装了某种默认屏蔽来路信息的个人防火墙软件(如 Norton Internet Security),请设置其不要禁止来路信息后再试。"); return; } if (PrivateMessages.DeletePrivateMessage(userid, Utils.SplitString(DNTRequest.GetFormString("pmitemid"), ",")) == -1) { AddErrLine("参数无效<br />"); return; } SetShowBackLink(false); AddMsgLine("删除完毕"); } else { BindPrivateMessage(1); } newnoticecount = Notices.GetNewNoticeCountByUid(userid); }
public void SubmitButton_Click(object sender, EventArgs e) { bool flag = true; for (int i = 1; i <= this.fileList.Count; i++) { if (DNTRequest.GetFormString("id" + i) != "") { try { if (!TopicIdentify.Add(DNTRequest.GetString("name" + i), DNTRequest.GetString("file" + i))) { flag = false; } } catch { base.RegisterStartupScript("", "<script>alert('出现错误,可能名称超出长度!');window.location.href='forum_identifymanage.aspx';</script>"); } } } AdminVisitLog.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "鉴定文件增加", ""); if (!flag) { base.RegisterStartupScript("", "<script>alert('某些记录未能插入,因为与数据库中原有的名称相同');window.location.href='forum_identifymanage.aspx';</script>"); return; } base.RegisterStartupScript("", "<script>window.location.href='forum_identifymanage.aspx';</script>"); }
private void ChangeAlbum() { int targetAlbumId = TypeConverter.StrToInt(DNTRequest.GetFormString("alibumList")); int sourceAlbumId = albumid; string photoIdList = DNTRequest.GetFormString("photoid"); if (!Utils.IsNumericList(photoIdList)) { return; } if (DTOProvider.GetAlbumInfo(targetAlbumId).Userid != userid) { AddErrLine("您所选的目标相册不存在"); return; } DbProvider.GetInstance().ChangeAlbum(targetAlbumId, photoIdList, userid); AlbumInfo _sourceAlbum = DTOProvider.GetAlbumInfo(sourceAlbumId); _sourceAlbum.Imgcount = DbProvider.GetInstance().GetSpacePhotoCountByAlbumId(sourceAlbumId); DbProvider.GetInstance().SaveSpaceAlbum(_sourceAlbum); AlbumInfo _targetAlbum = DTOProvider.GetAlbumInfo(targetAlbumId); _targetAlbum.Imgcount = DbProvider.GetInstance().GetSpacePhotoCountByAlbumId(targetAlbumId); DbProvider.GetInstance().SaveSpaceAlbum(_targetAlbum); //生成json数据 Albums.CreateAlbumJsonData(albumid); SetUrl("usercpspacemanagephoto.aspx?albumid=" + albumid); SetMetaRefresh(); SetShowBackLink(true); AddMsgLine("照片转移完毕"); }
protected override void ShowPage() { this.pagetitle = "短消息发件箱"; if (!base.IsLogin()) { return; } if (DNTRequest.IsPost()) { if (ForumUtils.IsCrossSitePost()) { base.AddErrLine("您的请求来路不正确,无法提交。如果您安装了某种默认屏蔽来路信息的个人防火墙软件(如 Norton Internet Security),请设置其不要禁止来路信息后再试。"); return; } if (ShortMessage.DeletePrivateMessage(this.userid, DNTRequest.GetFormString("pmitemid")) <= 0) { base.AddErrLine("参数无效<br />"); return; } base.SetShowBackLink(false); base.AddMsgLine("删除完毕"); } else { base.BindPrivateMessage(1); } this.newnoticecount = Notice.GetNewNoticeCountByUid(this.userid); }
protected override void ShowPage() { this.pagetitle = "黑名单"; if (!base.IsLogin()) { return; } if (DNTRequest.IsPost()) { if (ForumUtils.IsCrossSitePost()) { base.AddErrLine("您的请求来路不正确,无法提交。如果您安装了某种默认屏蔽来路信息的个人防火墙软件(如 Norton Internet Security),请设置其不要禁止来路信息后再试。"); return; } if (DNTRequest.GetFormString("Ignorepm") != this.user.Ignorepm) { this.user.Ignorepm = Utils.CutString(DNTRequest.GetFormString("Ignorepm"), 0, 999); //Users.UpdateUserPMSetting(this.user); (user as IEntity).Save(); } base.SetUrl("usercpignorelist.aspx"); base.SetMetaRefresh(); base.SetShowBackLink(true); base.AddMsgLine("操作完毕"); } this.newnoticecount = Notice.GetNewNoticeCountByUid(this.userid); }
public void SubmitButton_Click(object sender, EventArgs e) { bool err = false; for (int i = 1; i <= fileList.Count; i++) { if (DNTRequest.GetFormString("id" + i) != "") { try { if (!Utils.IsNumeric(DNTRequest.GetInt("typeid", 0))) { err = true; continue; } AdminForums.CreateSmilies(DNTRequest.GetFormInt("order" + i, 0), DNTRequest.GetInt("typeid", 0), DNTRequest.GetFormString("code" + i), DNTRequest.GetFormString("url" + i), userid, username, usergroupid, grouptitle, ip); } catch { base.RegisterStartupScript("", "<script>alert('出现错误,可能文件超出长度!');window.location.href='forum_smilegrid.aspx?typeid=" + DNTRequest.GetInt("typeid", 0) + "';</script>"); } } } base.RegisterStartupScript("", "<script>" + (err ? "alert('增加的记录中某个显示顺序是非数字,该记录未能增加!');" : "") + "window.location.href='forum_smilegrid.aspx?typeid=" + DNTRequest.GetInt("typeid", 0) + "';</script>"); }
protected override void ShowPage() { if (userid == -1) { AddErrLine("你尚未登录"); return; } user = Discuz.Forum.Users.GetUserInfo(userid); pagetitle = "短消息草稿箱"; if (DNTRequest.IsPost()) { string[] pmitemid = Utils.SplitString(DNTRequest.GetFormString("pmitemid"), ","); int retval = PrivateMessages.DeletePrivateMessage(userid, pmitemid); if (retval == -1) { AddErrLine("参数无效<br />"); return; } SetShowBackLink(false); AddMsgLine("删除完毕"); } else { BindItems(); } }
//private void UpDateInfo(string active,string other) //{ // AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, active, other); //} public void SubmitButton_Click(object sender, EventArgs e) { #region 保存新建主题鉴定 bool ok = true; for (int i = 1; i <= fileList.Count; i++) { if (DNTRequest.GetFormString("id" + i) != "") { try { if (!Identifys.AddIdentify(DNTRequest.GetString("name" + i), DNTRequest.GetString("file" + i))) { ok = false; } } catch { base.RegisterStartupScript("", "<script>alert('出现错误,可能名称超出长度!');window.location.href='forum_identifymanage.aspx';</script>"); } } } AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "鉴定文件增加", ""); if (!ok) { base.RegisterStartupScript("", "<script>alert('某些记录未能插入,因为与数据库中原有的名称相同');window.location.href='forum_identifymanage.aspx';</script>"); } else { base.RegisterStartupScript("", "<script>window.location.href='forum_identifymanage.aspx';</script>"); } #endregion }
private void Orderby_Click(object sender, EventArgs e) { #region 排序 string[] orderlist = DNTRequest.GetFormString("orderbyid").Split(','); string[] idlist = DNTRequest.GetFormString("hidid").Split(','); if (!Helps.UpOrder(orderlist, idlist)) { base.RegisterStartupScript("", "<script>alert('输入错误,排序号只能是数字');window.location.href='global_helplist.aspx';</script>"); return; } //foreach (string s in orderlist) //{ // if (Utils.IsNumeric(s) == false) // { // base.RegisterStartupScript("", "<script>alert('输入错误,排序号只能是数字');window.location.href='global_helplist.aspx';</script>"); // return; // } //} //for (int i = 0; i < idlist.Length; i++) //{ // Helps.UpOrder(orderlist[i].ToString(), idlist[i].ToString()); //} base.RegisterStartupScript("", "<script>window.location.href='global_helplist.aspx';</script>"); #endregion }
public void SubmitButton_Click(object sender, EventArgs e) { #region 提交所选的表情分类 for (int i = 1; i <= dirList.Count; i++) { if (DNTRequest.GetFormString("id" + i) != null && DNTRequest.GetFormString("id" + i) != "") { AdminForums.CreateSmilies(DNTRequest.GetInt("order" + i, 0), 0, DNTRequest.GetFormString("group" + i), DNTRequest.GetFormString("url" + i), userid, username, usergroupid, grouptitle, ip); //将新增表情分类中的表情入库 int maxSmilieId = Smilies.GetMaxSmiliesId() - 1; int order = 1; string url = DNTRequest.GetFormString("url" + i); ArrayList fileList = GetSmilesFileList(DNTRequest.GetFormString("url" + i)); foreach (string file in fileList) { if (file.ToLower() == "thumbs.db") //过滤掉thumbs.db文件 { continue; } AdminForums.CreateSmilies(order, maxSmilieId, ":" + url + order + ":", url + "/" + file, userid, username, usergroupid, grouptitle, ip); order++; } } } base.RegisterStartupScript("", "<script>window.location.href='forum_smiliemanage.aspx';</script>"); #endregion }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { bankCardNo = DNTRequest.GetFormString("hiddBankCardNoForApply"); bankCardNo = bankCardNo.Trim().Replace(" ", ""); } }
private void Yh_Click(object sender, EventArgs e) { #region 优化数据库 string tablelist = DNTRequest.GetFormString("tablename"); DatabaseProvider.GetInstance().DbOptimize(tablelist); base.RegisterStartupScript("PAGE", "window.location.href='global_dboptimize.aspx';"); #endregion }
private void GetFromData(NavInfo nav) { nav.Name = GetMaxlengthString(DNTRequest.GetFormString("name"), 50); nav.Title = GetMaxlengthString(DNTRequest.GetFormString("title"), 255); nav.Url = GetMaxlengthString(DNTRequest.GetFormString("url"), 255); nav.Target = DNTRequest.GetFormInt("target", 0); nav.Available = DNTRequest.GetFormInt("available", 0); nav.Displayorder = DNTRequest.GetFormInt("displayorder", 0); nav.Level = DNTRequest.GetFormInt("level", 0); }
private string GetTopicType() { string text = this.forumInfo.TopicTypes + ""; int num = 0; var topicTypes = TopicType.FindAllWithCache().ToDataTable(); while (!(String.IsNullOrEmpty(DNTRequest.GetFormString("type" + num)))) { string type1 = DNTRequest.GetFormString("oldtopictype" + num); string type2 = DNTRequest.GetFormString("type" + num); if (type2 != "-1") { if (String.IsNullOrEmpty(type1)) { int displayOrder = this.GetDisplayOrder(type2.Split(',')[1], topicTypes); var list = new List <String>(text.Split("|")); bool flag = false; for (int j = 0; j < list.Count; j++) { int displayOrder2 = this.GetDisplayOrder(list[j].Split(',')[1], topicTypes); if (displayOrder2 > displayOrder) { list.Insert(j, type2); flag = true; break; } } if (!flag) { list.Add(type2); } text = ""; foreach (var item in list) { text = text + item + "|"; } } else { text = text.Replace(type1, type2); } } else { if (type1 != "") { text = text.Replace(type1, ""); } } //IL_215: num++; } return(text); }
private void Orderby_Click(object sender, EventArgs e) { string[] orderlist = DNTRequest.GetFormString("orderbyid").Split(','); string[] idlist = DNTRequest.GetFormString("hidid").Split(','); if (!Help.UpOrder(orderlist, idlist)) { base.RegisterStartupScript("", "<script>alert('输入错误,排序号只能是数字');window.location.href='global_helplist.aspx';</script>"); return; } base.RegisterStartupScript("", "<script>window.location.href='global_helplist.aspx';</script>"); }
protected override void ShowPage() { pagetitle = "用户控制面板"; if (!IsLogin()) { return; } switch (typeid) { case 1: type = FavoriteType.Album; break; case 2: type = FavoriteType.SpacePost; break; case 3: type = FavoriteType.Goods; break; default: type = FavoriteType.ForumTopic; break; } if (DNTRequest.IsPost()) { if (ForumUtils.IsCrossSitePost()) { AddErrLine("您的请求来路不正确,无法提交。如果您安装了某种默认屏蔽来路信息的个人防火墙软件(如 Norton Internet Security),请设置其不要禁止来路信息后再试。"); return; } string titemid = DNTRequest.GetFormString("titemid"); if (Utils.StrIsNullOrEmpty(titemid) || !Utils.IsNumericList(titemid)) { AddErrLine("您未选中任何数据信息,当前操作失败!"); return; } if (Favorites.DeleteFavorites(userid, Utils.SplitString(titemid, ","), type) == -1) { AddErrLine("参数无效"); return; } SetShowBackLink(false); SetUrl("usercpsubscribe.aspx"); SetMetaRefresh(); AddMsgLine("删除完毕"); return; } else { favoriteCount = Favorites.GetFavoritesCount(userid, type); BindItems(favoriteCount, string.Format("usercpsubscribe.aspx?typeid={0}", typeid)); } }
private void ModifyAlbumInfo() { string errorinfo = ""; string id = DNTRequest.GetFormString("albumid"); if (id == "0") { AlbumInfo albumInfo = new AlbumInfo(); albumInfo.Userid = userid; albumInfo.Username = username; albumInfo.Albumcateid = DNTRequest.GetFormInt("albumcate", 0); albumInfo.Title = Utils.HtmlEncode(DNTRequest.GetFormString("albumtitle")); albumInfo.Description = Utils.HtmlEncode(DNTRequest.GetFormString("albumdescription")); albumInfo.Password = DNTRequest.GetFormString("password"); albumInfo.Type = DNTRequest.GetFormInt("type", 0); Data.DbProvider.GetInstance().AddSpaceAlbum(albumInfo); } else { AlbumInfo albumInfo = DTOProvider.GetAlbumInfo(Convert.ToInt32(id)); if (albumInfo.Userid != userid) { AddErrLine("您所编辑的相册不存在"); return; } albumInfo.Title = Utils.HtmlEncode(DNTRequest.GetFormString("albumtitle")); albumInfo.Albumcateid = DNTRequest.GetFormInt("albumcate", 0); albumInfo.Description = Utils.HtmlEncode(DNTRequest.GetFormString("albumdescription")); albumInfo.Password = DNTRequest.GetFormString("password"); albumInfo.Type = DNTRequest.GetFormInt("type", 0); Data.DbProvider.GetInstance().SaveSpaceAlbum(albumInfo); } if (errorinfo == "") { SetUrl(string.Format("usercpspacemanagealbum.aspx?page={0}", DNTRequest.GetInt("page", 1))); SetMetaRefresh(); SetShowBackLink(true); if (id == "0") { AddMsgLine("相册增加成功"); } else { AddMsgLine("相册修改成功"); } return; } else { AddErrLine(errorinfo); return; } }
/// <summary> /// 校验验证码 /// </summary> private bool ValidateVerifyCode() { if (DNTRequest.GetString("vcode") == "") { if (pagename == "showforum.aspx") { //版块如不设置密码,必无校验码 //return; } else if (pagename.EndsWith("ajax.aspx")) { if (DNTRequest.GetString("t") == "quickreply") { ResponseAjaxVcodeError(); return(false); } } else { if (DNTRequest.GetString("loginsubmit") == "true" && pagename == "login.aspx")//添加快捷登陆方式的验证码判断 { //快速登录时不报错 } else if (DNTRequest.GetFormString("agree") == "true" && pagename == "register.aspx") { //同意注册协议也不受此限制 } else { AddErrLine("验证码错误"); return(false); } } } else { if (!OnlineUsers.CheckUserVerifyCode(olid, DNTRequest.GetString("vcode"))) { if (pagename.EndsWith("ajax.aspx")) { ResponseAjaxVcodeError(); return(false); } else { AddErrLine("验证码错误"); return(false); } } } return(true); }
private void UpdateShare_Click(object sender, EventArgs e) { StringBuilder shareList = new StringBuilder(); string[] newDisplayOrder = DNTRequest.GetFormString("newdisplayorder").Split(','); string[] title = DNTRequest.GetFormString("title").Split(','); string[] site = DNTRequest.GetFormString("site").Split(','); string[] newDisplayOrder_clone = DNTRequest.GetFormString("newdisplayorder").Split(','); string[] shareDisable = DNTRequest.GetFormString("sharedisable").Split(','); if (Utils.IsNumericArray(newDisplayOrder)) { newDisplayOrder_clone = InsertionSort(newDisplayOrder_clone); for (int i = 0; i < newDisplayOrder_clone.Length; i++) { for (int j = 0; j < newDisplayOrder.Length; j++) { if (newDisplayOrder_clone[i] == newDisplayOrder[j]) { if (TypeConverter.StrToInt(newDisplayOrder[j]) < 0) { shareList.Append("0"); } else { shareList.Append(newDisplayOrder[j]); } shareList.Append("|"); shareList.Append(site[j]); shareList.Append("|"); shareList.Append(title[j]); shareList.Append("|"); if (Utils.InArray(site[j], shareDisable)) { shareList.Append("1"); } else { shareList.Append("0"); } shareList.Append(","); break; } } } GeneralConfigInfo configInfo = GeneralConfigs.GetConfig(); configInfo.Sharelist = shareList.ToString().TrimEnd(','); GeneralConfigs.Serialiaze(configInfo, Server.MapPath("../../config/general.config")); } base.RegisterStartupScript("PAGE", "window.location.href='global_sharelistgrid.aspx';"); }
/// <summary> /// 获取checkbox选中项列表 /// </summary> /// <param name="id"></param> /// <returns></returns> public static List <string> GetCheckedList(string id) { List <string> list = new List <string>(); foreach (string key in HttpContext.Current.Request.Form.AllKeys) { if (key.Contains(id + "$")) { list.Add(DNTRequest.GetFormString(key)); } } return(list); }
private void UpdateShare_Click(object sender, EventArgs e) { var sb = new StringBuilder(); var array = DNTRequest.GetFormString("newdisplayorder").SplitAsInt(","); string[] array2 = DNTRequest.GetFormString("title").Split(','); string[] array3 = DNTRequest.GetFormString("site").Split(','); var array4 = DNTRequest.GetFormString("newdisplayorder").SplitAsInt(","); string[] stringarray = DNTRequest.GetFormString("sharedisable").Split(','); if (array.Length > 0) { array4 = InsertionSort(array4); for (int i = 0; i < array4.Length; i++) { for (int j = 0; j < array.Length; j++) { if (array4[i] == array[j]) { if (array[j].ToInt() < 0) { sb.Append("0"); } else { sb.Append(array[j]); } sb.Append("|"); sb.Append(array3[j]); sb.Append("|"); sb.Append(array2[j]); sb.Append("|"); if (Utils.InArray(array3[j], stringarray)) { sb.Append("1"); } else { sb.Append("0"); } sb.Append(","); break; } } } GeneralConfigInfo config = GeneralConfigInfo.Current; config.Sharelist = sb.ToString().TrimEnd(','); config.Save();; } base.RegisterStartupScript("PAGE", "window.location.href='global_sharelistgrid.aspx';"); }
protected override void ShowPage() { pagetitle = "短消息收件箱"; if (userid == -1) { AddErrLine("你尚未登录"); return; } user = Discuz.Forum.Users.GetUserInfo(userid); if (DNTRequest.IsPost()) { if (ForumUtils.IsCrossSitePost()) { AddErrLine("您的请求来路不正确,无法提交。如果您安装了某种默认屏蔽来路信息的个人防火墙软件(如 Norton Internet Security),请设置其不要禁止来路信息后再试。"); return; } if (Utils.StrIsNullOrEmpty(DNTRequest.GetFormString("pmitemid"))) { AddErrLine("您未选中任何短消息,当前操作失败!"); return; } if (!Utils.IsNumericList(DNTRequest.GetFormString("pmitemid"))) { AddErrLine("参数信息错误!"); return; } string[] pmitemid = Utils.SplitString(DNTRequest.GetFormString("pmitemid"), ","); int retval = PrivateMessages.DeletePrivateMessage(userid, pmitemid); if (retval == -1) { AddErrLine("参数无效"); return; } SetUrl("usercpinbox.aspx"); SetMetaRefresh(); SetShowBackLink(true); AddMsgLine("删除完毕"); } else { BindItems(); } }
protected void btnDelAll_Click(object sender, EventArgs e) { string strID = DNTRequest.GetFormString("chkID"); if (string.IsNullOrEmpty(strID)) { MessageBox.Show(this, "请先选取你要操作的数据,再重试本操作!"); } else { BInformation.Delete(string.Format(" ID In (" + strID + ") AND WebSiteID=" + AdminManage.WebSiteID)); MessageBox.ShowRedirect(this, "删除信息数据成功!"); } }
protected void btnDelAll_Click(object sender, EventArgs e) { string strID = DNTRequest.GetFormString("chkID"); if (string.IsNullOrEmpty(strID)) { MessageBox.Show(this, "请先选取你要操作的数据,再重试本操作!"); } else { BUser.DeleteList(strID); MessageBox.ShowRedirect(this, "删除信息数据成功!"); } }
protected void btnDelAll_Click(object sender, EventArgs e) { string strID = DNTRequest.GetFormString("chkID"); if (string.IsNullOrEmpty(strID)) { MessageBox.Show(this, "对不起,请选中您要操作的信息!"); } else { BBaseType.Delete(" WebSiteID=" + AdminManage.WebSiteID + " AND IDPath like '%" + strID.Replace(",", "%' or IDPath like '%") + "%'"); MessageBox.ShowRedirect(this, "删除信息数据成功!"); } }