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

<%@ 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>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

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

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
 

    function HideAndDisplay(TabIndex,o)
    {
        document.getElementById("current").id="";
        for(i=0;i<4;i++)
        {
            if( i== TabIndex)
            {
		        o.id="current";
                document.getElementById("Tab"+i).style.display = "block";
            }
            else
            {
                document.getElementById("Tab"+i).style.display = "none";
            }
        }
        
        //AutoIframeHeight();
        return false;
    }
    function GetTemplate() 
    {
        var str = window.showModalDialog("../window/GetTemplate.aspx", "up", "dialogWidth=350px;dialogHeight=320px;status=0;scroll=auto");
        if (typeof (str) != "undefined")
            $('TB_TemplateFileName').value = str;
    }

    </script>

    <style type="text/css">
        #Tab1, #Tab2, #Tab3 
        {
            display:none;
        }
    </style>
</head>
<body>
    <div id="tabs">
        <ul>
            <li id="current" onclick="return HideAndDisplay(0,this);"><a href="#"><span>批量设置专题</span></a></li>
            <li onclick="return HideAndDisplay(1,this);"><a href="#"><span>批量设置栏目</span></a></li>
            <li onclick="return HideAndDisplay(2,this);"><a href="#"><span>批量替换</span></a></li>
            <li onclick="return HideAndDisplay(3,this);"><a href="#"><span>批量设置内容属性</span></a></li>
        </ul>
    </div>
    <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 border="0" cellpadding="0" cellspacing="2" width="100%">
                <tr>
                    <td width="100%">
                        <fieldset>
                            <legend>
                                <asp:CheckBox ID="CB_使用ID" runat="server" Text="使用自输入ID方式" 
                                    OnCheckedChanged="CB_使用ID_CheckedChanged" AutoPostBack="True"  /></legend>
                            <br />
                            ID：<asp:TextBox ID="TB_IDs" runat="server"></asp:TextBox>&nbsp;多个ID请用,符号间隔。
                            </fieldset>
                    </td>
                </tr>
            </table>
            <br />
            <fieldset>
                <legend>使用选取方式
                     </legend>
                <table border="0" cellpadding="0" cellspacing="2" width="100%" runat="server" id="T2">
                    <tr  >
                        <td colspan="3" >
                            搜索标题：
                            <asp:TextBox ID="TB_Keyword" runat="server"></asp:TextBox>
                            栏目：<asp:DropDownList ID="DDL_ClassSearch" runat="server">
                            </asp:DropDownList>
                            <asp:Button ID="BT_Search" runat="server" Text="搜索" CssClass="btn" OnClick="BT_Search_Click" />
                        </td>
                    </tr>
                    
                    <tr>
                        <td  style="width: 49%; vertical-align:top" >
                            <asp:ListBox ID="LB_LeftList" runat="server" SelectionMode="Multiple" Rows="10" Width="100%">
                            </asp:ListBox>
                        </td>
                        <td align="center" style="width: 10px" valign="middle">
                            <asp:Button ID="BT_SelectOne" runat="server" Text=" &lt; " EnableViewState="False" OnClick="BT_SelectOne_Click"
                                CssClass="btn" />
                            <br />
                            <asp:Button ID="BT_SelectAll" runat="server" Text=">>" EnableViewState="False" OnClick="BT_SelectAll_Click"
                                CssClass="btn" />
                            <br />
                            <asp:Button ID="BT_ReMoveOne" runat="server" Text=" < " EnableViewState="False" OnClick="BT_ReMoveOne_Click"
                                CssClass="btn" />
                            <br />
                            <asp:Button ID="BT_ReMoveAll" runat="server" Text="<<" EnableViewState="False" OnClick="BT_ReMoveAll_Click"
                                CssClass="btn" />
                        </td>
                        <td  style="width: 49%; vertical-align:top">
                            <asp:ListBox ID="LB_RightList" runat="server" SelectionMode="Multiple" Rows="10"
                                Width="100%"></asp:ListBox>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <table width="100%" id="Tab0" class="TabelStyle" cellpadding="4">
                <tr>
                    <td>
                        <div class="WorkArea">
                            设置为新专题：<asp:DropDownList ID="DDL_Special" runat="server">
                            </asp:DropDownList>
                            &nbsp;&nbsp;<asp:Button ID="BT_MoveToNewSpecial" runat="server" Text="确定" CssClass="btn"
                                OnClick="BT_MoveToNewSpecial_Click" />
                        </div>
                    </td>
                </tr>
            </table>
            <table width="100%" id="Tab1" class="TabelStyle" cellpadding="4">
                <tr>
                    <td><div class="WorkArea">
                        移动至新栏目：<asp:DropDownList ID="DDL_Class" runat="server">
                        </asp:DropDownList>
                        &nbsp;&nbsp;<asp:Button ID="BT_MoveToNewClass" runat="server" OnClick="BT_MoveToNewClass_Click"
                            Text="确定" CssClass="btn" /></div>
                    </td>
                </tr>
            </table>
            <table width="100%" id="Tab2" class="TabelStyle" cellpadding="4">
                <tr>
                    <td>
                        <div class="WorkArea">
                       
                        <table border="0" cellpadding="0" cellspacing="2" width="100%">
                            <tr>
                                <td align="left" style="width: 49%" valign="top">
                                    原内容：<asp:CheckBox ID="CB_Regex" runat="server" Text="使用正则表达式" /><br />
                                    <asp:TextBox ID="TB_OldString" runat="server" Width="98%" TextMode="MultiLine" Height="40px"></asp:TextBox>
                                </td>
                                <td align="center" style="width: 3px" valign="middle">
                                </td>
                                <td align="left" valign="bottom">
                                    替换成：<br />
                                    <asp:TextBox ID="TB_NewString" runat="server" Width="98%" TextMode="MultiLine" Height="40px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                            <td>
                                <asp:Button ID="BT_Replace" runat="server" Text="确定" CssClass="btn" 
                                    onclick="BT_Replace_Click" />
                            </td>
                            </tr>
                        </table> </div>
                    </td>
                </tr>
            </table>
            <table width="100%" id="Tab3" class="TabelStyle" cellpadding="4">
                <tr>
                    <td>
                       <table style="width: 786px;">
                            <tr>
                                <td style="width: 30px; text-align: center">
                                    <asp:CheckBox ID="CB_TemplateFileName" runat="server" Text=" " />
                                </td>
                                <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                    模板：
                                </td>
                                <td>
                                    &nbsp;<asp:TextBox ID="TB_TemplateFileName" runat="server" Width="250px"></asp:TextBox>
                        <input id="Button1" type="button" value="网页模板" onclick='GetTemplate();' class="btn" /></td>
                            </tr>
                            <tr>
                                <td style="width: 30px; text-align: center">
                                    <asp:CheckBox ID="CB_key" runat="server" Text=" " />
                                </td>
                                <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                    关键字：
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_key" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 30px; text-align: center">
                                    <asp:CheckBox ID="CB_Stars" runat="server" Text=" " />
                                </td>
                                <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                    等级：
                                </td>
                                <td>
                                    <asp:DropDownList ID="DDL_Stars" runat="server">
                                        <asp:ListItem Value="1">★</asp:ListItem>
                                        <asp:ListItem Value="2">★★</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="3">★★★</asp:ListItem>
                                        <asp:ListItem Value="4">★★★★</asp:ListItem>
                                        <asp:ListItem Value="5">★★★★★</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 30px; text-align: center">
                                    <asp:CheckBox ID="CB_Elite" runat="server" Text=" " />
                                </td>
                                <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                    推荐：
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="RBL_Elite" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow">
                                        <asp:ListItem Value="1">是</asp:ListItem>
                                        <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 30px; text-align: center">
                                    <asp:CheckBox ID="CB_OnTop" runat="server" Text=" " />
                                </td>
                                <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                    置顶：
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="RBL_OnTop" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow">
                                        <asp:ListItem Value="1">是</asp:ListItem>
                                        <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 30px; text-align: center">
                                    <asp:CheckBox ID="CB_AllowComment" runat="server" Text=" " />
                                </td>
                                <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                    允许评论：
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="RBL_AllowComment" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow">
                                        <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                        <asp:ListItem Value="0">否</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 30px; text-align: center">
                                    <asp:CheckBox ID="CB_Pass" runat="server" Text=" " />
                                </td>
                                <td style="width: 80px; text-align: right; background-color: #DDEDFB; font-weight: bold;">
                                    通过审核：
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="RBL_Pass" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow">
                                        <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                        <asp:ListItem Value="0">否</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                   <div class="WorkArea">
                                    <asp:Button ID="BT_UpData" runat="server" CssClass="btn" Text="确定" 
                                           onclick="BT_UpData_Click" />
                            </div>    </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
