<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Book_View.aspx.cs" Inherits="KeLin.WebSite.download.Book_View" %><%@ Import namespace="KeLin.ClassManager.Tool" %><% Response.Write(WapTool.showTop(bookVo.book_title, wmlVo));//显示头 if (ver == "1") { strhtml.Append("

"); //显示广告 if (adVo.threeShowTop != "") { strhtml.Append(adVo.threeShowTop + "
"); } strhtml.Append("" + bookVo.book_title + "
"); if (this.showMySelectUA != "1") { strhtml.Append("机型:" + mobileVo.nameCN + " " + mobileVo.Mode + ""); strhtml.Append("更改 "); strhtml.Append(mobileVo.remark); strhtml.Append("
"); } string strImg = ""; //图片链接 StringBuilder strDown = new StringBuilder(); //文件下载 for (int i = 0; (filelist != null && i < filelist.Count); i++) { if (".gif|.jpg|.jpeg|.png|.bmp|".IndexOf(filelist[i].book_ext.ToLower()) >= 0) { if (filelist[i].book_file.StartsWith("/") || filelist[i].book_file.ToLower().StartsWith("http")) { strImg = strImg + ("\"load...\"/
"); } else { strImg = strImg + ("\"load...\"/
"); } if (filelist[i].book_content != "") { strImg = strImg + (filelist[i].book_content + "
"); } ImgList.Add(strImg); strImg = ""; } else { strDown.Append(filelist[i].book_title); strDown.Append("(" + filelist[i].book_ext.Replace(".", "") + "/" + filelist[i].book_size + ")
"); strDown.Append("点击下载(" + filelist[i].book_click + "次)
"); strDown.Append(filelist[i].book_content + "
----------
"); } } if (ImgList != null && ImgList.Count > 0) { //对ImgList进行分页 if (pview == 0) { for (int i = 0; i < ImgList.Count; i++) { strhtml.Append(ImgList[i]); } } else if (ImgList.Count > 1) { if (pview > ImgList.Count || pview < 1) pview = 1; strhtml.Append(ImgList[pview - 1]); //生成分页图链接 strhtml.Append("截图:"); for (int i = 1; i <= ImgList.Count; i++) { if (pview == i) { strhtml.Append(i + " "); } else { strhtml.Append("" + i + " "); } } strhtml.Append("
"); } else if (ImgList.Count == 1) { strhtml.Append(ImgList[0]); } } if (showMakerID == "1") { if (bookVo.MakerID == 0) { strhtml.Append("[上传会员]:" + siteVo.nickname + "(" + this.siteid + ")
"); } else { KeLin.ClassManager.Model.user_Model touserVo = new KeLin.ClassManager.Model.user_Model(); touserVo = WapTool.getUserInfo(bookVo.MakerID.ToString(), this.siteid); strhtml.Append("[上传会员] " + touserVo.nickname + "(" + bookVo.MakerID + ")
"); } } strhtml.Append("[更新日期] " + string.Format("{0:yyyy-MM-dd}", bookVo.book_date) + "
"); if (bookVo.updateInfo != "") { strhtml.Append("[更新说明] " + bookVo.updateInfo + "
"); } if (bookVo.softMoney != "") { strhtml.Append("[资费说明] " + bookVo.softMoney + "
"); } if (bookVo.softSafe != "") { strhtml.Append("[安全说明] " + bookVo.softSafe + "
"); } if (bookVo.softVer != "") { strhtml.Append("[" + par25 + "版本] " + bookVo.softVer + "
"); } if (bookVo.softLtd != "") { strhtml.Append("[" + par25 + "厂商] " + bookVo.softLtd + "
"); } if (bookVo.softLang != "") { strhtml.Append("[界面语言] " + bookVo.softLang + "
"); } strhtml.Append("[浏览人气] " + bookVo.book_click + "
"); if (bookVo.money > 0) { strhtml.Append("[下载扣币] " + bookVo.money + "
"); } strhtml.Append("[所属分类] " + classVo.classname + "
"); strhtml.Append("[客户评分] " + WapTool.getStart(bookVo.book_re, bookVo.book_score, "★", "☆", "1") + "
"); if (bookVo.book_lable != "") { strhtml.Append("[标签搜索] "); string[] arrylable = bookVo.book_lable.Split(' '); for (int i = 0; i < arrylable.Length; i++) { if (arrylable[i].Trim() != "") { strhtml.Append("" + arrylable[i] + " "); } } strhtml.Append("
"); } if (content != "") { strhtml.Append("[" + par21 + "] "); //if (view != "all" && this.content.Length > 100) //{ // strhtml.Append(content.Substring(0, 100) + "..."); // strhtml.Append("详细"); //} // else //{ strhtml.Append(content); // } //显示内容列表 strhtml.Append("
----------
"); } strhtml.Append(strDown); if (filelist == null || filelist.Count < 1) { if (this.myua != "" && this.myua != "0") { strhtml.Append("没有找到最适合您的机型" + mobileVo.nameCN + " " + mobileVo.Mode + " 的下载!
"); } } if (dlist != null && filelist != null) { if (dlist.Count != filelist.Count) { strhtml.Append("您的机型可能支持以下文件!
"); } } strhtml.Append("顶一下!" + bookVo.ding + "|评论" + bookVo.book_re + "|报错
"); if (showShare != "1") { strhtml.Append("分享|收藏|"); strhtml.Append("上传|"); strhtml.Append("设置
"); } strhtml.Append("----------
"); //显示评论 if ("1".Equals(showRe)) { //显示最新回复 strhtml.Append(this.GetLang("评分|评分|评分 ") + "*:"); strhtml.Append("
"); strhtml.Append("评语*:
"); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append("发表评论
"); for (int i = 0; (relistVo != null && i < relistVo.Count); i++) { strhtml.Append("[" + (bookVo.book_re - k) + "楼]" + relistVo[i].nickname + ":"); if (relistVo[i].content.Length > 10) { strhtml.Append(relistVo[i].content.Substring(0, 9) + "...(" + string.Format("{0:MM-dd HH:mm}", relistVo[i].redate) + ")
"); } else { strhtml.Append(relistVo[i].content + "(" + string.Format("{0:MM-dd HH:mm}", relistVo[i].redate) + ")
"); } k = k + 1; } if (relistVo == null) { strhtml.Append("暂无评论!
"); } else { strhtml.Append("更多评论(" + bookVo.book_re + ")
"); } } strhtml.Append("----------
"); //显示上一页下一页,可关闭加速性能,web.config配置 strhtml.Append(preNextTitle); //显示广告 if (adVo.threeShowDown != "") { strhtml.Append(adVo.threeShowDown + "
"); } if (downLink != "") { strhtml.Append(downLink); } else { strhtml.Append("返回上级-"); strhtml.Append("返回首页"); } strhtml.Append(WapTool.GetVS(wmlVo)); //输出错误 strhtml.Append(ERROR); strhtml.Append("

"); //输出 Response.Write(WapTool.ToWML(strhtml.ToString(), wmlVo)); }else{ //2.0 //显示广告 if (adVo.threeShowTop != "") { strhtml.Append(adVo.threeShowTop + ""); } strhtml.Append(""); if (this.showMySelectUA != "1") { strhtml.Append("
"); strhtml.Append("机型:" + mobileVo.nameCN + " " + mobileVo.Mode + ""); strhtml.Append("更改 "); strhtml.Append(mobileVo.remark); strhtml.Append("
"); } string strImg = ""; //图片链接 StringBuilder strDown = new StringBuilder(); //文件下载 for (int i = 0; (filelist != null && i < filelist.Count); i++) { if (".gif|.jpg|.jpeg|.png|.bmp|".IndexOf(filelist[i].book_ext.ToLower()) >= 0) { if (filelist[i].book_file.StartsWith("/") || filelist[i].book_file.ToLower().StartsWith("http")) { strImg = strImg+("\"load...\"/ "); if (filelist[i].book_content != "") { strImg = strImg + "
"; } } else { strImg = strImg + ("\"load...\"/ "); if (filelist[i].book_content != "") { strImg = strImg + "
"; } } if (filelist[i].book_content != "") { strImg = strImg+(filelist[i].book_content + "
"); } ImgList.Add(strImg); strImg = ""; } else { strDown.Append(filelist[i].book_title); strDown.Append("(" + filelist[i].book_ext.Replace(".", "") + "/" + filelist[i].book_size + ")
"); strDown.Append("
点击下载(" + filelist[i].book_click + "次)
"); if (filelist[i].book_content != "") { strDown.Append(filelist[i].book_content + "
"); } } } if (ImgList != null && ImgList.Count > 0) { strhtml.Append("
" + par19 + "
"); strhtml.Append("
"); //对ImgList进行分页 if (pview == 0) { for (int i = 0; i < ImgList.Count; i++) { strhtml.Append(ImgList[i]); } } else if (ImgList.Count > 1) { if (pview > ImgList.Count || pview < 1) pview = 1; strhtml.Append(ImgList[pview - 1]); //生成分页图链接 strhtml.Append("
所有截图:"); for (int i = 1; i <= ImgList.Count; i++) { if (pview == i) { strhtml.Append(i + " "); } else { strhtml.Append("" + i + " "); } } strhtml.Append("
"); } else if (ImgList.Count == 1) { strhtml.Append(ImgList[0]); } strhtml.Append("
"); } strhtml.Append("
" + par20 + "
"); strhtml.Append("
"); strhtml.Append("[" + par25 + "名称]" + bookVo.book_title + "
"); if (showMakerID == "1") { if (bookVo.MakerID == 0) { strhtml.Append("[上传会员] " + siteVo.nickname + "(" + this.siteid + ")
"); } else { KeLin.ClassManager.Model.user_Model touserVo = new KeLin.ClassManager.Model.user_Model(); touserVo = WapTool.getUserInfo(bookVo.MakerID.ToString(), this.siteid); strhtml.Append("[上传会员] " + touserVo.nickname + "(" + bookVo.MakerID + ")
"); } } strhtml.Append("[更新日期] " + string.Format("{0:yyyy-MM-dd}", bookVo.book_date) + "
"); if (bookVo.updateInfo != "") { strhtml.Append("[更新说明] "+bookVo.updateInfo+"
"); } if (bookVo.softMoney != "") { strhtml.Append("[资费说明] " + bookVo.softMoney + "
"); } if (bookVo.softSafe != "") { strhtml.Append("[安全说明] " + bookVo.softSafe + "
"); } if (bookVo.softVer != "") { strhtml.Append("[" + par25 + "版本] " + bookVo.softVer + "
"); } if (bookVo.softLtd != "") { strhtml.Append("[" + par25 + "厂商] " + bookVo.softLtd + "
"); } if (bookVo.softLang != "") { strhtml.Append("[界面语言] " + bookVo.softLang + "
"); } strhtml.Append("[浏览人气] " + bookVo.book_click + "
"); if (bookVo.money > 0) { strhtml.Append("[下载扣币] " + bookVo.money + "
"); } strhtml.Append("[所属分类] " + classVo.classname + "
"); strhtml.Append("[客户评分] " + WapTool.getStart(bookVo.book_re, bookVo.book_score, "★", "☆", "1") + "
"); if (bookVo.book_lable != "") { strhtml.Append("[标签搜索] "); string[] arrylable = bookVo.book_lable.Split(' '); for (int i = 0; i < arrylable.Length; i++) { if (arrylable[i].Trim() != "") { strhtml.Append("" + arrylable[i] + " "); } } strhtml.Append("
"); } strhtml.Append("
"); if (content != "") { strhtml.Append("
" + par21 + "
"); strhtml.Append("
"); //if (view != "all" && this.content.Length > 100) //{ // strhtml.Append(content.Substring(0, 100) + "..."); // strhtml.Append("详细"); //} //else //{ strhtml.Append(content); //} strhtml.Append("
"); } strhtml.Append("
" + par22 + "
"); strhtml.Append("
"); strhtml.Append(strDown); if (filelist == null || filelist.Count <1) { if (this.myua != "" && this.myua != "0") { strhtml.Append("没有找到最适合您的机型" + mobileVo.nameCN + " " + mobileVo.Mode + " 的下载!
"); } } if (dlist != null && filelist != null) { if (dlist.Count != filelist.Count) { strhtml.Append("您的机型可能支持以下文件!
"); } } strhtml.Append("
"); //strhtml.Append("
" + par24 + "
"); //显示分享下载 strhtml.Append("
"); if (showShare != "1") { strhtml.Append("
"); strhtml.Append("分享至: "); strhtml.Append("
"); strhtml.Append("
"); strhtml.Append(" "); strhtml.Append(" "); strhtml.Append("
"); } strhtml.Append("
报错"); strhtml.Append("
\"good\" " + bookVo.ding + "
"); strhtml.Append("
"); strhtml.Append(""); strhtml.Append("\n"); strhtml.Append("
"); //显示上一页下一页,可关闭加速性能,web.config配置 strhtml.Append(preNextTitle); if ("1".Equals(this.showRe)) { //显示最新回复 strhtml.Append("
"); strhtml.Append("

"); strhtml.Append("" + par23 + ""); strhtml.Append("

"); strhtml.Append("

"); strhtml.Append(this.GetLang("评分|评分|评分 ") + ":"); strhtml.Append(""); strhtml.Append("

"); strhtml.Append("

"); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append(""); strhtml.Append("
"); strhtml.Append("
"); strhtml.Append("评论(" + bookVo.book_re + ")"); strhtml.Append("
"); strhtml.Append(""); strhtml.Append("
"); strhtml.Append("
"); for (int i = 0; (relistVo != null && i < relistVo.Count); i++) { if (i % 2 == 0) { strhtml.Append("
"); } else { strhtml.Append("
"); } strhtml.Append(""); strhtml.Append(" " + (bookVo.book_re - k) + "楼 "); strhtml.Append(""); strhtml.Append("" + relistVo[i].nickname + ":
"); strhtml.Append(relistVo[i].content + "" + string.Format("{0:MM-dd HH:mm}", relistVo[i].redate) + ""); strhtml.Append("
"); k = k + 1; } strhtml.Append("
"); if (relistVo == null) { strhtml.Append("
暂无评论!
"); } else { strhtml.Append("
"); } } //显示电脑版 string isWebHtml = this.ShowWEB_view(this.classid); //看是存在html代码 if (isWebHtml != "") { string strhtml_list = strhtml.ToString(); int s = strhtml_list.IndexOf(""); 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.threeShowDown != "") { strhtml.Append(adVo.threeShowDown + ""); } 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(ERROR); //输出 Response.Write(WapTool.ToWML(strhtml.ToString(), wmlVo)); } Response.Write(WapTool.showDown(wmlVo)); %>