<%@ Page language="c#" Codebehind="Main.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.Main" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
	<!--#include file="inc/head.inc"-->
    <title>main</title>
    <script type="text/javascript">
    $(document).ready(function(){
		$("#quick > li").bind("click",function(){
			parent.$("#frame2").attr("cols","15%,*");			
			if($(this).attr("id")=="system"){
				parent.left.location = "left.aspx?id="+$(this).attr("id");
				parent.right.location = "SystemConfig.aspx";
			}else if($(this).attr("id")=="order"){
				parent.left.location = "left.aspx?id="+$(this).attr("id");
				parent.right.location = "OrderList.aspx?ustatus=1";
			}else if($(this).attr("id")=="product"){
				parent.left.location = "left.aspx?id="+$(this).attr("id");
//				parent.right.location = "Product/ProductAdd_Step1.aspx";
                parent.right.location = "Product/Product.aspx?ProductType=Normal&amp;nocopyright=1";
			}else if($(this).attr("id")=="marketing"){
				parent.left.location = "left.aspx?id="+$(this).attr("id");
				parent.right.location = "AD.aspx";
			}else if($(this).attr("id")=="static"){
				parent.left.location = "left.aspx?id=system";
				parent.right.location = "CreateStaticPage.aspx";
			}else if($(this).attr("id")=="member"){
				parent.left.location = "left.aspx?id=member";
				parent.right.location = "TelAsk.aspx?nocopyright=1";
			}else if($(this).attr("id")=="member1"){
				parent.left.location = "left.aspx?id=member";
				parent.right.location = "Supplier.aspx?Action=Manage";
			}else{
				return false;
			};	
		});
		
		
		$("#wcllink > li").bind("click",function(){
		    parent.$("#frame2").attr("cols","15%,*");
//		   if($(this).attr("title")=="order"){
//				parent.left.location = "left.aspx?id="+$(this).attr("title");
//				parent.right.location = "OrderList.aspx?ustatus=1&amp;nocopyright=1";
//			}else if($(this).attr("title")=="member"){
//				parent.left.location = "left.aspx?id="+$(this).attr("title");
//				parent.right.location = "ProductReview.aspx?Status=0&amp;ReviewType=1";
//			}else if($(this).attr("title")=="member1"){
//				parent.left.location = "left.aspx?id=member";
//				parent.right.location = "Review.aspx?type=guest";
////			}else if($(this).attr("title")=="marketing"){
////				parent.left.location = "left.aspx?id="+$(this).attr("title");
////				parent.right.location = "Link.aspx?type=nopass";
//			}else if($(this).attr("title")=="order1"){
//				parent.left.location = "left.aspx?id=order";
//				parent.right.location = "OrderReview.aspx";
//			}else if($(this).attr("title")=="memberpdtask"){
//				parent.left.location = "left.aspx?id=member";
//				parent.right.location = "ProductAsk.aspx?Status=0";
//			}else if($(this).attr("title")=="memberguest"){
//				parent.left.location = "left.aspx?id=member";
//				parent.right.location = "Review.aspx?type=guest";
				
			if($(this).attr("title")=="productask"){
				parent.left.location = "left.aspx?id=member";
				parent.right.location = "ProductAsk.aspx?status=0";
			}else if($(this).attr("title")=="productreview"){
				parent.left.location = "left.aspx?id=member";
				parent.right.location = "ProductReview.aspx?status=0&ReviewType=1";
			}else if($(this).attr("title")=="complaint"){
				parent.left.location = "left.aspx?id=member";
				parent.right.location = "Complaint.aspx?status=0";
			}else if($(this).attr("title")=="review"){
				parent.left.location = "left.aspx?id=member";
				parent.right.location = "Review.aspx?type=guest";
			}else if($(this).attr("title")=="repairs"){
				parent.left.location = "left.aspx?id=member";
				parent.right.location = "Repairs.aspx?isconfirm=0";
			}else if($(this).attr("title")=="orderreview"){
				parent.left.location = "left.aspx?id=order";
				parent.right.location = "OrderReview.aspx";
			}else if($(this).attr("title")=="order"){
				parent.left.location = "left.aspx?id=order";
				parent.right.location = "OrderList.aspx?uStatus=5";
			}
			else{
				return false;
			};	
		});
		
		//XpShop新闻
		$('#tmpNewsContent > table > tbody > tr').each(function(i){
		    if(i<5){
		        var objLink = $(this).find('> td').find('> a');
		        var href = objLink.attr('href');
		        var text = objLink.html();
		        var result = '<li style="overflow:hidden;white-space:nowrap;">' + (i+1) + '.<a href="' + href + '" title="' + text + '" target="_blank" style="color:#ffffff;">' + text + '</a></li>'
		        $('ul.newsContent').append(result);
		    }
		    
		});
				
	});
	</script>
</head>
<body style="background-color:#C2C2C2;">
<div class="contain">
	<div class="content">
		<div class="maintip">
			<div class="l"></div>
			<div class="r"></div>
			<div class="m">
			    <ul>
			        <li>
					    <ul id="wcllink">
						    <li><div class="lititleimg1"></div><div class="lititletext">待处理事务</div></li>
						    <li title="productask">1.未处理商品咨询：<%=statistics[0]%></li>
						    <li title="productreview">2.未处理商品评价：<%=statistics[1]%></li>
						    <li title="complaint">3.未处理客户投诉：<%=statistics[2]%></li>
						    <%--<li title="review">4.未处理客户留言：<%=statistics[3]%></li>--%>
						    <li title="repairs">4.未处理商品返修：<%=statistics[4]%></li>
						    <li title="orderreview">5.未处理订单留言：<%=statistics[5]%></li>
						    <li title="order">6.等待发货订单：<%=statistics[6]%></li>
					    </ul>
				    </li>
			    </ul>
			</div>
		</div>
		<div class="maintip">
			<div class="l"></div>
			<div class="r"></div>
			<div class="m">
			    <ul>
				    <li>
					    <ul>
						    <li><div class="lititleimg2"></div><div class="lititletext">业务统计</div></li>
						    <%--<li>1.所有销售统计：<%=GetCount(6) %></li>--%>
						    <%--<li>2.今年销售统计：<%=GetCount(7) %></li>--%>
						    <li>1.今月销售统计：<%=statistics[7]%></li>
						    <li>2.今日销售统计：<%=statistics[8]%></li>
						    <li>3.注册会员统计：<%=statistics[9]%></li>
					    </ul>
				    </li>
			    </ul>
			</div>
		</div>
		<div class="maintip">
			<div class="l"></div>
			<div class="r"></div>
			<div class="m">
			    <ul>
				    <li>
					    <ul class="newsContent">
						    <li class="newstitle"><div class="lititleimg3"></div><div class="lititletext">最新消息</div></li><%--class="newstitle" 在js中用到--%>
					    </ul>
				    </li>
			    </ul>
			    <div id="tmpNewsContent" style="display:none;"><%=news%></div>
			</div>
		</div>
		<div class="mainbottom">
		    <ul id="quick">
		        <%--<li id="system" class="b1">系统设置</li>--%>
		        <li id="order" class="b2">订单管理</li>
		        <li id="member1" class="b7">商户管理</li>
		        <li id="product" class="b3"><%--发布商品--%>商品审核</li>
		        <%--<li id="marketing" class="b4">广告管理</li>--%>
		        <li id="member" class="b6">来电速记</li>
		        <%--<li id="static" class="b5">静态化</li>--%>
		    </ul>
		</div>
	</div>
	<!--
	<form id="Form1" method="post" runat="server">
			<asp:ImageButton id="imbRss" runat="server" ImageUrl="../images/creatrss.jpg"></asp:ImageButton></td>
	</form>
	-->
</div>
</body>
</html>
