<%@ Page Title="" Language="C#" MasterPageFile="SiteAdmin.Master" AutoEventWireup="true" CodeBehind="top.aspx.cs" Inherits="FanXian.Web.admin.top" %>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        var preFrameW = '160,*';
        var FrameHide = 0;
        function ChangeMenu(way) {
            var addwidth = 10;
            var fcol = top.document.all.bodyFrame.cols;
            if (way == 1) addwidth = 10;
            else if (way == -1) addwidth = -10;
            else if (way == 0) {
                if (FrameHide == 0) {
                    preFrameW = top.document.all.bodyFrame.cols;
                    top.document.all.bodyFrame.cols = '0,*';
                    FrameHide = 1;
                    document.getElementById("closeopenmenu").innerHTML = "显示菜单";
                    return;
                } else {
                    top.document.all.bodyFrame.cols = preFrameW;
                    FrameHide = 0;
                    document.getElementById("closeopenmenu").innerHTML = "隐藏菜单";
                    return;
                }
            }
            fcols = fcol.split(',');
            fcols[0] = parseInt(fcols[0]) + addwidth;
            top.document.all.bodyFrame.cols = fcols[0] + ',*';
        }     
    </script>
    <style type="text/css">
    body {margin: 0;}
    .button_down {
	    text-decoration: none;
	    background-image: url(Content/images/button_bg_2.jpg);
	    font-size: 14px;
	    color: #4B6888;
	    font-weight: bold;
	    text-align:center;
    }
    </style>
</asp:Content>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td style="height: 46px;background-image: url(Content/images/logo_bg.jpg);">
                <img src="Content/images/admin_logo.png" />
            </td>
            <td style="height: 46px;background-image: url(Content/images/logo_bg.jpg);text-align: right;vertical-align: top;">
                <div style="padding: 6px 6px 0px 0px;">
                    管理员：{admin:uid}
                    |
                    <a href="../" target="_blank">网站首页</a>
                    |
                    <a href="../user/edit_pwd.aspx" target="mainFrame">修改密码</a>
                    |
                    <a href="logout.aspx" target="_top">退出登录</a>
                </div>
            </td>
        </tr>
        <tr>
            <td style="height: 38px;background-image: url(Content/images/menu_bg.jpg);">
                <table cellpadding="0" cellspacing="10">
                    <tr>
                        <td class="button_down" onclick="ChangeMenu(0);" style="cursor:pointer;" id="closeopenmenu">隐藏菜单</td>
                    </tr>
                </table>
            </td>
            <td style="background-image: url(Content/images/menu_bg.jpg);">
        </tr>
    </table>
</asp:Content>
