<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>私塾家</title>
<script th:include="sys/common/metaCSS" th:remove="tag"></script> 
<script th:include="sys/common/metaJS" th:remove="tag"></script> 
</head>
<style>
	.tablelink{margin-right:10px;}
	.stylecss{
	      color: red;
	}
	.select_width{
	     width: 70px;
	}
	.date_width{
	     width: 100px;
	}
	body{
	    font-size: 4pt;
	}
</style>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="#">运营管理</a></li>
		<li><a th:href="@{/sys/story/storyList.html}">故事列表</a></li>
		<li><a href="#">评论列表</a></li>
	</ul>
</div>
<div class="rightinfo">
	<form id="seachform" th:action="@{/sys/story/storyCardList.html}" method="post">
	      <input type="hidden" name="EQ_storyTaskId" th:value="${search.get('EQ_storyTaskId')}">
	      <input type="hidden" name="EQ_storyId" th:value="${search.get('EQ_storyId')}">
	<ul class="seachform">
		<li>
			<label>评论内容</label>
			<input name="LIKE_content" type="text" class="scinput" th:value="${search.get('LIKE_content')}"/>
		</li>
		<li>
			<label>评论人</label>
			<input name="LIKE_userName" type="text" class="scinput" th:value="${search.get('LIKE_userName')}"/>
		</li>
		<li>
			<label>&nbsp;</label>
			<input type="button" class="scbtn" value="查询" />
		</li>
		
		<li>
			<input type="button" id="zbbutton" style="width: 120px;" class="scbtnbution" value="导出" />
		</li>
		<li>
				<ul class="toolbar">
					<a th:href="@{/sys/story/storyTaskList.html(EQ_storyId=${search.get('EQ_storyId')})}"><li class="click"><span><img style="width: 24px;height: 24px" th:src="@{/static/sys/images/goto.png}" /></span>返回</li></a>
				</ul>
		</li>
	</ul>
	</form>
<table class="imgtable">
	        <thead>
	            <tr class="head">
	                <td style="width: 50px;">序号</td>
	                <td >内容</td>
	                <td >语音</td>
	               	<td >Day</td>
	             <!--   	<td style="width: 50px;">点赞</td> -->
	               	<td >评论人</td>
	                <td >评论时间</td>
	                <td >回复列表</td>
	                <td style="width: 280px;">
	                	<table class="imgtable">
	                	<thead>
					            <tr>
					                <th style="width: 50px;">图片名称</th>
					                <th style="width: 50px;">评论图片</th>
					            </tr>
					        </thead>
					    </table>
	                </td>
	              
	                
	            </tr>
	        </thead>
            <tbody>
				<tr th:each="item:${list}" >
					<td th:text="${itemStat.count}" ></td>
					<td th:title="${item.content}" th:text="${item.content} ? (${#strings.length(item.content)} &gt; 15 ? ${#strings.substring(item.content,0,15)} :${item.content} ) :'' ">
					</td>
					<td  >
					  <audio style="width: 160px;" th:if="${item.voice !=null && item.voice !=''}"  controls="controls" th:src="${imgUrl}+''+${item.voice}" ></audio>
					</td>
					<td  th:text="${item.daysNum}">
					</td>
					<!-- <td style="width: 50px;" th:text="${item.praise}">
					</td> -->
					<td  th:text="${item.userName}">
					</td>
					<td th:text="${#calendars.format(item.createTime,'yyyy-MM-dd HH:mm')}" ></td>
					<td>
					    <a th:href="@{/sys/story/storyCardReplyList.html(EQ_storyCardId=${item.id},storyId=${storyId}, storyTaskId=${search.get('EQ_storyTaskId')})}" class="tablelink" >回复列表</a>
					</td>
					<td style="width: 280px;" >
						<table class="imgtable">
					        <tbody>
					        		<tr th:each="img:${item.imglist}" >
										<td th:text="${img.name}">
					                    </td>
										<td  class="imgtd">
											<img  th:if="${img.img}!=null" th:src="${imgUrl}+''+${img.img}" style="width: 50px;height: 50px;" />
					                    </td>
									</tr>
					        </tbody>
					  	</table>
					</td>
				</tr>
             </tbody>
        </table>
	<!-- 分页 -->
	<div class="pagin">
    	<div class="message">共<i class="blue">[[${page.rowCnt}]]</i>条记录，当前显示第&nbsp;<i class="blue">[[${page.pageNo }]]&nbsp;</i>页</div>
    	<div th:utext='${listNavigatHtml}' th:remove="tag" ></div>
   	</div>
</div>
</body>
<script type="text/javascript">
$("#zbbutton").on('click',function(){
	document.getElementById("seachform").action = "[[${sysUrl}]]/sys/story/exportStoryCard";
	$("#seachform").submit();
	document.getElementById("seachform").action = "[[${sysUrl}]]/sys/story/storyCardList.html";
});

</script>
</html>