<%@ Page Language="C#" MasterPageFile="../Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="Mvcmode"%>
<%@ Import Namespace="Mvcbll"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
<title><%=ViewData["Title"]%></title>
<meta name="Keywords" content="<%=ViewData["Keywords"] %>" />
<meta name="Description" content="<%=ViewData["Description"] %>" />
<link href="<%=ViewData["webd"]%>Content/themes/basic/css/reset.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/basic/css/header.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/basic/css/footer.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/basic/css/body_main.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/basic/css/calendar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=ViewData["webd"]%>Comja/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="<%=ViewData["webd"]%>Comja/swf.js"></script>
<script type="text/javascript" src="<%=ViewData["webd"]%>Comja/haomap.js"></script>
<script type="text/javascript" src="<%=ViewData["webd"]%>Comja/common.js"></script>
<%if (1 == 0)
  { %>
<link href="../../../Content/themes/basic/css/reset.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/basic/css/header.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/basic/css/footer.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/basic/css/body_main.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/basic/css/calendar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../../Comja/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="../../../Comja/swf.js"></script>
<script type="text/javascript" src="../../../Comja/haomap.js"></script>
<script type="text/javascript" src="../../../Comja/common.js"></script>
<%} %>
<script type="text/javascript">
    $(document).ready(function() {
        $(document).ready(function(){ $("#usemap").haomap(); });
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%E_eachedition eachban = ViewData["edition"] as E_eachedition;
E_eachqi eachqi2 = ViewData["eachqi"] as E_eachqi;%>
<%--Html.RenderAction("Top", "Userinc", new { adsrc = "Content/themes/basic/images/53bk.jpg", type = "0",idate=ViewData["issuedate"] }); --%>
<%

ViewData["adsrc"] = Fun.Webdirectory + "Content/themes/basic/images/53bk.jpg";
ViewData["adsrc"] = Fun.Webdirectory + "Content/themes/basic/images/53bk.jpg";
ViewData["adtype"] = "0";
%>
<%Html.RenderPartial("~/themes/basic/userinc/Top.ascx");%>
<div class="path">
<div class="path1">您正在阅读：<%=ViewData["path"]%><strong><%Response.Write("第" + eachban.Pagename + "版：" + eachban.Pagetitle);%></strong></div>
     <div class="nextqi">
      <% if (ViewData["preqihref"].ToString() != "")
         {%>
      <a href="<%=ViewData["preqihref"]%>" >&lt;&nbsp;上一期</a>
      <%}
         else {%>
         &lt;&nbsp;上一期
            <%} %>
      &nbsp;&nbsp;
      <% if (ViewData["nextqihref"].ToString() != "")
         {%>
      <a href="<%=ViewData["nextqihref"] %>" >下一期&nbsp;&gt;</a>
       <%}
       else {%>
         下一期&nbsp;&gt;
            <%} %>
      </div>
</div>
<div class="blank3"><span></span></div>
<div class="contop"><span></span></div>
<div class="maincon">

<div class="b_left"><%--left427px+20背景--%>
<div class="bkimg" id="bkimg">
<%=eachban.Pagemap%>
</div><%--bkimg结束--%> 
<script type="text/javascript"><%--/*判断图片是否加载完成*/--%>
var pagepic="<%=ViewData["webd"].ToString()+eachban.Pagepic.ToString()%>?editionid=<%=eachban.Id%>";
var img =new Image(); 
    img.src= pagepic;
            function checkimg()
            { 
			   if(img.readyState == "complete") 
					{
						$(".bkimg")[0].style.cssText ="background-image:none;";
						clearInterval(runx);
					}			   
            }
			var isie = (navigator.appName == "Microsoft Internet Explorer"); 
			var runx;
			$(document).ready(function () {
			   if (!isie)
			   {
					$("#editionimg").load(function() {
						$(".bkimg")[0].style.cssText ="background-image:none;";
					});
			   }
			   else
				   runx=setInterval("checkimg()",150);
			});
</script>
<div class="bkpages">

<div class="bktitle">
    <span><%Response.Write("第" + eachban.Pagename + "面：" + eachban.Pagetitle);%></span>    
    <a href="<%=eachban.Pagepdf%>" target="_blank"><img src="<%=ViewData["webd"]%>Content/themes/basic/images/detail/pdf.gif" alt="PDF原面" width="16" border="0" align="absmiddle"  />PDF原版</a>
</div>

<div class="nextpage">
    <%if (eachban.Prelink.ToString() != "no")
      {%>
    <a class="prev" href="<%=eachban.Prelink %>">上一页</a>
    <%}
      else
      { %>
      <span class="prev">上一页</span>
      <%} %>
    <%if (eachban.Nextlink.ToString() != "no")
      {%>
    <a class="next" href="<%=eachban.Nextlink %>">下一页</a>
    <%}
      else
      { %>
      <span class="next">下一页</span>
      <%} %>
</div>
</div><%--bkpages结束--%>  

<div class="download">
<a href="http://www.53bk.com/download/reader" target="_blank"><img src="<%=ViewData["webd"]%>Content/themes/basic/images/detail/reader.gif" width="117" height="46" alt="PDF阅读器免费下载" /></a>
<a href="<%=Linkeachqi.eachqi_menu(ViewData["issuedate"].ToString(),0)%>" style="margin-left:25px;"><img src="<%=ViewData["webd"]%>Content/themes/basic/images/detail/pagetip.gif" width="113" height="46" alt="面面导航" /></a>
</div>
<!--download结束-->

<div class="sheng clearfix">
	<script type="text/javascript">
        $(document).ready(function() {
            $("#tit02").click(function(){
                $("#tit02").toggleClass("hover");
                $("#sheng02").toggleClass("sheng02show");
				$("#sheng03").toggleClass("sheng02show");
            });
        }); 
    </script>
    <div class="sheng01"><div class="tit01">声明</div> <div class="tit02" id="tit02"><span></span></div></div>
    <div class="sheng02" id="sheng02">
        <%=ViewData["Declaration"]%>
    </div>
    <div class="sheng03" id="sheng03"><span></span></div>
</div><%--sheng结束--%> 

</div><%--b_left结束--%> 

<div class="b_right">

<div  class="pagetop">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr >
    <td  class="tip">
    <%if (eachban.Prelink.ToString() != "no")
      {%>
    <a href="<%=eachban.Prelink %>"><span style="font-family:Webdings;">3</span>上一页</a>
    <%}
      else
      { %>
      <span class="nohref"><span style="font-family:Webdings;">3</span>上一页</span>
      <%} %>
      <span class="split"></span>
    <%if (eachban.Nextlink.ToString() != "no")
      {%>
    <a href="<%=eachban.Nextlink %>">下一页<span style="font-family:Webdings;">4</span></a>
    <%}
      else
      { %>
      <span class="nohref">下一页<span style="font-family:Webdings;">4</span></span>
      <%} %>
    </td>
    <td align="center" ><%--=ViewData["issueday"]--%></td>
    <td align="right" class="number"> &nbsp; <%=ViewData["numberid"]%></td>
  </tr>
</table>
</div>

<div style="width:565px;padding-top:15px;" class="clearfix">
    <div class="pagenews clearfix" id="pagenews">
        <h3><%Response.Write("第" + eachban.Pagename + "版：" + eachban.Pagetitle);%></h3>
        <div class="list clearfix">
        <%
            List<E_news> newslist = ViewData["newslist"] as List<E_news>;
            foreach (var item in newslist)
            {%>
<a id="news_list_<%=item.Id%>" title="<%=Fun.W3c(item.Title)%>" href="<%=item.Newslink %>"><%=Fun.W3c(item.Title)%></a>
<% } %> 
        
        </div>
    </div><%--pagenews结束--%> 

    <div class="pagetitles clearfix">
        <h3>页面导航</h3>
        <div class="list clearfix">
        <%List<E_eachedition> editionlist = ViewData["editionlist"] as List<E_eachedition>;
          foreach (var item in editionlist)
          {%>
        <a  href="<%=item.Pagelink %>"><span class="bt1">第<%=item.Pagename %>版：</span><span class="bt2"><%=item.Pagetitle %></span></a>
        <% } %>  
        </div>
    </div><%--pagetitles结束--%> 
</div>


<div class="pagetip clearfix">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr >
    <td class="tip">近期阅读   </td>
    <td align="center"  style="width:20px;">&nbsp;</td>
    <td align="right" ></td>
  </tr>
</table>
</div>

<div class="lastqi clearfix">
<ul class="clearfix">
        <% 
           string link = ""; 
           string qiname="";
           string imgstr="";
           List<E_eachedition> three_editions = new List<E_eachedition>();
           three_editions = ViewData["three_editions"] as List<E_eachedition>;
           int j = 0;
           foreach (var edition in three_editions)
           {
               j++;
               link=Linkeachqi.eachqi(edition.Issuedate.ToString(),0);
               qiname=E_eachqibll.eachqiname(edition.Issuedate.ToString(),0, 0);
               imgstr=Linkurl.imgsrc(edition.Pagepic);
               if (j > 4)
                       break;
        %>
        <li><div class="img clearfix"><a href="<%=link%>"><img src="<%=imgstr %>"  alt="" /></a></div><div class="txt"><a href="<%=link%>"><%=qiname%></a></div></li>
        <% }%>
        </ul>
</div>


<div class="clear"><span></span></div>

<% int isping = E_settingbll.Sitesetting.Isping;
   if (isping == 1)
   {%>
<div style="width:565px;margin-top:10px;border-top-width: 1px;	border-top-style: solid;border-top-color: #E1E1E1;" class="clearfix">
<%Html.RenderAction("AddComment", "Comment", new { qiid = eachqi2.Id, editionid = eachban.Id, newsid = "0" }); %>
</div>

<div style="width:565px;padding-bottom:10px;" class="clearfix" id="pagecomment1">
<h2>正在加载报纸评论……</h2>
</div>
<script type="text/javascript">
    $('#pagecomment1').load('<%=ViewData["Webd"]%>comment/pagecomment?qiid=<%=eachqi2.Id%>&editionid=<%=eachban.Id%>&tl=' + Math.random());  
</script>
<%} //isping==1 %>

</div><!--b_right结束--> 
</div><!--main结束-->  
<div class="conbottom"><span></span></div>
<div class="blank3"><span></span></div> 
<%--Html.RenderAction("Foot", "Userinc"); --%>
<%Html.RenderPartial("~/themes/basic/userinc/Foot.ascx");%>
</asp:Content>