<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Left.aspx.cs" Inherits="Admin_Left" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Stylesheet/Main.css" rel="stylesheet" type="text/css" media="all" />
    <style type="text/css">
        body
        {
            scrollbar-face-color: #c2e3f9;
            scrollbar-shadow-color: #c2e3f9;
            scrollbar-highlight-color: #d8ecfa;
            scrollbar-3dlight-color: #c2e3f9;
            scrollbar-darkshadow-color: #c2e3f9;
            scrollbar-track-color: #FFFFFF;
            scrollbar-arrow-color: #FFFFFF;
        }
    </style>

    <script type="text/javascript" language="javascript">
        function setItem(obj) {
            var item_Ac = document.getElementById("item_Ac");
            var item_Help = document.getElementById("item_Help");
            var boxMenu = document.getElementById("boxMenu");
            var boxHelp = document.getElementById("boxHelp");

            switch (obj) {
                case 1:
                    item_Ac.className = "left_menu_item_ac";
                    item_Help.className = "left_menu_item_noac";
                    if (boxMenu != null) {
                        boxMenu.style.display = "";
                    }
                    if (boxHelp != null) {
                        boxHelp.style.display = "none";
                    }
                    break;
                case 2:
                    item_Ac.className = "left_menu_item_noac";
                    item_Help.className = "left_menu_item_ac2";
                    if (boxMenu != null) {
                        boxMenu.style.display = "none";
                    }
                    if (boxHelp != null) {
                        boxHelp.style.display = "";
                    }
                    break;
            }
        }

        function switchMenuCell(objID) {
            var menuCell = document.getElementById(objID);
            if (menuCell != null) {
                if (menuCell.style.display == "") {
                    menuCell.style.display = "none";
                } else {
                    menuCell.style.display = "";
                }
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" style="height: 100%;" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="100%" valign="top">
                <div>
                    <li class="left_menu_item_ac" onclick="setItem(1)" id="item_Ac">操 作</li>
                    <li class="left_menu_item_noac" onclick="setItem(2)" id="item_Help">帮 助</li>
                </div>
                <ul class="left_menu" id="boxMenu">
                    <asp:Repeater ID="rptList" runat="server" OnItemDataBound="rptList_ItemDataBound">
                        <ItemTemplate>
                            <li class="left_menu_1" onclick="switchMenuCell('menuCell_<%#Eval("ID") %>')">
                                <%#Eval("MenuName") %></li>
                            <li class="left_menu_1_1" id="menuCell_<%#Eval("ID") %>">
                                <asp:TreeView ID="tvMenu" runat="server" Target="mainFrame" ShowLines="true" ShowExpandCollapse="true">
                                </asp:TreeView>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
                <ul id="boxHelp" style="display: none;">
                </ul>
            </td>
        </tr>
        <tr>
            <td height="50">
                <div style="font-size: 10px; margin: 6px; border-top: 1px dotted #999999; padding: 6px;">
                    Powered by SnSee <%=SystemVersion%><br />
                    &copy; 2009, SnSee.</div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
