<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort() + path+"/";
	request.setAttribute("contextPath", basePath);
	
	String redirectUrl= request.getParameter("redirectUrl");
	request.setAttribute("redirectUrl", redirectUrl);
%> 
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <title>我的佣金</title>
    <script src="${contextPath }app/lib/flexible.js"></script>
    <link rel="stylesheet" href="${contextPath }app/lib/flexible.css">
	<link rel="stylesheet" href="${contextPath }app/css/basem.css">
	<link rel="stylesheet" href="${contextPath }app/css/logome.css">
</head>
<body>
	<div class="memontop">
		<div class="memontit">
			<a class="titreturn left" href="${contextPath }web/meWebCtl/me.cs"><img src="${contextPath }app/img/fanhui16@2x.png" alt=""></a>
			<h1 class="whtxt">我的佣金</h1>
		</div>
		<div class="whtxt memoncen">
			<p>佣金收入（元）</p>
			<h2 class="bigtxt">￥${SUM}</h2>
			<p>此佣金以实际发放为准，仅做参考</p>
		</div>
	</div>
	<div class="memont">
		<div class="safe">
			<img src="${contextPath}app/img/yongjin@2x.png" alt=""><span>佣金明细</span>
		</div>
	</div>
	<div class="memonul">
		<div class="safe">
			<ul>
			<c:forEach  items="${lists}" var="commission">
				<li><a class="memonli" href="${contextPath }web/mgmOrder/me_recommendinfo.cs?type=recommend&orderId=${commission.order_id}"> 
					<h3 class="redtxt">￥${commission.commission}</h3>
					<div class="clear">
						<p class="left">${commission.customer_name}</p>
						<p class="right metime">${commission.finish_time}</p>
					</div>
				</a></li>
			</c:forEach>
			</ul>
		</div>
	</div>
</body>
</html>