<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Replace.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.DataBase.Replace" %>

<%@ Register src="../UC_AjaxLoading.ascx" tagname="UC_AjaxLoading" tagprefix="uc1" %>

<!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 runat="server">
    <title>数据库字段替换</title>
    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../TopWin.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
                <tr>
                    <td width="50%">
                        &nbsp;<img src='../../Images/arrow.gif' alt="" />
                        您现在的位置：数据库管理 → 数据库字段替换
                    </td>
                    <td width="50%" align="right">
                        &nbsp;
                    </td>
                </tr>
            </table>
            <table width="98%" border="0">
                <tr>
                    <td class="RowTitle" style="width: 200px">
                        系统模型：
                    </td>
                    <td>
                        <asp:DropDownList ID="DDL_Model" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_Model_SelectedIndexChanged">
                        </asp:DropDownList>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        操纵栏目：
                    </td>
                    <td>
                        <asp:DropDownList ID="DDL_Class" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        操纵字段：
                    </td>
                    <td>
                        <asp:ListBox ID="LB_Field" runat="server" Rows="10" SelectionMode="Multiple"></asp:ListBox>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        替换内容：
                    </td>
                    <td>
                        <table width="98%" border="0">
                            <tr>
                                <td width="14%" align="center" bgcolor="#DDEDFB">
                                    原字符
                                </td>
                                <td width="86%">
                                    <asp:TextBox ID="TB_OldString" runat="server" Height="100px" TextMode="MultiLine"
                                        Width="400px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" bgcolor="#DDEDFB">
                                    新字符
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_NewString" runat="server" Height="100px" TextMode="MultiLine"
                                        Width="400px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;<asp:RadioButtonList ID="RBL_ReplaceType" runat="server" Visible="False">
                            <asp:ListItem Selected="True" Value="0">模糊匹配</asp:ListItem>
                            <asp:ListItem Value="1">全字匹配替换(字段内容＝原字符 是才被替换)</asp:ListItem>
                            <asp:ListItem Value="2">正则表达式替换</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="BT_OK" runat="server" CssClass="btn" OnClick="BT_OK_Click" Text="提交" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
