<%@ Page Language="C#" MasterPageFile="../Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Mvcmode.E_eachedition>>" %>
<%@ 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/pub.js"></script>
<script type="text/javascript">
/*以下为公用函数*/
function getLeft(obj) {
    var curleft= 0;
    while (obj) /*当前obj位置*/
    {
    curleft += obj.offsetLeft;
    obj = obj.offsetParent;
    }
    return curleft;
}
function getTop(obj) {
    var curtop = 0;
    while (obj) 
    {
    curtop += obj.offsetTop;
    obj = obj.offsetParent;
    }
    return curtop;
}
/*判断前面一个是否后面一个子对象*/
function isParent(obj,pobj)
{
    /*jquery用法:  $("H1").attr("tagName")*/
    while (obj != undefined && obj != null && obj.tagName.toUpperCase() != 'BODY')
    {        
        if (obj == pobj) 
            return true; 
        obj = obj.parentNode;   
	 }		
    return false;  
} 
</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/pub.js"></script>
<%} %>
<style type="text/css">
.otherqi{width:959px;background-color:#fff;min-height:500px;height:auto!important;height:500px;}
.otherqi ul{width:948px;padding-left:11px;padding-top:6px;padding-bottom:6px;}
.otherqi li{
	width:144px;
	float:left;
	padding-top: 5px;
	padding-right: 6px;
	padding-bottom:6px;
	padding-left: 6px;
}
</style>
</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",ishome="1",idate=ViewData["issuedate"] }); --%>
<%

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>版面导航</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 ">
<%--b_left结束--%> 
<div class="otherqi clearfix">
<ul class="clearfix">
<% 
   string link = "";
   string linkname = "";
   string imgstr="";
   int isaddtxt = E_settingbll.Sitesetting.E_type;
   foreach (var edition in  Model)
   {
       string edtemp = edition.Id + "_" + edition.Pagename;
       link = Fun.Webdirectory + Linkeachedition.eachedition(edition.Issuedate.ToString(), edtemp, 0);
       if (isaddtxt == 0)
           linkname = "第" + edition.Pagename + "版 " + edition.Pagetitle;
       else
           linkname = edition.Pagename + " " + edition.Pagetitle;
       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%>"><%=linkname%></a></div></li>
<% }%>
</ul>
</div>


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