<%@ Page Title="" Language="C#" MasterPageFile="~/Management/SiteManage.Master" AutoEventWireup="true"
    CodeBehind="SiteInfo.aspx.cs" Inherits="Amr.SuperSiteGroup.Web.Management.SiteInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="right">
        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="edit">
            <tr>
                <td class="title_edit">
                    <h1>
                        站点基本配置</h1>
                </td>
            </tr>
            <tr>
                <td class="edit_main">
                    <table width="100%" border="0" cellspacing="1" cellpadding="1" class="table_list">
                        <tr>
                            <td colspan="2" align="center">
                                    <asp:Label ID="errorInfo" runat="server" ForeColor="Red"></asp:Label>
                                        <asp:Label ID="successInfo" runat="server" ForeColor="Green"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    网站名称：</div>
                            </td>
                            <td>
                                <asp:TextBox ID="siteNameBox" runat="server"></asp:TextBox>
                                &nbsp;<span class="gray">(将会提交至官方最新网站区) </span>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <div align="right">
                                    授权站点(本站)信息：</div>
                            </td>
                            <td>
                                协议：<asp:DropDownList ID="selfProtoco" runat="server">
                                    <asp:ListItem Value="0">http</asp:ListItem>
                                    <asp:ListItem Value="1">https</asp:ListItem>
                                </asp:DropDownList>
                                子域名：<asp:TextBox ID="selfChildDomain" runat="server" ValidationGroup="siteinfo" Width="60px"></asp:TextBox>
                                根域名：<asp:TextBox ID="selfRootDomain" runat="server" ValidationGroup="siteinfo"></asp:TextBox>
                                <validation targetid="<%=selfRootDomain.ClientID%>" targetname="本站根域名" type="text" />
                                端口：<asp:TextBox ID="selfSitePort" runat="server" ValidationGroup="siteinfo" Width="42px">80</asp:TextBox>
                                <validation targetid="<%=selfSitePort.ClientID%>" targetname="本站端口" type="number" />
                                <br />
                                <span class="gray">例：http://www.example.com:8080，协议为http，子域名为www，根域名为example.com，端口号8080<br />
                                （http协议默认为80，https默认为443，请正确填写，否则网站将无法正常工作）。该信息将会提交至官方最新网站区
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <div align="right">
                                    采集目标站信息：</div>
                            </td>
                            <td>
                                协议：<asp:DropDownList ID="targetProtoco" runat="server">
                                    <asp:ListItem Value="0">http</asp:ListItem>
                                    <asp:ListItem Value="1">https</asp:ListItem>
                                </asp:DropDownList>
                                子域名：<asp:TextBox ID="targetChildDomain" runat="server" ValidationGroup="siteinfo"
                                    Width="60px"></asp:TextBox>
                                根域名：<asp:TextBox ID="targetRootDomain" runat="server" ValidationGroup="siteinfo"></asp:TextBox>
                                <validation targetid="<%=targetRootDomain.ClientID%>" targetname="目标站根域名" type="text" />
                                端口：<asp:TextBox ID="targetPort" runat="server" ValidationGroup="siteinfo" Width="42px">80</asp:TextBox>
                                <validation targetid="<%=targetPort.ClientID%>" targetname="目标站端口" type="number" />
                                <br />
                                <span class="gray">格式规则同上，请正确填写，否则网站将无法正常工作。  </span>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td>
                                <div align="right">
                                    网站关键字：</div>
                            </td>
                            <td>
                                <asp:TextBox ID="siteKeywordsBox" runat="server"></asp:TextBox>
                                &nbsp;<span class="gray"><span class="red">(当采集目标站未设置关键字时生效。)</span></span>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td>
                                <div align="right">
                                    网站描述：</div>
                            </td>
                            <td>
                                <asp:TextBox ID="siteDescriptionBox" runat="server"></asp:TextBox>
                                &nbsp;<span class="gray"><span class="red">(当采集目标站未设置描述时生效。)</span></span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    ICP备案号：</div>
                            </td>
                            <td>
                                <asp:TextBox ID="siteIcpBox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    站长Email：</div>
                            </td>
                            <td>
                                <asp:TextBox ID="siteEmailBox" runat="server"></asp:TextBox>
                                <span class="red">(供官方统计用，为了更好的为您服务，建议填写。)</span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    站长QQ：</div>
                            </td>
                            <td>
                                <asp:TextBox ID="siteQQBox" runat="server"></asp:TextBox>
                                <span class="red">(供官方统计用，为了更好的为您服务，建议填写。)</span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                     <%=siteNameAlias %>论坛用户名：</div>
                            </td>
                            <td>
                                <asp:TextBox ID="userBBSid" runat="server"></asp:TextBox>
                                <span class="red">(没有论坛用户名的请到：http://www.Amr-Lab.net/注册，在线更新、下载授权时必需。)</span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    CNZZ统计代码：</div>
                            </td>
                            <td>
                                <asp:TextBox ID="CNZZCredentials" runat="server"></asp:TextBox>
                                &nbsp;
                                CNZZ统计代码，如果没有特殊需要，请勿修改，如果没有申请此项将默认使用官方统计凭据，如果希望在后台看见统计信息，请点击<span style="position: relative"><asp:LinkButton ID="applyCNZZ" 
                                    runat="server" Text="【申请】" style="display:inline" Width="47px" 
                                    OnClick="applyCNZZ_Click" 
                                    OnClientClick="if(validateForm()){eval(this.attributes['href'].value)}else{return false}"></asp:LinkButton>
                                </span>。如果不希望使用统计，请转到<a href="SiteSettings.aspx">站点设置</a>关闭。</td>
                        </tr>
                        <tr style="<%=displayAuthorizedCode %>">
                            <td>
                                <div align="right">
                                    站点授权码：</div>
                            </td>
                            <td>
                                <asp:TextBox ID="tbAuthorizedCode" runat="server" Width="90%"></asp:TextBox>
                                </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    网站状态：</div>
                            </td>
                            <td>
                                <div>
                                    <asp:RadioButtonList ID="siteStatus" runat="server" RepeatDirection="Horizontal"
                                        CssClass="checkbox">
                                        <asp:ListItem Value="0">关闭</asp:ListItem>
                                        <asp:ListItem Value="1" Selected="True">开放</asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <span style="position: relative">
                                    <asp:LinkButton ID="Submit" runat="server" Text="【提交】" style="display:inline" Width="47px" OnClick="Submit_Click" OnClientClick="if(validateForm()){eval(this.attributes['href'].value)}else{return false}"></asp:LinkButton>
                                <asp:HyperLink ID="hlReturn" runat="server" NavigateUrl="Main.aspx">【返回站点列表】</asp:HyperLink>
                                </span>
                            </td>
                        </tr>

                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
