Exemplo n.º 1
0
    private void HonorNoPage(int uid)
    {
        string info = Utils.GetRequest("info", "all", 1, "", "");
        int    hid  = int.Parse(Utils.GetRequest("hid", "get", 2, @"^[1-9]\d*$", "会员ID错误"));

        if (info != "ok")
        {
            Master.Title = "撤销荣誉版主";
            builder.Append(Out.Tab("<div class=\"title\">", ""));
            builder.Append("确定撤销" + new BCW.BLL.User().GetUsName(hid) + "(" + hid + ")的荣誉版主吗");
            builder.Append(Out.Tab("</div>", "<br />"));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("<a href=\"" + Utils.getUrl("usermanage.aspx?info=ok&amp;act=honorno&amp;hid=" + hid + "&amp;backurl=" + Utils.getPage(0) + "") + "\">确定撤销</a><br />");
            builder.Append("<a href=\"" + Utils.getUrl("usermanage.aspx?act=position&amp;hid=" + hid + "&amp;backurl=" + Utils.getPage(0) + "") + "\">先留着吧..</a>");
            builder.Append(Out.Tab("</div>", "<br />"));
        }
        else
        {
            if (!new BCW.BLL.User().Exists(hid))
            {
                Utils.Error("不存在的会员ID", "");
            }
            string Limit = new BCW.BLL.User().GetLimit(hid);
            if (!Limit.Contains("honor"))
            {
                Utils.Error("该会员不是荣誉版主", "");
            }

            Limit = Limit.Replace("honor", "");
            new BCW.BLL.User().UpdateLimit(hid, Limit);

            //记录日志
            string UsName = new BCW.BLL.User().GetUsName(hid);
            string strLog = string.Empty;
            strLog = "系统管理员将[url=/bbs/uinfo.aspx?uid=" + hid + "]" + UsName + "[/url]撤销荣誉版主身份";
            new BCW.BLL.Forumlog().Add(0, 0, strLog);
            //发送内线给新版主
            new BCW.BLL.Guest().Add(hid, UsName, strLog.Replace("[url=/bbs/uinfo.aspx?uid=" + hid + "]" + UsName + "[/url]", "您"));
            Utils.Success("撤销荣誉版主", "撤销荣誉版主成功..", Utils.getUrl("usermanage.aspx?act=position&amp;hid=" + hid + "&amp;backurl=" + Utils.getPage(0) + ""), "1");
        }
    }
Exemplo n.º 2
0
    private void AdminPage(string act, int meid)
    {
        int    hid   = int.Parse(Utils.GetRequest("hid", "all", 2, @"^[0-9]\d*$", "会员ID错误"));
        int    ptype = int.Parse(Utils.GetRequest("ptype", "all", 2, @"^[0-9]\d*$", "选择权限错误"));
        string info  = Utils.GetRequest("info", "post", 1, "", "");
        string sName = string.Empty;
        string Role  = string.Empty;

        if (!new BCW.BLL.User().Exists(hid))
        {
            Utils.Error("不存在的会员ID", "");
        }
        string UsName = new BCW.BLL.User().GetUsName(hid);

        if (ptype == 1)
        {
            sName = "锁定";
            Role  = "A";
        }
        else if (ptype == 2)
        {
            sName = "发帖";
            Role  = "B";
        }
        else if (ptype == 3)
        {
            sName = "回贴";
            Role  = "C";
        }
        else if (ptype == 4)
        {
            sName = "短消息";
            Role  = "D";
        }
        else if (ptype == 5)
        {
            sName = "聊天室";
            Role  = "E";
        }
        else if (ptype == 6)
        {
            sName = "留言本";
            Role  = "F";
        }
        else if (ptype == 7)
        {
            sName = "发广播";
            Role  = "G";
        }
        else if (ptype == 8)
        {
            sName = "全站评论";
            Role  = "H";
        }
        else if (ptype == 9)
        {
            sName = "上传文件";
            Role  = "I";
        }
        else if (ptype == 10)
        {
            sName = "金融系统";
            Role  = "J";
        }
        else if (ptype == 11)
        {
            sName = "社区游戏";
            Role  = "K";
        }
        else if (ptype == 12)
        {
            sName = "使用日记";
            Role  = "L";
        }
        else if (ptype == 13)
        {
            sName = "使用相册";
            Role  = "M";
        }
        else if (ptype == 14)
        {
            sName = "使用闲聊";
            Role  = "N";
        }
        else if (ptype == 15)
        {
            sName = "社区应用";
            Role  = "O";
        }
        if (act == "admin")
        {
            if (ptype == 1)
            {
                sName = "锁定";
            }
            else
            {
                sName = "禁止" + sName + "";
            }
        }
        else
        {
            if (ptype == 1)
            {
                sName = "解锁";
            }
            else
            {
                sName = "解禁" + sName + "";
            }
        }
        if (info == "ok")
        {
            string Why  = Utils.GetRequest("Why", "post", 3, @"^[^\^]{1,50}$", "理由限50字内,可留空");
            int    rDay = 0;
            if (act == "admin")
            {
                rDay = int.Parse(Utils.GetRequest("rDay", "post", 2, @"^0|1|2|3|5|10|15|30|90$", "期限选择错误"));
                if (ptype != 1)
                {
                    if (rDay == 0)
                    {
                        Utils.Error("只有锁定类型才可以选择永久期限", "");
                    }
                }
                //如果已存在过期加黑记录则先删除
                new BCW.BLL.Blacklist().DeleteRole(hid, Role);
                if (new BCW.BLL.Blacklist().ExistsRole(hid, Role))
                {
                    Utils.Error("此ID已被" + sName + "", "");
                }
                BCW.Model.Blacklist model = new BCW.Model.Blacklist();
                model.UsID      = hid;
                model.UsName    = UsName;
                model.ForumID   = 0;
                model.ForumName = "";
                model.BlackRole = Role;
                model.BlackWhy  = Why;
                model.BlackDay  = rDay;
                model.Include   = 0;
                model.AdminUsID = meid;
                model.ExitTime  = DateTime.Now.AddDays(rDay);
                model.AddTime   = DateTime.Now;
                new BCW.BLL.Blacklist().Add(model);
                //永久锁定
                if (ptype == 1 && rDay == 0)
                {
                    string Limit = new BCW.BLL.User().GetLimit(hid);
                    Limit = Limit + "|lock";
                    new BCW.BLL.User().UpdateLimit(hid, Limit);
                }
            }
            else
            {
                if (ptype > 1)
                {
                    if (new BCW.BLL.Blacklist().ExistsRole(hid, "A"))
                    {
                        Utils.Error("你必须解除锁定才能进行此操作", "");
                    }
                }
                string Limit = new BCW.BLL.User().GetLimit(hid);
                if (!new BCW.BLL.Blacklist().ExistsRole(hid, Role) && !Limit.Contains("lock"))
                {
                    Utils.Error("不存在的加黑记录", "");
                }
                new BCW.BLL.Blacklist().DeleteRole(hid, Role);
                //解除永久锁定
                if (ptype == 1)
                {
                    Limit = Limit.Replace("lock", "");
                    new BCW.BLL.User().UpdateLimit(hid, Limit);
                }
            }
            //记录日志
            string strLog  = "系统管理员对[url=/bbs/uinfo.aspx?uid=" + hid + "]" + UsName + "[/url]" + sName + "";
            string strLog2 = "系统管理员将你" + sName + "";
            if (act == "admin")
            {
                if (rDay == 0)
                {
                    strLog  += "(永久)";
                    strLog2 += "(永久)";
                }
                else
                {
                    strLog  += "" + rDay + "天";
                    strLog2 += "" + rDay + "天";
                }
            }
            if (!string.IsNullOrEmpty(Why))
            {
                strLog  += ",理由:" + Why + "";
                strLog2 += ",理由:" + Why + "";
            }
            new BCW.BLL.Forumlog().Add(0, 0, strLog);
            new BCW.BLL.Guest().Add(0, hid, UsName, strLog2);
            Utils.Success("管理会员", "执行管理成功,正在返回..", Utils.getUrl("usermanage.aspx?hid=" + hid + "&amp;backurl=" + Utils.getPage(0) + ""), "1");
        }
        else
        {
            builder.Append(Out.Tab("<div class=\"title\">", ""));
            builder.Append("对<a href=\"" + Utils.getUrl("uinfo.aspx?uid=" + hid + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">" + UsName + "(" + hid + ")</a>执行《" + sName + "》");
            builder.Append(Out.Tab("</div>", ""));
            if (act == "admin")
            {
                strText = ",,理由(50字内):/,期限:,,,,";
                strName = "hid,ptype,Why,rDay,act,info,backurl";
                strType = "hidden,hidden,textarea,select,hidden,hidden,hidden";
                strValu = "" + hid + "'" + ptype + "''10'admin'ok'" + Utils.getPage(0) + "";
                if (ptype == 1)
                {
                    strEmpt = "false,false,false,0|永久|1|1天|2|2天|3|3天|5|5天|10|10天|15|15天|30|30天|90|90天,false,false,false";
                }
                else
                {
                    strEmpt = "false,false,false,1|1天|2|2天|3|3天|5|5天|10|10天|15|15天|30|30天|90|90天,false,false,false";
                }
            }
            else
            {
                strText = ",,理由(50字内):/,,,,";
                strName = "hid,ptype,Why,act,info,backurl";
                strType = "hidden,hidden,textarea,hidden,hidden,hidden";
                strValu = "" + hid + "'" + ptype + "''admin2'ok'" + Utils.getPage(0) + "";
                strEmpt = "false,false,false,false,false,false";
            }
            strIdea = "/";
            strOthe = "确定执行,usermanage.aspx,post,1,red";
            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append(" <a href=\"" + Utils.getUrl("usermanage.aspx?hid=" + hid + "&amp;backurl=" + Utils.getPage(0) + "") + "\">重选</a><br />");
            builder.Append("<a href=\"" + Utils.getPage("usermanage.aspx?hid=" + hid + "") + "\">&gt;返回上一级</a>");
            if (ptype == 1)
            {
                builder.Append("<br />温馨提示:<br />1.锁定会员后,该会员将不能正常使用所有功能.");
            }
            builder.Append(Out.Tab("</div>", "<br />"));
        }
    }
Exemplo n.º 3
0
    /// <summary>
    /// 论坛版面
    /// </summary>
    private void ListPage(int forumid)
    {
        if (!new BCW.BLL.Forum().Exists2(forumid))
        {
            Utils.Success("访问论坛", "该论坛不存在或已暂停使用", Utils.getUrl("forum.aspx"), "1");
        }
        int meid = new BCW.User.Users().GetUsId();

        BCW.Model.Forum model   = new BCW.BLL.Forum().GetForum(forumid);
        BCW.Model.Group modelgr = null;
        if (model.GroupId > 0)
        {
            if (meid == 0)
            {
                Utils.Login();
            }

            modelgr = new BCW.BLL.Group().GetGroupMe(model.GroupId);
            if (modelgr == null)
            {
                Utils.Error("不存在的" + ub.GetSub("GroupName", "/Controls/group.xml") + "", "");
            }
            else if (DT.FormatDate(modelgr.ExTime, 0) != "1990-01-01 00:00:00" && modelgr.ExTime < DateTime.Now)
            {
                Utils.Error("" + ub.GetSub("GroupName", "/Controls/group.xml") + "已过期", "");
            }
            if (modelgr.ForumStatus == 2)
            {
                Utils.Error("" + ub.GetSub("GroupName", "/Controls/group.xml") + "论坛已关闭", "");
            }
            string GroupId = new BCW.BLL.User().GetGroupId(meid);
            if (modelgr.ForumStatus == 1)
            {
                bool Isvi = false;
                //能够穿透的ID
                string CTID = "#" + ub.GetSub("GroupCTID", "/Controls/group.xml") + "#";
                if (CTID.IndexOf("#" + meid + "#") != -1)
                {
                    Isvi = true;
                }
                if (GroupId.IndexOf("#" + model.GroupId + "#") == -1 && Isvi == false)
                {
                    Utils.Error("非成员不能访问" + ub.GetSub("GroupName", "/Controls/group.xml") + "论坛!<br /><a href=\"" + Utils.getUrl("/bbs/group.aspx?act=addin&amp;id=" + model.GroupId + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">加入本" + ub.GetSub("GroupName", "/Controls/group.xml") + "</a>", "");
                }
            }
            int VipLeven = BCW.User.Users.VipLeven(meid);
            if (VipLeven == 0)
            {
                int DqNum = (Utils.GetStringNum(GroupId.Replace("##", "#"), "#") - 1);
                if (DqNum > 5)
                {
                    Utils.Error("您的VIP会员已过期,请进行续费才能同时加入5个以上的" + ub.GetSub("GroupName", "/Controls/group.xml") + ",否则只能同时加入5个才可以使用" + ub.GetSub("GroupName", "/Controls/group.xml") + "<br /><a href=\"" + Utils.getUrl("finance.aspx?act=addvip&amp;backurl=" + Utils.PostPage(1) + "") + "\">&gt;&gt;我现在要续费VIP</a><br /><a href=\"" + Utils.getUrl("group.aspx?act=me&amp;backurl=" + Utils.PostPage(1) + "") + "\">&lt;&lt;我要退出一些圈子</a>", "");
                }
            }
        }
        BCW.User.Users.ShowForumLimit(meid, model.Gradelt, model.Visitlt, model.VisitId, model.IsPc);
        Master.Title = model.Title;
        //个性设置
        int FsPageSize = 10;

        if (meid > 0)
        {
            string ForumSet = new BCW.BLL.User().GetForumSet(meid);
            FsPageSize = BCW.User.Users.GetForumSet(ForumSet, 0);
        }
        int    pageIndex;
        int    recordCount;
        int    pageSize = FsPageSize;
        string strWhere = string.Empty;
        string strOrder = string.Empty;

        string[] pageValUrl = { "forumid", "backurl" };
        pageIndex = Utils.ParseInt(Request.QueryString["page"]);
        if (pageIndex == 0)
        {
            pageIndex = 1;
        }

        if (pageIndex == 1)
        {
            if (!string.IsNullOrEmpty(model.Logo) && Utils.IsMobileUa() == true)
            {
                builder.Append(Out.Tab("<div>", ""));
                builder.Append("<img src=\"" + model.Logo + "\" alt=\"load\"/>");
                builder.Append(Out.Tab("</div>", "<br />"));
            }
            //拾物随机
            builder.Append(BCW.User.Game.GiftFlows.ShowGiftFlows(1));
            //顶部滚动
            builder.Append(BCW.User.Master.OutTopRand(3));

            if (!string.IsNullOrEmpty(model.TopUbb))
            {
                builder.Append(Out.Tab("<div>", ""));
                builder.Append(BCW.User.AdminCall.AdminUBB(Out.SysUBB(model.TopUbb)));
                builder.Append(Out.Tab("</div>", "<br />"));
            }
            //全区滚动
            BCW.Model.Text flow = new BCW.BLL.Text().GetTextFlow();
            if (flow != null)
            {
                builder.Append(Out.Tab("<div>", ""));
                builder.Append("<a href=\"" + Utils.getUrl("manager.aspx?act=flow&amp;forumid=" + flow.ForumId + "&amp;bid=" + flow.ID + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">" + Out.USB(TrueStrLength.cutTrueLength(flow.Title, 20, "…")) + "</a> ");
                builder.Append(Out.Tab("</div>", "<br />"));
            }

            builder.Append(Out.Tab("<div class=\"title\">", ""));
            builder.Append("<a href=\"" + Utils.getUrl("/bbs/addThread.aspx?forumid=" + forumid + "") + "\">发帖</a> ");
            builder.Append("<a href=\"" + Utils.getUrl("/bbs/manwork.aspx?forumid=" + forumid + "") + "\">版务</a> ");
            builder.Append("<a href=\"" + Utils.getUrl("/bbs/sktype.aspx?forumid=" + forumid + "") + "\">精华</a> ");
            builder.Append("<a href=\"" + Utils.getUrl("/bbs/forumts.aspx?forumid=" + forumid + "") + "\">专题</a> ");
            builder.Append("<a href=\"" + Utils.getUrl("/search.aspx?act=forum&amp;forumid=" + forumid + "") + "\">搜索</a> ");
            if (new BCW.User.ForumInc().IsForumGSIDS(forumid) == true)
            {
                builder.Append("<a href=\"" + Utils.getUrl("/bbs/Gstoplist.aspx?forumid=" + forumid + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">高手</a>");
            }
            builder.Append(Out.Tab("</div>", ""));
            if (model.GroupId > 0)
            {
                builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
                builder.Append("<a href=\"" + Utils.getUrl("/bbs/group.aspx?act=info&amp;id=" + model.GroupId + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">主页</a> ");
                builder.Append("<a href=\"" + Utils.getUrl("/bbs/group.aspx?act=fund&amp;id=" + model.GroupId + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">基金</a> ");
                builder.Append("<a href=\"" + Utils.getUrl("/bbs/group.aspx?act=view&amp;id=" + model.GroupId + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">资料</a> ");
                builder.Append("<a href=\"" + Utils.getUrl("/bbs/group.aspx?act=groupid&amp;id=" + model.GroupId + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">成员列表</a> ");
                builder.Append(Out.Tab("</div>", ""));
            }
            //本版滚动
            flow = new BCW.BLL.Text().GetTextFlow(forumid);
            if (flow != null)
            {
                builder.Append(Out.Tab("<div>", "<br />"));
                builder.Append("<a href=\"" + Utils.getUrl("manwork.aspx?act=flow&amp;forumid=" + forumid + "&amp;bid=" + flow.ID + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">" + Out.USB(TrueStrLength.cutTrueLength(flow.Title, 20, "…")) + "</a> ");
                builder.Append(Out.Tab("</div>", ""));
            }
        }

        //查询条件
        //string strWhe = "=" + forumid + "";
        //是否显示下级版块帖子
        //if (model.ShowType == 1)
        //{
        //    if (!string.IsNullOrEmpty(model.DoNode))
        //    {
        //        strWhe = "in (" + forumid + "," + model.DoNode + ")";
        //    }
        //}
        //strWhere = "IsDel=0 and (ForumId " + strWhe + " OR IsTop=2)";

        //查询条件
        strWhere = "ForumId =" + forumid + " and IsDel=0 and IsTop=0";
        //排序条件
        strOrder = "ReTime Desc";//Istop Desc,
        // 开始读取列表
        IList <BCW.Model.Text> listText = new BCW.BLL.Text().GetTexts(pageIndex, pageSize, strWhere, strOrder, out recordCount);

        if (listText.Count > 0)
        {
            if (pageIndex != 1)
            {
                //算出总页数
                int pageTotal = BasePage.CalcPageCount(recordCount, pageSize, ref pageIndex);
                builder.Append(Out.Tab("<div class=\"title\">", ""));
                if (pageTotal > pageIndex)
                {
                    builder.Append("<a href=\"" + Utils.getUrl("/bbs/forum.aspx?forumid=" + forumid + "&amp;page=" + (pageIndex + 1) + "&amp;backurl=" + Utils.getPage(0) + "") + "\">下一页</a>|");
                }

                builder.Append("<a href=\"" + Utils.getUrl("/bbs/forum.aspx?forumid=" + forumid + "&amp;page=1&amp;backurl=" + Utils.getPage(0) + "") + "\">返回首页</a> ");
                builder.Append(Out.Tab("</div>", ""));
            }
            else
            {
                //全区置顶帖子
                int     j     = 1;
                DataSet dsTop = new BCW.BLL.Text().GetList("Top 3 ID,ForumId,Title,UsID,UsName,ReplyNum,ReadNum", "IsTop=2 and IsDel=0 ORDER BY NEWID()");
                if (dsTop != null && dsTop.Tables[0].Rows.Count > 0)
                {
                    for (int i = 0; i < dsTop.Tables[0].Rows.Count; i++)
                    {
                        if (j % 2 == 0)
                        {
                            builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
                        }
                        else
                        {
                            builder.Append(Out.Tab("<div>", "<br />"));
                        }

                        builder.AppendFormat("<i><b>[顶]</b></i><a href=\"" + Utils.getUrl("/bbs/topic.aspx?forumid={0}&amp;bid={1}&amp;backurl=" + Utils.PostPage(1) + "") + "\">{2}", dsTop.Tables[0].Rows[i]["ForumId"].ToString(), dsTop.Tables[0].Rows[i]["ID"].ToString(), Out.TitleUBB(dsTop.Tables[0].Rows[i]["Title"].ToString()));
                        builder.Append("</a><br />" + dsTop.Tables[0].Rows[i]["UsName"].ToString());
                        builder.AppendFormat("/阅{0}/回<a href=\"" + Utils.getUrl("/bbs/reply.aspx?forumid={1}&amp;bid={2}&amp;backurl=" + Utils.PostPage(1) + "") + "\">{3}</a>", dsTop.Tables[0].Rows[i]["ReadNum"].ToString(), dsTop.Tables[0].Rows[i]["ForumId"].ToString(), dsTop.Tables[0].Rows[i]["ID"].ToString(), dsTop.Tables[0].Rows[i]["ReplyNum"].ToString());
                        j++;
                        builder.Append(Out.Tab("</div>", ""));
                    }
                }

                //本坛置顶帖子
                j     = 1;
                dsTop = new BCW.BLL.Text().GetList("Top 5 ID,ForumId,Title,UsID,UsName,ReplyNum,ReadNum", "ForumId=" + forumid + " and IsTop=1 and IsDel=0 ORDER BY ReTime Desc");
                if (dsTop != null && dsTop.Tables[0].Rows.Count > 0)
                {
                    for (int i = 0; i < dsTop.Tables[0].Rows.Count; i++)
                    {
                        if (j % 2 == 0)
                        {
                            builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
                        }
                        else
                        {
                            builder.Append(Out.Tab("<div>", "<br />"));
                        }

                        builder.AppendFormat("<b>[顶]</b><a href=\"" + Utils.getUrl("/bbs/topic.aspx?forumid={0}&amp;bid={1}&amp;backurl=" + Utils.PostPage(1) + "") + "\">{2}", dsTop.Tables[0].Rows[i]["ForumId"].ToString(), dsTop.Tables[0].Rows[i]["ID"].ToString(), Out.TitleUBB(dsTop.Tables[0].Rows[i]["Title"].ToString()));
                        builder.Append("</a><br />" + dsTop.Tables[0].Rows[i]["UsName"].ToString());
                        builder.AppendFormat("/阅{0}/回<a href=\"" + Utils.getUrl("/bbs/reply.aspx?forumid={1}&amp;bid={2}&amp;backurl=" + Utils.PostPage(1) + "") + "\">{3}</a>", dsTop.Tables[0].Rows[i]["ReadNum"].ToString(), dsTop.Tables[0].Rows[i]["ForumId"].ToString(), dsTop.Tables[0].Rows[i]["ID"].ToString(), dsTop.Tables[0].Rows[i]["ReplyNum"].ToString());
                        j++;
                        builder.Append(Out.Tab("</div>", ""));
                    }
                }
            }


            int k = 1;
            foreach (BCW.Model.Text n in listText)
            {
                if (k % 2 == 0)
                {
                    builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
                }
                else
                {
                    builder.Append(Out.Tab("<div>", "<br />"));
                }

                builder.Append(BCW.User.AppCase.CaseIsTop(n.IsTop));
                builder.Append(BCW.User.AppCase.CaseIsGood(n.IsGood));
                builder.Append(BCW.User.AppCase.CaseIsRecom(n.IsRecom));
                builder.Append(BCW.User.AppCase.CaseIsLock(n.IsLock));
                builder.Append(BCW.User.AppCase.CaseIsOver(n.IsOver));
                // builder.Append(BCW.User.AppCase.CaseText(n.Types)); //派币
                if (n.Types == 3)
                {
                    builder.Append("<img src=\"/files/face/money.gif\" width=\"20\" height=\"25\"  alt=\"load\"/>"); //派币
                }
                else
                {
                    builder.Append(BCW.User.AppCase.CaseText(n.Types)); //派币/附件
                }
                string TextTab = string.Empty;
                if (n.IsTop != 2)
                {
                    TextTab = BCW.User.AppCase.CaseLabel(n.LabelId, model.Label);
                }

                builder.AppendFormat("<a href=\"" + Utils.getUrl("/bbs/topic.aspx?forumid={0}&amp;bid={1}&amp;backurl=" + Utils.PostPage(1) + "") + "\">{2}.{3}{4}", n.ForumId, n.ID, (pageIndex - 1) * pageSize + k, TextTab, n.Title);
                if (n.Types == 8)
                {
                    builder.Append("[" + n.Gaddnum + "中" + n.Gwinnum + "]");
                }
                builder.Append("</a><br />" + n.UsName);
                builder.AppendFormat("/阅{0}/回<a href=\"" + Utils.getUrl("/bbs/reply.aspx?forumid={1}&amp;bid={2}&amp;backurl=" + Utils.PostPage(1) + "") + "\">{3}</a>", n.ReadNum, n.ForumId, n.ID, n.ReplyNum);

                k++;
                builder.Append(Out.Tab("</div>", ""));
            }

            // 分页
            builder.Append(BasePage.ForumMultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0));
        }
        else
        {
            builder.Append(Out.Tab("", "<br />"));
            builder.Append(Out.Div("div", "没有相关记录.."));
        }

        builder.Append(Out.Tab("<div class=\"text\">", "<br />"));
        builder.Append("<a href=\"" + Utils.getUrl("/bbs/addThread.aspx?forumid=" + forumid + "") + "\">发帖</a>|");
        builder.Append("<a href=\"" + Utils.getUrl("/bbs/sktype.aspx?act=text&amp;forumid=" + forumid + "") + "\">我帖</a>|");
        builder.Append("<a href=\"" + Utils.getUrl("/bbs/sktype.aspx?forumid=" + forumid + "") + "\">模式</a>|");
        builder.Append("<a href=\"" + Utils.getUrl("/bbs/forumstat.aspx?act=top&amp;forumid=" + forumid + "") + "\">排行</a>");
        builder.Append(Out.Tab("</div>", ""));

        if (!string.IsNullOrEmpty(model.Notes))
        {
            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append(model.Notes);
            builder.Append(Out.Tab("</div>", ""));
        }
        //更新版块在线人数
        if (pageIndex == 1)
        {
            new BCW.BLL.User().UpdateEndForumID(meid, forumid);
            int ForumLine = new BCW.BLL.User().GetForumNum(forumid);
            if (ForumLine != model.Line)
            {
                new BCW.BLL.Forum().UpdateLine(forumid, ForumLine);
            }
        }
        builder.Append(Out.Tab("<div>", ""));
        if (ub.GetSub("BbsIsOnline", "/Controls/bbs.xml") == "0")
        {
            builder.Append(Out.Tab("", "<br />"));
            builder.Append("<a href=\"" + Utils.getUrl("/bbs/online.aspx?forumid=" + forumid + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">在线" + model.Line + "人.最高" + model.TopLine + "人</a>");
        }
        //下级版块
        builder.Append(BCW.User.Users.ShowForumNode(model.IsNode, forumid));
        builder.Append(Out.Tab("</div>", ""));

        builder.Append(Out.Tab("<div class=\"title\">", Out.Hr()));
        builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-");
        if (model.GroupId > 0)
        {
            builder.Append("<a href=\"" + Utils.getUrl("/bbs/group.aspx?act=info&amp;id=" + model.GroupId + "") + "\">" + ub.GetSub("GroupName", "/Controls/group.xml") + "主页</a>");
        }
        else
        {
            builder.Append("<a href=\"" + Utils.getUrl("/bbs/forum.aspx?forumid=" + model.NodeId + "") + "\">上级论坛</a>");
        }

        builder.Append(Out.Tab("</div>", ""));

        if (!string.IsNullOrEmpty(model.FootUbb))
        {
            builder.Append(Out.Tab("<div>", "<br />"));
            builder.Append(BCW.User.AdminCall.AdminUBB(Out.SysUBB(model.FootUbb)));
            builder.Append(Out.Tab("</div>", ""));
        }
    }