<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<%@include file="/WEB-INF/navigation/JsAndCss.jsp" %>
<script src="/js/quant.js"></script>
					<script src="/js/html5.js"></script>
<script type="text/javascript">
function deleteUserOrder(orderId){
	 var r = window.confirm("确定要删除此订单吗？");
     if(r){
         location.href="deleteUserOrder.do?orderId="+orderId ;
     }
}
</script>
	<style type="text/css">
		.current_page{border:solid 1px;padding:0 3px;}
	</style>
</head>
<body>
	<div class="container">
		<div class="navbar">
			<div class="navbar-inner">
				<%@include file="../navigation/menu.jsp"%>
			</div>
		</div>
		<div class="row">
			<%@include file="../navigation/navigation.jsp"%>
			<div class="span9">
				<h1>客户订单列表</h1>
				<table class="table table-bordered table-striped">
					<thead>
						<tr>
							<th>产品名称</th>
							<th>理财师姓名</th>
							<th>联系方式</th>
							<th>客户姓名</th>
							<th>客户联系电话</th>
							<th>订单状态</th>
							<th>预约金额</th>
							<th>订单来源</th>
							<th>操作</th>

						</tr>
					</thead>
					<tbody>
						<c:forEach items="${userOrders }" var="userOrders">
							<tr>
								<td>${userOrders.shorterName }</td>
								<td>${userOrders.name }</td>
								<td>${userOrders.umobile}</td>
								<td>${userOrders.userName }</td>
								<td>${userOrders.mobile}</td>
								<td>${userOrders.orderStatusName }</td>
								<td>${userOrders.orderMount }</td>
								<td>
									<c:if test="${userOrders.orgin==0 }">未知</c:if>
									<c:if test="${userOrders.orgin==1 }">微信端</c:if>
									<c:if test="${userOrders.orgin==2 }">金客</c:if>
									<c:if test="${userOrders.orgin==3 }">企业网站</c:if>
									<c:if test="${userOrders.orgin==4 }">转发渠道</c:if>
								</td>
								<td class="td_modi">
									<a href="toModifyUserOrder.do?orderId=${userOrders.orderId}">编辑</a>
									<c:if test="${userOrders.majorStatus==1070||userOrders.majorStatus==null}">
									<a href="javascript:;" onclick="deleteUserOrder(${userOrders.orderId})">删除</a>
									</c:if>
								</td>
							</tr>
						</c:forEach>
						<tr>
							<td colspan="8">
								<%@include file="../navigation/page.jsp" %>
							</td>
							</tr>
					</tbody>
				</table>
				

			</div>
		</div>
	</div>
	
</body>
</html>
