<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/cms/front/include/taglib.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/chajian.js"></script> 
<!-- 资讯页面的JSP -->
<div class="content_warp">
	<c:forEach items="${categoryList}" var="category" varStatus="status">
		<div class="list fl">
			<c:if test="${category.module=='picture'}">
				<div id="chajian">
	            	<ul><c:forEach items="${category.articleList}" var="article">
	            		<li>
	            			<a href="javascript:;" style= "cursor:default"><img src="${article.image}" alt=""></a>
	            			<div class="shuoming">${article.title}</div>
	            		</li></c:forEach>
	                </ul>
	        	</div>
			</c:if>
			<c:if test="${category.module=='article'}">
				<div class="title">
             		<span>${category.name}</span>
             		<a href="javascript:loadPage('${ctx}/list-${category.id}${urlSuffix}');">更多>></a>
             	</div>
             	<div class="altice_list">
	             	<c:forEach items="${category.articleList}" var="article" varStatus="statusArticle">
	             		<c:if test="${statusArticle.count eq 1}">
	             			<div class="list_top">
		             			<div class="list_top_left fl">
		             			   <img src="assets/images/${status.count}.png" alt="">
	             				</div>
	             				<c:if test="${article.link ne null&&not empty article.link }">
		             			<div class="list_top_right fr">
									<p class="list_top_title"><a href="${article.link}" target="_blank">${article.title}</a></p>
									<p class="list_top_content"><a href="${article.link}" style="color:#867d7d" target="_blank">${fns:abbr(article.description,110)}</a></p>
								</div>
								</c:if>
								<c:if test="${article.link eq null || empty article.link }">
								<div class="list_top_right fr">
									<p class="list_top_title"><a href="javascript:loadPage('${article.url}');">${article.title}</a></p>
									<p class="list_top_content"><a href="javascript:loadPage('${article.url}');" style="color:#867d7d">${fns:abbr(article.description,110)}</a></p>
								</div>
								</c:if>
								<div class="clear"></div>
	             			</div>
	             		</c:if>
	           			<c:if test="${statusArticle.count > 1}">
	           		 		<ul>
	           		 			<li><a href="javascript:loadPage('${article.url}');">
	           		 				<span style="color:${article.color}">${fns:abbr(article.title,42)}</span>
	           		 				<time><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></time>
	           		 			</a></li>
	           		 		</ul>
	           			</c:if>
	             	</c:forEach>
             	</div>
			</c:if>
		</div>
		<c:if test="${(status.count)%3 eq 0 }">
			<div class="clear"></div>
		</c:if>
	</c:forEach>
</div>       
   