<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Book_List.aspx.cs" Inherits="KeLin.WebSite.download.Book_List" %><%@ Import namespace="KeLin.ClassManager.Tool" %><% 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 != "" && action != "search") { strhtml.Append(classVo.introduce + "
"); } //显示广告 if (adVo.secondShowTop != "") { strhtml.Append(adVo.secondShowTop+"
"); } //显示机型 if (this.showMySelectUA != "1") { strhtml.Append("机型:" + mobileVo.nameCN + " " + mobileVo.Mode + ""); strhtml.Append("更改 "); strhtml.Append(mobileVo.remark); strhtml.Append("
"); } if (this.showAdapter != "1") { strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append("确定"); strhtml.Append("
"); } //显示列表 strhtml.Append(linkTOP); string book_click = ""; for (int i = 0; (listVo != null && i < listVo.Count); i++) { index = index + kk; if (this.action == "hot") { book_click = "("+listVo[i].book_click.ToString()+")"; } strhtml.Append(index + "."); if (classVo.articlenum == 1 || (this.action != "class" && this.action != "")) { strhtml.Append("["+listVo[i].classname+"]"); } strhtml.Append( listVo[i].book_title + book_click+"
"); if (listVo[i].book_imgTrue != "" && showimg!="1") { if (listVo[i].book_imgTrue.StartsWith("/") || listVo[i].book_imgTrue.ToLower().StartsWith("http")) { strhtml.Append("\"load...\"/
"); } else { strhtml.Append("\"load...\"/
"); } } } if (listVo == null) { if (sp == "0") { strhtml.Append("暂无任何记录!
"); } else { strhtml.Append("暂无适合此机型的记录!
"); } } //显示导航分页 strhtml.Append(linkURL); //显示广告 if (adVo.secondShowDown != "") { strhtml.Append(adVo.secondShowDown+"
"); } //导航按钮 if (action == "search") { 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代码 if (classVo.siteimg != "UploadFiles/no.gif" && classVo.siteimg != "NetImages/no.gif") { strhtml.Append("
\"LOGO\"/
"); } if (classVo.introduce != "" && action != "search") { strhtml.Append(classVo.introduce); } //显示广告 if (adVo.secondShowTop != "") { strhtml.Append(adVo.secondShowTop); } //显示机型 strhtml.Append(""); if (this.showMySelectUA != "1") { strhtml.Append("
"); strhtml.Append("机型:" + mobileVo.nameCN + " " + mobileVo.Mode + ""); strhtml.Append("更改 "); strhtml.Append(mobileVo.remark); strhtml.Append("
"); } if (this.showAdapter != "1") { strhtml.Append("
"); strhtml.Append("
"); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append("
"); strhtml.Append("
"); } //显示列表 string lpagetemp = ""; if (this.CurrentPage > 1) { lpagetemp = "&lpage=" + CurrentPage; } // strhtml.Append(linkTOP); strhtml.Append(""); if (int.Parse(buju) > 5) { System.Collections.Generic.List pList = new System.Collections.Generic.List(); for (int i = 0; (listVo != null && i < listVo.Count); i++) { KeLin.ClassManager.Model.Page_Layout_Model vo = new KeLin.ClassManager.Model.Page_Layout_Model(); vo.title = listVo[i].book_title; vo.content = listVo[i].book_content; vo.book_re = listVo[i].book_re.ToString(); vo.book_click = listVo[i].book_click.ToString(); if (listVo[i].book_imgTrue.StartsWith("/") || listVo[i].book_imgTrue.ToLower().StartsWith("http")) { vo.imageURL = listVo[i].book_imgTrue; } else { vo.imageURL = this.http_start + "download/" + listVo[i].book_imgTrue; } if (WapTool.ISAPI_Rewrite3_Open == "1") { vo.linkURL = http_start + "download-" + listVo[i].id + ".html" + "?sp=" + this.sp + lpagetemp; } else { vo.linkURL = http_start + "download/view.aspx?id=" + listVo[i].id + lpagetemp + "&sp=" + this.sp + ""; } vo.time = listVo[i].book_date.ToString(); vo.id = listVo[i].id; vo.function = "download"; vo.classid = listVo[i].book_classid.ToString(); vo.siteid = this.siteid; vo.bookrecommend = listVo[i].book_recommend.ToString(); vo.bookscore = listVo[i].book_score.ToString(); vo.bookext = listVo[i].book_ext; vo.booklable = listVo[i].book_lable; vo.booksize = listVo[i].book_size; vo.downlink = this.http_start + "download/download.aspx?sp=" + this.sp + "&siteid=" + this.siteid + "&classid=" + this.classid + "&book_id=" + listVo[i].id + "&id=" + listVo[i].attachementID + "&RndPath=" + siteVo.SaveUpFilesPath + "&n=" + HttpUtility.UrlEncode(listVo[i].book_title) + "." + listVo[i].book_ext.Replace(".", ""); pList.Add(vo); } if (buju == "100") { strhtml.Append(Page_Layout.GetListLayout(pList, buju + "*" + WapTool.GetWMLContent(WapTool.getArryString(classVo.smallimg, '|', 30), this.siteid), wmlVo, "picture")); } else { strhtml.Append(Page_Layout.GetListLayout(pList, buju + "*" + buju_width + "*" + buju_height, wmlVo, "download")); } } else { string book_click = ""; for (int i = 0; (listVo != null && i < listVo.Count); i++) { index = index + kk; if (this.action == "hot") { book_click = "(" + listVo[i].book_click.ToString() + ")"; } if (i % 2 == 0) { strhtml.Append("
"); } else { strhtml.Append("
"); } if (showAndroid == "1") { if (WapTool.ISAPI_Rewrite3_Open == "1") { strhtml.Append(index + "."); } else { strhtml.Append(index + "."); } if (classVo.articlenum == 1 || (this.action != "class" && this.action != "")) { strhtml.Append("[" + listVo[i].classname + "]"); } strhtml.Append(listVo[i].book_title + book_click + ""); if (listVo[i].book_imgTrue != "" && showimg != "1") { if (listVo[i].book_imgTrue.StartsWith("/") || listVo[i].book_imgTrue.ToLower().StartsWith("http")) { strhtml.Append("
\"load...\"/"); } else { strhtml.Append("
\"load...\"/"); } } } else { string lineLink = ""; if (WapTool.ISAPI_Rewrite3_Open == "1") { lineLink = ""; } else { lineLink = ""; } //显示安桌下载样式,用表格格开 strhtml.Append(""); strhtml.Append("
"); if (listVo[i].book_imgTrue != "" && showimg != "1") { strhtml.Append(lineLink); if (listVo[i].book_imgTrue.StartsWith("/") || listVo[i].book_imgTrue.ToLower().StartsWith("http")) { strhtml.Append("\"ICO\""); } else { strhtml.Append("\"ICO\""); } strhtml.Append(""); } string istop = ""; if (listVo[i].book_top == 1) { istop = "[顶]"; } if (listVo[i].book_good == 1) { istop = istop + "[精]"; } if (listVo[i].book_recommend == 1) { istop = istop + "[荐]"; } strhtml.Append("" + lineLink + istop + listVo[i].book_title + ""); strhtml.Append("下 载
" + WapTool.getStart(listVo[i].book_re, listVo[i].book_score, "★", "☆", "1")); strhtml.Append("
" + listVo[i].classname + "
" + string.Format("{0:yyy-MM-dd}", listVo[i].book_date) + " | " + listVo[i].book_size + "
"); } strhtml.Append("
"); } } if (listVo==null) { strhtml.Append("
"); if (sp == "0") { strhtml.Append("暂无任何记录!"); } else { strhtml.Append("暂无适合此机型的记录!"); } strhtml.Append("
"); } strhtml.Append(""); //显示导航分页 strhtml.Append(linkURL); //显示电脑版 if (isWebHtml != "") { string strhtml_list = strhtml.ToString(); int s = strhtml_list.IndexOf(""); if (s >= 0) { strhtml_list = strhtml_list.Substring(s, strhtml_list.Length - s); } Response.Clear(); Response.Write(WapTool.ToWML(isWebHtml.Replace("[view]", strhtml_list), wmlVo)); Response.End(); } //显示广告 if (adVo.secondShowDown != "") { strhtml.Append(adVo.secondShowDown ); } //导航按钮 if (action == "search") { 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("
"); } if (classVo.sitedowntip != "") { strhtml.Append(classVo.sitedowntip); } //输出 Response.Write(WapTool.ToWML(strhtml.ToString(), wmlVo)); } Response.Write(ERROR); //显示底部 Response.Write(WapTool.showDown(wmlVo)); %>