<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="top.aspx.cs" Inherits="DimoNetwork.ProxyWeb.SysRoot.top" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery.js"></script>
<script type="text/javascript">
    $(function () {
        //顶部导航切换
        $(".nav li a").click(function() {
            $(".nav li a.selected").removeClass("selected");
            $(this).addClass("selected");
        });
    })
</script>
</head>
<body style="background:url(images/topbg.gif) repeat-x;">
    <div class="topleft">
        <a href="main.aspx" target="_parent">
        <img src="images/logo.png" title="系统首页" /></a>
    </div>
    <ul class="nav">
        <li><a class="selected" href="/SysRoot/index.aspx" target="rightFrame">
            <img src="images/ico01.png" title="工作台" /><h2>工作台</h2>
            </a></li>
        <li><a href="/SysRoot/Members.aspx" target="rightFrame">
            <img src="images/会员管理.png" title="会员管理" /><h2>会员管理</h2>
            </a></li>
        <li><a href="/SysRoot/GameRecord.aspx" target="rightFrame">
            <img src="images/会员游戏记录.png" title="会员游戏记录" /><h2>游戏记录</h2>
            </a></li>
        <li><a href="/SysRoot/ProxyManage.aspx" target="rightFrame">
            <img src="images/代理管理.png" title="代理管理" /><h2>代理管理</h2>
            </a></li>
        <li><a href="/SysRoot/ProxyProfit.aspx" target="rightFrame">
            <img src="images/代理利润.png" title="代理利润" /><h2>代理利润</h2>
            </a></li>
         <li><a href="/SysRoot/OperateRecord.aspx" target="rightFrame">
            <img src="images/系统日志.png" title="系统日志" /><h2>系统日志</h2>
          </a></li>
        <li><a href="/SysRoot/ProxyOperatorManage.aspx" target="rightFrame">
            <img src="images/会员管理.png" title="客服管理" /><h2>客服管理</h2>
            </a></li>
        <li><a href="/SysRoot/WebForm1.aspx" target="rightFrame">
            <img src="images/会员管理.png" title="捕鱼及时分" /><h2>捕鱼及时分</h2>
            </a></li>
          <%-- <%= (Proxy.ProxyLevel == 1 || Proxy.authority) ?
            "<li><a href=\"/SysRoot/zjh.aspx?type=4\" target=\"rightFrame\">"+
            "<img src=\"images/上分下分.png\" title=\"上分下分\" /><h2>捕鱼</h2></a></li>":""
            %>
         <%= (Proxy.ProxyLevel == 1 || Proxy.authority) ?
            "<li><a href=\"/SysRoot/zjh.aspx?type=1\" target=\"rightFrame\">"+
            "<img src=\"images/上分下分.png\" title=\"上分下分\" /><h2>炸金花</h2></a></li>":""
            %>
         <%= (Proxy.ProxyLevel == 1 || Proxy.authority) ?
            "<li><a href=\"/SysRoot/zjh.aspx?type=2\" target=\"rightFrame\">"+
            "<img src=\"images/上分下分.png\" title=\"上分下分\" /><h2>牛牛</h2></a></li>":""
            %>
         <%= (Proxy.ProxyLevel == 1 || Proxy.authority) ?
            "<li><a href=\"/SysRoot/zjh.aspx?type=3\" target=\"rightFrame\">"+
            "<img src=\"images/上分下分.png\" title=\"上分下分\" /><h2>水浒传</h2></a></li>":""
            %>--%>
         <%= (Proxy.ProxyLevel == 1 || Proxy.authority) ?
            "<li><a href=\"/SysRoot/PayOrderManage.aspx\" target=\"rightFrame\">"+
            "<img src=\"images/上分下分.png\" title=\"上分下分\" /><h2>上分下分</h2></a></li>":""
            %>
        <%= (Proxy.ProxyLevel == 1) ?
            "<li><a href=\"/SysRoot/WebForm2.aspx\" target=\"rightFrame\">"+
            "<img src=\"images/计划配置.png\" title=\"计划配置\" /><h2>计划配置</h2></a></li>":""
            %>
        <%= (isBusiness) ?
        "<li><a href=\"/SysRoot/MarqueeManager.aspx\" target=\"rightFrame\">"+
            "<img src=\"images/发广告.png\" title=\"发广告\" /><h2>发广告</h2>"+
            "</a></li>"
        :""
            %>
    </ul>
    <div class="topright">
        <ul>
            <li><a href="/SysRoot/ModifyPassword.aspx" target="rightFrame">修改密码</a></li>
            <li><a href="/LoginOut.aspx" target="_parent">退出</a></li>  
        </ul>
        <div class="user">
            <span><%= Proxy.account %> 余额：￥<b><a href="#" onclick="ShowScore()" id="proxyscore">?</a></b></span>
        </div>
    </div>
    <script type="text/javascript">
        function ShowScore() {
            if ($("#proxyscore").text() != "?") {
                $("#proxyscore").text("?");
                $("#proxyscore").parent("b").removeClass("width");
                return;
            } else {
                //$("#proxyscore").text('<%= Proxy.score %>');
                //$("#proxyscore").parent("b").css("width", "80px").css("background-color", "#");
                $.ajax({
                    url: "/ProxyHandler/Proxy.ashx",
                    cache:false,
                    data:
                    {
                        "action": "showscore"
                    },
                    contentType: "json",
                    success: function (data) {
                        var result = eval("(" + data + ")");
                        if (result.score == "-1")
                        {
                            window.top.location = "/Login.aspx";
                        }
                        $("#proxyscore").text(result.score);
                        $("#proxyscore").parent("b").css("width", "80px").css("background-color", "#");
                    }
                });
            }
        }
    </script>
</body>
</html>
