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 }