<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="admin_spider_webitem, localhost_deploy" %>

<%@ Register Src='../../common/formitem.ascx' TagName='formitem' TagPrefix='uc1' %>
<!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 runat="server">
<title>网站编辑页</title>
<link href='/admin/common/client.css' rel='stylesheet' type='text/css' />

</head>
<body onload="LoadBody()" >
<br />
<%
	Formitem.Table="Sys_Collection";
	Formitem.Head="采集网站";
	Formitem.Action="";
	
	Formitem.AddOther("@@Csharp.SetInputHidden('WForbiddenUrl','')@@");//旧的地址
	Formitem.AddOther("@@Csharp.SetInputHidden('WUrlReg','')@@");//旧的地址
	
	
	Formitem.AddOther("@@Csharp.SetInputHidden('C_GUID','"+Formitem.ChooseValue("@@Table[\"Sys_Collection\"].C_GUID@@",System.Guid.NewGuid().ToString())+"')@@");//旧的地址
	
	
	Formitem.AddItem("@@Csharp.SetInputSelect('采集类型','C_Type','##Const.CollectionType()##','##Table[\"Sys_Collection\"].C_Type##','true','"+GetTip("33-1")+"')@@");
	
	Formitem.AddItem("@@Csharp.SetInputText('采集名称','C_Name','##Table[\"Sys_Collection\"].C_Name##','35','true','"+GetTip("33-2")+"')@@");
	
	Formitem.AddItem("@@Csharp.SetInputText('搜索关键词','W_Keys','','35','true','"+GetTip("33-3")+"')@@");
	
	Formitem.AddItem("@@Csharp.SetInputText('网站地址','W_Url','http://','70','true','<br />举例：http://www.sohu.com，必须包括http://。"+GetTip("33-4")+"')@@");
	Formitem.AddItem("@@Csharp.SetTextArea('内容链接正则','W_UrlReg','','10','false','<br />建议设置链接正则，确定内容页面；不输入将表示整个网站<br />都将采集。"+GetTip("33-5")+"')@@");
	Formitem.AddItem("@@Csharp.SetTextArea('禁止采集的目录','W_ForbiddenUrl','','10','false','"+GetTip("33-6")+"')@@");
	
	Formitem.AddItem("<tr class='nodsp'><td class='tright'>输入XML：</td><td class='tleft'><textarea rows='10' name='C_XML' id='C_Input' class='inputbox'>"+Formitem["C_XML"]+"</textarea></td></tr>");
	
%>	
<uc1:formitem ID='Formitem' runat='server' />
<script type="text/javascript" src="webitem.js" charset="utf-8"></script>

</body>
</html>   
