代码修改记录

聊天室修复

原聊天室:
02271-s20uslk0ds.png
目的,去掉花里胡哨。代码优化。
聊天室报错:
51167-1b7kpoy1bgb.png

注释掉这段代码

//       TextString += "<br/>" + NuoHa.TextDecode(data.Rows[pn][4].ToString()) + "<br/>[" + fff[1] + "." + fff[2] + " " + fff[3] + ":" + fff[4] + "]\r\n";

改完后:

using System;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using NuoHa;
using NuoHa.Web;
using NuoHa.Data;

public partial class bbs_chat_room : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Include NuoHa = new Include();
        NuoHa.Conn(1);
        int id = NuoHa.ConToNum(Request.QueryString["id"]);
int vb = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT [mmc] FROM [wap_user] WHERE [id]=" + NuoHa.MyId + ""));
         if (vb == 2)
            {
         NuoHa.Redirect("http://" + Request.Url.Authority + "/bbs/chat/rooma.aspx?id=" + id + "" + NuoHa.String1 + "");
               }
        SqlDataReader Rs = DataHelper.ExecuteReader("SELECT [pid],[name],[catid],[switch],[fstatus],[rname],[rtags],[rintro],[rnotice],[rconfig] FROM [wap_bbs] WHERE [id]=" + id + " AND [status]=0 AND [rstatus]=0");
        if (!Rs.Read())
        {
            Rs.Close();
            NuoHa.Redirect("http://" + Request.Url.Authority + "/bbs/chat/room_not.aspx?id=" + id + "" + NuoHa.String1 + "");
        }
        int pid = Convert.ToInt32(Rs[0]);
        string bbName = NuoHa.NameEncode(Rs[1]);
        int bbCatId = Convert.ToInt32(Rs[2]);
        int bswitch = Convert.ToInt32(Rs[3]);
        int foStatus = Convert.ToInt32(Rs[4]);
        string roName = NuoHa.NameEncode(Rs[5]);
        string roTags = NuoHa.NameEncode(Rs[6]);
        string roIntro = NuoHa.NameEncode(Rs[7]);
        string roNotice = Rs[8].ToString();
        string rconfig = Rs[9].ToString();
        Rs.Close();
        int vip = 0;
        int manage = 0;
        string[] bbconfig = rconfig.Split('\n');
        int error = NuoHa.CheckForum(id, pid, bswitch, bbconfig, out vip, out manage);
  if (error != 0)
        {
            NuoHa.Redirect("http://" + Request.Url.Authority + "/bbs/chat/room_err.aspx?id=" + id + "&err=" + error + "" + NuoHa.String1 + "");
        }
        int ReTime = Convert.ToInt32(NuoHa.MyConfig[4]);

      SqlDataReader Rg = DataHelper.ExecuteReader("SELECT [endtime] FROM [wap_djs] ORDER BY [id] DESC");
        if (!Rg.Read())
        {
         NuoHa.Redirect("http://" + Request.Url.Authority + "/bbs/chat/room.aspx?id=" + id + "" + NuoHa.String1 + "");
        }
        DateTime AppleEndTime;
        AppleEndTime = Convert.ToDateTime(Rg[0]);
        Rg.Close();

         Response.Write(" <?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n");
    Response.Write("<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\r\n");
    Response.Write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
    Response.Write("<head>\r\n");
    Response.Write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\r\n");
    Response.Write("<meta name=\"MobileOptimized\" content=\"400\"/>\r\n");
        if (ReTime > 0)
        {
                   Response.Write("<meta http-equiv=\"refresh\" content=\"" + ReTime + ";URL=/bbs/chat/room.aspx?id=" + id + "" + NuoHa.String1 + "\"/>\r\n");
        }
       Response.Write("<title>" + roName + "</title>\r\n");
        Response.Write("<script type=\"text/javascript\" src=\"/template/default/js/base.js\"></script>\r\n");
     Response.Write("<script type=\"text/javascript\" src=\"/template/default/js/KL_common.js\"></script>\r\n");
Response.Write("<link rel=\"stylesheet\" href=\"/xml/template/default/css/de.css?v=3.0.0.0\" type=\"text/css\" />\r\n"); 
Response.Write("<script src=\"/xml/template/default/js/aacc.js\" type=\"text/javascript\"></script><script src=\"/template/default/js/jquyer-1.7.2.js\"></script>\r\n");
Response.Write("" + NuoHa.wfg() + "");
            Response.Write("</head>\r\n");
            Response.Write("<body>\r\n");
    string TextString = ""; 
        TextString += NuoHa.Visitortop();
TextString += "<script type=\"text/javascript\">\r\n";
TextString += "    $(function () {\r\n";
TextString += "        setInterval(function () {\r\n";
TextString += "            $(\"#autore\").load(location.href + \" #autore\");\r\n";
TextString += "        }, 99000);\r\n";
TextString += "    })\r\n";
TextString += "</script>\r\n";
DateTime octime = Convert.ToDateTime(Application["Red_94408132"]);
DataHelper.ExecuteNonQuery("UPDATE [wap_online] SET [btype]=2,[bbsid]=" + id + ",[channel]=" + pid + " WHERE [id]='" + NuoHa.sid + "'");
        int ROCount = (int)DataHelper.ExecuteScalar("SELECT COUNT([bbsid]) FROM [wap_online] WHERE [btype]=2 AND [bbsid]=" + id + "");
                  int  qhb = (int)DataHelper.ExecuteScalar("SELECT COUNT([id]) FROM [wap_lthb] WHERE [hbje]>0");
TextString += "<script language=\"javascript\">\r\n";
    TextString += "function delcfm() { \r\n";
     TextString += "   if (!confirm(\"确认操作\")) { \r\n";
  TextString += "          window.event.returnValue = false; \r\n";
       TextString += " } \r\n";
   TextString += " } \r\n";
TextString += "</script>\r\n";




SqlDataReader R = DataHelper.ExecuteReader("SELECT [uid],[tid],[name],[image],[addtime] FROM [wap_aa_wjc] WHERE [uid]=" + NuoHa.MyId + " AND [status]=1 ORDER BY NEWID()");
        while (R.Read())
     { 
     int jc = Convert.ToInt32(R[1]);
      if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_aa_wjc] WHERE [tid]=" + jc + " AND [uid]=" + NuoHa.MyId + " AND [addtime]<'" + NuoHa.SvrTime.AddSeconds(-360) + "'") != null)
                {
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + ",0,0,0,'哇塞...{uid=" + NuoHa.MyId + "}进入聊天室!')");
  DataHelper.ExecuteNonQuery("UPDATE [wap_aa_wjc] SET [addtime]='" + NuoHa.SvrTime + "' WHERE [uid]=" + NuoHa.MyId + " AND [tid]=" + jc + ""); 
       }
     else
       {
DataHelper.ExecuteNonQuery("UPDATE [wap_aa_wjc] SET [addtime]='" + NuoHa.SvrTime + "' WHERE [uid]=" + NuoHa.MyId + " AND [tid]=" + jc + ""); 
       }
    }
    
    
    
    
      R.Close();    
    string mapBar;
        switch (pid)
        {
            case 0:
                mapBar = "<a href=\"/" + NuoHa.String0 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>>聊天室<br/>\r\n";
                break;
            case 1:
                mapBar = "<a href=\"/bbs/index.aspx" + NuoHa.String0 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>>聊天室<br/>\r\n";
                break;
            case 2:
                mapBar = "<a href=\"/book/index.aspx" + NuoHa.String0 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>>聊天室<br/>\r\n";
                break;
            case 3:
                mapBar = "<a href=\"/file/" + NuoHa.String0 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>>聊天室<br/>\r\n";
                break;
            case 4:
                mapBar = "<a href=\"/article/index.aspx" + NuoHa.String0 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>>聊天室<br/>\r\n";
                break;
            case 5:
                mapBar = "<a href=\"/ad/index.aspx" + NuoHa.String0 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>>聊天室<br/>\r\n";
                break;
            case 6:
                mapBar = "<a href=\"/link/index.aspx" + NuoHa.String0 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>>聊天室<br/>\r\n";
                break;
            case 8:
                mapBar = "<a href=\"/bbs/index.aspx" + NuoHa.String0 + "\">" + NuoHa.ChannelName(1) + "</a>><a href=\"/channel.aspx?id=" + pid + "" + NuoHa.String1 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/family.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">论坛</a>>聊天室<br/>\r\n";
                break;
            case 9:
                mapBar = "<a href=\"/bbs/index.aspx" + NuoHa.String0 + "\">" + NuoHa.ChannelName(1) + "</a>><a href=\"/channel.aspx?id=" + pid + "" + NuoHa.String1 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/city.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">论坛</a>>聊天室<br/>\r\n";
                break;
            case 14:
                mapBar = "<a href=\"/bbs/index.aspx" + NuoHa.String0 + "\">" + NuoHa.ChannelName(1) + "</a>><a href=\"/channel.aspx?id=" + pid + "" + NuoHa.String1 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/bar.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">论坛</a>>聊天室<br/>\r\n";
                break;
            default:
                mapBar = "<a href=\"/bbs/index.aspx" + NuoHa.String0 + "\">" + NuoHa.ChannelName(1) + "</a>><a href=\"/channel.aspx?id=" + pid + "" + NuoHa.String1 + "\">" + NuoHa.ChannelName(pid) + "</a>><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">" + bbName + "</a>>聊天室<br/>\r\n";
                break;
        }
TextString += "<div><a id=\"top\"></a></div><div class=\"bar\">\r\n";
TextString += mapBar;
TextString += "</div>\r\n";


   string act = NuoHa.ConToStr(Request.QueryString["act"]);
       if (roNotice != "")
        {
            TextString += "<p class=\"tab-5\">" + NuoHa.TextDecode(roNotice) + "</p>\r\n";
        }
          object ltint = DataHelper.ExecuteScalar("SELECT [ltint] FROM [wap_user] WHERE [id]=" + NuoHa.MyId + " AND [status]=0");
                if (ltint != null)
                {
                    Rs = DataHelper.ExecuteReader("SELECT TOP 1 [hat],[name],[id] FROM [wap_bbs_lts_level] WHERE [point]<" + (Convert.ToInt32(ltint) + 1) + " ORDER BY [id] DESC");
                    if (Rs.Read())
                    {
 
      int cnm = 0;
        int nmh = 0; 
       SqlDataReader Ri = DataHelper.ExecuteReader("SELECT TOP 10 [id] FROM [wap_user] ORDER BY [ltint] DESC");
             while (Ri.Read())
            {
                nmh = nmh + 1;
                int dnm = Convert.ToInt32(Ri[0]);
                 if (dnm == NuoHa.MyId)
                 {
                     cnm = nmh;
                 }
             }
                      TextString += "聊天等级:<img src=\"/image/bbs/lts/" + Rs[0] + "\" alt=\".\"/>称号:<img src=\"/image/bbs/lts/" + Rs[1] + "\" alt=\".\"/><br/>\r\n";
           if (cnm == 0)
             {
                     TextString += " <a href=\"" + NuoHa.SitePath + "bbs/ltpm.aspx?" + NuoHa.String1 + "\"> 聊天室积分:" + (Convert.ToInt32(ltint)) + "                       排名:未入榜</a>\r\n";
             }
             else
             {
                       TextString += "<a href=\"" + NuoHa.SitePath + "bbs/ltpm.aspx?" + NuoHa.String1 + "\">聊天室积分:" + (Convert.ToInt32(ltint)) + "                           排名第:" + cnm +"</a>\r\n";
             } 
                    }
                    Rs.Close(); 
                } 
                
                
                
                
                
                
                
                
                
                
//TextString += "<form name=\"f\" action=\"" + NuoHa.SitePath + "bbs/chat/talk_add_ok.aspx?id=" + id + "" + NuoHa.String1 + "\" method=\"post\">\r\n";
//TextString +="<textarea name=\"content\" id=\"content\" rows=\"3\" style=\"width:99%;\"></textarea><br/><div class=\"gdpl\"><span id=\"showfacelist\"></span><a href=\"javascript:showface();\" class=\"bbsface\" title=\"表情\"></a><span id=\"showfacelista\"></span><a href=\"javascript:showfacea();\" class=\"bbsfacea\" title=\"表情\"></a><span id=\"showfacelistb\"></span><a href=\"javascript:showfaceb();\" class=\"bbsfaceb\" title=\"表情\"></a><span id=\"showfacelistc\"></span><a href=\"javascript:showfacec();\" class=\"bbsfacec\" title=\"表情\"></a><span id=\"showfacelistd\"></span><a href=\"javascript:showfaced();\" class=\"bbsfaced\" title=\"表情\"></a>&nbsp;&nbsp;\r\n";
//TextString += "<script src=\"/xml/template/default/js/de.js?v=1.0.0.0\" type=\"text/javascript\"></script>\r\n";
     //TextString += "<input type=\"submit\" name=\"g\" class=\"open2\" id=\"submit\" value=\"发言\" onclick=\"javascript:dealform($(this));return false;\" /></div></form><br/>\r\n";
        //<>
        //TextString += "<a href=\"/bbs/chat/my_room.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"聊天记录\" /></a> <a href=\"/bbs/chat/room_qp.aspx?id=" + id + "&amp;act=1" + NuoHa.String1 + "\"><input type=\"button\" value=\"聊天气泡\" /></a> <a href=\"/bbs/chat/mylw.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"我的礼物\" /></a> <a href=\"/bbs/chat/hb.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"发红包\" /></a> <a href=\"/bbs/chat/online.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"在线(" + ROCount + ")\" /></a> <a href=\"/bbs/chat/room_func.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"功能\" /></a> <a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/sm.aspx?id=" + id + "&amp;act=ok" + NuoHa.String1 + "\"><input type=\"button\" value=\"抢麦\" /></a> <a href=\"" + NuoHa.SitePath + "bbs/chat/sm.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"麦序\" /></a> <a href=\"" + NuoHa.SitePath + "bbs/chat/hh.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"切换版面\" /></a>\r\n";
       
      
      if (NuoHa.SvrTime > AppleEndTime.AddSeconds(-0))
        {
      if (NuoHa.MyId != 0)
            {
            TextString += "抢:[<a href=\"" + NuoHa.SitePath + "bbs/chat/room.aspx?id=" + id + "&amp;act=1" + NuoHa.String1 + "\">大</a>]  [<a href=\"" + NuoHa.SitePath + "bbs/chat/room.aspx?id=" + id + "&amp;act=2" + NuoHa.String1 + "\">吉</a>]  [<a href=\"" + NuoHa.SitePath + "bbs/chat/room.aspx?id=" + id + "&amp;act=3" + NuoHa.String1 + "\">大</a>]  [<a href=\"" + NuoHa.SitePath + "bbs/chat/room.aspx?id=" + id + "&amp;act=4" + NuoHa.String1 + "\">利</a>]\r\n";
            }
        }
        else
        {
         TextString += "<br/>抢:元宝正在生成中,还有" + AppleCountdown(NuoHa.SvrTime, AppleEndTime) + "....\r\n";
      }
   if (NuoHa.MyId != 0)
            {
    if (act == "1")
        {
    if (NuoHa.SvrTime > AppleEndTime.AddSeconds(-1))
          {
                  int hz;
                Random ran = new Random();
                switch (NuoHa.RandomNumber(ran, 0, 5))
                {
       case 5:
                       hz = 18;
NuoHa.Update_Money(NuoHa.MyId, "中奖", 1, hz, "", "");
                    TextString += "恭喜你,抢中(大),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'我抢中(大),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "')");
                        break;
       case 4:
                        hz = 0;
                       TextString += "倒霉,没抢中(大),等会再来试试手气!<br/>\r\n";
                        break;
       case 3:
                        //hz = 32;
                        hz = 1;
                        
       NuoHa.Update_Money(NuoHa.MyId, "中奖", 1, hz, "", "");
                    TextString += "恭喜你,抢中(大),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'我抢中(大),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "')");
                        break;
          case 2:
                        hz = 3;
                        
  DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [zs]=[zs]+" + hz + " WHERE [id]=" + NuoHa.MyId + ""); 
          TextString += "恭喜你,抢中(大),获得" + hz + "张银票!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'抢中(大),获得" + hz + "张银票!')");
                        break;
          case 1:
                        //hz = 88;
                        hz = 5;
NuoHa.Update_Money(NuoHa.MyId, "中奖", 1, hz, "", "");
                    TextString += "恭喜你,抢中(大),获得88" + NuoHa.SiteMoneyName(1) + "!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'我抢中(大),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "')");
                        break;
           default:
                        hz = 5;
  DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [zs]=[zs]+" + hz + " WHERE [id]=" + NuoHa.MyId + ""); 
          TextString += "恭喜你,抢中(大),获得" + hz + "张银票!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'抢中(大),获得" + hz + "张银票!')");
                        break;
                }
if (octime > NuoHa.SvrTime)
{
DataHelper.ExecuteNonQuery("UPDATE [wap_djs] SET [aa]=1 WHERE [status]=0");
}
else
{
Application["Red_94408132"] = "" + NuoHa.SvrTime.AddSeconds(NuoHa.ConToNum("3")) + "";
  DataHelper.ExecuteNonQuery("UPDATE [wap_djs] SET [aa]=0,[endtime]='" + NuoHa.SvrTime.AddMinutes(1) + "' WHERE [aa]=1");
                    }
        }
        else
        {
            NuoHa.Redirect("http://" + Request.Url.Authority + "/bbs/chat/room.aspx?id=" + id + "" + NuoHa.String1 + "");
      }
       }
 if (act == "2")
        {
    if (NuoHa.SvrTime > AppleEndTime.AddSeconds(-0))
          {
                  int hz;
                Random ran = new Random();
                switch (NuoHa.RandomNumber(ran, 0, 5))
                {
       case 5:
                        hz = 5;
  DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [zs]=[zs]+" + hz + " WHERE [id]=" + NuoHa.MyId + ""); 
          TextString += "恭喜你,抢中(吉),获得" + hz + "张银票!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'抢中(吉),获得" + hz + "张银票!')");
                        break;
       case 4:
                       // hz = 33;
                        hz = 1;
NuoHa.Update_Money(NuoHa.MyId, "中奖", 1, hz, "", "");
                    TextString += "恭喜你,抢中(吉),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'我抢中(吉),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "')");
                        break;
       case 3:
                        hz = 0;
                       TextString += "倒霉,没抢中(吉),等会再来试试手气!<br/>\r\n";
                        break;
          case 2:
                        hz = 3;
  DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [zs]=[zs]+" + hz + " WHERE [id]=" + NuoHa.MyId + ""); 
          TextString += "恭喜你,抢中(吉),获得" + hz + "张银票!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'抢中(吉),获得" + hz + "张银票!')");
                        break;
          case 1:
                        //hz = 88;
                        hz = 5;
NuoHa.Update_Money(NuoHa.MyId, "中奖", 1, hz, "", "");
                    TextString += "恭喜你,抢中(吉),获得88" + NuoHa.SiteMoneyName(1) + "!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'我抢中(吉),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "')");
                        break;
           default:
                        hz = 0;
                        TextString += "倒霉,没抢中(吉),等会再来试试手气!<br/>\r\n";
                        break;
                }
if (octime > NuoHa.SvrTime)
{
DataHelper.ExecuteNonQuery("UPDATE [wap_djs] SET [aa]=1 WHERE [status]=0");
}
else
{
Application["Red_94408132"] = "" + NuoHa.SvrTime.AddSeconds(NuoHa.ConToNum("3")) + "";
  DataHelper.ExecuteNonQuery("UPDATE [wap_djs] SET [aa]=0,[endtime]='" + NuoHa.SvrTime.AddMinutes(1) + "' WHERE [aa]=1");
    }
                    }
        else
        {
            NuoHa.Redirect("http://" + Request.Url.Authority + "/bbs/chat/room.aspx?id=" + id + "" + NuoHa.String1 + "");
      }
       }
 if (act == "3")
        {
    if (NuoHa.SvrTime > AppleEndTime.AddSeconds(-0))
          {
                  int hz;
                Random ran = new Random();
                switch (NuoHa.RandomNumber(ran, 0, 5))
                {
       case 5:
                        hz = 1;
  DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [zs]=[zs]+" + hz + " WHERE [id]=" + NuoHa.MyId + ""); 
          TextString += "恭喜你,抢中(大),获得" + hz + "张银票!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'抢中(大),获得" + hz + "张银票!')");
                        break;
       case 4:
                        hz = 0;
                       TextString += "倒霉,没抢中(大),等会再来试试手气!<br/>\r\n";
                        break;
       case 3:
                      //hz = 99;
                      hz = 2;
NuoHa.Update_Money(NuoHa.MyId, "中奖", 1, hz, "", "");
                    TextString += "恭喜你,抢中(大),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'我抢中(大),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "')");
                        break;
          case 2:
                        hz = 3;
 DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [zs]=[zs]+" + hz + " WHERE [id]=" + NuoHa.MyId + ""); 
          TextString += "恭喜你,抢中(大),获得" + hz + "张银票!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'抢中(大),获得" + hz + "张银票!')");
                        break;
          case 1:
                        //hz = 88;
                        hz = 5;
NuoHa.Update_Money(NuoHa.MyId, "中奖", 1, hz, "", "");
                    TextString += "恭喜你,抢中(大),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'我抢中(大),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "')");
                        break;
           default:
                        hz = 0;
                        TextString += "倒霉,没抢中(大),等会再来试试手气!<br/>\r\n";
                        break;
                }
if (octime > NuoHa.SvrTime)
{
DataHelper.ExecuteNonQuery("UPDATE [wap_djs] SET [aa]=1 WHERE [status]=0");
}
else
{
Application["Red_94408132"] = "" + NuoHa.SvrTime.AddSeconds(NuoHa.ConToNum("3")) + "";
  DataHelper.ExecuteNonQuery("UPDATE [wap_djs] SET [aa]=0,[endtime]='" + NuoHa.SvrTime.AddMinutes(1) + "' WHERE [aa]=1");
                    }
     }
        else
        {
            NuoHa.Redirect("http://" + Request.Url.Authority + "/bbs/chat/room.aspx?id=" + id + "" + NuoHa.String1 + "");
      }
       }
 if (act == "4")
        {
    if (NuoHa.SvrTime > AppleEndTime.AddSeconds(-0))
          {
                  int hz;
                Random ran = new Random();
                switch (NuoHa.RandomNumber(ran, 0, 5))
                {
       case 5:
                        hz = 0;
                       TextString += "倒霉,没抢中(利),等会再来试试手气!<br/>\r\n";
                        break;
       case 4:
                        hz = 8;
 DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [zs]=[zs]+" + hz + " WHERE [id]=" + NuoHa.MyId + ""); 
          TextString += "恭喜你,抢中(利),获得" + hz + "张银票!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'抢中(利),获得" + hz + "张银票!')");
                        break;
       case 3:
                        //hz = 108;
                        hz = 1;
   NuoHa.Update_Money(NuoHa.MyId, "中奖", 1, hz, "", "");
                    TextString += "恭喜你,抢中(利),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'我抢中(利),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "')");
                        break;
          case 2:
                        hz = 0;
                       TextString += "倒霉,没抢中利,等会再来试试手气!<br/>\r\n";
                        break;
          case 1:
                        //hz = 88;
                        hz = 1;
NuoHa.Update_Money(NuoHa.MyId, "中奖", 1, hz, "", "");
                    TextString += "恭喜你,抢中(利),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'我抢中(利),获得" + hz + "" + NuoHa.SiteMoneyName(1) + "')");
                        break;
           default:
                        hz = 3;
  DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [zs]=[zs]+" + hz + " WHERE [id]=" + NuoHa.MyId + ""); 
          TextString += "恭喜你,抢中(利),获得" + hz + "张银票!<br/>\r\n";
DataHelper.ExecuteNonQuery("INSERT INTO [wap_bbs_room_chat] ([bid],[uid],[vid],[type],[content]) VALUES (" + id + "," + NuoHa.MyId + ",0,0,'抢中(利),获得" + hz + "张银票!')");
                        break;
                }
if (octime > NuoHa.SvrTime)
{
DataHelper.ExecuteNonQuery("UPDATE [wap_djs] SET [aa]=1 WHERE [status]=0");
}
else
{
Application["Red_94408132"] = "" + NuoHa.SvrTime.AddSeconds(NuoHa.ConToNum("3")) + "";
DataHelper.ExecuteNonQuery("UPDATE [wap_djs] SET [aa]=0,[endtime]='" + NuoHa.SvrTime.AddMinutes(1) + "' WHERE [aa]=1");
       }
                    }
        else
        {
            NuoHa.Redirect("http://" + Request.Url.Authority + "/bbs/chat/room.aspx?id=" + id + "" + NuoHa.String1 + "");
      }
       }
   }
 //TextString += "<div class=\"module-title\"><p>\r\n";
   if (qhb > 0)
                {
TextString += "<img src=\"/image/site/pp.gif\" alt=\".\"/><a href=\"/bbs/chat/hb.aspx?id=" + id + "" + NuoHa.String1 + "\">有(" + qhb + ")个红包可以抢~!</a>\r\n";
      }
TextString += "</p></div>\r\n";
//TextString += "<a href=\"/bbs/chat/room.aspx?id=" + id + "" + NuoHa.String1 + "\">刷新页面</a> <a href=\"/bbs/chat/jc.aspx?id=" + id + "" + NuoHa.String1 + "\">进聊室效果</a></p></div>\r\n";
if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_aa_tm] WHERE [status]=1 AND [addtime]< '" + NuoHa.SvrTime.AddMinutes(-25) + "'") != null)
            {
    if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_sm_jq] WHERE [tid]=1 AND [status]=0") != null)
                    {
object jqa = DataHelper.ExecuteScalar("SELECT SUM([xl]) AS nums FROM [wap_sm_jq] WHERE [status]=0");
int zbid = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_sm_jq] WHERE [status]=0"));
  if (Convert.ToInt32(jqa) == 0)
                        {
      Random Rp = new Random();
       int cc = NuoHa.RandomNumber(Rp, 1, 3);
        object jqme = DataHelper.ExecuteScalar("SELECT TOP 1 [name] FROM [wap_sm_jq] WHERE [tid]=" + cc + " ORDER BY [xl] DESC");
int jqbx = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT [bx] FROM [wap_sm_jq] WHERE [name]='" + jqme + "'"));
   SqlDataReader smjq = DataHelper.ExecuteReader("SELECT [uid],[x] FROM [wap_sm_myjq] WHERE [name]='" + jqme + "' AND [status]=0 ORDER BY NEWID()");
        while (smjq.Read())
     { 
     int jqid = Convert.ToInt32(smjq[0]);
int jqx = Convert.ToInt32(smjq[1]);
    int jqzx = jqx * jqbx;
NuoHa.MessageSend(jqid, 0, "恭喜你竟猜主播的" + jqme + "获胜,奖励" + jqzx + "钻石!");
DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [hz]=[hz]+" + jqzx + " WHERE [id]=" + jqid + ""); 
DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [hz]=[hz]-" + jqx + " WHERE [id]=" + zbid + ""); 
DataHelper.ExecuteNonQuery("UPDATE [wap_sm_myjq] SET [status]=1 WHERE [name]='" + jqme + "' AND [uid]=" + jqid + "");
              } 
      smjq.Close();
DataHelper.ExecuteNonQuery("UPDATE [wap_sm_jq] SET [status]=1 WHERE [name]='" + jqme + "' AND [status]=0");
     //支出
int smgg = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT SUM([x]) AS nums FROM [wap_sm_myjq] WHERE [name]='" + jqme + "' AND [status]=1 GROUP BY [x] ORDER BY nums DESC"));
    //收入
int smga = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT SUM([x]) AS nums FROM [wap_sm_myjq] WHERE [status]=0 GROUP BY [x] ORDER BY nums DESC"));
DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [hz]=[hz]+" + smga + " WHERE [id]=" + zbid + ""); 
NuoHa.MessageSend(zbid, 0, "本次发布竟猜支出" + smgg + "钻石,收入" + smga + "钻石!");
DataHelper.ExecuteNonQuery("DELETE FROM [wap_sm_myjq] WHERE [status]=0");
DataHelper.ExecuteNonQuery("DELETE FROM [wap_sm_jq] WHERE [status]=0");
DataHelper.ExecuteNonQuery("DELETE FROM [wap_sm_myjq] WHERE [status]=1");
                        }
                        else
                        {
        object jqme = DataHelper.ExecuteScalar("SELECT TOP 1 [name] FROM [wap_sm_jq] WHERE [status]=0 ORDER BY [xl] DESC");
int jqbx = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT [bx] FROM [wap_sm_jq] WHERE [name]='" + jqme + "'"));
   SqlDataReader smjq = DataHelper.ExecuteReader("SELECT [uid],[x] FROM [wap_sm_myjq] WHERE [name]='" + jqme + "' AND [status]=0 ORDER BY NEWID()");
        while (smjq.Read())
     { 
     int jqid = Convert.ToInt32(smjq[0]);
int jqx = Convert.ToInt32(smjq[1]);
    int jqzx = jqx * jqbx;
NuoHa.MessageSend(jqid, 0, "恭喜你竟猜主播的" + jqme + "获胜,奖励" + jqzx + "钻石!");
DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [hz]=[hz]+" + jqzx + " WHERE [id]=" + jqid + ""); 
DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [hz]=[hz]-" + jqx + " WHERE [id]=" + zbid + ""); 
DataHelper.ExecuteNonQuery("UPDATE [wap_sm_myjq] SET [status]=1 WHERE [name]='" + jqme + "' AND [uid]=" + jqid + "");
              } 
      smjq.Close();
DataHelper.ExecuteNonQuery("UPDATE [wap_sm_jq] SET [status]=1 WHERE [name]='" + jqme + "' AND [status]=0");
      //支出
int smgg = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT SUM([x]) AS nums FROM [wap_sm_myjq] WHERE [name]='" + jqme + "' AND [status]=1 GROUP BY [x] ORDER BY nums DESC"));
    //收入
   int smga = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT SUM([x]) AS nums FROM [wap_sm_myjq] WHERE [status]=0 GROUP BY [x] ORDER BY nums DESC"));
DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [hz]=[hz]+" + smga + " WHERE [id]=" + zbid + ""); 
NuoHa.MessageSend(zbid, 0, "本次发布竟猜支出" + smgg + "钻石,收入" + smga + "钻石!");
DataHelper.ExecuteNonQuery("DELETE FROM [wap_sm_myjq] WHERE [status]=0");
DataHelper.ExecuteNonQuery("DELETE FROM [wap_sm_jq] WHERE [status]=0");
DataHelper.ExecuteNonQuery("DELETE FROM [wap_sm_myjq] WHERE [status]=1");
                        }
               }
            }
DataHelper.ExecuteNonQuery("DELETE FROM [wap_sm_jq] WHERE [addtime]<'" + NuoHa.SvrTime.AddMinutes(-1) + "'");
DataHelper.ExecuteNonQuery("DELETE FROM [wap_aa_tm] WHERE [etime]<'" + NuoHa.SvrTime.AddMinutes(-1) + "'");
        if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_sm_jq] WHERE [tid]=1 AND [status]=0") == null)
                    {
DataHelper.ExecuteNonQuery("DELETE FROM [wap_aa_tm] WHERE [ime]<'" + NuoHa.SvrTime.AddMinutes(-10) + "'");
     }
     if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_aa_tm] WHERE [uid]=" + NuoHa.MyId + " AND [status]=1") != null)
               {
  DataHelper.ExecuteNonQuery("UPDATE [wap_aa_tm] SET [ime]='" + NuoHa.ServerNow + "' WHERE [uid]=" + NuoHa.MyId  + " AND [status]=1");
                                }
TextString += "<div align=\"center\">\r\n";
  if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_aa_tm] WHERE [status]=1") == null)
                    {
               Rs = DataHelper.ExecuteReader("SELECT TOP 1 [id],[uid],[addtime] FROM [wap_aa_tm] WHERE [status]=0");
       while (Rs.Read()) 
             {
   int kid = Convert.ToInt32(Rs[1]);
   int lid = Convert.ToInt32(Rs[0]);
     int op = lid + 1;
 DataHelper.ExecuteNonQuery("UPDATE [wap_aa_tm] SET [status]=1,[ime]='" + NuoHa.ServerNow + "',[addtime]='" + NuoHa.ServerNow + "',[etime]='" + NuoHa.SvrTime.AddMinutes(30) + "' WHERE [uid]=" + kid + "");
DataHelper.ExecuteNonQuery("UPDATE [wap_aa_tm] SET [addtime]='" + NuoHa.SvrTime.AddMinutes(32) + "' WHERE [id]=" + op + "");
SqlDataReader Rom = DataHelper.ExecuteReader("SELECT [mid] FROM [wap_gz] WHERE [uid]=" + kid + " ORDER BY NEWID()");
        while (Rom.Read())
     { 
int tuidi = Convert.ToInt32(Rom[0]);
              NuoHa.MessageSend(tuidi, 0, "您关注的主播上麦了!");
            }
       Rom.Close();    
NuoHa.MessageSend(kid, 0, "恭喜你成为主播。10分钟后没在聊天室将取消主播");
             }
                        




//主播
 Rs.Close(); 
                    }
                      else
                            {
           Rs = DataHelper.ExecuteReader("SELECT TOP 1 [id],[uid],[addtime],[etime] FROM [wap_aa_tm] WHERE [status]=1 ORDER BY [id] DESC");
       while (Rs.Read()) 
             {
int kidg = Convert.ToInt32(Rs[1]);
      object MeFace = DataHelper.ExecuteScalar("SELECT [face] FROM [wap_user] WHERE [id]=" + Rs[1] + "");
           if (MeFace.ToString() == "") 
            {
                MeFace = "tx.jpg"; 
            } 
int ml = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT [thsm] FROM [wap_user] WHERE [id]=" + Rs[1] + ""));
int sso = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT COUNT([uid]) AS nums FROM [wap_gz] WHERE [uid]=" + Rs[1] + " AND [status]=0 GROUP BY [uid] ORDER BY nums DESC"));
object Sex = DataHelper.ExecuteScalar("SELECT [gender] FROM [wap_user] WHERE [id]=" + Rs[1] + ""); 
           if (Convert.ToInt32(Sex) == 1) 
            {
                Sex = "男"; 
            }
            else
            {
                  Sex = "女"; 
            } 
TextString += "<div class=\"module-content deep\">\r\n"; 
TextString+= "<table style=\"border:1px solid #99ccff;width:100%;\"><tbody><tr><td style=\"width:18px;border-right:1px solid #99ccff;\"><img src=\"" + NuoHa.AvatarUrl + "" + MeFace + "\" width=\"100\" height=\"100\" alt=\".\"/></td><td>\r\n";
TextString += "<strong>[主播]:</strong><a href=\"/home/profile.aspx?id=" + Rs[1] + "" + NuoHa.String1 + "\">" + NuoHa.UserName(Rs[1]) + "</a>   <span style=\"line-height:14px;padding: 1px 1px;font-size: 14px;box-shadow: 0 0 15px 1px red;\"><b>魅力:" + ml + "</b></span>\r\n";
     int cn1 = 0;
        int nm1 = 0; 
     string ee;
   SqlDataReader Ria1 = DataHelper.ExecuteReader("SELECT TOP 100 [id] FROM [wap_user] WHERE [thsm] > 0 ORDER BY [thsm] DESC");
             while (Ria1.Read())
            {
                nm1 = nm1 + 1;
                int dn1 = Convert.ToInt32(Ria1[0]);
                 if (dn1 == kidg)
                 {
                     cn1 = nm1;
                 }
             }
                     if (cn1 < 1 || cn1 > 3)
                        {
                  if (cn1 < 4 || cn1 > 6)
                        {
                        if (cn1 < 7 || cn1 > 10)
                        {
                      ee = "<img src=\"/image/zb/4.gif\" alt=\".\"/>"; 
                        }
                        else
                        {
      ee = "<img src=\"/image/zb/3.gif\" alt=\"第三\"/>"; 
                    }
                        }
                        else
                        {
      ee = "<img src=\"/image/zb/2.gif\" alt=\"第二\"/>"; 
                    }
                        }
                        else
                        {
      ee = "<img src=\"/image/zb/1.gif\" alt=\"第一\"/>"; 
                    }
                       TextString += "" + ee + "</a>\r\n";
           TextString += "<br/>操作:<a href=\"/bbs/chat/yy.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"刷财宝\" /></a>.<a href=\"" + NuoHa.SitePath + "bbs/chat/talk_add.aspx?vid=" + Rs[1] + "&amp;id=" + id + "&amp;aa=1" + NuoHa.String1 + "\"><input type=\"button\" value=\"送礼物\" /></a>.魅力排名:" + cn1 + "<br/>粉丝:" + sso + "位\r\n";
 if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_gz] WHERE [uid]=" + Rs[1] + "AND [mid]=" + NuoHa.MyId + "") == null)
                    {
        TextString += "<a href=\"/home/gz.aspx?id=" + Rs[1] + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"关注\" /></a>";
                    }
               else
                        {
           TextString += "<a href=\"/home/gz_del.aspx?id=" + Rs[1] + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"取消关注\" /></a>";
                    }
TextString += ".<a href=\"" + NuoHa.SitePath + "bbs/chat/rpm.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"主播排名\" /></a>";

if (Convert.ToInt32(Rs[1]) == NuoHa.MyId)
     { 
TextString += ".<a href=\"" + NuoHa.SitePath + "bbs/chat/jq_add.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"发竞猜\" /></a>";
}

TextString += "<br/>结束时间:" + Rs[3] + "<br/>\r\n";
TextString += "</td></tr></tbody></table>\r\n";
TextString += "</div>\r\n"; 




if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_sm_jq] WHERE [uid]=" + Rs[1] + " AND [tid]=1 AND [status]=0") != null)
                    {
          TextString += "<span style=\"text-shadow: 5px 5px 5px gray;line-height:30px;padding: 4px 4px;font-size: 14px;box-shadow: 0 0 15px 1px red;background: url(/image/bg2.gif) repeat-x;\">猜一猜主播收到那个礼物最多?</span>\r\n";
  SqlDataReader jq = DataHelper.ExecuteReader("SELECT [name],[bx],[xl] FROM [wap_sm_jq] WHERE [tid]=1");
            jq.Read();
   int jqa = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT SUM([x]) AS nums FROM [wap_sm_myjq] WHERE [name]='" + jq[0] + "' GROUP BY [x] ORDER BY nums DESC"));
        TextString += "<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#FFffFF\" style=\"border-left:#EAEAEA 1px solid;border-bottom:#EAEAEA 1px solid;border-right:#EAEAEA 1px solid;\"><tr>\r\n";
   TextString += "<td width=\"100%\" background=\"/image/bg2.gif\" bgcolor=\"#FFFFFF\">礼物:" + jq[0] + "×" + jq[2] + " 倍数1:" + jq[1] + " 总数" + jqa + "<a href=\"" + NuoHa.SitePath + "bbs/chat/myjq_add.aspx?id=" + id + "" + NuoHa.String1 + "\">竟猜下注</a>\r\n";
TextString += "</td></tr></table>\r\n";
            jq.Close();
       jq = DataHelper.ExecuteReader("SELECT [name],[bx],[xl] FROM [wap_sm_jq] WHERE [tid]=2");
            jq.Read();
   int jqb = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT SUM([x]) AS nums FROM [wap_sm_myjq] WHERE [name]='" + jq[0] + "' GROUP BY [x] ORDER BY nums DESC"));
        TextString += "<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#FFffFF\" style=\"border-left:#EAEAEA 1px solid;border-bottom:#EAEAEA 1px solid;border-right:#EAEAEA 1px solid;\"><tr>\r\n";
   TextString += "<td width=\"100%\" background=\"/image/bg2.gif\" bgcolor=\"#FFFFFF\">礼物:" + jq[0] + "×" + jq[2] + " 倍数1:" + jq[1] + " 总数" + jqb + "<a href=\"" + NuoHa.SitePath + "bbs/chat/myjq_add.aspx?id=" + id + "" + NuoHa.String1 + "\">竟猜下注</a>\r\n";
TextString += "</td></tr></table>\r\n";
            jq.Close();
       jq = DataHelper.ExecuteReader("SELECT [name],[bx],[xl] FROM [wap_sm_jq] WHERE [tid]=3");
            jq.Read();
    int jqc = Convert.ToInt32(DataHelper.ExecuteScalar("SELECT SUM([x]) AS nums FROM [wap_sm_myjq] WHERE [name]='" + jq[0] + "' GROUP BY [x] ORDER BY nums DESC"));
        TextString += "<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#FFffFF\" style=\"border-left:#EAEAEA 1px solid;border-bottom:#EAEAEA 1px solid;border-right:#EAEAEA 1px solid;\"><tr>\r\n";
   TextString += "<td width=\"100%\" background=\"/image/bg2.gif\" bgcolor=\"#FFFFFF\">礼物:" + jq[0] + "×" + jq[2] + " 倍数1:" + jq[1] + " 总数" + jqc + "<a href=\"" + NuoHa.SitePath + "bbs/chat/myjq_add.aspx?id=" + id + "" + NuoHa.String1 + "\">竟猜下注</a>\r\n";
TextString += "</td></tr></table>\r\n";
            jq.Close();
     }
            else
                {
   if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_sm_jq] WHERE [status]=1") != null)
                    {
           TextString += "<span style=\"text-shadow: 5px 5px 5px gray;line-height:30px;padding: 4px 4px;font-size: 14px;box-shadow: 0 0 15px 1px red;background: url(/image/bg2.gif) repeat-x;\">猜一猜主播收到那个礼物最多?</span>\r\n";
  SqlDataReader jqv = DataHelper.ExecuteReader("SELECT [name],[bx],[xl] FROM [wap_sm_jq] WHERE [status]=1");
            jqv.Read();
        TextString += "<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#FFffFF\" style=\"border-left:#EAEAEA 1px solid;border-bottom:#EAEAEA 1px solid;border-right:#EAEAEA 1px solid;\"><tr>\r\n";
   TextString += "<td width=\"100%\" background=\"/image/bg2.gif\" bgcolor=\"#FFFFFF\">竟猜结束!礼物:" + jqv[0] + "\r\n";
TextString += "</td></tr></table>\r\n";
            jqv.Close();
          }
        }
             }
                         Rs.Close(); 
                          }
TextString += "</div>\r\n"; 


//TextString += "<form name=\"f\" action=\"" + NuoHa.SitePath + "bbs/chat/talk_add_ok.aspx?id=" + id + "" + NuoHa.String1 + "\" method=\"post\">\r\n";
//TextString +="<textarea name=\"content\" id=\"content\" rows=\"3\" style=\"width:99%;\"></textarea><br/><div class=\"gdpl\"><span id=\"showfacelist\"></span><a href=\"javascript:showface();\" class=\"bbsface\" title=\"表情\"></a><span id=\"showfacelista\"></span><a href=\"javascript:showfacea();\" class=\"bbsfacea\" title=\"表情\"></a><span id=\"showfacelistb\"></span><a href=\"javascript:showfaceb();\" class=\"bbsfaceb\" title=\"表情\"></a><span id=\"showfacelistc\"></span><a href=\"javascript:showfacec();\" class=\"bbsfacec\" title=\"表情\"></a><span id=\"showfacelistd\"></span><a href=\"javascript:showfaced();\" class=\"bbsfaced\" title=\"表情\"></a>&nbsp;&nbsp;\r\n";
//TextString += "<script src=\"/xml/template/default/js/de.js?v=1.0.0.0\" type=\"text/javascript\"></script>\r\n";
     //TextString += "<input type=\"submit\" name=\"g\" class=\"open2\" id=\"submit\" value=\"发言\" onclick=\"javascript:dealform($(this));return false;\" /></div></form><br/>\r\n";
        
        //TextString += "<br/><a href=\"/bbs/chat/my_room.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"聊天记录\" /></a> <a href=\"/bbs/chat/room_qp.aspx?id=" + id + "&amp;act=1" + NuoHa.String1 + "\"><input type=\"button\" value=\"聊天气泡\" /></a> <a href=\"/bbs/chat/mylw.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"我的礼物\" /></a> <a href=\"/bbs/chat/hb.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"发红包\" /></a> <a href=\"/bbs/chat/online.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"在线(" + ROCount + ")\" /></a> <a href=\"/bbs/chat/room_func.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"功能\" /></a> <a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/sm.aspx?id=" + id + "&amp;act=ok" + NuoHa.String1 + "\"><input type=\"button\" value=\"抢麦\" /></a> <a href=\"" + NuoHa.SitePath + "bbs/chat/sm.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"麦序\" /></a> <a href=\"" + NuoHa.SitePath + "bbs/chat/hh.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"切换版面\" /></a>\r\n";

TextString += "<div class=\"module-title\"><p>\r\n";

// TextString += "<a href=\"/bbs/chat/room.aspx?id=" + id + "" + NuoHa.String1 + "\">刷新页面</a> <a href=\"/bbs/chat/jc.aspx?id=" + id + "" + NuoHa.String1 + "\">进聊室效果</a></p></div>\r\n";



int nn = 0;
TextString += "<div class=\"module-content\">\r\n";
SqlDataReader Re = DataHelper.ExecuteReader("SELECT TOP 3 [uid],[vid],[type],[intro],[content],[addtime],[id] FROM [wap_bbs_room_chat] WHERE [bid]=" + id + " AND [status]=1 AND [uid] NOT IN (SELECT [tid] FROM [wap_aa_pl] WHERE [uid]=" + NuoHa.MyId + ") ORDER BY [id] DESC");
            while (Re.Read())
            { 
    int tuid = Convert.ToInt32(Re[0]);
    int tvid = Convert.ToInt32(Re[1]);
           nn = nn + 1;
                if (nn % 2 == 0)
                {
          TextString += "<div class=\"module-content \">\r\n"; 
                }
                else
                {
      TextString += "<div class=\"module-content deep\">\r\n"; 
                }
TextString += "<img src=\"" + NuoHa.ImageUrl + "/image/site/apex.gif\" alt=\"顶\"/>";
            if (tuid == 0)
                {
                    TextString += "[室内广播]:" + NuoHa.TextDecode(Re[4].ToString()) + " (" + NuoHa.TimeEncode(Re[5]) + ")\r\n";
                }
                else
                {
                    if (tvid == 0)
                    {
           
                      TextString += "" + NuoHa.UserName(tuid) + "说:" + NuoHa.TextDecode(Re[4].ToString()) + " (" + NuoHa.TimeEncode(Re[5]) + ")\r\n";
                } 
            else
            {
                       TextString += "" + NuoHa.UserName(tuid) + "对" + NuoHa.UserName(tvid) + "说:" + NuoHa.TextDecode(Re[4].ToString()) + " (" + NuoHa.TimeEncode(Re[5]) + ")\r\n";
   }
  }
                  if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_manage] WHERE [bid]=" + id + " AND [uid]=" + NuoHa.MyId + " AND [mtype]=2 ORDER BY [sort] ASC") != null) 
 {
     TextString += " <a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_d.aspx?bid=" + Re[6] + "&amp;id=" + id + "&amp;aa=2&amp;act=ok" + NuoHa.String1 + "\">撤顶</a>\r\n";
}
           TextString += "</div>\r\n";
            }
            Re.Close();
           TextString += "</div>\r\n";
         TextString += "<div class=\"module-content deep\">\r\n"; 
                TextString += "</div>\r\n";
int nnz = 0;
        DataTable data = DataHelper.ExecuteDataTable("SELECT [uid],[vid],[type],[intro],[content],[addtime],[id] FROM [wap_bbs_room_chat] WHERE [bid]=" + id + " ORDER BY [id] DESC");
        int PageSize = 12;
        int RowsCount = data.Rows.Count;
        int PageCount = (RowsCount + PageSize - 1) / PageSize;
        int page = NuoHa.ConToNum(Request.QueryString["page"]);
        if (page < 1)
        {
            page = 1;
        }
        if (page > PageCount)
        {
            page = PageCount;
        }
        int sn = (page - 1) * PageSize;
        if (RowsCount == 0)
        {
            TextString += "欢迎进入" + bbName + "聊天室!<br/>\r\n";
        }
        else
        {
           TextString += "<ya id=\"autore\">\r\n";
  if (NuoHa.MsgCount > 0)
                        {
                TextString += "<div class=\"side-bar\"><a href=\"/home/chat_new.aspx?srcurl=" + NuoHa.SourceURL() + "" + NuoHa.String1 + "\"><img id=\"picture\" src=\"/image/sx.png\" alt=\"信息\"/><span id=\"badge\">" + NuoHa.MsgCount + "</span></a></div>";
                       }
            for (int pn = sn; pn < sn + PageSize; pn++)
            {
                if (pn == RowsCount)
                {
                    break;
                }
TextString += "<p></p><p align=\"center\"><!--listS--></p>\r\n";
              nnz = nnz + 1;
                int uid = Convert.ToInt32(data.Rows[pn][0]);
                int vid = Convert.ToInt32(data.Rows[pn][1]);
string aime = data.Rows[pn][5].ToString();
 string[] fff = aime.Split('-',' ',':');
                if (uid == 0)
                {
TextString += "<div class=\"tips\">\r\n";
                    TextString += "[室内广播]:" + NuoHa.TextDecode(data.Rows[pn][4].ToString()) + " (" + NuoHa.TimeEncode(data.Rows[pn][5]) + ")<br/>\r\n";
  if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_manage] WHERE [bid]=" + id + " AND [uid]=" + NuoHa.MyId + " AND [mtype]=2 ORDER BY [sort] ASC") != null) 
           {
     TextString += " <a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_del.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=2&amp;act=ok" + NuoHa.String1 + "\">删除</a>.<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_d.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=1&amp;act=ok" + NuoHa.String1 + "\">置顶</a><br/>\r\n";
}
TextString += "</div>\r\n";
                }
                else
                {
      if (nnz % 2 == 0)
                {
TextString += "<div class=\"module-content deep\">\r\n"; 
                }
                else
                {
             TextString += "<div class=\"module-content \">\r\n"; 
                }
object xxx = DataHelper.ExecuteScalar("SELECT [level] FROM [wap_manage] WHERE [bid]=" + id + " AND [uid]=" + uid + " AND [mtype]=2 ORDER BY [sort] ASC");
            object taint = DataHelper.ExecuteScalar("SELECT [ltint] FROM [wap_user] WHERE [id]=" + uid + " AND [status]=0");
      object ggg = DataHelper.ExecuteScalar("SELECT [name] FROM [wap_bbs_lts_level] WHERE [point]<" + (Convert.ToInt32(taint) + 1) + " ORDER BY [id] DESC");
SqlDataReader Rv2 = DataHelper.ExecuteReader("SELECT [face],[gender] FROM [wap_user] WHERE [id]=" + uid + "");
        Rv2.Read();
        string MeFace = Rv2[0].ToString();
          int MeSex = Convert.ToInt32(Rv2[1]); 
        Rv2.Close();
            if (MeSex == 1)
            {
            if (MeFace == "")
            {
                MeFace = "nt.jpg";
            }
            }
            else
           {
           if (MeFace == "")
            {
                MeFace = "mnt.jpg";
            }
           } 
                    if (vid == 0)
                    {
TextString += "<table style=\"border:1px solid #;width:96%;\"><tbody><tr><td style=\"width:18px;border-right:1px solid #;\"><img src=\"" + NuoHa.AvatarUrl + "" + MeFace + "\" width=\"35\" height=\"35\" alt=\"头像\"/></td><td>\r\n";
   if (xxx != null)
           {
                      TextString += "<img src=\"/image/manage/705.gif\" width=\"18\" height=\"18\" alt=\".\"/>"; 
            }
                        TextString += "<img src=\"/image/bbs/lts/" + ggg + "\" alt=\".\"/><a href=\"/bbs/chat/talk_add.aspx?id=" + id + "&amp;vid=" + uid + "" + NuoHa.String1 + "\">" + NuoHa.UserName(uid) + "</a>\r\n";
      TextString += ":" + NuoHa.TextDecode(data.Rows[pn][4].ToString()) + "<br/>\r\n";
TextString += "<a href=\"/bbs/chat/talk_add.aspx?id=" + id + "&amp;vid=" + uid + "" + NuoHa.String1 + "\">" + "撩Ta</a>\r\n";
  if (uid == NuoHa.MyId)
  {
TextString += ".<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_del.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=1&amp;act=ok" + NuoHa.String1 + "\">删除</a>\r\n";
          if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_manage] WHERE [bid]=" + id + " AND [uid]=" + NuoHa.MyId + " AND [mtype]=2 ORDER BY [sort] ASC") != null) 
           {
TextString += ".<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_d.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=1&amp;act=ok" + NuoHa.String1 + "\">置顶</a>\r\n";
}
}
        else
            {
             if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_manage] WHERE [bid]=" + id + " AND [uid]=" + NuoHa.MyId + " AND [mtype]=2 ORDER BY [sort] ASC") != null) 
           {
TextString += ".<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_d.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=1&amp;act=ok" + NuoHa.String1 + "\">置顶</a>.<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_del.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=2&amp;act=ok" + NuoHa.String1 + "\">删除</a>\r\n";
}
  }
TextString += "</td></tr></tbody></table>\r\n";
                    }
                    else
                    {
                        if (Convert.ToInt32(data.Rows[pn][2]) == 0)
                        {
object xx = DataHelper.ExecuteScalar("SELECT [level] FROM [wap_manage] WHERE [bid]=" + id + " AND [uid]=" + vid + " AND [mtype]=2 ORDER BY [sort] ASC");
            object tint = DataHelper.ExecuteScalar("SELECT [ltint] FROM [wap_user] WHERE [id]=" + vid + " AND [status]=0");
      object gg = DataHelper.ExecuteScalar("SELECT [name] FROM [wap_bbs_lts_level] WHERE [point]<" + (Convert.ToInt32(tint) + 1) + " ORDER BY [id] DESC");
TextString += "<table style=\"border:1px solid #;width:96%;\"><tbody><tr><td style=\"width:18px;border-right:1px solid #;\"><img src=\"" + NuoHa.AvatarUrl + "" + MeFace + "\" width=\"35\" height=\"35\" alt=\"头像\"/></td><td>\r\n";
  if (xxx != null)
           {
                      TextString += "<img src=\"/image/manage/705.gif\" width=\"18\" height=\"18\" alt=\".\"/>"; 
            }
                            TextString += "<a href=\"/bbs/chat/talk_add.aspx?id=" + id + "&amp;vid=" + uid + "" + NuoHa.String1 + "\"><img src=\"/image/bbs/lts/" + ggg + "\" alt=\".\"/>" + NuoHa.UserName(uid) + "</a>对\r\n";
       TextString += "<a href=\"/bbs/chat/talk_add.aspx?id=" + id + "&amp;vid=" + vid + "" + NuoHa.String1 + "\">" + NuoHa.UserName(vid) + "</a><img src=\"/image/bbs/lts/" + gg + "\" alt=\".\"/>";
  if (xx != null)
           {
                      TextString += "<img src=\"/image/manage/705.gif\" width=\"18\" height=\"18\" alt=\".\"/>"; 
            }
TextString += "说:" + NuoHa.TextDecode(data.Rows[pn][4].ToString()) + " \r\n";
       TextString += "<br/>\r\n";
TextString += "<a href=\"" + NuoHa.SitePath + "bbs/chat/ta_room.aspx?tuid=" + uid + "&amp;id=" + id + "" + NuoHa.String1 + "\">只看Ta</a>\r\n";
 if (uid == NuoHa.MyId)
  {
TextString += ".<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_del.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=1&amp;act=ok" + NuoHa.String1 + "\">删除</a>\r\n";
          if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_manage] WHERE [bid]=" + id + " AND [uid]=" + NuoHa.MyId + " AND [mtype]=2 ORDER BY [sort] ASC") != null) 
           {
TextString += ".<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_d.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=1&amp;act=ok" + NuoHa.String1 + "\">置顶</a>\r\n";
}
}
        else
            {
             if (DataHelper.ExecuteScalar("SELECT [uid] FROM [wap_manage] WHERE [bid]=" + id + " AND [uid]=" + NuoHa.MyId + " AND [mtype]=2 ORDER BY [sort] ASC") != null) 
           {
TextString += ".<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_d.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=1&amp;act=ok" + NuoHa.String1 + "\">置顶</a>.<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_del.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=2&amp;act=ok" + NuoHa.String1 + "\">删除</a>\r\n";
}
  }
TextString += "</td></tr></tbody></table>\r\n";
                        }
                        else
                        {
                            if (uid == NuoHa.MyId || vid == NuoHa.MyId)
                            {
                                TextString += "[悄悄话]<a href=\"/bbs/chat/talk_add.aspx?id=" + id + "&amp;vid=" + uid + "" + NuoHa.String1 + "\">" + NuoHa.UserName(uid) + "</a>对<a href=\"/bbs/chat/talk_add.aspx?id=" + id + "&amp;vid=" + vid + "" + NuoHa.String1 + "\">" + NuoHa.UserName(vid) + "</a>说:" + NuoHa.TextDecode(data.Rows[pn][4].ToString()) + " \r\n";
  if (uid == NuoHa.MyId)
  {
TextString += "<a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/room_del.aspx?bid=" + data.Rows[pn][6] + "&amp;id=" + id + "&amp;aa=1&amp;act=ok" + NuoHa.String1 + "\">删除</a>\r\n";
  }
       TextString += "<br/><br/>\r\n";
                            }
                        }
                    }

           TextString += "</div>\r\n";
                }
            }
TextString += "</ya>\r\n";


TextString += "<!--listE-->\r\n";
   if (page < PageCount)
            {
            TextString += "<div id=\"KL_show_next_list\" style=\"display:none\"></div><div align=\"center\"><span style=\"text-shadow: 5px 5px 5px gray;line-height:30px;padding: 4px 4px;border-radius:50px;font-size: 14px;box-shadow: 0 0 15px 1px red;background: url(/image/bg2.gif) repeat-x;\"><b><a id=\"KL_\" href=\"javascript:;\" onclick=\"KL_show_next('" + PageCount + "','10','" + page + "','/bbs/chat/room.aspx?id=" + id + "&amp;get=10','page')\"><span id=\"KL_show_loadimg\"></span><font color=\"FF66FF\"><span id=\"KL_show_tip\">加载更多(" + page + "/" + PageCount + ")</span></font></a></b></span></div>\r\n";
       }
                  TextString += "<div class=\"tool-box\">\r\n";
            if (PageCount > 1)
            {
                TextString += "<form action=\"/bbs/chat/room.aspx\" method=\"get\">\r\n";
     if (page < PageCount)
            {
                TextString += "<a href=\"/bbs/chat/room.aspx?id=" + id + "&amp;page=" + (page + 1) + "" + NuoHa.String1 + "\">下页</a>\r\n";
            }
            if (page > 1)
            {
                TextString += ".<a href=\"/bbs/chat/room.aspx?id=" + id + "&amp;page=" + (page - 1) + "" + NuoHa.String1 + "\">上页</a>\r\n";
            }
                TextString += "<input type=\"hidden\" name=\"id\" value=\"" + id + "\"/>\r\n";
                TextString += "第<input type=\"text\" name=\"page\" emptyok=\"true\" format=\"*N\" maxlength=\"10\" size=\"2\" value=\"1\" />页\r\n";
                TextString += NuoHa.String3;
                TextString += "<input type=\"submit\" value=\"前往\" />\r\n";
                TextString += "</form>\r\n";
            }
            TextString += "(第<b>" + page + "</b>/" + PageCount + "页/共" + RowsCount + "条记录)<br/>\r\n";
            TextString += "</div>\r\n";
        }

        if (foStatus == 0)
        {
            
            TextString += "<form name=\"f\" action=\"" + NuoHa.SitePath + "bbs/chat/talk_add_ok.aspx?id=" + id + "" + NuoHa.String1 + "\" method=\"post\">\r\n";
TextString +="<textarea name=\"content\" id=\"content\" rows=\"3\" style=\"width:99%;\"></textarea><br/><div class=\"gdpl\"><span id=\"showfacelist\"></span><a href=\"javascript:showface();\" class=\"bbsface\" title=\"表情\"></a><span id=\"showfacelista\"></span><a href=\"javascript:showfacea();\" class=\"bbsfacea\" title=\"表情\"></a><span id=\"showfacelistb\"></span><a href=\"javascript:showfaceb();\" class=\"bbsfaceb\" title=\"表情\"></a><span id=\"showfacelistc\"></span><a href=\"javascript:showfacec();\" class=\"bbsfacec\" title=\"表情\"></a><span id=\"showfacelistd\"></span><a href=\"javascript:showfaced();\" class=\"bbsfaced\" title=\"表情\"></a>&nbsp;&nbsp;\r\n";
TextString += "<script src=\"/xml/template/default/js/de.js?v=1.0.0.0\" type=\"text/javascript\"></script>\r\n";
     TextString += "<input type=\"submit\" name=\"g\" class=\"open2\" id=\"submit\" value=\"发言\" onclick=\"javascript:dealform($(this));return false;\" /></div></form><br/>\r\n";
        
        TextString += "<br/><a href=\"/bbs/chat/my_room.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"聊天记录\" /></a> <a href=\"/bbs/chat/room_qp.aspx?id=" + id + "&amp;act=1" + NuoHa.String1 + "\"><input type=\"button\" value=\"聊天气泡\" /></a> <a href=\"/bbs/chat/mylw.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"我的礼物\" /></a> <a href=\"/bbs/chat/hb.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"发红包\" /></a> <a href=\"/bbs/chat/online.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"在线(" + ROCount + ")\" /></a> <a href=\"/bbs/chat/room_func.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"功能\" /></a> <a onClick=\"delcfm()\" href=\"" + NuoHa.SitePath + "bbs/chat/sm.aspx?id=" + id + "&amp;act=ok" + NuoHa.String1 + "\"><input type=\"button\" value=\"抢麦\" /></a> <a href=\"" + NuoHa.SitePath + "bbs/chat/sm.aspx?id=" + id + "" + NuoHa.String1 + "\"><input type=\"button\" value=\"麦序\" /></a>\r\n";


            TextString += "<br/><a href=\"/bbs/forum.aspx?id=" + id + "" + NuoHa.String1 + "\">去[" + bbName + "]论坛</a>\r\n";
        }
        TextString += "<div class=\"module-title\"><a href=\"/bbs/" + NuoHa.String0 + "\">社区</a>><a href=\"/bbs/chat/" + NuoHa.String0 + "\">聊天</a>>聊天室</div>\r\n";
        TextString += NuoHa.Bottom();
        NuoHa.Write(TextString);
        Response.Write("</body>\r\n");
        Response.Write("</html>");
    }
   public string AppleCountdown(DateTime NewTime, DateTime EndTime)
    {
        int DiffTime = (int)(EndTime - NewTime).TotalSeconds;
        if (DiffTime < 60)
        {
            return "" + DiffTime + "秒";
        }
        if (DiffTime < 3600)
        {
            return "" + (DiffTime / 60) + "分" + (DiffTime - (DiffTime / 60) * 60) + "秒";
        }
        if (DiffTime < 86400)
        {
            return "" + (DiffTime / 3600) + "小时" + ((DiffTime - (DiffTime / 3600) * 3600) / 60) + "分";
        }
        return "" + (DiffTime / 86400) + "天" + ((DiffTime - (DiffTime / 86400) * 86400) / 3600) + "小时";
    }
}

「一键投食 辣条/矿泉水/泡面/鲜牛奶/大龙虾」

时光日记

(๑>ڡ<)☆ 谢谢老板~

使用微信扫描二维码完成支付

下一篇: 没有了


标签: aspx
  展开评论 · 返回 · 首页
亲丶不留个言再走麽?