<%@ 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"] %>">
<%E_eachedition eachban = ViewData["edition"] as E_eachedition;
E_eachqi eachqi2 = ViewData["eachqi"] as E_eachqi;%>
<%string edtemp = eachban.Id + "_" + eachban.Pagename;
string nowpagelink = Linkeachedition.eachedition(ViewData["issuedate"].ToString(), edtemp, 0);
  nowpagelink = Fun.MobileWebUrl + nowpagelink;%>
<link rel="alternate" media="only screen and(max-width: 640px)" href="<%=nowpagelink%>" >
<link href="<%=ViewData["webd"]%>Content/themes/red/css/reset.css" rel="stylesheet" type="text/css">
<link href="<%=ViewData["webd"]%>Content/themes/red/css/all.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]> 
<script src="<%=ViewData["webd"]%>Comja/html5.js"></script> 
<![endif]-->
<script type="text/javascript" src="<%=ViewData["webd"]%>Comja/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="<%=ViewData["webd"]%>Comja/pub.js"></script>
<script type="text/javascript" src="<%=ViewData["webd"]%>Content/themes/red/js/haomap.js" async></script>

<%if (1 == 0)
  { %>
<link href="../../../Content/themes/red/css/reset.css" rel="stylesheet" type="text/css">
<link href="../../../Content/themes/red/css/all.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/pub.js"></script>
<script type="text/javascript" src="../../../Content/themes/red/js/haomap.js"></script>

<%} %>
<script type="text/javascript">  
<%if (E_settingbll.Sitesetting.Ismobile==1) {%>
	var mobileurl="<%=nowpagelink%>";
	refertomobile(mobileurl);
    <%} %>  
</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.RenderPartial("~/themes/red/userinc/Top.ascx");%>    
    <div class="main clearfix">        
      <div class="bkleft">
        <div class="bkimg clearfix" >
            <div class="pagepic">
               <div id="bkimg">
              <div class="mulpage" id="mulpage" style="width:415px;height:590px; background-color:#fff;overflow:hidden;">            
               <%=eachban.Pagemap%>
               </div>
              </div>
              <script type="text/javascript">
                  $(function () {
                      $("#bkimg").hover(function (e) {
                          var width1 = $("#mulpage").find("img").width();
                          $("#mulpage").stop(true, true).animate({ width: width1 }, "normal", function () { });
                      }, function (e) {
                          $("#mulpage").stop(true, true).animate({ width: 415 }, "normal");
                      });
                  });
			  </script>

            </div>
        </div><!--bkimg finish-->	
        <div class="bkimgbottom"><span></span></div>
        <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") 
					{
						$(".pagepic")[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() {
						$(".pagepic")[0].style.cssText ="background-image:none;";
					});
			   }
			   else
				   runx=setInterval("checkimg()",150);
			});
        </script>
        <div class="ban">
              <%if (eachban.Prelink.ToString() != "no"){%>
                <span class="pre2"><a href="<%=eachban.Prelink%>" >上一版</a></span>
              <%}
                else
               { %>
               <span class="pre1"><a href="javascript:void(0);" rel="nofollow">上一版</a></span>
              <%} 
		      if (eachban.Nextlink.ToString() != "no")
              {%>
              <span class="next2"><a href="<%=eachban.Nextlink%>" >下一版</a></span>
             <%}
              else
              { %>
              <span class="next1"><a href="javascript:void(0);" rel="nofollow">下一版</a></span>
              <%} %>   
        </div>
        
        <div class="clear"><span></span></div>     
        <div style="padding-top:0px;"><%List<Mvc_ad> adlist = Mvc_adbll.adlist("adleft");
           string adfile = "";
 int k = 0;
 int adtotal = 0;
 adtotal = adlist.Count;
 foreach (var ad in adlist)
  {
      k = k + 1;
adfile = Fun.Webdirectory + ad.Adfile; %>
        <a href="<%=ad.Adlink%>"  target="_blank" onclick="$.get('<%=Fun.Webdirectory%>jquery/adcount?linkid=<%=ad.Id%>')"><img src="<%=adfile%>" alt="<%=ad.Adtitle%>" width="<%=ad.Adwidth%>" height="<%=ad.Adheight%>" /></a>
        <%}
            if (adtotal == 0)
            {%>
         <a href="http://www.53bk.com/"  target="_blank"><img src="<%=ViewData["webd"]%>Content/themes/red/images/welcome.jpg" width="418" height="83" /></a>
       <%} %>
        </div>
        <div class="clear"><span></span></div>
        
    </div><!---bkleft finish--->
    
     <div class="mright1 clearfix">     
     <div class="r0 clearfix">
        <h3><span>版面导航</span></h3>
        <div class="box clearfix" id="pagetitleslist">    
         <ul class="scroll">
        <%List<E_eachedition> editionlist = ViewData["editionlist"] as List<E_eachedition>;
          string pagepdfa = "<img src=\"" + Fun.Webdirectory + "Content/themes/red/images/pdficon.jpg\" width=\"16\" height=\"16\"  alt=\"pdf\" />";
          string css2 = "";
          string css1 = "";
          int j = 0;
          foreach (var item in editionlist){
                j++;
                css1 = "";
                css2 = "";
                if (j > 0 && j % 2 == 0)
                    css2 = css2 + " two";
              if (eachban.Id > 0 && eachban.Id == item.Id)
                    css2 = css2 + " hover";
                if (css2 != "")
                    css1="class=\"" + css2 + "\"";
                %>
        <li <%=css1%>>
        <span class="txt"><a  href="<%=item.Pagelink %>">第<%=item.Pagename %>版：<%=item.Pagetitle %></a></span>
        <span class="pdf"><a href="<%=item.Pagepdf%>" target="_blank"><%=pagepdfa%></a></span>
        </li>
        <% } %>  
        </ul>    
        </div>
    </div><!--r0 214 -->
    <div class="l0 clearfix">    
        <div class="newstitle clearfix">
           <h3><span>标题导航</span></h3>
            <div class="box clearfix " id="pagenews"> 
            <%List<E_news> newslist = ViewData["newslist"] as List<E_news>;
			 string css3="";
			if (newslist.Count>6)
		       css3=" class=\"scroll\"";
			%>
            <ul <%=css3%>>
               <% int i = 0;
                string css="";
            foreach (var item in newslist){
                i++;
                css="";
                if (i >= 2 && i % 2 == 0)
                    css="class=\"one\"";%>
            <li <%=css %>><a id="news_list_<%=item.Id%>" title="<%=Fun.W3c(item.Title)%>" href="<%=item.Newslink %>"><%=Fun.W3c(item.Title)%></a></li>
            <% } %>  
            </ul> 
            </div>
        </div><!--newstitle-->
        <div class="so">
        <input type="text" name="news_so" id="news_so" value="">
        <a href="javascript:void(0);" rel="nofollow" id="paper_so"><img src="<%=ViewData["webd"]%>Content/themes/red/images/so.png" width="62" height="25" alt="<%=Data.Bkname%>数字报纸内容搜索" /></a>
        </div>
        <div class="dateinfo">
          <%Html.RenderAction("Calendarqi", "Userinc", new {idate=ViewData["issuedate"]}); %>         
        </div><!--dateinfo 301-->        
    </div><!--l0 301 -->
     
     <div class="clear"><span></span></div>
          <% int isping = E_settingbll.Sitesetting.Isping;
	   if (isping == 1)
	   {%>
	<div style="width:525px;padding-top:9px;" class="clearfix">
	<%Html.RenderAction("AddComment", "Comment", new { qiid = eachqi2.Id, editionid = eachban.Id, newsid = "0" }); %>
	</div>
	<div style="width:525px;" 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><!--mright 525-->    
    </div><!--main 982-->    
<%Html.RenderPartial("~/themes/red/userinc/Foot.ascx");%>
</asp:Content>
