<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML >
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>采集任务/网站管理</title>
</head>
<body>
<style type="text/css">
    fieldset {
        /* 	border: 1px solid #84A8E1
     */
        border: 1px solid #eee;
    }
    .firstTd{
        text-align:right;
    }
</style>
<script type="text/javascript" src="<%=request.getContextPath()%>/comm/site.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/comm/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/comm/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
    if( CKEDITOR.instances['content'] ){   //解决 例外被抛出且未被接住 问题
        CKEDITOR.remove(CKEDITOR.instances['content']);
    }
    var editor =CKEDITOR.replace("verifycontent");
</script>
    <div id="org_site_gird" data-options="region:'center', title:'所选组织'">
        <!-- table 开始 -->
        <table id="site_grid" class="easyui-datagrid"
               data-options="
			border:false,
			pagination:true,
			scrollbarSize:0,
			rownumbers:true,
			method:'get',
			checkOnSelect:true,
			fit:true,
			fitColumns:true,
			toolbar:'#site_toolbar'
		">
            <thead>
            <tr>
                <th data-options="field:'ck'" checkbox="true" width="25"></th>
                <th data-options="field:'id'" width="30">ID</th>
                <th data-options="field:'name'" width="120">站点名称</th>
                <th data-options="field:'domainUri'" width="60">站点域名</th>
                <th data-options="field:'uri'" width="220">网址/url</th>
                <th data-options="field:'createDate'" width="100">创建时间</th>
                <th data-options="field:'createBy'" width="50">配置人员</th>
                <th data-options="field:'viewStatus'" width="30">启用</th>
                <th data-options="field:'verifystatus'" width="80">验证状态</th>
            </tr>
            </thead>
        </table>
        <!-- table 结束 -->
        <!-- toolbar 开始 -->
        <div id="site_toolbar">
            <div style="margin-bottom:2px">
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="icon-add" plain="true" onclick="Site.showSiteAddDlg()">新增</a>
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="icon-edit" plain="true" onclick="Site.showSiteEditDlg()">修改</a>
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="icon-download" plain="true" onclick="Site.copySiteEditDlg()">复制</a>
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="icon-download" plain="true" onclick="Site.verSite()">验证</a>
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="icon-remove" plain="true" onclick="Site.delSite()">删除</a>
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="icon-download" plain="true" onclick="Site.exportSite()">导出</a>

            </div>
            <div style="padding-left:5px;">
                栏目名称: <input id="site_search_name" class="easyui-textbox"
                             style="width:120px;" />
                url: <input id="site_search_url" class="easyui-textbox"
                            style="width:120px" />
                所属分类: <select id="site_search_tid" class="easyui-combotree"  name="tid" style="width:200px"
                              data-options="required:false"></select>
                重要等级: <select id="site_search_leve"
                              class="easyui-combobox" name="leve" style="width:120px"
                              data-options="
					url:'back/sys/dictory/getDirectorysByValue.do?value=SiteLevel&addselect=0',
					valueField:'value',
					textField:'item',
					panelHeight:'auto',
					onSelect:Site.checkCollectSelect
					"></select>
                配置人员: <input id="site_search_createBy" class="easyui-textbox"
                             style="width:80px" />
                验证状态: <select id="site_search_verifystatus" class="easyui-combobox" name="verifystatus" style="width:80px"
                              data-options="
								panelHeight:'auto'
							">
                <option value="">全部</option>
                <option value="通过">通过</option>
                <option value="不通过">不通过</option>
            </select>
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="icon-search" onclick="Site.searchSite()">搜索</a>
            </div>
        </div>
        <!-- toolbar 结束 -->
    </div>

    <!-- 编辑采集任务/网站管理弹出窗口开始 -->
    <div id="site_dlg" class="easyui-dialog" buttons="#site_dlg_buttons"
         data-options="modal:true,closed:true,iconCls:'icon-site'"
         style="width:720px;height:600px;padding:2px;">
        <!-- 		<div id="unit_layout" class="easyui-layout" data-options="fit:true">
-->
        <form id="site_form" class="easyui-form" method="post">
            <div data-options="region:'north',split:true,border:false"
                 style="height:180px">

                <fieldset>
                    <legend>网站</legend>
                    <table cellpadding="5">
                        <tr>
                            <td class="firstTd">配置人员:</td>
                            <td colspan="4">
                                <input class="easyui-textbox" type="text"
                                       name="createBy" style="width:470px" data-options="required:true"></input>
                            </td>
                        </tr>
                        <tr>
                            <td class="firstTd">所属组织下分类:</td>
                            <td colspan="4">
                                <select id="site_input_tid" class="easyui-combotree"  name="tid" style="width:200px"
                                        data-options="required:false"></select>
                            </td>
                        </tr>
                        <tr>
                            <td class="firstTd">网站名称:</td>
                            <td colspan="4"><input class="easyui-textbox" type="text"
                                                   name="domainurl" style="width:470px" data-options="required:true"></input>
                            </td>
                        </tr>
                        <tr>
                            <td class="firstTd" width="100px">栏目名称:</td>
                            <td colspan="4"><input id="input_name_collect"
                                                   class="easyui-textbox" type="text" name="name"
                                                   style="width:470px"
                                                   data-options="required:true,
									validType:{
										length:[1,80]
									}"></input>
                            </td>
                        </tr>
                        <!-- 							<tr> -->
                        <!-- 								<td class="firstTd">爬虫客户端:</td> -->
                        <!-- 								<td><select id="ccid" class="easyui-combobox" -->
                        <!-- 									style="width:200px" name="ccid" -->
                        <!-- 									data-options=" -->
                        <!-- 					                required:false, -->
                        <!-- 					                url:'back/collection/crawlclient/queryByExample.do', -->
                        <!-- 					                valueField:'id', -->
                        <!-- 					                textField:'name', -->
                        <!-- 					                panelHeight:'80' -->
                        <!-- 					                "></select> -->
                        <!-- 								</td> -->
                        <!-- 							</tr> -->
                        <tr>
                            <td class="firstTd">网址/url:</td>
                            <td colspan="4"><input class="easyui-textbox" type="text"
                                                   name="uri" style="width:470px" data-options="required:true"></input>
                            </td>
                        </tr>
                        <tr>
                            <td class="firstTd">爬取队列:</td>
                            <td><select class="easyui-combobox" name="crawlQueue"
                                        style="width:200px"
                                        data-options="
									editable:false,
									url:'back/collection/siteDistribution/getAllSiteD.do',
									valueField:'id',
									textField:'chname',
									panelHeight:'auto',
									required:true
									"></select>
                            </td>
                        </tr>
                        <tr>
                            <td class="firstTd">媒体类型:</td>
                            <td><select class="easyui-combobox" name="category"
                                        style="width:200px"
                                        data-options="
									editable:false,
									url:'back/sys/dictory/getDirectorysByValue.do?value=WebCategory&addselect=0',
									valueField:'value',
									textField:'item',
									panelHeight:'auto',
									required:true
									"></select>
                            </td>
                        </tr>
                        <tr>
                            <!-- 	<td class="firstTd">重要等级:</td>
                                <td colspan="1"><select id="site_input_leve" class="easyui-combobox"
                                    name="leve" style="width:200px"
                                    data-options="
                    editable:false,
                    url:'back/sys/dictory/getDirectorysByValue.do?value=SiteLevel',
                    valueField:'value',
                    textField:'item',
                    panelHeight:'auto',
                    onSelect:Site.checkCollectSelect
                    "></select></td> -->
                            <td class="firstTd">国内or国外:</td>
                            <td colspan="1"><select id="site_input_isNw" class="easyui-combobox"
                                                    name="isNw" style="width:200px"
                                                    data-options="
									editable:false,
									panelHeight:'auto'
									"><option value="">请选择</option>
                                <option value="国内">国内</option>
                                <option value="国外">国外</option>
                            </select>
                            </td>
                        </tr>
                        <tr>
                            <td class="firstTd">国家名称:</td>
                            <td colspan="1">
                                <input id="site_input_locale"
                                       class="easyui-textbox" type="text" name="locale"
                                       style="width:200px"
                                       data-options="required:true,
									validType:{
										length:[1,80]
									}"></input>

                            </td>

                        </tr>
                        <tr>
                            <td class="firstTd">区域类型:</td>
                            <td colspan="1"><select id="site_input_rid"
                                                    class="easyui-combotree" name="rid" style="width:200px"
                                                    data-options="url:'back/sys/region/getRegionCombotree.do',
			     			   panelWidth:200
			     			  "></select></td>
                        </tr>
                        <tr>
                            <td class="firstTd">语言:</td>
                            <td><select id="site_input_lang" class="easyui-combobox" name="lang"
                                        style="width:200px"
                                        data-options="
					    editable:false,
					    url:'back/sys/dictory/getDirectorysByValue.do?value=language',
					    valueField:'value',
					    textField:'item',
					    panelHeight:'auto',
					    required:true
						"></select>
                            </td>
                        </tr>
                        <!-- <tr>
                            <td class="firstTd">是否需要登录认证:</td>
                            <td colspan="1"><select id="site_input_isLogin" class="easyui-combobox"
                                name="isLogin" style="width:200px"
                                data-options="
                                editable:false,
                                panelHeight:'auto',
                                onSelect:Site.isLoginSelect
                                ">
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                            </select>
                            </td>
                        </tr> -->
                        <tr>
                            <td class="firstTd">是否需要登录认证:</td>
                            <td colspan="4">
                                <input id="site_radio_isLogin" onclick="Site.needLogin()" type="radio" name="isLoginOfSite" value="1"/>是
                                <input id="site_radio_notLogin" onclick="Site.notNeedLogin()" type="radio"  name="isLoginOfSite" value="0" />否
                            </td>
                        </tr>
                    </table>
                    <div id="site_login_info" style="display:none">
                        <table cellpadding="5">
                            <tr>
                                <td class="firstTd" width="100px">登录域名</td>
                                <td colspan="4"><input class="easyui-textbox" type="text"
                                                       name="loginDomain" style="width:470px" data-options=""></input></td>
                            </tr>
                            <tr>
                                <td class="firstTd" width="100px">登录链接</td>
                                <td colspan="4"><input class="easyui-textbox" type="text"
                                                       name="loginUrl" style="width:470px" data-options=""></input></td>
                            </tr>
                            <tr>
                                <td class="firstTd">登录账号</td>
                                <td colspan="1"><input class="easyui-textbox" type="text"
                                                       name="loginName" style="width:200px" data-options=""></input>
                                </td>
                                <td>属性名称</td>
                                <td colspan="1"><input class="easyui-textbox" type="text"
                                                       name="loginNameAttr" style="width:200px" data-options=""></input>
                                </td>
                            </tr>
                            <tr>
                                <td class="firstTd">登录密码</td>
                                <td colspan="1"><input class="easyui-textbox" type="text"
                                                       name="loginPwd" style="width:200px" data-options=""></input>
                                </td>
                                <td>属性名称</td>
                                <td colspan="1"><input class="easyui-textbox" type="text"
                                                       name="loginPwdAttr" style="width:200px" data-options=""></input>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <table cellpadding="5">
                        <legend>采集配置</legend>
                        <tr>
                            <td class="firstTd" width="100px">爬取深度:</td>
                            <td><input id="site_input_depth" class="easyui-numberspinner" type="text"
                                       name="depth" style="width:200px"
                                       data-options="min:1,max:5,editable:false"></input></td>
                        </tr>
                        <tr>
                            <td class="firstTd">采集方式:</td>
                            <td><select id="site_input_collect" class="easyui-combobox" name="collect"
                                        style="width:200px"
                                        data-options="
					editable:false,
					url:'back/sys/dictory/getDirectorysByValue.do?value=CollectMethod',
					valueField:'value',
					textField:'item',
					panelHeight:'auto',
					onSelect:Site.checkCollectSelect
					"></select>
                            </td>
                        </tr>
                    </table>
                    <div id="extractRuleOfSite" style="display:none" class="easyui-tabs"
                         data-options="width:660">

                        <div title="标题" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td class="firstTd" width="100px">抽取标签:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="titleExp" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr>
                                    <td class="firstTd">抽取方式:</td>
                                    <td><select id="titleFrom" class="easyui-combobox"
                                                name="titleFrom" style="width:400px"
                                                data-options="
										editable:false,
										panelHeight:'auto',
										onSelect:Site.titleFromSelect
										">
                                        <option value="attr">从标签属性中抽取</option>
                                        <option value="html">从标签内容中抽取</option>
                                    </select></td>
                                </tr>
                                <tr id="title_sub_site" style="display:none">
                                    <td class="firstTd">排除内容:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="titleSub" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr id="title_attr_site" style="display:none">
                                    <td class="firstTd">标签属性:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="titleAttr" style="width:400px"
                                               data-options="validType:{length:[1,500]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="摘要" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td class="firstTd" width="100px">抽取标签:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="summaryExp" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr>
                                    <td class="firstTd">抽取方式:</td>
                                    <td><select id="summaryFrom" class="easyui-combobox"
                                                name="summaryFrom" style="width:400px"
                                                data-options="
										editable:false,
										panelHeight:'auto',
										onSelect:Site.summaryFromSelect
										">
                                        <option value="attr">从标签属性中抽取</option>
                                        <option value="html">从标签内容中抽取</option>
                                    </select></td>
                                </tr>
                                <tr id="summary_sub_site" style="display:none">
                                    <td class="firstTd">排除内容:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="summarySub" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr id="summary_attr_site" style="display:none">
                                    <td class="firstTd">标签属性:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="summaryAttr" style="width:400px"
                                               data-options="validType:{length:[1,500]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="关键字" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td class="firstTd" width="100px">抽取标签:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="keyExp" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr>
                                    <td class="firstTd">抽取方式:</td>
                                    <td><select id="keyFrom" class="easyui-combobox"
                                                name="keyFrom" style="width:400px"
                                                data-options="
										editable:false,
										panelHeight:'auto',
										onSelect:Site.keyFromSelect
										">
                                        <option value="attr">从标签属性中抽取</option>
                                        <option value="html">从标签内容中抽取</option>
                                    </select></td>
                                </tr>
                                <tr id="key_sub_site" style="display:none">
                                    <td class="firstTd">排除内容:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="keySub" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr id="key_attr_site" style="display:none">
                                    <td class="firstTd">标签属性:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="keyAttr" style="width:400px"
                                               data-options="validType:{length:[1,500]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="发布日期" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td class="firstTd" width="100px">抽取标签:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="dateExp" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr>
                                    <td class="firstTd">抽取方式:</td>
                                    <td><select id="dateFrom" class="easyui-combobox"
                                                name="dateFrom" style="width:400px"
                                                data-options="
										editable:false,
										panelHeight:'auto',
										onSelect:Site.dateFromSelect
										">
                                        <option value="attr">从标签属性中抽取</option>
                                        <option value="html">从标签内容中抽取</option>
                                    </select></td>
                                </tr>
                                <tr id="date_sub_site" style="display:none">
                                    <td class="firstTd">排除内容:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="dateSub" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr id="date_attr_site" style="display:none">
                                    <td class="firstTd">标签属性:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="dateAttr" style="width:400px"
                                               data-options="validType:{length:[1,500]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="作者" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td class="firstTd" width="100px">抽取标签:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="authorExp" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr>
                                    <td class="firstTd">抽取方式:</td>
                                    <td><select id="authorFrom" class="easyui-combobox"
                                                name="authorFrom" style="width:400px"
                                                data-options="
										editable:false,
										panelHeight:'auto',
										onSelect:Site.authorFromSelect
										">
                                        <option value="attr">从标签属性中抽取</option>
                                        <option value="html">从标签内容中抽取</option>
                                    </select></td>
                                </tr>
                                <tr id="author_sub_site" style="display:none">
                                    <td class="firstTd">排除内容:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="authorSub" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr id="author_attr_site" style="display:none">
                                    <td class="firstTd">标签属性:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="authorAttr" style="width:400px"
                                               data-options="validType:{length:[1,500]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="正文" data-options="closable:false" style="">
                            <table cellpadding="5">
                                <tr>
                                    <td class="firstTd" width="100px">抽取标签:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="contentExp" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr>
                                    <td class="firstTd">抽取方式:</td>
                                    <td><select id="contentFrom" class="easyui-combobox"
                                                name="contentFrom" style="width:400px"
                                                data-options="
										editable:false,
										panelHeight:'auto',
										onSelect:Site.contentFromSelect
										">
                                        <option value="attr">从标签属性中抽取</option>
                                        <option value="html">从标签内容中抽取</option>
                                    </select></td>
                                </tr>
                                <tr id="content_sub_site" style="display:none">
                                    <td class="firstTd">排除内容:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="contentSub" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr id="content_attr_site" style="display:none">
                                    <td class="firstTd">标签属性:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="contentAttr" style="width:400px"
                                               data-options="validType:{length:[1,500]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="来源" data-options="closable:false" style="">
                            <table cellpadding="5">
                                <tr>
                                    <td class="firstTd" width="100px">抽取标签:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="originExp" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr>
                                    <td class="firstTd">抽取方式:</td>
                                    <td><select id="originFrom" class="easyui-combobox"
                                                name="originFrom" style="width:400px"
                                                data-options="
										editable:false,
										panelHeight:'auto',
										onSelect:Site.originFromSelect
										">
                                        <option value="attr">从标签属性中抽取</option>
                                        <option value="html">从标签内容中抽取</option>
                                    </select></td>
                                </tr>
                                <tr id="origin_sub_site" style="display:none">
                                    <td class="firstTd">排除内容:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="originSub" style="width:400px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                                <tr id="origin_attr_site" style="display:none">
                                    <td class="firstTd">标签属性:</td>
                                    <td><input class="easyui-textbox" type="text"
                                               name="originAttr" style="width:400px"
                                               data-options="validType:{length:[1,500]}" /></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>采集过滤</legend>
                    <table cellpadding="5">
                        <tr>
                            <td class="firstTd" width="100px">ifame切换:</td>
                            <td colspan="4"><input class="easyui-textbox" type="text"
                                                   name="iframeid" style="width:200px;height:30px"
                                                   data-options="prompt:'请输入需要切换iframe的id',multiline:true,validType:{length:[1,500]}"></input></td>
                        </tr>
                        <tr>
                            <td class="firstTd" width="100px">采集范围:</td>
                            <td colspan="4"><input class="easyui-textbox" type="text"
                                                   name="scopetags" style="width:470px;height:80px"
                                                   data-options="prompt:'请输入需要采集的信息所在的标签，以“+”相连接',multiline:true,validType:{length:[1,500]}"></input></td>
                        </tr>
                    </table>
                    <div id="matchRuleOfSite" class="easyui-tabs"
                         data-options="width:660">

                        <div title="匹配URL" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td><input class="easyui-textbox" type="text"
                                               name="match" style="width:500px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="匹配标题" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td><input class="easyui-textbox" type="text"
                                               name="matchTitle" style="width:500px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="匹配摘要" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td><input class="easyui-textbox" type="text"
                                               name="matchSummary" style="width:500px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="匹配内容" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td><input class="easyui-textbox" type="text"
                                               name="matchContent" style="width:500px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="匹配发布时间" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td><input class="easyui-textbox" type="text"
                                               name="matchPublishDate" style="width:500px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="匹配来源" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td><input class="easyui-textbox" type="text"
                                               name="matchOrigin" style="width:500px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                            </table>
                        </div>
                        <div title="匹配作者" data-options="closable:false"
                             style="overflow:auto;">
                            <table cellpadding="5">
                                <tr>
                                    <td><input class="easyui-textbox" type="text"
                                               name="matchAuthor" style="width:500px"
                                               data-options="validType:{length:[1,1000]}" /></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>历史数据</legend>
                    <table cellpadding="5">
                        <tr>
                            <td class="firstTd" width="100px">（分页/日期）参数历史文章列表:</td>
                            <td colspan="4"><input class="easyui-textbox" type="text"
                                                   name="hisUriExp" style="width:470px;height:80px"
                                                   data-options=
                                                           "prompt:'分页参数历史文章列表，如：http://www.peoplerail.com/rail/list-456-[%2d{1,}].html;日期参数历史文章列表：如：http://www.chinanews.com/scroll-news/gn/[%4d{2010,2015}]/[%2d{1,12}][%2d{1,31}]/news.shtml',
                                                    multiline:true,validType:{length:[1,500]}"></input></td>
                        </tr>
                        <tr>
                            <td class="firstTd" width="100px">历史数据起始发布时间:</td>
                            <td ><input id="site_input_hisDatePoint" class="easyui-datebox" type="text"
                                        name="hisDatePoint" style="width:200px" data-options="" ></input></td>
                        </tr>
                        <tr>
                            <td class="firstTd" width="100px">历史数据采集状态:</td>
                            <td><select id="site_input_hisCrawlState" class="easyui-combobox"
                                        name="hisCrawlState" style="width:200px" data-options="panelHeight:'auto'">
                                <option value="1">未爬取</option>
                                <option value="2">已爬取</option>
                                <option value="3">重新爬取</option>
                            </select></td>
                        </tr>
                        <tr>
                            <td class="firstTd" width="100px">历史数据采集结果:</td>
                            <td colspan="4"><input id="site_input_hisCrawlRemark"name="hisCrawlRemark"
                                                   class="easyui-textbox" type="text" readonly="readonly" style="width:470px;height:80px"></input>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <legend>采集调度</legend>
                    <table cellpadding="5">
                        <!-- 							<tr> -->
                        <!-- 								<td class="firstTd" width="100px">起始时间:</td> -->
                        <!-- 								<td><input id="site_input_startTime" class="easyui-datetimebox" type="text" -->
                        <!-- 									name="startTime" style="width:200px" data-options=""></input></td> -->
                        <!-- 							</tr> -->
                        <tr>
                            <td class="firstTd" width="100px">扫描间隔(分钟):</td>
                            <td><input id="site_input_scan" class="easyui-numberbox" type="text" name="scan"
                                       style="width:200px" data-options=""></input></td>
                        </tr>
                        <tr>
                            <td class="firstTd">是否启用:</td>
                            <td><select id="site_input_status" class="easyui-combobox" name="status"
                                        style="width:200px"
                                        data-options="
									editable:false,
									panelHeight:'auto',
									">
                                <option value="1">普通爬取</option>
                                <option value="0">不启用</option>
                                <option value="2">动态爬取</option>
                                <option value="3">其他爬取</option>
                            </select></td>
                        </tr>
                    </table>
                </fieldset>
            </div>
        </form>
    </div>
    <div id="site_dlg_buttons">
        <a href="javascript:void(0)" class="easyui-linkbutton"
           iconCls="icon-ok" onclick="Site.submitSiteForm()">确定</a> <a
            href="javascript:void(0)" class="easyui-linkbutton"
            iconCls="icon-cancel" onclick="$('#site_dlg').dialog('close')">关闭</a>
    </div>
    <!-- 编辑采集任务/网站管理弹出窗口结束 -->

    <!-- 验证采集任务/网站管理 弹出窗口开始 -->
    <div id="site_verify_dlg" class="easyui-dialog" buttons="#site_verify_dlg_buttons"
         data-options="modal:true,closed:true,iconCls:'icon-site'"
         style="width:720px;height:600px;padding:2px;">
        <form id="site_verify_form" class="easyui-form" method="post">
            <table cellpadding="5">
                <tr>
                    <td>匹配URL数量:</td>
                    <td>
                        <input class="easyui-textbox"  type="text" name="verifycount" id="verifycount"
                        ></input>
                    </td>
                </tr>
                <!--
                <tr>
                        <td>采集范围:</td>
                        <td>
                        <textarea id="verifyscope" rows="22" cols="50" name="verifyscope"></textarea>
                        </td>
                </tr>
                -->
                <tr>

                    <td>验证URI:</td>
                    <td>
                        <input class="easyui-textbox"  type="text" name="verifyURL" id="verifyURL"
                        ></input>
                    </td>
                </tr>
                <tr>
                    <td>标题:</td>
                    <td>
                        <textarea id="verifytitle" rows="2" cols="70" name="verifytitle"></textarea>
                    </td>
                </tr>
                <tr>
                    <td>摘要:</td>
                    <td>
                        <textarea id="verifysummary" rows="3" cols="70" name="verifysummary"></textarea>
                    </td>
                </tr>
                <tr>
                    <td>正文:</td>
                    <td>
                        <textarea id="verifycontent" rows="20" cols="70" name="verifycontent"></textarea>
                        <!--                    <input class="easyui-textbox"  type="text" name="content" style="width:500px; height:130px;white-space:nowrap;"
                                            data-options="required:true,nowrap:false,multiline:true"></input> -->
                    </td>
                </tr>
                <tr>
                    <td>发布时间:</td>
                    <td>
                        <input id="verifypublishdate" class="easyui-textbox"  type="text" name="verifypublishdate"
                        ></input>
                    </td>
                </tr>
                <tr>
                    <td>作者:</td>
                    <td>
                        <input id="verifyauthor" class="easyui-textbox"  type="text" name="verifyauthor"
                        ></input>
                    </td>
                </tr>
                <tr>
                    <td>来源:</td>
                    <td>
                        <input class="easyui-textbox"  type="text" name="verifysource" id="verifysource"
                        ></input>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div id="site_verify_dlg_buttons">
        <a href="javascript:void(0)" class="easyui-linkbutton"
           iconCls="icon-ok" onclick="Site.setVerifyStatus('通过')">验证通过</a>
        <a href="javascript:void(0)" class="easyui-linkbutton"
           iconCls="icon-cancel" onclick="Site.setVerifyStatus('不通过')">验证不通过</a>
        <a href="javascript:void(0)" class="easyui-linkbutton"
           iconCls="icon-cancel" onclick="$('#site_verify_dlg').dialog('close')">关闭</a>
    </div>
    <!-- 验证采集任务/网站管理 弹出窗口结束 -->
</div>
</body>
</html>

