<%@ Control Language="c#" AutoEventWireup="True" Codebehind="Search.ascx.cs" Inherits="DreamerShop.UserControl.Search" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<form name="formadsearch" method="post" action="<%=mstrAdvFindUrl%>">
	<table width="60%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#ffffff">
		<tr>
			<td height="40" colspan="2" align="center"><%=myLanguagesDeal.GetMyString("SearchAdvanceMsg")%></td>
		</tr>
		<tr>
			<td width="40%" align="right"><%=myLanguagesDeal.GetMyString("SearchTextKey")%><!--关 健 字：--></td>
			<td width="60%" style="PADDING-LEFT:10px">
				<input class="wenbenkuang" name="SearchKey" type="text" id="SearchKey" onkeypress="return CheckInput()" maxlength="50">
			</td>
		</tr>
		<tr>
			<td align="right"><%=myLanguagesDeal.GetMyString("SearchTextKeyType")%><!--关键字类型：--></td>
			<td style="PADDING-LEFT:10px">
				<select class="wenbenkuang" name="KeyType">
					<option value="-1" selected><%=myLanguagesDeal.GetMyString("SearchTextAllType")%><!--全部类型--></option>
					<option value="1"><%=myLanguagesDeal.GetMyString("OrderFormProductName")%><!--商品名称--></option>
					<option value="2"><%=myLanguagesDeal.GetMyString("SearchTextType2")%><!--商品简介--></option>
					<option value="3"><%=myLanguagesDeal.GetMyString("DetailsProductContent")%><!--详细介绍--></option>
					<option value="4"><%=myLanguagesDeal.GetMyString("SearchTextType4")%><!--商品品牌--></option>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right"><%=myLanguagesDeal.GetMyString("SearchTextClass")%><!--商品分类：--></td>
			<td style="PADDING-LEFT:10px">
				<asp:Label id="lbClassOne" runat="server"></asp:Label>
			</td>
		</tr>
		<tr>
			<td align="right"><%=myLanguagesDeal.GetMyString("SearchTextPriceBound")%><!--价格范围：--></td>
			<td style="PADDING-LEFT:10px"><input name="PriceMin" type="text" class="wenbenkuang" maxlength="8" id="PriceMin" size="5"  onkeypress="return NumberInput()">
				- <input name="PriceMax" type="text" class="wenbenkuang" id="PriceMax" size="5" maxlength="8"  onkeypress="return NumberInput()">
			</td>
		</tr>
		<tr>
			<td height="40" colspan="2" align="center">
				<input class="go-wenbenkuang" onClick="return checkk();" type="submit" name="submit" value=" <%=myLanguagesDeal.GetMyString("SearchTextBegin")%>">
				<input class="go-wenbenkuang" type="reset" name="Clear" value=" <%=myLanguagesDeal.GetMyString("ButtonResetInf")%> ">
			</td>
		</tr>
	</table>
</form>
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckInput(){
		if (event.keyCode == 37 || event.keyCode == 39  || event.keyCode == 60  || event.keyCode == 62 )
			event.returnValue = false;
	}
function NumberInput(){
	if (event.keyCode < 45 || event.keyCode > 57)
		event.returnValue = false;
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function checkk()
{
   
	if(checkspace(document.formadsearch.SearchKey.value))
   {
	document.formadsearch.SearchKey.focus();
	alert("<%=myLanguagesDeal.GetMyString("SearchMsgInputKey")%>");
	return false;
	}
}

//-->
</SCRIPT>
