<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico">
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/html5.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/respond.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/PIE_IE678.js"></script>
<![endif]-->
<link
	href="${pageContext.request.contextPath }/common/admin/css/H-ui.min.css"
	rel="stylesheet" type="text/css" />
<link
	href="${pageContext.request.contextPath }/common/admin/css/H-ui.admin.css"
	rel="stylesheet" type="text/css" />
<link
	href="${pageContext.request.contextPath }/common/admin/skin/default/skin.css"
	rel="stylesheet" type="text/css" id="skin" />
<link
	href="${pageContext.request.contextPath }/common/admin/lib/Hui-iconfont/1.0.1/iconfont.css"
	rel="stylesheet" type="text/css" />
<link
	href="${pageContext.request.contextPath }/common/admin/css/style.css"
	rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>后台登录 - 上朵微商场管理系统</title>
<meta name="keywords" content="上朵微商场管理系统">
</head>
<body>
	<header class="Hui-header cl">
		<a class="Hui-logo l" title="上朵微商场管理系统" href="#"><img width="100px" src="${pageContext.request.contextPath }/common/admin/images/logo.png" /></a>
		<a class="Hui-logo-m l" href="#" title="上朵微商场管理系统">上朵微商场管理系统</a>
		<span class="Hui-subtitle l">微信商城-V1.0</span>
		<%-- 快捷操作 --%>
		<nav class="mainnav cl" id="Hui-nav">
			<ul>
			</ul>
		</nav>
		<%-- 管理员个人信息 --%>
		<ul class="Hui-userbar">
			<li>上朵管理员</li>
			<li class="dropDown dropDown_hover"><a href="#"
				class="dropDown_A">${login_admin_userinfo.adminLoginName } <i class="Hui-iconfont">&#xe6d5;</i></a>
				<ul class="dropDown-menu radius box-shadow">
					<!-- <li><a href="#">个人信息</a></li>
					<li><a href="#">切换账户</a></li> -->
					<li><a href="${pageContext.request.contextPath }/exitLogin">退出</a></li>
				</ul></li>
			<li id="Hui-skin" class="dropDown right dropDown_hover">
				<a href="javascript:;" title="换肤"><i class="Hui-iconfont" style="font-size: 18px">&#xe62a;</i></a>
				<ul class="dropDown-menu radius box-shadow">
					<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
					<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
					<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
					<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
					<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
					<li><a href="javascript:;" data-val="orange" title="绿色">橙色</a></li>
				</ul>
			</li>
		</ul>
		<a aria-hidden="false" class="Hui-nav-toggle" href="#"></a>
	</header>
	<%-- 菜单开始 --%>
	<aside class="Hui-aside">
		<input runat="server" id="divScrollValue" type="hidden" value="" />
		<div class="menu_dropdown bk_2">
			<%-- 一组菜单 --%>
			<c:if test="${! (empty menuInfos) }">
				<c:forEach items="${menuInfos }" var="menu">
					<dl id="${menu.permissionsDesc }">
						<dt>
							<i class="Hui-iconfont">${menu.permissionsImg }</i> ${menu.permissionsName }<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
						</dt>
						<dd>
							<ul>
								<!-- 组装一级菜单下面的二级菜单 -->
								<c:forEach items="${menu.menus }" var="info">
									<li><a _href="${pageContext.request.contextPath }${info.ermissionsUrl }" href="javascript:void(0)">${info.ermissionsName }</a></li>
								</c:forEach>
							</ul>
						</dd>
					</dl>
				</c:forEach>
			</c:if>
		</div>
	</aside>
	<!-- 菜单结束 -->
	<div class="dislpayArrow">
		<a class="pngfix" href="javascript:void(0);"
			onClick="displaynavbar(this)"></a>
	</div>
	<section class="Hui-article-box">
		<div id="Hui-tabNav" class="Hui-tabNav">
			<div class="Hui-tabNav-wp" id="Hui-tabNav-wp-id">
				<ul id="min_title_list" class="acrossTab cl">
					<li class="active"><span title="我的桌面" data-href="welcome.jsp">我的桌面</span><em></em></li>
				</ul>
			</div>
			<div class="Hui-tabNav-more btn-group">
				<a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a>
				<a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a>
			</div>
		</div>
		<div id="iframe_box" class="Hui-article">
			<div class="show_iframe">
				<div style="display: none" class="loading"></div>
				<%--<iframe scrolling="yes" frameborder="0" src="${pageContext.request.contextPath }/admin/orderStatistics/_sales_order_statistics"></iframe>--%>
				<iframe id="indexframe" scrolling="yes" frameborder="0" src="${pageContext.request.contextPath }/common/admin/welcome/welcome.html"></iframe>
			</div>
		</div>
		<div id="selectTodo" class="menu_dropdown bk_2" style="display:none">
			<div>

				<a onclick="toOrserList('${pageContext.request.contextPath }/admin/order/selectShopOrder?orderStatus=paySuccess')"  ><span>（</span><span id="sendTheGoods" style="color: #f00">0</span><span>）待发货订单</span></a><br>
				<a onclick="toOrserList('${pageContext.request.contextPath }/admin/order/selectShopOrder?orderStatus=returnOrder')"  ><span>（</span><span id="returnGoods" style="color: #f00">0</span><span>）申请退款订单</span></a><br>
				<a onclick="toOrserList('${pageContext.request.contextPath }/admin/order/selectShopOrder?orderStatus=returnOrderEtc')"  ><span>（</span><span id="returnRefund" style="color: #f00">0</span><span>）申请退货订单</span></a><br>
				<a onclick="toOrserList('${pageContext.request.contextPath }/admin/order/selectShopOrder?orderStatus=inOrder')"  ><span>（</span><span id="exchange" style="color: #f00">0</span><span>）申请换货订单</span></a>
			</div>
		</div>

	</section>
	<script type="text/javascript"
		src="${pageContext.request.contextPath }/common/admin/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath }/common/admin/lib/layer/1.9.3/layer.js"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath }/common/admin/js/H-ui.js"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath }/common/admin/js/H-ui.admin.js"></script>

<script>


        $.ajax({
            "type" : "post",
            "url" : "/tooth/admin/order/selectTodo",
            /*"url" : "/admin/order/selectTodo",*/
            "dataType" : "json",
            async:false,
            "success" : function(data) {
                if(data.status){
					$("#sendTheGoods").html(data.data.sendTheGoods);
                    $("#returnGoods").html(data.data.returnGoods);
                    $("#returnRefund").html(data.data.returnRefund);
                    $("#exchange").html(data.data.exchange);
                }
            },
            "error":function(data){
                alert("操作失败，请联系管理员！");
            }
        });
    //页面层
    layer.open({
        type: 1,
        area: ['300px', '180px'], //宽高
        content: $("#selectTodo").html(),
        offset: 'rb',
        shade: 0
    });
    function toOrserList(url){
        //去除其它选项选中样式
        $("#min_title_list li").removeClass("active");
        //判断是否已存在订单列表选项卡
		/*alert($("#min_title_list li span").text());*/
		var bolean = true;
        $(function() {
            $("#min_title_list li").each(function() {
                if(($(this).find("span").text()) == "订单管理"){
                    $(this).addClass("active");
                    bolean = false;
				}
            })

        });
		if(bolean){
            //新增一个选项卡标题
            $("#min_title_list").append('<li id="orderTitleId" class="active"><span data-href="/admin/order/selectShopOrder">订单管理</span><i></i><em></em></li>')
            //获取前面ul个数计算新增的选项卡位置
            var left = $("#min_title_list>li").length*133;//获取前面ul位置长度
            $("#min_title_list").css("width",left+"px");
		}
		//隐藏其它选项卡内容
        $("#iframe_box .show_iframe").css("display","none");
		//新增选项卡内容
        $("#iframe_box").append('<div class="show_iframe">' +
			'<div style="display: none" class="loading"></div><iframe id="indexframe" scrolling="yes" frameborder="0" src="'+url+'"></iframe></div>');
	}
        /*$("#Hui-tabNav").on("click", ".cl a", function () {
            Hui_admin_tab(this);
        });
        function Hui_admin_tab(obj){
            if($(obj).attr('_href')){
                var bStop=false;
                var bStopIndex=0;
                var _href = $(obj).attr('_href');
                _href += "?" + index++;
                var topWindow=$(window.parent.document);
                var childs = obj.parentNode.parentNode.childNodes;//获得爷爷辈的节点
                for (var i = childs.length - 1; i >= 0; i--) {//清除所有父节点级所有样式
                    childs[i].className = "";
                }
                obj.parentNode.className="current";//把自己爹样式设置上
                var iframe_box=topWindow.find("#iframe_box");//获取Iframe
                iframe_box.find(".show_iframe").hide().eq(bStopIndex).show().find("iframe").attr("src",_href);//将连接的网页装载到Iframe
            }
        }*/
</script>
</body>
</html>