<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="content_searchform.aspx.cs" Inherits="JumbotCms.WebForm.Admin._searchform" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html   xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta   http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta   name="robots" content="noindex, nofollow" />
<meta   http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<script type="text/javascript" src="../_libs/jquery.tools.pack.js"></script>
<script type="text/javascript" src="../_data/jcmsV4.x.js"></script>
<link type="text/css" rel="stylesheet" href="../_data/jcmsV4.x.css" />
<link type="text/css" rel="stylesheet" href="css/common.css" />
<script type="text/javascript" src="scripts/common.js"></script>
<script type="text/javascript">
var ctype = joinValue('ctype');//频道类别
var ccid = joinValue('ccid');//频道ID
var cid = joinValue('cid');//栏目ID
var k=joinValue('k');//关键字
var f=joinValue('f');//检索字段
var s=joinValue('s');//检索状态
var isimg=joinValue('isimg');
var istop=joinValue('istop');
var isfocus=joinValue('isfocus');
var d=joinValue('d');//检索时间
function go2Search(){
	var _cid = $("#ddlKeyClass").val();
	var _k = $("#txtKeyword").val();
	var _f = $("#ddlKeyType").val();
	var _s = $("#ddlState").val();
	var _d = $("#ddlAddDate").val();
	var _isimg = $('#ddlIsImg').val();
	var _istop = $('#ddlIsTop').val();
	var _isfocus = $('#ddlIsFocus').val();
	if(( _k!="" ) && ( _f=="" ))
	{
		alert("输入关键字后一定要选择匹配字段");
		return;
	}
	top.IframeOper.location.href=site.Dir + "modules/" + q('ctype') + "_admin_list.aspx?ccid=" + q('ccid') + "&ctype=" + q('ctype') + "&cid=" + _cid + "&k=" + encodeURIComponent(_k) + "&s=" + _s + "&f=" + _f + "&d=" + _d + "&isimg=" + _isimg + "&istop=" + _istop + "&isfocus=" + _isfocus;
	top.JumbotCms.Popup.hide();
}
</script>
</head>
<body>
<form id="form1" runat="server">
	<table class="formtable">
		<tr>
			<th> 所属子类 </th>
			<td><asp:DropDownList ID="ddlKeyClass" runat="server"> </asp:DropDownList>
			</td>
		</tr>
		<tr>
			<th> 关键字 </th>
			<td><asp:TextBox ID="txtKeyword" runat="server" Width="264px" CssClass="ipt"></asp:TextBox>
				<br />
				不支持符号 </td>
		</tr>
		<tr>
			<th> 匹配字段 </th>
			<td><asp:DropDownList ID="ddlKeyType" runat="server">
				</asp:DropDownList>
			</td>
		</tr>
		<tr>
			<th> 状态 </th>
			<td><asp:DropDownList ID="ddlState" runat="server">
				</asp:DropDownList>
			</td>
		</tr>
		<tr>
			<th> 选项</th>
			<td>
			<asp:DropDownList ID="ddlIsImg" runat="server"></asp:DropDownList>
<asp:DropDownList ID="ddlIsTop" runat="server"></asp:DropDownList>
<asp:DropDownList ID="ddlIsFocus" runat="server"></asp:DropDownList>
			</td>
		</tr>
		<tr>
			<th> 发布时间 </th>
			<td><asp:DropDownList ID="ddlAddDate" runat="server">
					<asp:ListItem Value="">不限时间</asp:ListItem>
					<asp:ListItem Value="1d">今天</asp:ListItem>
					<asp:ListItem Value="1w">本周</asp:ListItem>
					<asp:ListItem Value="1m">本月</asp:ListItem>
				</asp:DropDownList>
			</td>
		</tr>
	</table>
	<div class="buttonok">
		<input id="btnSearch" type="button" value="确定" class="btnsubmit" onclick="go2Search();" />
		<input id="btnReset" type="button" value="取消" class="btncancel" OnClick="parent.JumbotCms.Popup.hide();" />
	</div>
</form>
<script type="text/javascript">_jcms_SetDialogTitle();</script>
</body>
</html>
