private void BindFilesList()
 {
     try
     {
         fileinfoList.Text = "";
         SmiliesInfo smilies = Discuz.Forum.Smilies.GetSmiliesTypeById(DNTRequest.GetInt("typeid", 0));
         if (smilies == null)
         {
             return;
         }
         fileList = GetSmilesFileList(smilies.Url);
         string    dir = smilies.Url;
         DataTable dt  = Smilies.GetSmilieByType(DNTRequest.GetInt("typeid", 0));
         foreach (DataRow smile in dt.Rows)
         {
             ViewState["code"] += smile["code"] + ",";
             fileList.Remove(smile["url"].ToString().Replace(dir + "/", ""));
         }
         fileList.Remove("Thumbs.db");
         int i = 1;
         foreach (string file in fileList)
         {
             fileinfoList.Text += "<tr class='mouseoutstyle' onmouseover='this.className=\"mouseoverstyle\"' onmouseout='this.className=\"mouseoutstyle\"'>\n";
             fileinfoList.Text += "<td nowrap='nowrap' style='border-color:#EAE9E1;border-width:1px;border-style:solid;'><input type='checkbox' id='id" + i + "' name='id" + i + "' value='" + i + "'/></td>\n";
             fileinfoList.Text += "<td nowrap='nowrap' style='border-color:#EAE9E1;border-width:1px;border-style:solid;'><input type='text' id='code" + i + "' name='code" + i + "' value=':" + dir + (dt.Rows.Count + i) + ":' class=\"FormBase\" onfocus=\"this.className='FormFocus';\" onblur=\"this.className='FormBase';\" /></td>\n";
             fileinfoList.Text += "<td nowrap='nowrap' style='border-color:#EAE9E1;border-width:1px;border-style:solid;'><input type='text' id='order" + i + "' name='order" + i + "' value='" + i + "' class=\"FormBase\" onfocus=\"this.className='FormFocus';\" onblur=\"this.className='FormBase';\" size='4' /></td>\n";
             fileinfoList.Text += "<td nowrap='nowrap' style='border-color:#EAE9E1;border-width:1px;border-style:solid;'><input type='hidden' name='url" + i + "' value='" + dir + "/" + file + "' />" + dir + "/" + file + "</td>\n";
             fileinfoList.Text += "<td nowrap='nowrap' style='border-color:#EAE9E1;border-width:1px;border-style:solid;'>" + PicStr(smilies.Url + "/" + file) + "</td>\n";
             fileinfoList.Text += "</tr>\n";
             i++;
         }
         if (fileList.Count == 0)
         {
             SubmitButton.Visible = false;
         }
     }
     catch (IOException err)
     {
         base.RegisterStartupScript("", "<script>alert('" + err.Message + "');window.location.href='forum_smiliemanage.aspx';</script>");
     }
 }
 public void BindData()
 {
     smilesgrid.AllowCustomPaging = false;
     smilesgrid.TableHeaderName   = "论坛表情列表";
     smilesgrid.BindData(Smilies.GetSmilieByType(DNTRequest.GetInt("typeid", 0)));
 }