%@ 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 + ("
");
}
else
{
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 + "次)
");
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("
");
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("
"); strhtml.Append("" + par23 + ""); strhtml.Append("
"); strhtml.Append("