<%@ Control Language="VB" Inherits="WanerSoft.Provider.BaseControl" AutoEventWireup="false" EnableViewState="false"%>
<%@ Import Namespace="WanerSoft" %>
<%@ Import Namespace="WanerSoft.Provider" %>
<%@ Import Namespace="WanerSoft.Provider.Validate" %>
<%@ Import Namespace="WanerSoft.Model" %>
<%@ Import Namespace="WanerSoft.Data.Factory" %>
<%@ Register TagPrefix="Ws" TagName="Header" Src="../Common/HeaderB.ascx" %>
<%@ Register TagPrefix="Ws" TagName="Menu" Src="../Common/Menu2.ascx" %>
<%@ Register TagPrefix="Ws" TagName="Search" Src="../Common/SearchS.ascx" %>
<%@ Register TagPrefix="Ws" TagName="Footer" Src="../Common/Footer.ascx" %>
<%@ Register TagPrefix="Ws" TagName="TopHit" Src="Controls/TopHitB.ascx" %>
<%@ Register TagPrefix="Ws" TagName="ReComm" Src="Controls/ReTopImgB.ascx" %>
<%@ Register TagPrefix="Ws" TagName="Announce" Src="Controls/Announce.ascx" %>
<%@ Register TagPrefix="Ws" TagName="Comment" Src="Controls/Comment.ascx" %>
<%@ Register TagPrefix="Ws" TagName="CommentSend" Src="Controls/CommentSend.ascx" %>
<Ws:Header id="Header" StyleSheet="Book/ShowBook" Runat="Server" />
<Ws:Menu id="Menu" Runat="Server" />
<script runat="server">
Private M As New Ws_BookList
Private Vote As New Ws_VoteList
Private BookLink,ChapterLink,VolumeLink As String
Protected Overrides Sub CreateChildControls()
   M = Ws.Instance.WebBookSelect(Common.Request.Sift("id", "int", 0))
   Vote=Ws.Instance.WebVoteListSelect(Common.Request.Sift("id", "int", 0))
   Header.Title=M.booktitle
   Header.PageTitle=M.nclass+" "+M.bookupdatetitle
   Header.MetaKeyWord=M.booktitle+","+M.nclass+","+M.bookupdatetitle
   Comment.List.Tid=M.id
   CommentSend.BookID=M.id
   CommentSend.BookTitle=M.booktitle
   TopHitXg.List.Tid=M.tclassid
   BookLink=ReUrl(M.id,InfoUrl.BookUrlR,InfoUrl.BookUrl)
   ChapterLink=ChapterUrl(M.bookhtml,M.id,M.bookupdateid)
   VolumeLink=VolumeUrl(M.bookhtml,M.id)
End Sub
</script>
<script>
<!--
function autocopy(frm){
    frm.CommentText.select();
	document.execCommand('Copy');
	return true ;
}
function checklenght(frm){
    var nowl = frm.CommentText.value.length;
	var cl = <%=InfoSys.ReMarkTextNum%>;
	if(nowl < cl){
	    alert('书评内容长度: '+nowl +'个字，\n最多允许'+cl+'字，\n\n您还可以继续发表!');
	}else{
	    alert('书评内容长度: '+nowl +'个字，\n最多允许'+cl+'字，\n\n您需要做一些修剪才能正确发表!');
	}
}
function commentsubmit(url){
    newwin=window.open('about:blank','Comment','');
    window.CommentFrom.ComSend.disabled = true;
	window.CommentFrom.target="Comment";
    window.CommentFrom.method = "post";
    window.CommentFrom.submit();
}	
function votesubmit(url){
    newwin=window.open('about:blank','Comment','');
    window.VoteFrom.VoteSend.disabled = true;
	window.VoteFrom.target="Comment";
    window.VoteFrom.method = "post";
    window.VoteFrom.submit();
}
function voteshow(url){
    window.open(url,'_blank','');
}
function CopyInBoard(share_input){ 			
	document.getElementById(share_input).select();
	window.clipboardData.setData('text',document.getElementById(share_input).value)
	alert('网址复制完成，您可以通过QQ、MSN、邮件等方式发送给您的好友，共同分享阅读的快乐！');
}
function bookdown()
{
	if(document.getElementById('bookdown').style.display=='none')
		document.getElementById('bookdown').style.display='block';
	else
		document.getElementById('bookdown').style.display='none';
}
//-->
</script>
<style type="text/css">
<!--
.STYLE1 {font-size: 16px}
-->
</style>

<div class="wrapper_src">
	<div class="src"><a href="/" target="_blank">首页</a> &gt; <a href="<%=ReUrl(M.nclassid,InfoUrl.BookNclassUrlR,InfoUrl.BookNclassUrl)%>"><%=M.nclass%></a> &gt;  <a href="<%=BookLink%>"><%=M.booktitle%></a></div>
</div>

<!-- *****主体 begin***** -->
<div id="wrapper">
<!-- *****主体right begin***** -->
<div id="right">
<div id="info">
<div id="htmlAQian" class="zsline"></div>
<h1> 《<%=M.booktitle%>》<span>文 / <a href="<%=ReUrl(M.id,InfoUrl.AuthorBookIDUrlR,InfoUrl.AuthorBookIDUrl)%>"><%=M.bookwriter%></a></span></h1>
<div class="info">
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="left">
<tr>
<td>作品分类：<span><a href="<%=ReUrl(M.tclassid,InfoUrl.BookTclassUrlR,InfoUrl.BookTclassUrl)%>"><%=M.tclass%></a></span></td>
<td>授权状态：<span><%
		Select Case M.booksq
		Case 0
		    Response.Write("转载作品")
		Case 1
		    Response.Write("独家授权")
		Case 2
		    Response.Write("特约作品")
		Case 3
		    Response.Write("授权刊载")
		Case 4
		    Response.Write("驻站作品")
		Case 5
		    Response.Write("本站原创")
		Case Else
		    Response.Write("其他")
		End Select
		%></span></td>
<td>首发状态：<span><%=IIF(M.booksf,"本站首发","转载作品")%></span></td>
<td>完成字数：<span><%=M.booklen%></span></td>
</tr>
<tr>
<td>总点击数：<span><%=M.bookhits%></span></td>
<td>月点击数：<span><%=M.bookmhits%></span></td>
<td>周点击数：<span><%=M.bookzhits%></span></td>
<td>日点击数：<span><%=M.bookdhits%></span></td>
</tr>
<tr>
<td>总推荐数：<span><%=M.bookrecom%></span></td>
<td>月推荐数：<span><%=M.bookmrecom%></span></td>
<td>周推荐数：<span><%=M.bookzrecom%></span></td>
<td>总收藏数：<span><%=M.bookdrecom%></span></td>
</tr>
<tr>
<td>总推荐数：<span><%=M.bookrecom%></span></td>
<td>月推荐数：<span><%=M.bookmrecom%></span></td>
<td>周推荐数：<span><%=M.bookzrecom%></span></td>
<td>总收藏数：<span><%=M.booksave%></span></td>
</tr>
</table>
</div>
<div style="clear:both"></div>
<h3>
  <p class="STYLE1">【作品简介】</p>
</h3>
<div style="clear:both"></div>
<h3><p><%=Common.Strings.HtmlBook(M.booksum)%></p></h3>

<div class="button">
<ul class="l">
<li class="b1"><a href="<%=VolumeLink%>" id="htmldianjiyuedu" target="_blank" title="点击阅读《<%=M.booktitle%>》">点击阅读</a></li>
<li class="b2"><a href="<%=ReUrl(M.id,InfoUrl.UserBookSaveUrlR,InfoUrl.UserBookSaveUrl)%>" target="actionframe" title="将《<%=M.booktitle%>》加入收藏"><span>收藏此书</span></a></li>
<li class="b3"><a href="<%=ReUrl(M.id,InfoUrl.UserBookReComUrlR,InfoUrl.UserBookReComUrl)%>" target="actionframe" title="为《<%=M.booktitle%>》投票"><span>推荐投票</span></a></li>
<li class="b31"><a href="javascript:///;" onclick="CopyInBoard('recomtext')"><span>推荐给朋友</span></a></li>
<li class="b41"><a href="javascript:void(0);" onclick="javascript:bookdown();" hidefocus="true"><span>本书下载</span></a>
  <input type="hidden" id="recomtext" value="我在<%=InfoSys.HomeTitle%>上看到一本不错的书《<%=M.booktitle%>》，<%=Request.Url.AbsoluteUri%>&userid=<%=Cookies.GetSessions("ID")%>，祝你天天好心情!  *^_^*" />
</ul>
</div>

<div id="grade">
<div id="bookdown" class="grades_b" style="display:none">
<div class="grades">
<div class="top">《<%=M.booktitle%>》下载，请多多支持作者。<p>书籍下载说明：必须是本站会员且积分为5以上才能下载，目前 CHM 与 UMD 类型暂未开放。</p></div>
<div class="abcd">TXT格式: <a href="/Book/<%=M.id%>/Txt.aspx" target="_blank">下载TXT电子书</a></div>
<div class="abcd">UMD格式: <a href="/Book/<%=M.id%>/Umd.aspx" target="_blank">下载UMD电子书</a></div>
<div class="abcd">JAD格式: <a href="/Book/<%=M.id%>/Jar.aspx" target="_blank">下载JAR电子书</a></div>
<div class="abcd">JAD格式: <a href="/Book/<%=M.id%>/Jad.aspx" target="_blank">下载JAD电子书</a></div>
<div class="abcd">CHM格式: <a href="/Book/<%=M.id%>/Chm.aspx" target="_blank">下载CHM电子书</a></div>

<div class="button_b"><a href="javascript:void(0);" onclick="javascript:document.getElementById('bookdown').style.display='none';" hidefocus="true">关闭</a></div>
</div></div></div>

</div>
<div class="blank"></div>

<div id="pinglbox">
    <div class="dt"><strong>最新章节</strong></div>
    <div class="dd2">
    <p><strong>〖公众最新章节〗：</strong><a href="<%=ChapterLink%>"><%=M.bookupdatetitle%></a> <%=M.bookupdatetime%></p>
    <%IF M.bookvip Then%>
    <p><strong color="red">〖VIP最新章节〗：</strong><a href="<%=ReUrl(M.id,InfoUrl.BookVipUrlR,InfoUrl.BookVipUrl)%>"><%=M.bookvipupdatetitle%></a> <%=M.bookvipupdatetime%> <a href="<%=ReUrl(M.id,InfoUrl.BookVipUrlR,InfoUrl.BookVipUrl)%>">[Vip订阅]</a></p>
    <%End IF%>
    </div>
</div>
<div class="blank"></div>

<div class="banner688">
<script type="text/javascript" src="/Skin/Default/ads/001.js"></script>
</div>
<div class="blank"></div>

<div id="pinglbox">
    <div class="dt"><strong>网友评论</strong></div>
    <div class="dd">
	
    <div class="top">	  
	<ul>
	<li class="none">最新评论</li>
	<li><a href="<%=ReUrl(M.id,InfoUrl.BookCommentUrlJR,InfoUrl.BookCommentUrlJ)%>" target="_blank">精华评论</a></li>
	<li><a href="<%=ReUrl(M.id,InfoUrl.BookCommentUrlR,InfoUrl.BookCommentUrl)%>" target="_blank">全部评论</a></li>
	</ul>	  
	</div>
	
<!--comment start-->
<ul id="htmlComment" class="list_p">
<Ws:Comment id="Comment" Runat="Server" />
</ul>

<div class="pinglsrkbox" style="margin-left:30px;">
<Ws:CommentSend id="CommentSend" Runat="Server" />
</div>
<!--comment end-->
 </div>
		  
</div>


</div>
<!-- *****主体right end***** -->

<!-- *****主体left begin***** -->
<div id="left">
<div class="fmian">
<div class="img"><%if M.bookimg ="" %><img src="/images/noimg.gif" width="160" height="205" /><%else%><img src="<%=M.bookimg%>" width="160" height="205" /><%end if%></div>
<div class="txt">
<%IF M.bookstate = "1" %><p><b class="nn">完结</b></p><p><img src="/skin/default/images/ny2.gif" /></p><%else%><p><b class="ny">连载中</b></p><p><img src="/skin/default/images/ny.gif" /></p><%End IF%>
</div>
<div class="foot"></div>
</div>
<div class="blank_fm"></div>

<dl class="mod_l">
<dt><strong>编辑推荐</strong><span class="pic"></span></dt>
<dd class="zz">
<Ws:ReComm id="Bjtj" List-Tid="19" Runat="Server" />
</dd>
</dl>
<div class="blank"></div>

<dl class="mod_l">
<dt><strong>本类人气榜</strong><span class="pic"></span></dt>
<dd class="content li2">
<Ws:TopHit id="TopHitXg" List-Times="W" List-Sort="A" List-Vip="A" Runat="Server" />
</dd>
</dl>

</div>
<!-- *****主体left end***** -->
<div class="wrapperfoot"></div>
</div>
<!-- *****主体 end***** -->

<%M=Nothing%>
<Ws:Footer id="Footer" Runat="Server" />