<#-- 默认发红包列表 -->
<!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>
	<base href="${baseURL}">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>发红包 - ${title}</title>
	<meta name="keywords" content="${keywords}"/>
	<meta name="description" content="${description}"/>
	<link rel="shortcut icon" type="image/x-icon" href="${baseURL}${commonPath}images/favicon.ico" media="screen" />
	<link href="${commonPath}css/common.css" type="text/css" rel="stylesheet" >
	<link href="${commonPath}css/themify-icons/style.css" type="text/css" rel="stylesheet">
	<script language="javascript" src="${commonPath}js/tool.js" type="text/javascript"></script>
	<script language="javascript" src="${commonPath}js/ajax.js" type="text/javascript"></script>
	<script language="javascript" src="${commonPath}js/json2.js" type="text/javascript"></script>
</head>
<script type="text/javascript" language="javascript"> 
	
	
</script>
<body>
<#-- 引入页头 -->
<@include action="${newPublic_2}"/>
<div class="skeleton">
	<div class="main wrap backgroundModule" >

		<#-- 引入服务导航 -->
		<@include action="${newPublic_4}"/>
		<!-- 支付日志 -->
		<div class="dataTable">
			<TABLE class="dataList" width="100%">
				<THEAD>
					<TR class="dataThead">
						<TH width="10%">类型</TH>	
						<TH width="23%">总金额</TH>
						<TH width="10%">发放数量</TH>
						<TH width="10%">已领取数量</TH>
					    <TH width="20%">话题</TH>
					    <TH width="15%">时间</TH>
					    <TH width="12%">操作</TH>
					</TR>
				</THEAD>
				<TBODY>
		    		<#if pageView.records?exists && pageView.records?size gt 0 >    
					<#list pageView.records as giveRedEnvelope>
					<TR>
						<TD class="dataTD">
							<#if giveRedEnvelope.type == 10>
								个人定向红包
							<#elseif giveRedEnvelope.type == 20>
								公共随机红包
							<#elseif giveRedEnvelope.type == 30>
								公共定额红包
							</#if>				
						</TD>
						<TD class="dataTD">
							${giveRedEnvelope.totalAmount}
							<#if giveRedEnvelope.refundAmount gt 0 > 
								<span style="color: #F56C6C;">中止领取红包后返还金额￥${giveRedEnvelope.refundAmount}</span>
							</#if>
						</TD>
						<TD class="dataTD">${giveRedEnvelope.giveQuantity}</TD>
						<TD class="dataTD">${giveRedEnvelope.giveQuantity - giveRedEnvelope.remainingQuantity}</TD>
						<TD class="dataTD">
							<a href="thread?topicId=${giveRedEnvelope.bindTopicId}" target="_blank" class="link">${giveRedEnvelope.bindTopicTitle}</a>
						</TD>
						<TD class="dataTD">${giveRedEnvelope.giveTime}</TD>
						<TD class="dataTD">
							<a class="operation-button" href="user/control/redEnvelopeAmountDistributionList?giveRedEnvelopeId=${giveRedEnvelope.id}" >
								<span>查看金额分配</span>
							</a>
						</TD>
		    		</TR>
		    		</#list>
		    		</#if> 
		    		<#if !pageView.records?exists || pageView.totalrecord == 0 > 
		    			<TR>
							<TD colSpan="7"  class="empty">还没有发红包</TD>
		    			</TR>
		    		</#if> 
		    	</TBODY>
			</TABLE>
			<DIV class=pageList>
				<@include action="${newPublic_1}"/>
			</DIV>
		</div>
		</div>
	</div>
	<#--引入页脚-->
	<@include action="${newPublic_3}"/>
</body>

</html>
