<%@ page language="C#" masterpagefile="~/SiteServer/MasterPage/PageTemplate.Master" autoeventwireup="true" inherits="SiteServer_Collect_Collect_Add, v5star.Web" title="Untitled Page" theme="Default" %>

<%@ Register Src="Channel.ascx" TagName="Channel" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="Server">
    <aspx:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
        HeadTitleTxt="采集管理" HeadOPTxt="添加">
        <aspx:HeadMenuButtonItem ButtonIcon="back.gif" ButtonName="返回" ButtonPopedom="List"
            ButtonUrl="history.back()" ButtonUrlType="JavaScript" ButtonVisible="True" />
    </aspx:HeadMenuWebControls>
    <aspx:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <aspx:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="采集站点">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr id="TopTr" runat="server">
                    <td class="table_body" align="right">
                        采集站点名称：</td>
                    <td class="table_none">
                         <asp:TextBox runat="server" ID="TxtSiteName" Width="65%" MaxLength="40" CssClass="form"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请填写采集站点名称!"
                                ControlToValidate="TxtSiteName" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator></td>
                </tr>
                <tr id="Tr1" runat="server">
                    <td align="right" class="table_body">
                        采集对象页：
                    </td>
                    <td class="table_none">
                         <asp:TextBox runat="server" ID="TxtSiteURL" Width="65%" onchange="ChangeUrl()"
                                MaxLength="250" CssClass="form">http://</asp:TextBox>
                            <a id="A_Preview" href="#" target="_blank" class="list_link">预览</a>

                            <script language="javascript" type="text/javascript">
                    ChangeUrl();
                            </script>

                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxtSiteURL"
                                Display="Dynamic" ErrorMessage="请填写采集对象页!" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtSiteURL"
                                Display="Dynamic" ErrorMessage="请填正确的URL格式，以http://或https://开头" SetFocusOnError="True"
                                ValidationExpression="^[hH][tT]{2}[pP][sS]?://.+"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr id="Tr2" runat="server">
                    <td align="right" class="table_body">
                        采集页编码方式：</td>
                    <td class="table_none">
                    <asp:TextBox runat="server" ID="TxtEncode" Width="200px" MaxLength="50" Text="GB2312"
                                CssClass="form" />
                            例如: <span style="cursor: hand" onclick="ChooseEncode(this)">GB2312</span>、<span style="cursor: hand"
                                onclick="ChooseEncode(this)">UTF-8</span>、<span style="cursor: hand" onclick="ChooseEncode(this)">BIG5</span>
                    </td>
                </tr>
                <tr id="Tr3" runat="server">
                    <td align="right" class="table_body">
                        入库后所属新闻栏目：</td>
                    <td class="table_none">
                        <uc1:Channel ID="ddlChannel" runat="server" />
                    </td>
                </tr>
                <tr id="Tr4" runat="server">
                    <td align="right" class="table_body">
                        审核状态:：</td>
                    <td class="table_none">
                     <asp:DropDownList ID="DdlAudit" runat="server" Height="21px" Width="92px">
                                <asp:ListItem Value="0">不审核</asp:ListItem>
                                <asp:ListItem Value="1">通过审核</asp:ListItem>
                            </asp:DropDownList>
                    </td>
                </tr>
                <tr id="Tr5" runat="server">
                    <td align="right" class="table_body">
                        采集参数：</td>
                    <td class="table_none">
                        <asp:CheckBox runat="server" ID="ChbSavePic" Text="保存远程图片" />
                        <asp:CheckBox runat="server" ID="ChbReverse" Text="是否倒序采集" />
                        <asp:CheckBox runat="server" ID="ChbPicNews" Text="内容中包含图片时设置为图片新闻" /></td>
                </tr>
                <tr id="Tr6" runat="server">
                    <td align="right" class="table_body">
                        过滤选项：</td>
                    <td class="table_none">
                        <asp:CheckBox runat="server" ID="ChbHTML" Text="HTML" />
                        <asp:CheckBox runat="server" ID="ChbSTYLE" Text="STYLE" />
                        <asp:CheckBox runat="server" ID="ChbDIV" Text="DIV" />
                        <asp:CheckBox runat="server" ID="ChbA" Text="A" />
                        <asp:CheckBox runat="server" ID="ChbCLASS" Text="CLASS" />
                        <asp:CheckBox runat="server" ID="ChbFONT" Text="FONT" />
                        <asp:CheckBox runat="server" ID="ChbSPAN" Text="SPAN" />
                        <asp:CheckBox runat="server" ID="ChbOBJECT" Text="OBJECT" />
                        <asp:CheckBox runat="server" ID="ChbIFRAME" Text="IFRAME" />
                        <asp:CheckBox runat="server" ID="ChbSCRIPT" Text="SCRIPT" /></td>
                </tr>
                <tr id="Tr7" runat="server">
                    <td colspan="2" align="center">
                        &nbsp;<asp:Button ID="BtnSiteOK" Text=" 保 存 " runat="server" CssClass="button_bak"
                            OnClick="BtnSiteOK_Click" />
                        <asp:Button ID="BtnNext" Text="下一步" CssClass="button_bak" runat="server" OnClick="BtnNext_Click" />
                        <input type="reset" value=" 重 置 " class="button_bak" />
                    </td>
                </tr>
            </table>
        </aspx:TabOptionItem>
    </aspx:TabOptionWebControls>
    <script type="text/javascript">
    <!--
    function ChangeUrl()
    {
        var obj = document.getElementById("A_Preview");
        obj.href = obj.parentNode.firstChild.value;
    }
    function ChooseEncode(obj)
    {
        obj.parentNode.firstChild.value = obj.innerText;
    }
   window.onload=ChangeUrl;
      //-->
</script>
</asp:Content>

