<%@ page contentType="text/html; charset=GBK" session="false"%>
<%@ taglib uri="/cmsTag" prefix="cms"%>

<!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="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
		<link href="../style/blue/css/main.css" type="text/css" rel="stylesheet" />
		<link href="../style/blue/css/reset-min.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../common/js/jquery-1.7.gzjs"></script>
		<script type="text/javascript" src="../style/blue/js/tab_change.js"></script>
		<script language="javascript" type="text/javascript" src="../javascript/My97DatePicker/WdatePicker.js"></script>
		<script>  

         if("true"==="${param.fromFlow}")
         {
           
      		var api = frameElement.api, W = api.opener; 
		            
             api.close();
             
             W.window.location.reload();
         }
        
      </script>

	</head>
	<body>

		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td align="left" valign="top">
					<!--main start-->
					<div class="addtit">
						<img src="../style/blue/icon/application-import.png" width="16" height="16" />
						Web采集
					</div>

					<form id="pickWebForm" name="pickWebForm" method="post">
						<table width="100%" border="0" cellpadding="0" cellspacing="0" class="form-table">


							<tr>
								<td width="23%" class="input-title">
									采集名:
								</td>
								<td width="80%" class="td-input">
									<input id="pickWebName" name="pickWebName" type="text" class="form-input" size="32" />
									<span class="red">*</span><span class="ps"></span>
								</td>
							</tr>

							<tr>
								<td class="input-title">
									采集栏目:
								</td>
								<td class="td-input">
									<select name="classId" " id="classId">
										<option value="-1">
											------请选择内容采集栏目------
										</option>
										<cms:DisplayClass />
									</select>
								</td>
							</tr>




							<tr>
								<td class="input-title">
									采集起始列表地址:
								</td>
								<td class="td-input">
									<textarea id="startEntryUrl" name="startEntryUrl" class="form-textarea" style="width:560px; height:60px;"></textarea>
								</td>
							</tr>

							<tr>
								<td class="input-title">
									内容页地址:
								</td>
								<td class="td-input">
									<textarea id="contentEntryUrl" name="contentEntryUrl" class="form-textarea" style="width:560px; height:60px;"></textarea>
								</td>
							</tr>



							<tr>
								<td class="input-title">
									标题开始匹配：
								</td>
								<td class="td-input">
									<textarea id="titleStart" name="titleStart" class="form-textarea" style="width:500px; height:60px;"></textarea>
								</td>
							</tr>

							<tr>
								<td class="input-title">
									标题结束匹配：
								</td>
								<td class="td-input">
									<textarea id="titleEnd" name="titleEnd" class="form-textarea" style="width:500px; height:60px;"></textarea>
								</td>
							</tr>

							<tr>
								<td class="input-title">
									内容开始匹配：
								</td>
								<td class="td-input">
									<textarea id="contentStart" name="contentStart" class="form-textarea" style="width:500px; height:60px;"></textarea>
								</td>
							</tr>

							<tr>
								<td class="input-title">
									内容结束匹配：
								</td>
								<td class="td-input">
									<textarea id="contentEnd" name="contentEnd" class="form-textarea" style="width:500px; height:60px;"></textarea>
								</td>
							</tr>







							<tr>
								<td class="input-title">
									工作状态
								</td>
								<td class="td-input">
									<input type="radio" name="useState" value="1" checked />
									启用
									<input type="radio" name="useState" value="0" />
									停用
								</td>
							</tr>





						</table>
						<!-- hidden -->


					</form>
					<table width="100%" border="0" cellspacing="0" cellpadding="0" >
						<tr class="btnbg100">
							<td width="37%" class="input-title"></td>
							<td width="87%" class="td-input">
								<a href="javascript:submitPickWebForm();" class="btnwithico"><img src="../style/icons/tick.png" width="16" height="16" /><b>确认&nbsp;</b> </a>
								<a href="javascript:close();" class="btnwithico" onclick=""><img src="../style/icon/close.png" width="16" height="16"><b>取消&nbsp;</b> </a>
							</td>
							<td valign="top">
								<br />
							</td>
						</tr>
					</table>


				</td>
			</tr>

			<tr>
				<td height="10">
					&nbsp;
				</td>
			</tr>
		</table>
		<!--[if lt IE 7]>
        <script type="text/javascript" src="js/unitpngfix.js"></script>
<![endif]-->
	</body>
</html>
<script>  



function submitPickWebForm()
{
	var form = document.getElementById("pickWebForm");
	
	form.action = '../../pick/pickWeb.cmd';
	form.submit();
}


function close()
{
	api.close();
}
  
  
function displaySourceTr(flag)
{
	if('true' == flag)
	{
		document.getElementById('pubSourceFolderTr').style.display='';
	}
	else
	{
		document.getElementById('pubSourceFolderTr').style.display='none';
	}
}

function openSiteFileInfoList()
{
	W.$.dialog({ 
    	title :'选择站点目录',
    	width: '700px', 
    	height: '500px',
    	parent:api, 
    	lock: true, 
        max: false, 
        resize: false,
        
        
        content: 'url:<cms:Domain/>/core/deploy/ListSiteFileInfo.jsp'
	});
}
</script>
