<%@ Page Language="C#" MasterPageFile="../Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage<Mvcmode.Mvc_seo>" %>
<%@ Import Namespace="Mvcmode"%>
<%@ Import Namespace="Mvcbll"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
<title><%=Model.Title%></title>
<meta name="Keywords" content="<%=Model.Keywords %>" />
<meta name="Description" content="<%=Model.Description %>" />
<link href="<%=ViewData["webd"]%>Content/themes/default/css/reset.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/default/css/header.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/default/css/footer.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/default/css/body_main.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/default/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/jquery.maphilight.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/default/css/reset.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/default/css/header.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/default/css/footer.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/default/css/body_main.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/default/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/jquery.maphilight.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 () {$('#editionimg').maphilight();});
    window.onload = function (e) {
        $("#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/default/images/53bk.jpg", type = "0",ishome="1",idate=ViewData["issuedate"] }); --%>
<%
ViewData["adsrc"] = Fun.Webdirectory + "Content/themes/default/images/53bk.jpg";
ViewData["adtype"] = "0";
ViewData["ishome"] = "1";
%>
<%Html.RenderPartial("~/themes/default/userinc/Top.ascx");%>
<div class="path">
<div class="path1">您正在阅读：<a href="<%=ViewData["webd"]%>" ><%=ViewData["Sitename"]%></a><%=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;&nbsp;&nbsp;
      <% if (ViewData["nextqihref"].ToString() != "")
         {%>
      <a href="<%=ViewData["nextqihref"] %>" >下一期&nbsp;&gt;</a>
       <%}
       else {%>
         下一期&nbsp;&gt;
            <%} %>
      </div>
</div>

<div class="main  clearfix ">
<div class="b_left left clearfix"><%--left427px+20背景--%>

<div class="bkimg clearfix" 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") 
					{
						$("#editionimg").attr("alt","");
						$(".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() {
						$("#editionimg").attr("alt","");
						$(".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/default/images/ico4.gif" alt="PDF原版" border="0" width="16" 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/default/images/pdf_dl.gif" width="107" height="38" alt="pdf阅读器免费下载" /></a>
<a href="<%=Linkeachqi.eachqi_menu(ViewData["issuedate"].ToString(),0)%>" style="margin-left:12px;"><img src="<%=ViewData["webd"]%>Content/themes/default/images/nav.png" width="130" height="38" alt="版面导航" /></a> </div><%--download结束--%>

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

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

<div class="b_right right clearfix">
<div style="width:492px;" class="clearfix">
<div class="pagenews clearfix  left" 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 right">
<h3>版面导航</h3>
<div class="list">
<%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 class="clear"><span></span></div>
</div>
</div><%--pagetitles结束--%> 
</div>
<div style="width:492px;padding-top:12px;" class="clearfix">
<div class="otherqi clearfix">
<h3>近期阅读</h3>
<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>;
   foreach (var edition in three_editions)
   {
       link=Linkeachqi.eachqi(edition.Issuedate.ToString(),0);
       qiname=E_eachqibll.eachqiname(edition.Issuedate.ToString(),0, 0);
       imgstr=Linkurl.imgsrc(edition.Pagepic);  
%>
<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>
<% int isping = E_settingbll.Sitesetting.Isping;
   if (isping == 1)
   {%>
<div style="width:492px;padding-top:12px;" class="clearfix">
<%Html.RenderAction("AddComment", "Comment", new { qiid = eachqi2.Id, editionid = eachban.Id, newsid = "0" }); %>
</div>

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

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