<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<div class="meslist_title">
	<ul>
    	<li>项目名称</li>
    	<li>招标文件编号</li>
        <li>评标结果公示日期</li>
        <li>预计开工日期</li>
        <li>添加时间</li>
        <li>操作</li>
    </ul>
</div>
<div class="meslist_content">
<c:if test="${biddingMessageList.size()>0 }">
<c:forEach items="${biddingMessageList }" var="list">
<ul class="clearfix">
    <li>${list.projectName }</li>
    <li>${list.invitationCode }</li>
    <li><fmt:formatDate pattern='yyyy-MM-dd' value='${list.bidTime }'/></li>
    <li><fmt:formatDate pattern='yyyy-MM-dd' value='${list.workingTime }'/></li>
    <li><fmt:formatDate pattern='yyyy-MM-dd HH:mm' value='${list.createOn }'/></li>
    <li><a href="javascript:void(0);" onclick="detailBidMsg('${list.oid }');">查看</a></li>
</ul>
</c:forEach>
</c:if>
<c:if test="${biddingMessageList.size()==0 }">
<div class="null-infor"><p>暂无信息！</p></div>
</c:if>
</div>
<div class="meslist_paging">
	<div class="meslist_pagleft">
    	<p>
    	
        	<span>显示<c:if test="${dwzPage.totalPage == 1 }">1-${dwzPage.totalCount}</c:if>
	<c:if test="${dwzPage.totalPage > 1 }">
	<c:if test="${dwzPage.pageNum == 1 }">
	1-${dwzPage.numPerPage}
	</c:if>
	<c:if test="${dwzPage.pageNum > 1 }">
	${(dwzPage.pageNum -1) * dwzPage.numPerPage + 1}-${dwzPage.pageNum * dwzPage.numPerPage}
	</c:if>
	</c:if>条，共${dwzPage.totalCount}条记录，每页显示记录</span>
        <span>
        	<select style="background:url(<c:url value='/resources/images/bzbx_pulldown.gif' />) 90% no-repeat;" id="numPerPage"  onchange="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','1')">
            	<option value="10" <c:if test="${10 == dwzPage.numPerPage }">selected="selected"</c:if>>10</option>
<option value="20" <c:if test="${20 == dwzPage.numPerPage }">selected="selected"</c:if>>20</option>
<option  value="50" <c:if test="${50 == dwzPage.numPerPage }">selected="selected"</c:if>>50</option>
            </select>
        </span>
    </p>
</div>
<div class="meslist_pagright">
	<ul>
    	<li><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','1')">第一页</a></li>
        <li><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','<c:if test="${dwzPage.pageNum == dwzPage.totalPage }">${dwzPage.totalPage }</c:if><c:if test="${dwzPage.pageNum != dwzPage.totalPage }">${dwzPage.pageNum+1 }</c:if>')">下一页</a></li>
        <c:if test="${dwzPage.totalPage<6 }">
        <c:forEach begin="1" end="${dwzPage.totalPage }" varStatus="index">
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${index.index }')" <c:if test="${dwzPage.pageNum == index.index }"> class="active_ff6"</c:if>>${index.index }</a></span></li>
        </c:forEach>
        
        </c:if>
        <c:if test="${dwzPage.totalPage>5 }">
        
        <c:if test="${dwzPage.pageNum == dwzPage.totalPage }">
        <li><span>...</span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-4 }')">${dwzPage.pageNum-4 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-3 }')">${dwzPage.pageNum-3 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-2 }')">${dwzPage.pageNum-2 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-1 }')">${dwzPage.pageNum-1 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum }')" class="active_ff6">${dwzPage.pageNum }</a></span></li>
        </c:if>
        <c:if test="${dwzPage.pageNum == 1 }">
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum }')" class="active_ff6">${dwzPage.pageNum }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+1 }')">${dwzPage.pageNum+1 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+2 }')">${dwzPage.pageNum+2 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+3 }')">${dwzPage.pageNum+3 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+4 }')">${dwzPage.pageNum+4 }</a></span></li>
        <li><span>...</span></li>
        </c:if>
        <c:if test="${dwzPage.pageNum == 1 && dwzPage.pageNum == dwzPage.totalPage}">
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum }')" class="active_ff6">${dwzPage.pageNum }</a></span></li>
        </c:if>
        <c:if test="${dwzPage.pageNum != 1 && dwzPage.pageNum != dwzPage.totalPage}">
        
        <c:if test="${dwzPage.pageNum - 1 == 1}">
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-1 }')">${dwzPage.pageNum-1 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum }')" class="active_ff6">${dwzPage.pageNum }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+1 }')">${dwzPage.pageNum+1 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+2 }')">${dwzPage.pageNum+2 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+3 }')">${dwzPage.pageNum+3 }</a></span></li>
        <li><span>...</span></li>
        </c:if>
        <c:if test="${dwzPage.pageNum - 1 != 1 && dwzPage.totalPage - dwzPage.pageNum != 1}">
        <li><span>...</span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-2 }')">${dwzPage.pageNum-2 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-1 }')">${dwzPage.pageNum-1 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum }')" class="active_ff6">${dwzPage.pageNum }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+1 }')">${dwzPage.pageNum+1 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+2 }')">${dwzPage.pageNum+2 }</a></span></li>
        <li><span>...</span></li>
        </c:if>
        <c:if test="${dwzPage.totalPage - dwzPage.pageNum == 1}">
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-3 }')">${dwzPage.pageNum-3 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-2 }')">${dwzPage.pageNum-2 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum-1 }')">${dwzPage.pageNum-1 }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum }')" class="active_ff6">${dwzPage.pageNum }</a></span></li>
        <li><span><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.pageNum+1 }')">${dwzPage.pageNum+1 }</a></span></li>
        </c:if>
        
        </c:if>
        </c:if>
        <li><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','<c:if test="${dwzPage.pageNum == 1 }">${dwzPage.pageNum }</c:if><c:if test="${dwzPage.pageNum != 1 }">${dwzPage.pageNum-1 }</c:if>')">上一页</a></li>
        <li><a href="javascript:void(0);" onclick="pageReturnHtml('<c:url value="/BID/biddingAgency/biddingMessageList/${biddingAgency.oid }" />','${dwzPage.totalPage }')">末页</a></li>
        </ul>
    </div>
</div>