<%@ Control Language="VB" Inherits="WanerSoft.UI.Web.Controls.Book.ShowBookCom" %>
<%@ Import Namespace="WanerSoft" %>
<%@ Register TagPrefix="Ws" Namespace="WanerSoft.Common" Assembly="WanerSoft.Factory"%>
<%@Register TagPrefix="Webdiyer" Namespace="Wuqi.Webdiyer" Assembly="aspnetpager"%>
<%@ Register TagPrefix="Ws" TagName="Header" Src="../Common/Header.ascx" %>
<%@ Register TagPrefix="Ws" TagName="Menu" Src="../Common/Menu.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/TopHit.ascx" %>
<%@ Register TagPrefix="Ws" TagName="ReComm" Src="Controls/ReCommList.ascx" %>
<%@ Register TagPrefix="Ws" TagName="CommentSend" Src="Controls/CommentSend.ascx" %>
<Ws:Header id="Header" StyleSheet="Book/ShowBookCom" Runat="Server" />
<Ws:Menu id="Menu" Runat="Server" />
<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();
}	
//-->
</script>
<div id="Content">
  <div id="ContentLeft">
    <div id="ClList1">
      <div id="Cll1Title">
		   <div id="Cll1tt">相关书籍人气榜</div>
		   <div id="Cll1ttimg"><img src="/Skin/Default/Images/down_blue.gif" /></div>
	  </div>
	  <Ws:TopHit id="TopHitXg" List-Times="W" List-Sort="A" List-Vip="A" Runat="Server" />
	</div>
	<div id="ClList2">
	    <div id="Cll2Title">
		   <div id="Cll2tt">编辑推荐</div>
		   <div id="Cll2ttimg"><img src="/Skin/Default/Images/down_blue.gif" /></div>
		</div>
	    <Ws:ReComm id="Bjtj" List-Tid="6" Runat="Server" />
	</div>
  </div>
  <div id="ContentRight">
    <div id="CrTop"><a href="/"><b>首页</b></a> - > <b><a href="<%=ReUrl(M.nclassid,InfoUrl.BookNclassUrlR,InfoUrl.BookNclassUrl)%>"><%=M.nclass%></a></b> - > <a href="<%=ReUrl(M.id, InfoUrl.BookUrlR, InfoUrl.BookUrl)%>"><%=M.booktitle%></a> - > 书籍评论</div>
	<Ws:Form id="BookListPage" Runat="Server" CssClass="LoginCss">
	<div id="CrBookrcText">
 <asp:Repeater id="ListData" runat="server" EnableViewState="false">
<ItemTemplate>
    <ul>
	 <li class="Ali1">□ <%#IIF(DataBinder.Eval(Container.DataItem, "bookcommentj"),"<font color=""#FF0000""><b>[精华]</b></font> ","") %><%#DataBinder.Eval(Container.DataItem, "bookcomment") %></li>
	  <li class="Ali2"><%#DataBinder.Eval(Container.DataItem, "username") %> <%#DataBinder.Eval(Container.DataItem, "bookcommenttime","{0:M}") %></li>
	 </ul>
</ItemTemplate>
</asp:Repeater>
</div>
  <div id="CrListPage"><Webdiyer:AspNetPager runat="server" id="pager" OnPageChanged="ChangePage" HorizontalAlign="right" PagingButtonSpacing="5" Height=30 SubmitButtonStyle="border:1px solid #000066;height:20px;width:30px" InputBoxStyle="border:1px #0000FF solid;text-align:center;width:40px" SubmitButtonText="GO" NumericButtonCount="5" NumericButtonTextFormatString="[{0}]" ShowCustomInfoSection="left" ShowInputBox="Always" Width="700" CssClass="mypager" TextBeforeInputBox=" 转到第 " AlwaysShow="true" TextAfterInputBox=" 页 "/>
  </div>
	</Ws:Form>
   <div id="CrBookReComT">
      <div id="Crbrtt"><img src="/Skin/Default/Images/arrow_121.gif" width="9" height="9" align="absmiddle" /><font color="#CC0000">【发表评论】</font>  【<a href="<%=ReUrl(M.id,InfoUrl.BookCommentUrlJR,InfoUrl.BookCommentUrlJ)%>">查看本书精华评论</a>】  【<a href="<%=ReUrl(M.id,InfoUrl.BookCommentUrlR,InfoUrl.BookCommentUrl)%>">查看本书全部评论</a>】</div>
	</div>
   <Ws:CommentSend id="CommentSend" Runat="Server" />
   <br />
<br />
  </div> 
</div>
<%M=Nothing%>
<Ws:Footer id="Footer" Runat="Server" />