<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Info_MoveExpireArticle, QianboCMS" EnableEventValidation="false" %>
<!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="../Css/layout.css" type="text/css" rel="stylesheet" />
    <script language="javascript">
        function isok(ChId, ColId) {
            Layer1.style.display = "";
            Div1.style.display = "";
            Div2.style.display = "none";
            Div_3.style.display = "";
            System_Info_MoveExpireArticle.DoWithExpireArticle(ChId, ColId, Call_Back);
        }
        function Call_Back(response) {
            Div2.style.display = "";
            Div2_1.innerHTML = response.value;
            Layer1.style.display = "none";
            Div1.style.display = "none";
            Div_3.style.display = "";
        }
        function SetColor() {
            var id =<%= ChId%>;
            var modid = "mod" + id;
            var amodid = "amod" + id;
            var obj = document.getElementById(modid);
            var obj1 = document.getElementById(amodid);
            obj1.style.color = "#FFF";
            obj.style.backgroundColor = "#4975dc";
        }
    </script>
</head>

<body onload="SetColor()">
    <form id="form1" runat="server">
        <div id="Layer1" style="display: none; filter: Alpha(Opacity=50); position: absolute; width: 99%; height: 100%; z-index: 1; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000; text-align: center;"></div>
        <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; 文章归档操作
				</td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="bqleft">选择归档栏目：</td>
                <td class="bqright">
                    <asp:Repeater ID="dlistChannel" runat="server">
                        <ItemTemplate>
                            <a id="amod<%# Eval("ChId") %>" href="MoveExpireArticle.aspx?ChId=<%# Eval("ChId") %>">
                                <div style="background: #f7f7f7; cursor: hand; padding: 5px; margin: 0 0 0 5px; display: inline;" align="center" id="mod<%# Eval("ChId") %>">
                                    <%# Eval("ChName") %>
                                    <asp:Literal ID="litChId" Visible="false" runat="server" Text='<%#Eval("ChId") %>'></asp:Literal>
                                </div>
                            </a>
                        </ItemTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
        <div id="Div_3" style="display: none;">
            <table cellpadding="0" cellspacing="1" class="border" align="center">
                <tbody id="Div2" style="display: none; z-index: 2;">
                    <tr class="tdbg">
                        <td>
                            <div id="Div2_1"></div>
                        </td>
                    </tr>
                </tbody>
                <tbody id="Div1" style="display: none; z-index: 2;">
                    <tr class="tdbg">
                        <td>
                            <img src="../../Images/loading.gif" align="absmiddle" />正在进行归档操作，请稍候…
						</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist">
                    <asp:Repeater ID="repColumn" runat="server">
                        <ItemTemplate>
                            <div style="display: inline-block;"><%# GetImgNum(ChId, int.Parse(Eval("ColId", "{0}")), int.Parse(Eval("Depth", "{0}")))%><%# Eval("ColName") %> <a id="Button1" class="mouseStyle" onclick="isok('<%# ChId %>','<%# Eval("ColId") %>')" /><u>归档该栏目文章</u></a></div>
                        </ItemTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist"><a id="Button1" class="mouseStyle" onclick="isok('<%= ChId%>','0')" />归档【<%=ChName %>】频道下所有文章</a></td>
            </tr>
        </table>
    </form>
    <br />
</body>
</html>