rationNewRecord.jsp 2.98 KB
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<jsp:include page="${ctx }/view/common/meta.jsp" />
	<link href="${ctx }/resource/css/detail.css" rel="stylesheet" type="text/css" />
	<link href="${ctx }/resource/css/home.css" rel="stylesheet" type="text/css" />
	<link href="${ctx }/resource/css/member.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<jsp:include page="${ctx }/view/common/header.jsp" />


	<div class="bigbox">
		<jsp:include page="${ctx }/view/common/menu.jsp" />
		<div class="etlist rightbox0"  style="margin-top: 28px">
			<h2 style="text-align: left;">上市记录</h2>
			<div class="crossline"></div>
			<ul class="tab">
				<li class="selected"><a href="${ctx }/user/ration/rationRecord">配售上市</a></li>
				<li><a href="${ctx }/user/ration/directRecord">直接上市</a></li>
			</ul>
			<div class="clear"></div>


			<table border="0" style="border-bottom: 1px solid #ccc;"
				class=" etlistbg entrusttable" cellpadding="0" cellspacing="0">
				<thead>
					<tr id="head">
						<td width="8%">序号</td>
						<td width="10%">藏品编号</td>
						<td width="12%">藏品名称</td>
						<td width="18%">配售价格(元)</td>
						<td width="10%">配售量</td>
						<td width="18%">配售金额(元)</td>
						<td width="12%">自有持仓</td>
						<td width="20%">配售时间</td>
					</tr>
				</thead>
				<tbody>
					<c:if test="${empty record }">
						<tr>
							<td style="background:#f2f2f2;" colspan="10"><img style="width:65%" src="${ctx }/resource/images/noData.png"></img></td>	
						</tr>
					</c:if>
				        <c:forEach var="ration" items="${record }" varStatus="status">
						 <tr height="40">
						 	<td >${status.index+1}</td>
							<td >${ration.otcCode }</td>
							<td >${ration.otcName }</td>
							<td ><fmt:formatNumber value="${ration.price }" pattern="##,##0.00" maxFractionDigits="2"/></td>
							<c:if test="${ration.buyUserId == ration.sellUserId}">
							<td >${ration.approvalCount - ration.stockAmount}</td>
							<td ><fmt:formatNumber value="${(ration.approvalCount - ration.stockAmount)*ration.price}" pattern="##,##0.00" maxFractionDigits="2"/></td>
							</c:if>
							<c:if test="${ration.buyUserId != ration.sellUserId}">
							<td >0</td>
							<td >-${ration.fund}</td>
							</c:if>
							<td >${ration.stockAmount }</td>
							<td ><fmt:formatDate value="${ration.createAt }" pattern="yyyy-MM-dd" /></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<div class="clear"></div>
	</div>

	<jsp:include page="${ctx }/view/common/bottom.jsp" />
</body>
</html>