<%@ Page Title="" Language="C#" MasterPageFile="~/Management/SiteManage.Master" AutoEventWireup="true" CodeBehind="Tools.aspx.cs" Inherits="Amr.SuperSiteGroup.Web.Management.Tools" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="right" style="text-align: center; margin-top: 10px;">
        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="edit">
            <tr onclick="$('#urlTable').toggle()">
                <td class="title_edit">
                    <h1 style="float: left">
                       Url解密</h1>
                </td>
            </tr>
            <tr id="urlTable">
                <td class="edit_main">
                    <asp:UpdatePanel ID="urlParseUpdatePanel" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                                        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="table_list">
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="errorInfoUrl" runat="server"></asp:Label>
                            </td>
                        </tr>
                                            <tr>
                                                <td width="20%">
                                                    <div align="right">
                                                        网址：</div>
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="tbSiteUrl" runat="server" Width="100%" Wrap="False" />
                                                </td>
                                            </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    原始网址：</div>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="tbRawUrl" runat="server" Width="100%" Wrap="False" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:LinkButton ID="lbConvert" runat="server" Text="【转换】" 
                                    onclick="lbConvert_Click" />
                            </td>
                        </tr>
                    </table>
                    </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
        <div class="clear" style="margin-top: 10px;">
                <table width="100%" border="0" cellspacing="1" cellpadding="1" class="edit">
            <tr onclick="$('#urlEncryption').toggle()">
                <td class="title_edit">
                    <h1 style="float: left">
                       Url加密</h1>
                </td>
            </tr>
            <tr id="urlEncryption" style="display:none">
                <td class="edit_main">
                    <asp:UpdatePanel ID="UrlEncryptionUpdatePanel" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                                        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="table_list">
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="errorInfoEncryption" runat="server"></asp:Label>
                            </td>
                        </tr>
                                            <tr>
                                                <td width="20%">
                                                    <div align="right">
                                                        原始网址：</div>
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="tbRawUrlEncryption" runat="server" Width="100%" Wrap="False" />
                                                </td>
                                            </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    加密后网址：</div>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="tbEncryptedUrl" runat="server" Width="100%" Wrap="False" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:LinkButton ID="lbEncrypt" runat="server" Text="【转换】" 
                                    onclick="lbEncrypt_Click" />
                            </td>
                        </tr>
                    </table>
                    </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
        <div class="clear" style="margin-top: 10px;">
        </div>
        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="edit">
            <tr onclick="$('#regexTable').toggle()">
                <td class="title_edit">
                    <h1 style="float: left">
                       正则表达式解析</h1>
                </td>
            </tr>
            <tr id="regexTable" style="display:none">
                <td class="edit_main">
                    <asp:UpdatePanel ID="regexUpdatePanel" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <table width="100%" border="0" cellspacing="1" cellpadding="1" class="table_list">
                                <tr>
                                    <td colspan="2">
                                        &nbsp; &nbsp;
                                        <asp:Label ID="errorInfoRegex" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%">
                                        <div align="right">
                                            正则表达式：</div>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="tbRegex" runat="server" Width="100%" Wrap="False" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div align="right">
                                            替换字符：</div>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="tbReplacement" runat="server" Width="100%" Wrap="False" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div align="right">
                                            大小写敏感：</div>
                                    </td>
                                    <td align="left">
                                        <asp:CheckBox ID="cbExactMatch" CssClass="checkbox" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div align="right">
                                            内容：</div>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="tbContent" runat="server" Height="120px" TextMode="MultiLine" 
                                            Width="100%" Wrap="False" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div align="right">
                                            替换后内容：</div>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="tbReplacedContent" runat="server" Width="100%" Wrap="False" 
                                            Height="120px" TextMode="MultiLine" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:LinkButton ID="lbReplace" runat="server" Text="【替换】" 
                                            onclick="lbReplace_Click" />
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
        <div class="clear" style="margin-top: 10px;">
        </div>
    </div>
</div>
</asp:Content>
