⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collectionrules.aspx

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="PowerEasy.WebSite.Admin.Collection.CollectionRules"
    MasterPageFile="~/Admin/MasterPage.master" Title="采集规则管理" ValidateRequest="false"
    Codebehind="CollectionRules.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="Server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="Server">
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border">
        <tr align="center">
            <td colspan="2" class="spacingtitle">
                <b>
                    <pe:AlternateLiteral ID="LblTitle" Text="添加采集规则" AlternateText="修改采集规则" runat="Server" /></b>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>网站名称:</strong></td>
            <td>
                <asp:TextBox ID="TxtWebSiteName" runat="server" Width="165px"></asp:TextBox>
                <pe:RequiredFieldValidator ID="ValeWebSiteName" ControlToValidate="TxtWebSiteName"
                    ErrorMessage="网站名称不能为空!" runat="server"></pe:RequiredFieldValidator></td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>编码选择:</strong></td>
            <td style="height: 30px">
                <asp:RadioButtonList runat="server" ID="RadlCodeType" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0" Selected="True">GB2312</asp:ListItem>
                    <asp:ListItem Value="1">UTF-8</asp:ListItem>
                    <asp:ListItem Value="2">Big5</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>规则类型:</strong></td>
            <td style="height: 32px">
                <asp:RadioButton ID="RadList" AutoPostBack="true" Text="列表" GroupName="RadlRulesType"
                    runat="server" OnCheckedChanged="RadList_SelectedIndexChanged" Checked="true" />
                <asp:RadioButton ID="RadField" AutoPostBack="true" Text="字段" GroupName="RadlRulesType"
                    runat="server" OnCheckedChanged="RadList_SelectedIndexChanged" />
                <asp:RadioButton ID="RadPaing" AutoPostBack="true" Text="分页" GroupName="RadlRulesType"
                    runat="server" OnCheckedChanged="RadList_SelectedIndexChanged" />
                <asp:RadioButton ID="RadFilter" AutoPostBack="true" Text="过滤" GroupName="RadlRulesType"
                    runat="server" OnCheckedChanged="RadList_SelectedIndexChanged" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>采集Url:</strong></td>
            <td style="height: 32px">
                <asp:TextBox ID="TxtListAddress" runat="server" Width="50%"></asp:TextBox>
                <asp:Button ID="BtnShowCode" runat="server" Text="查看源代码" OnClick="BtnShowCode_Click" />
                <pe:UrlValidator ID="ValeListAddress" ControlToValidate="TxtListAddress" runat="server"></pe:UrlValidator>
            </td>
        </tr>
        <tr class="tdbg">
            <td colspan="2" style="height: 300px" class="tdbg">
                <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border" style="height: 300px">
                    <tr class="tdbg">
                        <td style="width: 45%; height: 300px" valign="top">
                            <asp:TextBox ID="TxtShowCode" runat="server" Height="320px" TextMode="MultiLine"
                                Width="100%"></asp:TextBox>
                        </td>
                        <td style="height: 300px" valign="top">
                            <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border">
                                <tbody id="PnlList" visible="true" runat="server">
                                    <tr class="tdbg">
                                        <td style="height: 40%" valign="top">
                                            列表设置开始↓<br />
                                            <asp:TextBox ID="TxtListBegin" runat="server" Height="80px" TextMode="MultiLine"
                                                Width="80%"></asp:TextBox>
                                            <br />
                                            <pe:RequiredFieldValidator ID="ValeListBegin" ControlToValidate="TxtListBegin" ErrorMessage="列表设置开始代码不能为空!"
                                                runat="server" ValidationGroup="List"></pe:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="tdbg">
                                        <td style="height: 40%" valign="top">
                                            列表设置结束↓<br />
                                            <asp:TextBox ID="TxtListEnd" runat="server" Height="80px" TextMode="MultiLine" Width="80%"></asp:TextBox>
                                            <br />
                                            <pe:RequiredFieldValidator ID="ValeListEnd" ControlToValidate="TxtListEnd" ErrorMessage="列表设置结束代码不能为空!"
                                                runat="server" ValidationGroup="List"></pe:RequiredFieldValidator>
                                            <br />
                                            <asp:Button ID="BtnTestList" runat="server" Text="测试一下" OnClick="BtnTestList_Click"
                                                ValidationGroup="List" />
                                        </td>
                                    </tr>
                                    <tr class="tdbg">
                                        <td style="height: 10%" valign="top">
                                            链接设置开始↓<br />
                                            <asp:TextBox ID="TxtLinkBegin" runat="server" Width="80%"></asp:TextBox>
                                            <br />
                                            <pe:RequiredFieldValidator ID="ValeLinkBegin" ControlToValidate="TxtLinkBegin" ErrorMessage="链接设置开始代码不能为空!"
                                                runat="server" ValidationGroup="Link"></pe:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="tdbg">
                                        <td style="height: 10%" valign="top">
                                            链接设置结束↓<br />
                                            <asp:TextBox ID="TxtLinkEnd" runat="server" Width="80%"></asp:TextBox>
                                            <br />
                                            <pe:RequiredFieldValidator ID="ValeLinkEnd" ControlToValidate="TxtLinkEnd" ErrorMessage="链接设置结束代码不能为空!"
                                                runat="server" ValidationGroup="Link"></pe:RequiredFieldValidator>
                                            <br />
                                            <asp:Button ID="BtnTestLink" runat="server" Text="测试一下" OnClick="BtnTestLink_Click"
                                                ValidationGroup="Link" />
                                        </td>
                                    </tr>
                                </tbody>
                                <tbody id="PnlField" visible="false" runat="server">
                                    <tr class="tdbg">
                                        <td style="height: 40%" valign="top">
                                            字段设置开始↓<br />
                                            <asp:TextBox ID="TxtFieldBegin" runat="server" Height="80px" TextMode="MultiLine"
                                                Width="80%"></asp:TextBox>
                                            <br />
                                            <pe:RequiredFieldValidator ID="ValeFieldBegin" ControlToValidate="TxtFieldBegin"
                                                ErrorMessage="字段设置开始代码不能为空!" runat="server" ValidationGroup="Field"></pe:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="tdbg">
                                        <td style="height: 40%" valign="top">
                                            字段设置结束↓<br />
                                            <asp:TextBox ID="TxtFieldEnd" runat="server" Height="80px" TextMode="MultiLine" Width="80%"></asp:TextBox>
                                            <br />
                                            <pe:RequiredFieldValidator ID="ValeFieldEnd" ControlToValidate="TxtFieldEnd" ErrorMessage="字段设置结束代码不能为空!"
                                                runat="server" ValidationGroup="Field"></pe:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="tdbg">
                                        <td style="height: 10%" valign="top">
                                            <asp:RadioButton ID="RadContent" runat="server" GroupName="FieldSet" Text="保存为截取内容"
                                                Checked="true" />
                                            <br />
                                            <asp:RadioButton ID="RadKeyWord" runat="server" GroupName="FieldSet" Text="保存为关键字" />
                                            关键字长度:<asp:TextBox ID="TxtKeyWord" runat="server" Text="2" Width="70px"></asp:TextBox><pe:NumberValidator
                                                ID="ValeKeyWord" ControlToValidate="TxtKeyWord" Display="Dynamic" ErrorMessage="请填写整数!"
                                                runat="server"></pe:NumberValidator>&nbsp;<br />
                                            <asp:RadioButton ID="RadDate" runat="server" GroupName="FieldSet" Text="保存为日期" />
                                            <br />
                                            <asp:CheckBox ID="ChkDesignated" runat="server" Text="是否保存为指定信息" /><asp:TextBox ID="TxtDesignated"
                                                runat="server" Text=""></asp:TextBox>&nbsp;<br />
                                            <asp:CheckBox ID="SavePhoto" runat="server" Text="是否保存远程图片" />
                                            <asp:Button ID="BtnField" runat="server" Text="测试一下" OnClick="BtnField_Click" ValidationGroup="Field" /></td>
                                    </tr>
                                </tbody>
                                <tbody id="PnlPaing" visible="false" runat="server">
                                    <tr class="tdbg">
                                        <td style="height: 40%" valign="top">
                                            选择分页类型:<br />
                                            <asp:RadioButton ID="RadlPaingType1" Text="从源代码中获取下一页的URL" GroupName="RadlPaingType"
                                                runat="server" Checked="true" />
                                            <asp:RadioButton ID="RadlPaingType2" Text="批量指定分页URL代码" GroupName="RadlPaingType"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -