<%@ 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 src="<%=ViewData["webd"]%>Content/themes/basic/js/searchqi.js" type="text/javascript"></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)
{
    while (obj && 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/swf.js"></script>
<script src="../../../Content/themes/basic/js/searchqi.js" type="text/javascript"></script>

<%} %>
<style type="text/css">
.tt09{
	width:887px;
	min-height:300px;
	height:auto!important;
	height:300px;
	font-size:14px;
	line-height:180%;
	margin-right: auto;
	margin-left: auto;
	padding-top: 12px;
	padding-right: 30px;
	padding-bottom: 15px;
	padding-left: 30px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #d7d7d7;
	border-left-color: #d7d7d7;	background-color: #FFF;	
}
select#qi_sel{
	border: 1px solid #7E9DB9;
}
.tt09 td{ font-size:14px;text-align:left;line-height:180%}
.tt09_input01{ border:#7E9DB9 1px solid; height:19px; width:320px;}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%--Html.RenderAction("Top", "Userinc", new { adsrc = "Content/themes/basic/images/53bk.jpg", type = "0",ishome="0",idate=ViewData["issuedate"] }); --%>
<%

ViewData["adsrc"] = Fun.Webdirectory + "Content/themes/basic/images/53bk.jpg";
ViewData["adtype"] = "0";
ViewData["ishome"] = "0";
%>
<%Html.RenderPartial("~/themes/basic/userinc/Top.ascx");%>
<div class="blank3"><span></span></div>
<div class="path">
<div class="path1">您正在阅读：<%=ViewData["path"]%><strong>报刊搜索</strong></div>     
</div>
<div class="blank6"><span></span></div>
<div class="main  clearfix ">
<%--b_left结束--%> 
<div class="w949top"><span></span></div>
<div style="width:100%;padding-top:0px;padding-bottom:0px;background-image: none;background-color: #FFF;">
<form action="<%=ViewData["webd"]%>search" method="post" name="search1" id="search1" >
<div class="tt09">
 <div style="padding-bottom:20px;"><img src="<%=ViewData["webd"]%>Content/themes/basic/images/p1_bkzz.gif" alt="" /></div>
 <table cellspacing="3" cellpadding="0" width="90%" border="0">
     <tr>
       <td align="right">搜索关键词:</td>
       <td colspan="2">
   <input type="text" value=""  class="tt09_input01" id="key" name="key" />
   <input type="button" value="搜索"  onclick="document.getElementById('search1').submit();" /></td>
       </tr>
     <tr>
       <td align="right">排序字段：</td>
       <td width="103"><select size="1" name="sort" id="sort">
         <option   value="date" selected="selected">日期</option>
         <option   value="name">相关度</option>
         </select>       </td>
       <td width="556">
          <%string check="checked=\"checked\""; %>
         <label><input type="radio" value="up" name="order" id="order1" /> 升序</label>
         <label>  <input type="radio" <%=check%> value="down" name="order"  id="order2" /> 降序</label> </td>
     </tr>
     <tr>
       <td width="95" align="right" valign="top">  刊期选择：</td>
       <td colspan="2">       
       <script type="text/javascript">
		$(function () {
			var l = document.getElementById("date_qi");
			var yearurl = "<%=ViewData["webd"]%>jquery/Year";
			var monthurl = "<%=ViewData["webd"]%>jquery/Month";
			var qiurl = "<%=ViewData["webd"]%>jquery/Monthqi";        
			var selyear = document.getElementById("qi_year");
			var selmonth = document.getElementById("qi_month");
			var selqi = document.getElementById("qi_sel");
			var selpage=document.getElementById("eachpage");
			var nowyear = "";
			var nowmonth = "";
			var nowqi="";
			var isadd="";
			var isnews="";
			var initqi = new Startgetqi();
			//加载年份
			initqi.loadyear(selyear, nowyear, yearurl);
			//加载月份
			initqi.loadmonth(selmonth, nowyear, nowmonth, monthurl);
			//加载刊期       
    		initqi.loadqi(selqi, nowyear, nowmonth, nowqi, qiurl, isadd,isnews);
	
			$("#qi_year").change(function () {
				var tempy = this.options[this.selectedIndex].value;
				if (tempy != "") {
					//月份变化;  
					selmonth.options.length = 0;
					opt(selmonth, "月份", "", 0);
					initqi.loadmonth(selmonth, tempy, nowmonth, monthurl);
					//刊期变化
					selqi.options.length = 0;
					opt(selqi, "选择刊期", "", 0);
					initqi.loadqi(selqi, tempy, "", nowqi, qiurl, isadd,isnews);
				}
			});
			$("#qi_month").change(function () {
				var tempy = selyear.options[selyear.selectedIndex].value;
				var tempm = this.options[this.selectedIndex].value;
				if (tempy != "" && tempm != "") {
					//刊期变化;
					selqi.options.length = 0;
					opt(selqi, "选择刊期", "", 0);
					initqi.loadqi(selqi, tempy, tempm, nowqi, qiurl, isadd,isnews);
				}
			});
		});   
	</script>
       <div id="date_qi" style="float:left;">
        <select id="qi_year" name="qi_year">
        <option value="">年份</option>
        </select>
        <select id="qi_month" name="qi_month">
        <option value="">月份</option>
        </select>
        <select id="qi_sel" name="qi_sel">
        <option value="">选择刊期</option>
        </select>
       </div>
       </td>
     </tr>
     <tr>
       <td valign="top" align="right">&nbsp;</td>
       <td  colspan="2" style="text-align:right">&nbsp;</td>
     </tr>
 </table>
</div>
</form></div>
<div class="w949bottom"><span></span></div>
<div class="blank6"><span></span></div>
</div><!--main结束-->   
<div class="clear"><span></span></div>
<%--Html.RenderAction("Foot", "Userinc"); --%>
<%Html.RenderPartial("~/themes/basic/userinc/Foot.ascx");%>
</asp:Content>