<%@include file="/WEB-INF/common/layouts/common.jsp" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>淘房币明细列表</title>
    <style type="text/css">
    	#filterForm input{
    		margin-top:3px;
    	}
    	#filterForm div{
    		margin-top:3px;
    	}
    	
    </style>
</head>
<body>
<%-- <div class="row${fluid}">
    <div class="span6">
        <h2 class="page-title">CmCreditRecord列表</h2>
    </div>
    <div class="span6 header_buttons">
        <a href="${ctx}/cmcreditrecord?action=create" class="btn blue pull-right"><i class="icon-plus"></i></a>
    </div>
</div> --%>

<!-- 面包屑 begin -->
<div class="row-fluid">
	<div class="span12">
		<ul class="breadcrumb">
			<!-- <li><a href="/house365-hmc-web/">首页</a> <span class="divider"></span></li> -->
			<li class="active" ><span class="divider" style="color:#26a0da;font-weight:bold;">/</span>推荐统计查询</li>
		</ul>
	</div>
</div>
<!-- 面包屑 begin -->

<div class="page-container">
    <div class="row${fluid}">
        <div class="span12">
            <form id="filterForm" class="form-inline filterForm" action="${ctx}/cmcreditrecord/statistics" method="get">
				<input type="hidden" value="8" name="search_EQ_ruleId" id="search_rule_id_select">
				<input type="text" class="span2 date datetime-picker"
					placeholder="开始时间" value="${param['search_GTE_happenTime']}"
					name="search_GTE_happenTime" title="开始时间"> 
				<input type="text"
					class="span2 date datetime-picker" placeholder="结束时间" title="结束时间"
					value="${param['search_LTE_andHappenTime']}" 
					name="search_LTE_andHappenTime">
				<input type="text" name="search_LIKE_userName" value="${param['search_LIKE_userName']}" 
					class="m-wrap small" placeholder="用户名称" title="用户名称" style="height:20px;">
				<input type="text" name="search_EQ_userPhone" value="${param['search_EQ_userPhone']}" 
					class="m-wrap small" placeholder="用户手机号" title="用户手机号" style="height:20px;">
				 
                <div class="buttons pull-right" style="margin:3px 30px 0 0;">
                    <i class="icon-search icon-2x pointer" onclick="$('#filterForm').submit();" title="搜索"></i>
                </div>
	            </form>
        </div>
    </div>
    <table class="table table-striped table-advance table-hover">
        <thead>
        	<tr>
				<th width="10">编号</th>
				<th width="100">用户姓名</th>
				<th width="100">用户手机号</th>
				<th width="100">推荐人数</th>		
			</tr>
        </thead>
        <c:forEach items="${cmCreditRecords}" var="cmCreditRecord" varStatus="iter">
            <tr>
				<td nowrap="nowrap">
				   ${iter.count }
				</td>
				<td nowrap="nowrap">
						<c:if test="${null ne cmCreditRecord.userName && '' ne cmCreditRecord.userName}">
							<a href="${ctx}/cmcreditrecord?search_EQ_ruleId=8&search_EQ_userPhone=<c:out value="${cmCreditRecord.userPhone}" />">
								<c:out value="${cmCreditRecord.userName}" />
							</a>
						</c:if>
						<c:if test="${null eq cmCreditRecord.userName || '' eq cmCreditRecord.userName}">
							&nbsp;
						</c:if>
				</td>
				<td nowrap="nowrap">
						<c:if test="${null ne cmCreditRecord.userPhone && '' ne cmCreditRecord.userPhone}">
							<a href="${ctx}/cmcreditrecord?search_EQ_ruleId=8&search_EQ_userPhone=<c:out value="${cmCreditRecord.userPhone}" />">
								<c:out value="${cmCreditRecord.userPhone}" />
							</a>
						</c:if>
						<c:if test="${null eq cmCreditRecord.userPhone || '' eq cmCreditRecord.userPhone}">
							&nbsp;
						</c:if>
				</td>
				 
				<td nowrap="nowrap">
						<c:if test="${null ne cmCreditRecord.ruleId && '' ne cmCreditRecord.ruleId}">
						<c:choose>
                             <c:when test="${page.currentPage == 1 and iter.count==1}">
								<b style="color:red"><c:out value="${cmCreditRecord.ruleId}" /></b>
                             </c:when>
                             <c:when test="${page.currentPage == 1 and iter.count==2}">
								<b style="color:#8E0196"><c:out value="${cmCreditRecord.ruleId}" /></b>
                             </c:when>
                             <c:when test="${page.currentPage == 1 and iter.count==3}">
								<b style="color:#D65D05"><c:out value="${cmCreditRecord.ruleId}" /></b>
                             </c:when>
                             <c:otherwise>
                             	<b><c:out value="${cmCreditRecord.ruleId}" /></b>
                             </c:otherwise>
                         </c:choose>
						</c:if>
						<c:if test="${null eq cmCreditRecord.ruleId || '' eq cmCreditRecord.ruleId}">
							0
						</c:if>
				</td>
				 
			</tr>
        </c:forEach>
    </table>
    <div class="row${fluid}">
        <house365:pagination page="${page}"/>
    </div>
</div>
<script type="text/javascript">
	
//默认选择城市
$("#search_rule_id_select").val("${param['search_EQ_ruleId']}");
$('#search_rule_id_select').trigger("chosen:updated");
    
</script>
</body>
</html>
