<%@ 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/lightblue/css/reset.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/lightblue/css/header.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/lightblue/css/body_main.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/lightblue/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"]%>Content/themes/lightblue/js/haomapblue.js"></script>
<script type="text/javascript" src="<%=ViewData["webd"]%>Comja/common.js" async></script>
<%if (1 == 0)
  { %>
<link href="../../../Content/themes/lightblue/css/reset.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/lightblue/css/header.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/lightblue/css/body_main.css" rel="stylesheet" type="text/css" />
<link href="../../../Content/themes/lightblue/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="../../../Content/themes/lightblue/js/haomapblue.js"></script>
<script type="text/javascript" src="../../../Comja/common.js" async></script>
<%} %>
<script type="text/javascript">    
   $(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.RenderPartial("~/themes/lightblue/userinc/Top.ascx");%>
<div class="bkleft">
    <div class="bkimg clearfix" >
        <div class="pagepic">
           <div id="bkimg"><%--图像大小width:350px;height:546px;--%>
           <div class="mulpage" id="mulpage" style="width:410px;height:650px; 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: 410 }, "normal");
                       });
                   });
			  </script>
        </div>
    </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","");
						$(".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() {
						$("#editionimg").attr("alt","");
						$(".pagepic")[0].style.cssText ="background-image:none;";
					});
			   }
			   else
				   runx=setInterval("checkimg()",150);
			});
	</script>
    <div class="bkimgbottom"><span></span></div>
    <div class="pageinfo">
        <div class="title"><%Response.Write("第" + eachban.Pagename + "版：" + eachban.Pagetitle);%></div>      
        <div class="clear"><span></span></div>   
        <div class="ban">
          <%if (eachban.Prelink.ToString() != "no"){%>
            <span class="pre"><a href="<%=eachban.Prelink%>" >上一版</a></span>
          <%}
            else
           { %>
           <%--<span class="preno">上一版</span>--%>
          <%} 
		  if (eachban.Nextlink.ToString() != "no")
          {%>
          <span class="next"><a href="<%=eachban.Nextlink%>" >下一版</a></span>
         <%}
          else
          { %>
          <%--<span class="nextno">下一版</span>--%>
          <%} %>           
           <span class="dowpdf"><a href="<%=eachban.Pagepdf%>" ><img src="<%=ViewData["webd"]%>Content/themes/lightblue/images/pdficon.jpg" width="16" height="16" alt="PDF原版下载" /></a></span>
        </div>
    </div><%--pageinfo完--%>
    <div class="leftinfo" id="pagenews">        
        <h3 class="titlenav_h3">标题导航</h3>
        <div class="titlenav_con" id="pagenewslist">
        <ul class="scroll">
        <%List<E_news> newslist = ViewData["newslist"] as List<E_news>;
            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><%--titlenav_con完--%>
    </div><%--leftinfo完--%>
</div><%--bkleft完--%>
<div class="clear"><span></span></div>
<div class="mainright">
    <div class="rightinfo">
    <div class="list">
        <h3><span>版面目录</span></h3>
        <div class="box" id="pagetitleslist">        
        <ul>
        <% List<E_eachedition> editionlist = ViewData["editionlist"] as List<E_eachedition>;
           string pagepdfa = "<img src=\"" + Fun.Webdirectory + "Content/themes/lightblue/images/pdficon.jpg\" width=\"16\" height=\"16\" alt=\"PDF\" />";
            int j = 0;
            string css1 = "";
            foreach (var item in editionlist){
                j++;
                css1 = "";
                if (j > 0 && j % 2 == 0)
                    css1 = "class=\"hover\"";%>
        <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><%--list完--%>
    
    <div class="right2">
        <div class="downinfo">
        <h3><%=Data.Bkname%>多媒体数字版</h3>
        <div class="box">
        <%Html.RenderPartial("~/themes/lightblue/userinc/Downimg.ascx");%>
        </div>
        </div><%--downinfo完--%>
        <div class="blank7"><span></span></div>
        <div class="dateinfo">
        <h3>按日期查询</h3>
        <div class="box">
        <%--<img src="images/date.gif" width="212"   alt=" " />--%>
        <%Html.RenderAction("Calendarqi", "Userinc", new {idate=ViewData["issuedate"]}); %> 
        </div>
        </div><%--dateinfo完--%>
    </div><%--right2完--%>    
    </div><%--rightinfo完--%>
    <div class="blank7"><span></span></div>
    <h3 class="bannav_h3">近期阅读</h3>
    <div class="bannav_con  clearfix">
         <ul>
		 <% 
           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"><a href="<%=link%>"><img src="<%=imgstr %>" width="150" height="225"  alt="" /></a></div>
        <div class="txt"><a href="<%=link%>"><%=qiname%></a></div>
        </li>
        <% }%>
       </ul> 
     </div><%--bannav_con完--%>
     <div class="clear"><span></span></div>
     <% int isping = E_settingbll.Sitesetting.Isping;
	   if (isping == 1)
	   {%>
	<div style="width:585px;padding-top:7px;" class="clearfix">
	<%Html.RenderAction("AddComment", "Comment", new { qiid = eachqi2.Id, editionid = eachban.Id, newsid = "0" }); %>
	</div>
	<div style="width:585px;" 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><%--mainright完--%>
<div class="blank7"><span></span></div>
<%Html.RenderPartial("~/themes/lightblue/userinc/Foot.ascx");%>
</asp:Content>