<%@ 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/daily/css/reset.css" rel="stylesheet" type="text/css" />
<link href="<%=ViewData["webd"]%>Content/themes/daily/css/all.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/pub.js"></script>
<script type="text/javascript" src="<%=ViewData["webd"]%>Content/themes/daily/js/haomap.js"></script>

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

<%} %>

<script type="text/javascript">
    $(document).ready(function () { $("#usemap").haomap(); $('#adleftbottom').load('<%=ViewData["Webd"]%>jquery/getad/leftbottom?tl=' + Math.random()); });
</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/daily/userinc/Top.ascx");%>    
    <div class="main clearfix">        
      <div class="bkleft">
        <div class="bkimg clearfix" >
            <div class="pagepic">
               <div id="bkimg">
               <%=eachban.Pagemap%>
              </div>
            </div>
        </div><!--bkimg finish-->
        <script type="text/javascript">
			 var webd="<%=ViewData["webd"]%>";
			 var mapwidth=410;	
			 var pagepic="<%=ViewData["webd"].ToString()+eachban.Pagepic.ToString()%>?editionid=<%=eachban.Id%>";        
		</script> 	
        <div class="bkimgbottom">
          <%if (eachban.Pagepdf.Contains(".jpg"))
                     {%><a href="<%=eachban.Pagepdf%>"  id="map_zoom" style="margin-right:10px;"><img src="<%=ViewData["webd"]%>Content/themes/daily/images/jpgbig2.png" alt="" width="35" height="24" /></a>  
                     <a href="<%=eachban.Pagepdf%>"  id="map_zoom_small"><img src="<%=ViewData["webd"]%>Content/themes/daily/images/jpgsmall2.png" alt="" width="35" height="24" /></a>
                     <script type="text/javascript" src="<%=ViewData["webd"]%>Comja/imgzoom.js"></script>
					<%if (1 == 0)
                      { %>
                      <script type="text/javascript" src="../../../Comja/imgzoom.js"></script>
                      <%}%>
                   <%}
                     else 
					 {
					 %>
        <a href="<%=eachban.Pagepdf%>" target="_blank"><img src="<%=ViewData["webd"]%>Content/themes/daily/images/pdficon.jpg" alt="" border="0" width="16" height="16" align="absmiddle" /> &nbsp;PDF原版</a>
                <%}%>
        
        </div>
        <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="guang" id="adleftbottom">
                      正在加载广告……
        </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/daily/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 class="tv">
        <a href="#" target="_blank"><img src="<%=ViewData["webd"]%>Content/themes/daily/images/tv.jpg" width="198" height="178" alt="" /></a>
        </div>
    </div><!--r0 214 -->
    <div class="l0 clearfix">    
        <div class="newstitle clearfix">
            <h3><span>版面新闻</span></h3>
            <div class="box clearfix " id="pagenews"> 
             <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>
        </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/daily/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/daily/userinc/Foot.ascx");%>
</asp:Content>
