<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/cms/front/include/taglib.jsp"%>

	<%-- <title>${article.title} - ${category.name}</title>
	<link type="text/css" rel="stylesheet" href="assets/css/index.css" />
	<meta name="decorator" content="cms_default_basic"/>
	<meta name="description" content="${article.description} ${category.description}" />
	<meta name="keywords" content="${article.keywords} ${category.keywords}" /> --%>
<script type="text/javascript">
	$(document).ready(function() {
		var files = $("#files").val();;
		if (files!= null && files != "") {
		/* 	var filesPath = files.split("|");
			if (filesPath != null && filesPath.length > 0) {
				 $("#filesView").append("");
				var aLink  = "附件列表：";
				var i;
				for (i = 1; i < filesPath.length; i++) {
					var filename = filesPath[i].split("/");
					aLink = aLink + "<a = id='file_"+i+"' href='"+filesPath[i]+"' target='blank' rel='nofollow'>"
					        +i+"."+filename[filename.length-1]+"</a>&nbsp&nbsp&nbsp&nbsp";
				}
				
				$("#filesView").append(aLink);
			} */
			var filename = files.split("/");
			var aLink  = "视频文件：";
			aLink = aLink + "<a = id='file_' href='"+files+"' target='blank' rel='nofollow'>"
	        +filename[filename.length-1]+"</a>&nbsp&nbsp&nbsp&nbsp";
			$("#filesView").append(aLink);
		}

	});
	function page(n, s) {
		$.get("${ctx}/comment", {
			theme : '${site.theme}',
			'category.id' : '${category.id}',
			contentId : '${article.id}',
			title : '${article.title}',
			pageNo : n,
			pageSize : s,
			date : new Date().getTime()
		}, function(data) {
			$("#comment").html(data);
		});
	}
</script>
<!-- 文章详细内容的JSP -->
<div class="morecontent_warp" style="width:80%;margin: 1% auto;height:95%" >
   <div  class="fontViewArticleBack">
     <a href="javascript:loadPage('${ctx}/list-${category.id}${urlSuffix}');"><img src="assets/images/icon_back.png" class="headback"/>返回栏目</a>
   </div>
   <div class="row" style="height:93%;width: 100%;">
		   <div class="span2" style="width: 27%;height: 100%;float: left;">
		        <div class="columnreadlist" style="width:100%;">
			         <h4>栏目列表</h4>
			         <div class="columnlist" >
						 <ol>
						 	<cms:frontCategoryList categoryList="${categoryList}"/>
						 </ol>
					 </div>
					 <h4>推荐阅读</h4>
					 <div class="columnlist" >
						 <ol>
						 	<cms:frontArticleHitsTop category="${category}"/>
						 </ol>
					 </div>
				 </div>
		   </div>
		   <div class="getcontentlist" style="width:70%;height: 100%">
			   <div class="span10" style="height:1%">
				 <ul class="breadcrumb">
				    <cms:frontCurrentPosition category="${category}"/>
				 </ul>
			   </div>
			   <div class="span10" style="height:95%">
			     <div class="row" style="height:100%">
			       <div class="span10" style="height:100%">
			       <c:if test="${copyfrom!=null&&not empty copyfrom}">
					<h3 style="color:#555555;font-size:1vw;text-align:center;padding-bottom:1%;margin:2% 0;height: 2%;">${article.title}</h3>
					<p style="font-size:12px;border-bottom:1px solid #ddd;padding-bottom:2%;height:1%">来源：${copyfrom}</p>
					</c:if>
					<c:if test="${copyfrom eq null||empty copyfrom}">
					<h3 style="color:#555555;font-size:1vw;text-align:center;border-bottom:1px solid #ddd;padding-bottom:1%;margin:2% 0;height: 2%;">${article.title}</h3>
					</c:if>
					<!-- -下方内容的展示--- -->
					<c:if test="${not empty article.description}"><div style="height: 8%;">摘要：${article.description}</div></c:if>
					<div style="max-height:76%;overflow-y:auto;min-height: 50%;line-height: 30px;">${article.articleData.content}</div>
					
					<input type="hidden" id="files" name="files" value="${article.files}" />
		  	       	<br>
		  	       	<span id="filesView"></span>
					<c:if test="${article.publisher!=null&&not empty article.publisher}">
					<div style="border-top:1px solid #ddd;padding:10px;margin:1% 0;height: 4%;">发布者：${article.publisher} &nbsp; 点击数：${article.hits} &nbsp; 发布时间：<fmt:formatDate value="${article.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> &nbsp; 更新时间：<fmt:formatDate value="${article.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
		  	       </c:if>
		  	       <c:if test="${article.publisher==null || empty article.publisher}">
		  	       <div style="border-top:1px solid #ddd;padding:10px;margin:1% 0;height: 4%;">发布者：${article.updateBy.name} &nbsp; 点击数：${article.hits} &nbsp; 发布时间：<fmt:formatDate value="${article.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> &nbsp; 更新时间：<fmt:formatDate value="${article.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
		  	       </div>
		  	        </c:if>
		  	        
		  	       
		  	     </div>
		  	  </div>
		  </div>
   </div>
</div>
</div>