<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Book_List.aspx.cs" Inherits="KeLin.WebSite.bbs.Book_List" %><%@ Import namespace="KeLin.ClassManager.Tool" %><% //论坛专题名称 if(this.stype!=""){ classVo.classname = this.stypename + "(" + classVo.classname+")"; } Response.Write(WapTool.showTop(classVo.classname, wmlVo));//显示头 if (ver == "1") { strhtml.Append("

"); if (classVo.siteimg != "UploadFiles/no.gif" && classVo.siteimg != "NetImages/no.gif") { strhtml.Append("\"LOGO\"/
"); } if (classVo.introduce != "") { strhtml.Append(classVo.introduce + "
"); } //显示查询某人的所有帖子 if (this.type == "pub") { if (this.CheckManagerLvl("04", "") == true) { strhtml.Append("清空(" + this.key + ")的所有帖子
"); } } //显示广告 if (adVo.secondShowTop != "") { strhtml.Append(adVo.secondShowTop+"
"); } //显示固定按钮 if ((this.action == "" || this.action == "class") && this.stype == "") { string addtypes = "bbs/book_view_add.aspx?"; string ranktypes = "bbs/book_list_rank.aspx?"; if (WapTool.getArryString(classVo.smallimg, '|', 39) != "") { addtypes = "bbs/marksix/doit.aspx?mymarksix=" + WapTool.getArryString(classVo.smallimg, '|', 39) + "&"; ranktypes = "bbs/marksix/rank.aspx?"; } strhtml.Append("发帖.版务.精华.专题."); strhtml.Append(" 排行
"); } strhtml.Append("------------
"); //显示导航分页 strhtml.Append(linkTOP); //显示列表 string isBR = ""; if (classVo.articlenum == 1) { isBR = "
"; } //置顶列表 for (int i = 0; (listVoTop != null && i < listVoTop.Count); i++) { if (listVoTop[i].book_top == 1) { strhtml.Append("[顶]"); } else if (listVoTop[i].book_top == 2) { strhtml.Append("[总顶]"); } if (listVoTop[i].topic != 0 && this.stype == "") { strhtml.Append("[专]"); } if (listVoTop[i].book_click >= long.Parse(this.hots)) { strhtml.Append("[火]"); } if (listVoTop[i].book_good == 1) { strhtml.Append("[精]"); } if (listVoTop[i].islock == 1) { strhtml.Append("[锁]"); } if (listVoTop[i].islock == 2) { strhtml.Append("[结]"); } if (listVoTop[i].sendMoney > 0) { strhtml.Append("[赏]"); } if (listVoTop[i].isVote > 0) { strhtml.Append("[投]"); } if (listVoTop[i].isdown == 1) { strhtml.Append("[附]"); } if (listVoTop[i].isdown == 2) { strhtml.Append("[沉]"); } if (listVoTop[i].freeMoney > 0) { strhtml.Append("[礼]"); } if (listVoTop[i].MarkSixWin ==1) { strhtml.Append("[中]"); } strhtml.Append("" + listVoTop[i].book_title + "" + isBR + "[" + ShowNickName_color(long.Parse(listVoTop[i].book_pub), listVoTop[i].book_author) + "/" + listVoTop[i].book_re + "回/" + listVoTop[i].book_click + "阅]
"); } //所有列表 for (int i = 0; (listVo != null && i < listVo.Count); i++) { index = index + kk; strhtml.Append(index+"."); //if (action != "" && action != "class") //{ // strhtml.Append(listVo[i].classname); //} //if (listVo[i].book_top == 1 && this.CurrentPage==1) //{ // strhtml.Append("[顶]"); //} if (listVo[i].topic != 0 && this.stype == "") { strhtml.Append("[专]"); } if (listVo[i].book_click >= long.Parse(this.hots)) { strhtml.Append("[火]"); } if (listVo[i].book_good == 1) { strhtml.Append("[精]"); } if (listVo[i].islock == 1) { strhtml.Append("[锁]"); } if (listVo[i].islock == 2) { strhtml.Append("[结]"); } if (listVo[i].sendMoney >0) { strhtml.Append("[赏]"); } if (listVo[i].isVote > 0) { strhtml.Append("[投]"); } if (listVo[i].isdown == 1) { strhtml.Append("[附]"); } if (listVo[i].isdown == 2) { strhtml.Append("[沉]"); } if (listVo[i].freeMoney > 0) { strhtml.Append("[礼]"); } if (listVo[i].MarkSixWin ==1 ) { strhtml.Append("[中]"); } strhtml.Append("" + this.CharReplaceToChar(this.siteid, listVo[i].book_title) + "" + isBR + "[" + ShowNickName_color(long.Parse(listVo[i].book_pub), listVo[i].book_author) + "/" + listVo[i].book_re + "回/" + listVo[i].book_click + "阅]
"); } if (listVo == null) { strhtml.Append("暂无记录!
"); } strhtml.Append("------------
"); //显示导航分页 strhtml.Append(linkURL); //显示固定按钮 if ((this.action == "" || this.action == "class") && this.stype == "") { strhtml.Append("搜索.今日.日志.在线.监狱
"); strhtml.Append("------------
"); } //显示广告 if (adVo.secondShowDown != "") { strhtml.Append(adVo.secondShowDown+"
"); } //导航按钮 if (action == "search") { strhtml.Append("返回搜索
"); } else if (action == "good" && this.classid!="0") { strhtml.Append("全部精华
"); } if (downLink != "") { strhtml.Append(downLink); } else { strhtml.Append("返回上级-"); strhtml.Append("返回首页"); } strhtml.Append(WapTool.GetVS(wmlVo)); if (classVo.sitedowntip != "") { strhtml.Append("
" + classVo.sitedowntip); } strhtml.Append("

"); //输出 Response.Write(WapTool.ToWML(strhtml.ToString(), wmlVo)); } else //2.0界面 { string isWebHtml = this.ShowWEB_list(this.classid); //看是存在html代码 StringBuilder strhtml_list = new StringBuilder(); //[view]UBB对应代码 if (classVo.siteimg != "UploadFiles/no.gif" && classVo.siteimg != "NetImages/no.gif") { strhtml.Append("
\"LOGO\"/
"); } if (classVo.introduce != "") { strhtml.Append(classVo.introduce ); } //显示查询某人的所有帖子 if (this.type == "pub") { if (this.IsUserManager(this.userid, userVo.managerlvl, "")) { strhtml.Append("
清空(" + this.key + ")的所有帖子
"); } } //显示广告 if (adVo.secondShowTop != "") { strhtml.Append(adVo.secondShowTop); } //显示固定按钮 if ((this.action == "" || this.action == "class") && this.stype == "") { string addtypes = "bbs/book_view_add.aspx?"; string ranktypes = "bbs/book_list_rank.aspx?"; if (WapTool.getArryString(classVo.smallimg, '|', 39) != "") { addtypes = "bbs/marksix/doit.aspx?mymarksix=" + WapTool.getArryString(classVo.smallimg, '|', 39) + "&"; ranktypes = "bbs/marksix/rank.aspx?"; } strhtml_list.Append("
发帖 版务 精华 专题 排行"); strhtml_list.Append("
"); } //显示导航分页 //strhtml_list.Append(linkTOP); //显示列表 string isBR = "
"; //if (classVo.articlenum == 1) //{ // isBR = "
"; //} string lpagetemp = ""; if (this.CurrentPage > 1) { if (WapTool.ISAPI_Rewrite3_Open == "1") { lpagetemp = "?lpage=" + CurrentPage; } else { lpagetemp = "&lpage=" + CurrentPage; } } strhtml_list.Append(""); //置顶列表 for (int i = 0; (listVoTop != null && i < listVoTop.Count); i++) { if (i % 2 == 0) { strhtml_list.Append("
"); } else { strhtml_list.Append("
"); } if (listVoTop[i].book_top == 1) { strhtml_list.Append("置顶"); } else if (listVoTop[i].book_top == 2) { strhtml_list.Append("全顶"); } if (listVoTop[i].book_click >= long.Parse(this.hots)) { strhtml_list.Append("热门"); } if (listVoTop[i].topic != 0 && this.stype == "") { strhtml_list.Append("专题"); } if (listVoTop[i].book_good == 1) { strhtml_list.Append("精华"); } if (listVoTop[i].islock == 1) { strhtml_list.Append("锁定"); } if (listVoTop[i].islock == 2) { strhtml_list.Append("结束"); } if (listVoTop[i].sendMoney > 0) { strhtml_list.Append("悬赏"); } if (listVoTop[i].isVote > 0) { strhtml_list.Append("投票"); } if (listVoTop[i].isdown == 1) { strhtml_list.Append("附件"); } if (listVoTop[i].isdown == 2) { strhtml_list.Append("沉帖"); } if (listVoTop[i].freeMoney > 0) { strhtml_list.Append("送礼"); } if (listVoTop[i].MarkSixWin ==1) { strhtml_list.Append("中彩"); } if (titlecolor.Trim() != "") { listVoTop[i].book_title = "" + this.CharReplaceToChar(this.siteid, listVoTop[i].book_title) + ""; } if (WapTool.ISAPI_Rewrite3_Open == "1") { strhtml_list.Append("" + this.CharReplaceToChar(this.siteid, listVoTop[i].book_title) + "" + WapTool.ShowTime(listVoTop[i].book_date) + "
" + ShowNickName_color(long.Parse(listVoTop[i].book_pub), listVoTop[i].book_author) + " " + listVoTop[i].book_re + "" + listVoTop[i].book_click + "
"); } else { strhtml_list.Append("" + this.CharReplaceToChar(this.siteid, listVoTop[i].book_title) + "" + WapTool.ShowTime(listVoTop[i].book_date) + "
" + ShowNickName_color(long.Parse(listVoTop[i].book_pub), listVoTop[i].book_author) + " " + listVoTop[i].book_re + "" + listVoTop[i].book_click + "
"); } } //所有列表 for (int i = 0; (listVo != null && i < listVo.Count); i++) { if (i % 2 == 0) { strhtml_list.Append("
"); } else { strhtml_list.Append("
"); } index = index + kk; if (listVo[i].book_click >= long.Parse(this.hots)) { strhtml_list.Append("热门"); } if (listVo[i].topic != 0 && this.stype == "") { strhtml_list.Append("专题"); } if (listVo[i].book_good == 1) { strhtml_list.Append("精华"); } if (listVo[i].islock == 1) { strhtml_list.Append("锁定"); } if (listVo[i].islock == 2) { strhtml_list.Append("结束"); } if (listVo[i].sendMoney > 0) { strhtml_list.Append("悬赏"); } if (listVo[i].isVote > 0) { strhtml_list.Append("投票"); } if (listVo[i].isdown ==1) { strhtml_list.Append("附件"); } if (listVo[i].isdown == 2) { strhtml_list.Append("pan class=\"chentie\">沉帖"); } if (listVo[i].freeMoney > 0) { strhtml_list.Append("送礼"); } if (listVo[i].MarkSixWin ==1) { strhtml_list.Append("中彩"); } if (WapTool.ISAPI_Rewrite3_Open == "1") { if (lpagetemp == "") { stypelink = stypelink.Replace("&", "?"); } strhtml_list.Append("" + this.CharReplaceToChar(this.siteid, listVo[i].book_title) + "" + WapTool.ShowTime(listVo[i].book_date) + "
" + ShowNickName_color(long.Parse(listVo[i].book_pub), listVo[i].book_author) + "" + listVo[i].book_re + "" + listVo[i].book_click + "
"); } else { strhtml_list.Append("" + this.CharReplaceToChar(this.siteid, listVo[i].book_title) + "" + WapTool.ShowTime(listVo[i].book_date) + "
" + ShowNickName_color(long.Parse(listVo[i].book_pub), listVo[i].book_author) + "" + listVo[i].book_re + "" + listVo[i].book_click + "
"); } } if (listVo == null) { strhtml_list.Append("
暂无记录!
"); } strhtml_list.Append(""); //显示导航分页 strhtml_list.Append(linkURL); //显示固定按钮 if ((this.action == "" || this.action == "class") && this.stype == "") { strhtml_list.Append("
搜索 今日 日志 在线 监狱
"); } if (isWebHtml == "") { strhtml.Append(strhtml_list); } else //显示电脑html { Response.Clear(); Response.Write(WapTool.ToWML(isWebHtml.Replace("[view]", strhtml_list.ToString()), wmlVo)); Response.End(); } //显示广告 if (adVo.secondShowDown != "") { strhtml.Append(adVo.secondShowDown ); } //导航按钮 if (action == "search") { strhtml.Append("
"); strhtml.Append("返回搜索 "); strhtml.Append("
"); } else if (action == "good" && this.classid != "0") { strhtml.Append("
"); strhtml.Append("全部精华 "); strhtml.Append("
"); } if (downLink != "") { strhtml.Append(downLink); } else { strhtml.Append("
"); if (WapTool.ISAPI_Rewrite3_Open == "1") { strhtml.Append("返回上级 "); strhtml.Append("返回首页"); } else { strhtml.Append("返回上级 "); strhtml.Append("返回首页"); } strhtml.Append("
"); } strhtml.Append(WapTool.GetVS(wmlVo)); strhtml.Append(classVo.sitedowntip); //输出 Response.Write(WapTool.ToWML(strhtml.ToString(), wmlVo)); } Response.Write(ERROR); //显示底部 Response.Write(WapTool.showDown(wmlVo)); %>