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

<!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="Stylesheet/Main.css" rel="stylesheet" type="text/css" />

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

        function ShowMenu(objID) {
            var reg = /^topMenuName_\S*$/;
            var a = document.getElementsByTagName("li");

            for (var i = 0; i < a.length; i++) {
                if (reg.test(a[i].id)) {
                    if (a[i].id == objID) {
                        a[i].className = "header_menu_ac";
                    } else {
                        a[i].className = "header_menu_noac";
                    }
                }
            }
        }

        function SetMenu() {
            var reg = /^topMenuName_\S*$/;
            var a = document.getElementsByTagName("li");

            for (var i = 0; i < a.length; i++) {
                if (reg.test(a[i].id)) {
                    a[i].className = "header_menu_ac";
                    break;
                }
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="23%" height="37">
              <span class="admin_title float_left"><asp:Literal ID="litSiteTitle" runat="server"></asp:Literal>网站管理系统</span><span class="float_left"><b><%=AdminName%></b> [ <a id="hlkAdminPwd" runat="server" target="mainFrame">资料修改</a> | <a href="Logout.aspx" target="_top">退出</a> ]</span><span style="padding-right:10px; float:right;"></span></td>
      </tr>
        <tr>
            <td colspan="3" class="header_top2">
                <ul class="header_menu">
                    <asp:Repeater ID="rptList" runat="server" OnItemDataBound="rptList_ItemDataBound">
                        <ItemTemplate>
                            <li class="header_menu_noac" id="topMenuName_<%#Eval("ID") %>">
                                <asp:HyperLink ID="hlkMenu" runat="server" NavigateUrl='<%# "Left.aspx?ID="+Eval("ID") %>'
                                    Target="leftFrame"><%#Eval("MenuName") %></asp:HyperLink></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>            </td>
        </tr>
        <tr>
            <td colspan="3" class="header_top3">            </td>
        </tr>
    </table>
</form>

    <script>
        SetMenu();
    </script>

</body>
</html>
