<%@page trimDirectiveWhitespaces="true"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="gen" uri="http://help.jspgen.com/taglib/jstl"%>
<!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" />
<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1" />
<title>文章</title>
<!-- 图片展示插件 -->
<link type="text/css" href="${config.statie}js/lightbox/images/lightbox.min.css" rel="stylesheet" media="screen" />
<!-- 当前页面 -->
<link type="text/css" href="${config.statie}ui/admin/images/admin.css" rel="stylesheet">
<link type="text/css" href="${config.statie}ui/cms/admin/images/content-model-view.css" rel="stylesheet">
<style type="text/css">
/*内容开始*/
.content{font-size:14px; line-height:20px;}
.content p{padding:2px 10px; font-size:14px;}
.content p:nth-child(1){margin-top:0;}
/*内容结束*/
</style>
</head>
<body>
<div id="wrapper">
  <div class="area">
    <h2>
      <jsp:include page="content_menu.jsp" />
      <i>文章</i></h2>
    <div class="area-content" style="padding:10px;">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table content">
              <tr class="ignore">
                <td colspan="2" align="left" style="padding:2px;"><b style="color:${content.color}; font-size:14px;">${content.title}<gen:if test='${not empty content.thumb}'><a href="${content.thumb}" class="blue photo" rel="flowers">[图]</a></gen:if></b><br />
                  <gen:if test='${not empty article.subtitle}'><span>${article.subtitle}</span><br /></gen:if>
                  <a href="${content.url}" target="_blank" class="blue">${content.url}</a></td>
              </tr>
              <tr class="border-top border-right border-left">
                <td width="10%" align="right">Tags：</td>
                <td width="90%">&nbsp;${content.tags}</td>
              </tr>
              <tr class="border-top border-right border-left">
                <td align="right" valign="top">摘要：</td>
                <td valign="top">${content.description}</td>
              </tr>
              <tr class="border-top border-right border-left">
                <td colspan="2">${article.content}</td>
              </tr>
              <tr class="border-top border-right border-left">
                <td align="right" valign="middle">推荐：</td>
                <td valign="middle"><ul class="list-commend list-info hide">
                    ${commendLi}
                  </ul></td>
              </tr>
              <tr class="border-top border-right border-left">
                <td align="right" valign="top">相关：</td>
                <td valign="top"><ul class="list-info hide">
                    ${relatedLi}
                  </ul></td>
              </tr>
              <tr class="border-top border-right border-bottom border-left">
                <td align="right" valign="top">变量：</td>
                <td valign="top"><gen:if test="${not empty content.varMap}"><ul id="varData" class="list-info list-var hide">
          		<c:forEach items="${content.varMap}" var="map">
          			<li>变量名：<input name="key[]" type="text" class="text small ignore" value="${map.key}" size="20" readonly="readonly" />&nbsp;&nbsp;&nbsp;&nbsp;变量值：<input name="value[]" type="text" class="text small ignore" value="${map.value}" size="50" readonly="readonly" /></li>
          		</c:forEach></ul></gen:if></td>
              </tr>
            </table></td>
          <td width="20%" rowspan="2" valign="top" style="padding-left:10px;"><ul class="list-info">
              <li><b>内容属性</b></li>
              <li>节点：${node.name}</li>
              <li>来源：${content.source} </li>
              <li>作者：${article.author}</li>
              <li>上线：${gen:dateTime(content.publishTime, 'yyyy-MM-dd HH:mm:ss', config.timezoneid)}</li>
              <li>排序：${content.sort}</li>
              <li>编辑：${content.editor}</li>
              <li>录入：${contentUser.name}</li>
              <li>录入时间：${gen:dateTime(content.publishTime, 'yyyy-MM-dd HH:mm:ss', config.timezoneid)}</li>
              <li>修改时间：${gen:dateTime(content.publishTime, 'yyyy-MM-dd HH:mm:ss', config.timezoneid)}</li>
              <li>锁定：<gen:if test='${content.isLock == 1}'>已锁</gen:if><gen:if test='${content.isLock == 0}'>未锁</gen:if></li>
              <li>状态：<gen:if test='${content.status == 6}'>已发布</gen:if><gen:if test='${content.status == 3}'>待审核</gen:if><gen:if test='${content.status == 2}'>已退稿</gen:if><gen:if test='${content.status == 1}'>草稿</gen:if><gen:if test='${content.status == 0}'>回收站</gen:if></li>
              <li>浏览量：${content.pv}</li>
              <li>评论：${content.comment}</li>
            </ul></td>
        </tr>
      </table>
    </div>
  </div>
</div>
<!-- 必备插件 -->
<script type="text/javascript" src="${config.statie}js/jquery.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.form.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.grapes.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.timers.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.tablecolor.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.tabs.js"></script>
<!-- 图片展示插件 -->
<script type="text/javascript" src="${config.statie}js/lightbox/jquery.lightbox.min.js"></script>
<!-- 颜色选择器插件 -->
<script type="text/javascript" src="${config.statie}js/colorPicker/jquery.colorPicker.js"></script>
<!-- 日期插件 -->
<script type="text/javascript" src="${config.statie}js/datePicker/WdatePicker.js"></script>
<!-- 弹窗插件 -->
<script type="text/javascript" src="${config.statie}js/dialog/jquery.dialog.js?self=true"></script>
<script type="text/javascript" src="${config.statie}js/dialog/jquery.dialog.plugins.js"></script>
<!-- 表单验证插件 -->
<script type="text/javascript" src="${config.statie}js/validate/jquery.validate.js"></script>
<script type="text/javascript" src="${config.statie}js/validate/validate.expand.js"></script>
<script type="text/javascript" src="${config.statie}js/validate/messages_zh.js"></script>
<!-- UI界面必备 -->
<script type="text/javascript" src="${config.statie}ui/js/jspgen.js"></script>
<script type="text/javascript" src="${config.statie}ui/js/jspgen.ajax.js"></script>
<script type="text/javascript" src="${config.statie}ui/js/jspgen.ready.js"></script>
<!-- 当前页面 -->
<script type="text/javascript" src="${config.statie}ui/cms/js/jspgencms.js"></script>
<script type="text/javascript" src="${config.statie}ui/cms/js/jspgencms.ajax.js"></script>
<script type="text/javascript" src="${config.statie}ui/cms/admin/js/content.js"></script>
<script type="text/javascript" src="${config.statie}ui/cms/admin/js/content-menu.js"></script>
<script type="text/javascript">
// document.domain = "jspgen.com";// 调用
$(document).ready(function(){
	createContentmenuView();
	$('.content ul').each(function(){
		$(this).toggle($(this).has('li').length>0);
	});
	$('.content img').each(function() {
		$(this).wrap('<a href="'+$(this).attr('src')+'" class="photo" rel="flowers"></a>');
	});
	// 图片展示
	$('.content a.photo').lightbox({fitToScreen:true, loopImages:true, imageClickClose:false, disableNavbarLinks:true});
});
</script>
</body>
</html>
