<%@page contentType="text/html; charset=utf-8" pageEncoding="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 xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/website/images/favicon.ico" type="image/x-icon">
<title>宽客资本</title>
<link rel="stylesheet" type="text/css" href="/website/css/kkcss.css" />
<script type="text/javascript" src="/website/js/jquery.js"></script>
<script type="text/javascript" src="/website/js/menu.js"></script>
</head>
<body>
<div class="subhead">
  <%@include file="../navigation/menu.jsp" %>
</div>

<div class="main_banner_wrap">
<c:choose>
<c:when test="${newsType == 1096 || newsType == 1095}">
	<div class="main_banner" style="background:url(/website/images/ban_zx.jpg) center top no-repeat;"> </div>
</c:when>
<c:otherwise>
	<div class="main_banner" style="background:url(/website/images/ban_new.jpg) center top no-repeat;"> </div>
</c:otherwise>
</c:choose>
</div>

<div class="mainbox clear">
  <div class="left fl">
    <ul class="lmenulist">
    	<c:forEach items="${subclass }" var="subclass">
    		<li><a href="/news/list.do?newsType=${subclass.subclassId }"  <c:if test="${subclass.subclassId==newsType }">class="acur"</c:if>   >${subclass.title }</a></li>
    	</c:forEach>
    </ul>
  </div>
  <div class="right fr">
    <div class="newlist clear">
      <ul>
      	<c:forEach items="${newsList }" var="news">
      		<li><span><fmt:formatDate value="${news.pubTime }" type="date" pattern="yyyy-MM-dd hh:mm"/></span><a href="detail.do?newsId=${news.newsId }">${news.title }</a></li>
      	</c:forEach>

      </ul>
    </div>
    <div class="page clear"> <span>共${pageVo.rows }条，共${pageVo.totalPage }页</span>
    	<c:if test="${pageVo.currentPage<=1 }"><a href="javascript:;">&lt;</a> </c:if>
    	<c:if test="${pageVo.currentPage>1 }">
    		<a href="/news/list.do?newsType=${newsType}&pageindex=${pageVo.currentPage-1 }">&lt;</a> 
    	</c:if>
    	<c:forEach items="${showPages }" var="showPages">
    	<c:choose>
    		<c:when test="${showPages==pageVo.currentPage }">
    			<span class="current">${pageVo.currentPage }</span>
    		</c:when>
    		<c:otherwise>
    			<a href="/news/list.do?newsType=${newsType}&pageindex=${showPages }">${showPages }</a>
    		</c:otherwise>  
    	</c:choose> 		
    	</c:forEach>
    	<c:if test="${pageVo.currentPage>=pageVo.totalPage }"><a href="javascript:;">&gt;</a> </c:if>
    	<c:if test="${pageVo.currentPage<pageVo.totalPage }">
    		<a href="/news/list.do?newsType=${newsType}&pageindex=${pageVo.currentPage+1 }">&gt;</a> 
    	</c:if>

    </div>
    <script type="text/javascript">
      $(function(){
		$(".newlist li:odd").addClass('whitebg');  
	  })
	 
    </script>
  </div>
</div>
<div class="footer">
  <%@include file="../navigation/footer.jsp" %>
</div>
</body>
</html>