<%@ 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/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/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/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/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() {
    $(function () {
        $("#usemap").haomap();
        $("#cur_qi").change(function () {
            window.location.href = this.options[this.selectedIndex].value;
        });
   });
 //   });
</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;%>
<%E_eachqi curqi = ViewData["eachqi"] as E_eachqi;
      Mvccom.Datetimeshow date=new Mvccom.Datetimeshow();   %>
 <% //在线下载
      string downfile1 = "";
      if (curqi.Ispdfurl == true)
          downfile1 = curqi.Downpdfurl.Trim();
      else
          downfile1 = Fun.Webdirectory+curqi.Downpdf.Trim();          
       %>
<%--Html.RenderAction("Top", "Userinc", new {type = "0",ishome="1",idate=ViewData["issuedate"],downfile=downfile1 }); --%>
<%
ViewData["adtype"] = "0";
ViewData["downfile"] = downfile1;
%>
<%Html.RenderPartial("~/themes/basic/userinc/Top.ascx");%>
<%--中間內容1--%>
<div class="blank10"><span></span></div>
<div class="w949 midtop1"><span></span></div>
<div class="w949 mid1">
    <div class="hleft1">
       <div class="newqi"><span class="q1">第<%=curqi.Totalqi%>期</span>&nbsp;
        <% List<E_eachqi> allqi = new List<E_eachqi>();
          allqi = ViewData["allqi"] as List<E_eachqi>; %>
       <select name="cur_qi" id="cur_qi">
      <%
          if (allqi.Count > 0)
          {
              foreach (E_eachqi qi in allqi)
              {      
                     
            %>
           <option value="<%=qi.Linkstr%>" <%if (qi.Id == curqi.Id) { Response.Write("selected=\"selected\""); }%>><%=date.Dateshow(qi.Issuedate, 2)%></option>
        <%  }
          }
          else
          {%>     
          <option value="<%=curqi.Id%>"><%=date.Dateshow(curqi.Issuedate, 2)%></option>
          <%} %>     
       </select>
       </div>
         <%if (curqi.Qilink.ToString().Length > 0)
         { %>
       <div class="img"><a href="<%=curqi.Qilink%>"><img src="<%=Fun.Webdirectory+curqi.Qipic%>" width="216" height="294" alt="" /></a></div>
       <%}
         else
         { %>
         <div class="img"><img src="<%=Fun.Webdirectory+curqi.Qipic%>" width="216" height="294" alt="" /></div>
         <%} %>
    </div>
    <div class="hright1">

     <div class="list">
        <%List<E_qiclass> qicl = new List<E_qiclass>();
          qicl = ViewData["qiclasslist"] as List<E_qiclass>;
          int i = 0;
          string dis = "";
          foreach (E_qiclass qiclass in qicl)
          {
              dis = "";
              i++; 
              //if (i >= 3 && i % 3 == 0 && i < qicl.Count)
              if (i >= 3 && i % 3 == 0 && i <= qicl.Count)
                  dis = " class=\"ll\" ";
                  
           %><dl <%=dis%>><dt <%=dis%>><%=qiclass.Classname%></dt><% 
           foreach (E_news news in qiclass.E_newsItems){
            %><dd <%=dis%>><a href="<%=news.Newslink%>"><%=news.Title%></a></dd><%} %>
             </dl>
             <%if (i >= 3 && i % 3 == 0 && i <= qicl.Count)
              {%>
              <div class="clear"><span></span></div>
            <%} %>
         <%}%>
    </div>
    <div class="clear"><span></span></div>
    </div>
    <div class="clear"><span></span></div>
</div>
<div class="w949 midbottom1"><span></span></div>
<div class="blank10"><span></span></div>
<%--中間內容1--%>

<%--中間內容2--%>
<div class="midtop2">
<div class="t1">声明</div>
<div class="t2">近期阅读</div>
</div>
<div class="mid2">
    <div class="mleft2"><%=ViewData["Declaration"]%>
    </div>
    <div class="mright2">
        <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>;
           int j = 0;
           foreach (var edition in three_editions)
           {
               j++;
               link=Linkeachqi.eachqi(edition.Issuedate.ToString(),0);
               qiname=E_eachqibll.eachqiname(edition.Issuedate.ToString(),0, 0);
               imgstr=Linkurl.imgsrc(edition.Pagepic);
               if (j > 4)
                       break;
        %>
        <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>
<div class="midbottom2"><span></span></div>
<%--中間內容2完--%>
<%--Html.RenderAction("Foot", "Userinc"); --%>
<%Html.RenderPartial("~/themes/basic/userinc/Foot.ascx");%>
</asp:Content>