<%@ page language="C#" autoeventwireup="true" inherits="c_WebManage_Collection_Info, ZhaoPinXiTong" enableEventValidation="false" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>采集资讯</title>
		<meta name="author" content="www.zhaopinxitong.com,无忧招聘系统开发制作" />
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK rel="stylesheet" type="text/css" href="../Css/Other.css">
		<script language="javascript" src="../CScript/Pub_Date.js"></script>
		<script language="javascript">
		    //以XML求取ddl_TypeSubid的数据
		    function XmlPost_TypeSubid(obj) {
		        var svalue = obj.value;
		        var webFileUrl = "?typeid=" + svalue;
		        var result = "";
		        var xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
		        xmlHttp.open("POST", webFileUrl, false);
		        xmlHttp.send("");
		        result = xmlHttp.responseText;
		        if (result != "") {
		            document.all("ddl_TypeSubid").length = 0;
		            var piArray = result.split(",");
		            for (var i = 0; i < piArray.length; i++) {
		                var ary = piArray[i].toString().split("|");
		                document.all("ddl_TypeSubid").options.add(new Option(ary[1].toString(), ary[0].toString()));
		            }
		            document.all("hid_TypeSubid").value = document.all("ddl_TypeSubid").options[document.all("ddl_TypeSubid").selectedIndex].value;
		        }
		        else {
		            document.all("ddl_TypeSubid").length = 0;
		            document.all("ddl_TypeSubid").options.add(new Option("", "1000"));
		        }
		    }
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" Runat=server>
			<!--页面顶部-->
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="PADDING-RIGHT:5px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="5"></td>
							</tr>
							<tr>
								<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="5" height="24" background="../Images/WebOffices/Right1_bg.jpg"></td>
											<td background="../Images/WebOffices/Right1_bg.jpg" style="PADDING-LEFT:8px;PADDING-TOP:2px"><font color="#ffffff"><b>采集资讯</b></font></td>
											<td width="200" align="right" background="../Images/WebOffices/Right1_bg.jpg" style="PADDING-RIGHT:8px"></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="4"></td>
							</tr>
						</table>
						<!--页面主体-->
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#D1E6F7">
							
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 采集类别：</td>
								<td><asp:DropDownList Runat=server ID="ddl_Typeid" Width="114"></asp:DropDownList>
									<asp:DropDownList Runat=server ID="ddl_TypeSubid" Width="100"></asp:DropDownList>
									<input type="hidden" Runat=server id="hid_TypeSubid" NAME="hid_TypeSubid">
									<asp:RangeValidator Runat=server ID="rav_Typeid" ControlToValidate="ddl_Typeid" MinimumValue="1001"
										MaximumValue="9999" Display="Dynamic" ErrorMessage="<br>请选择保存采集来的资讯类别！"></asp:RangeValidator>
								</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 资讯ID：</td>
								<td><asp:TextBox Runat=server ID="txt_IDMin" Width="102"></asp:TextBox>
									-
									<asp:TextBox Runat=server ID="txt_IDMax" Width="100"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_IDMin" ControlToValidate="txt_IDMin" Display="Dynamic" ErrorMessage="<br>请输入数据源内资讯起始ID" />
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_IDMax" ControlToValidate="txt_IDMax" Display="Dynamic" ErrorMessage="<br>请输入数据源内资讯截止ID" />
									<asp:RegularExpressionValidator Runat=server ID="rev_IDMin" ControlToValidate="txt_IDMin" ValidationExpression="^[0-9]*$"
										Display="Dynamic" ErrorMessage="<br>起始ID只限数字！" />
									<asp:RegularExpressionValidator Runat=server ID="rev_IDMax" ControlToValidate="txt_IDMax" ValidationExpression="^[0-9]*$"
										Display="Dynamic" ErrorMessage="<br>截止ID只限数字！" />
								</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:20px">发布日期：</td>
								<td><asp:TextBox Runat=server ID="txt_DateMin" Width="102"  onclick="SD(this,'document.all.txt_DateMin')"></asp:TextBox>
									-
									<asp:TextBox Runat=server ID="txt_DateMax" Width="100"  onclick="SD(this,'document.all.txt_DateMax')"></asp:TextBox>
								</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:20px">关键字：</td>
								<td><asp:TextBox Runat=server ID="txt_Key" Width="220" /></td>
							</tr>
						</table>
						<TABLE cellSpacing="1" cellPadding="4" width="100%" bgColor="#ffffff" border="0">
							<TR bgColor="#ffffff">
								<TD style="PADDING-LEFT: 20px" width="100" height="25">&nbsp;</TD>
								<TD><asp:Button id="btn_Submit" Runat=server Text="开始采集" OnClick="btn_Submit_Click"></asp:Button>
									<asp:Label id="lbl_Error" Runat=server ForeColor="#ff0000"></asp:Label></TD>
							</TR>
						</TABLE>
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#D1E6F7">
							<tr bgcolor="#ffffff">
								<td style="PADDING-LEFT:20px"><font color="#777777">操作说明：<br>
								① 资讯ID为数据源内资讯的ID范围，为保证速度，请尽量保持ID范围不大于100；<br>
								② 选择发布日期，表示所采集的资讯在数据源内需在该日期范围内发布；<br>
								③ 输入关键字，表示所采集的资讯内必须含有该关键字，主要用来确定资讯类别；
								</font></td>
							</tr>
						</table>
						<!--主体结束-->
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>