<%@ page language="C#" autoeventwireup="true" inherits="Admin_Admin_Collect_Edit, App_Web_ahimsrpm" %>

<!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 id="Head1" runat="server">
    <title>规则运行向导</title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="../css/Admin.css" rel="stylesheet" />
    <style type="text/css">
        input
        {
	        width:60%;
	        margin-left:10px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="tips" style="color:Red; font-weight:bolder">注意：如果分析方式为 "前后切割" 请一定要将前后内容以 $ 号隔开！
            </div>
            <div class="tips" style="color:Red; font-weight:bolder"><asp:Label ID="lab_Message" runat="server" Text="这里将显示出错信息"></asp:Label>
            </div>
    </div>
    <div id="first" runat="server">
            <table>
                <thead>
                    <tr>
                        <td colspan="2"><div class="tips" style="color:Red; font-weight:bolder">
            第一步:填写规则名称及页面获取软件ID信息.</div>
                        </td>
                    </tr>
                </thead>
                <tbody>
                <tr>
                    <td colspan="2" style="text-align: left">
                        </td>
                    </tr>
                <tr>
                        <td style="width: 20%">
                            规则名称</td>
                        <td style="width:80%; text-align: left">
                            <Ws:TextBox ID="txt_name" runat="server" Width="60%" ValidNull="False" ReadOnly="True"></Ws:TextBox><span style="color:Red">*规则名称不可修改</span></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            备注</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_remark" runat="server" Width="60%"></Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            网站编码</td>
                        <td style="width: 80%; text-align: left">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
                                RepeatLayout="Flow" Width="80%">
                                <asp:ListItem Selected="True">GB2312</asp:ListItem>
                                <asp:ListItem>utf-8</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            捕捉目标地址</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_url" runat="server" Width="60%" ValidType="Url"></Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            捕捉范围</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_fanwei" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                            分析方式：前后切割。请尽量缩小捕捉范围。</td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            捕捉软件地址特征</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_tezheng" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                            分析方式：正则表达式</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <Ws:Button ID="btn_firstnext" runat="server" Text="下一步>" OnClick="btn_firstnext_Click" Styles="WebButton"  Type="Wait" Format-Value="正在处理，请稍候..." /></td>
                    </tr>
                    </tbody>
                    </table>
                  </div>
                    <div id="second" runat="server">
            <table>
                <thead>
                    <tr>
                        <td colspan="2"><div class="tips">
                            第二步:获取到软件信息页地址,填写软件信息采集规则.</div>
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td style="width: 20%">
                            捕捉到的内容</td>
                        <td style="width:80%; text-align: left">
                            <Ws:TextBox ID="txt_idlist" runat="server" Width="60%" Rows="6" TextMode="MultiLine"></Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            软件信息页地址</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_softurl" runat="server" Width="60%"></Ws:TextBox><br />
                            填写方式：例，http://www.onlinedown.net/soft/<span style="color: #ff0000">{$softid$}</span>.htm。主要用于按照软件ID采集。</td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            软件分页页码地址</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_biaozhunpage" runat="server" Width="60%"></Ws:TextBox><br />
                            填写方式：例，http://www.skycn.com/new/all_<span style="color: #ff0000">{$pageid$}</span>.html。主要用于按照分页页码采集。</td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            捕捉范围</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_ruanjianfanwei" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                            分析方式：前后切割。请尽量缩小捕捉范围。</td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            软件名称</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_softname" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                            分析方式：<asp:RadioButtonList ID="rdolt_softname" runat="server" RepeatDirection="Horizontal"
                                RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem><asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    
                    <tr>
                        <td style="width: 20%">
                            一级分类</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_typefirst" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_typefirst" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem><asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            二级分类</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_typesecond" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_typesecond" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            软件大小</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_size" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_size" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            软件类别</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_class" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_class" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            软件语言</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_lan" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_lan" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            授权方式</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_shouquan" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_shouquan" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            运行环境</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_plat" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_plat" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            更新时间</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_time" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_time" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            官方地址</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_web" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_web" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            软件图片</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_img" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                            <asp:RadioButtonList ID="rdolt_img" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList><br />
                            填写方式：例如&lt;img src="../img/help.gif"&gt;，正则表达式为：&lt;img src="<strong>([^&lt;|&gt;]*)</strong>"&gt;<br />
                            <span style="color: #ff0000"><strong>*必须将src中整个引号中的内容作为变量</strong></span></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            软件介绍</td>
                        <td style="width: 80%; text-align: left">
                        <Ws:TextBox ID="txt_intro" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                             分析方式：<asp:RadioButtonList ID="rdolt_intro" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem>正则表达式</asp:ListItem>
                                <asp:ListItem Selected="True">前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            下载地址页面地址</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_isdown" runat="server" Rows="6" TextMode="MultiLine" Width="60%">0</Ws:TextBox><br />
                            分析方式：<asp:RadioButtonList ID="rdolt_isdown" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Width="50%">
                                <asp:ListItem Selected="True">正则表达式</asp:ListItem>
                                <asp:ListItem>前后切割</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <Ws:Button ID="btn_secnodabove" runat="server" Text="<上一步" Styles="WebButton"  Type="Wait" Format-Value="正在处理，请稍候..." OnClick="btn_secnodabove_Click" />
                            <Ws:Button ID="btn_secnodnext" runat="server" Text="下一步>" Styles="WebButton"  Type="Wait" Format-Value="正在处理，请稍候..." OnClick="btn_secnodnext_Click" /></td>
                    </tr>
                    </tbody>
                    </table>
                    </div>
                    
                    <div id="third" runat="server">
            <table>
                <thead>
                    <tr>
                        <td colspan="2"><div class="tips">
                            第三步:获取到软件信息内容,填写软件下载地址列表采集规则.</div>
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td style="width: 20%">
                            捕捉到的内容</td>
                        <td style="width:80%; text-align: left">
                            <Ws:TextBox ID="txt_downliast" runat="server" Width="60%" Rows="6" TextMode="MultiLine"></Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            下载地址捕捉范围</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_downfanwei" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox><br />
                            分析方式：前后切割。请尽量缩小捕捉范围。</td>
                    </tr>
                    
                    <tr>
                        <td style="width: 20%">
                            捕捉特征<br />必须包含服务器地址和服务器名称两个变量</td>
                        <td style="width: 80%; text-align: left">
                            <Ws:TextBox ID="txt_downtezheng" runat="server" Rows="6" TextMode="MultiLine" Width="60%"></Ws:TextBox>
                            分析方式：正则表达式</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <Ws:Button ID="btn_down_above" runat="server" Text="<上一步" Styles="WebButton"  Type="Wait" Format-Value="正在处理，请稍候..." OnClick="btn_down_above_Click" />
                            <Ws:Button ID="btn_down_next" runat="server" Text="下一步>" Styles="WebButton"  Type="Wait" Format-Value="正在处理，请稍候..." OnClick="btn_down_next_Click" /></td>
                        
                    </tr>
                    </tbody>
                    </table></div>
                    
                    <div id="fourth" runat="server">
            <table>
                <thead>
                    <tr>
                        <td colspan="2"><div class="tips">
                            第四步:获取到软件下载地址内容</div>
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td style="width: 20%">
                            捕捉到的内容</td>
                        <td style="width:80%; text-align: left">
                            <Ws:TextBox ID="txt_download" runat="server" Width="60%" Rows="6" TextMode="MultiLine"></Ws:TextBox></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <Ws:Button ID="btn_save_above" runat="server" Text="<上一步" Styles="WebButton"  Type="Wait" Format-Value="正在处理，请稍候..." OnClick="btn_save_above_Click" />
                            <Ws:Button ID="btn_save" runat="server" Text=" 保 存 " Styles="WebButton"  Type="Wait" Format-Value="正在处理，请稍候..." OnClick="btn_save_Click" /></td>
                    </tr>
                    </tbody>
                    </table>
                        <br />
                        </div>
    </form>
</body>
</html>