<#-- 默认举报列表 -->
<!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>
	<base href="${baseURL}">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>举报列表 - ${title}</title>
	<meta name="keywords" content="${keywords}"/>
	<meta name="description" content="${description}"/>
	<link rel="shortcut icon" type="image/x-icon" href="${baseURL}${commonPath}images/favicon.ico" media="screen" />
	<link href="${commonPath}css/common.css" type="text/css" rel="stylesheet" charset="utf-8">
	<link href="${commonPath}css/themify-icons/style.css" type="text/css" rel="stylesheet">
	<script language="javascript" src="${commonPath}js/tool.js" type="text/javascript"></script>
	<script language="javascript" src="${commonPath}js/ajax.js" type="text/javascript"></script>
	<script language="javascript" src="${commonPath}js/json2.js" type="text/javascript"></script>
	<script type="text/javascript" src="${commonPath}js/jquery/jquery.min.js" language="javascript"></script>
	<link href="${commonPath}js/imageZoom/style.css" rel="stylesheet" type="text/css" />
	<link href="${commonPath}js/simplebox/css/simplebox.css"  type="text/css" rel="stylesheet"/>
	<script type="text/javascript" src="${commonPath}js/simplebox/js/simplebox.js" language="javascript"></script>
	
</head>
<script type="text/javascript" language="javascript"> 
	
	
</script>
<body>
<#-- 引入页头 -->
<@include action="${newPublic_2}"/>
<div class="skeleton ">
	<div class="main wrap backgroundModule" >

		<#-- 引入服务导航 -->
		<@include action="${newPublic_4}"/>
		<!-- 举报列表 -->
		<div class="dataTable">
			<TABLE class="dataList" width="100%">
				<THEAD>
					<TR class="dataThead">
						<TH width="14%">理由</TH>	
						<TH width="15%">分类</TH>	
						<TH width="18%">图片</TH>	
						<TH width="12%">被举报内容</TH>
						<TH width="10%">状态</TH>
						<TH width="15%">处理结果</TH>
						<TH width="16%">举报时间 / 处理完成时间</TH>
					</TR>
				</THEAD>
				<TBODY>
		    		<#if pageView.records?exists && pageView.records?size gt 0 >    
					<#list pageView.records as report>
					<TR>
						<TD class="dataTD">
							${report.reason}				
						</TD>
						<TD class="dataTD">
							${report.reportTypeName}				
						</TD>
						<TD class="dataTD">
							<#if report.imageInfoList?size gt 0>
								<div class="tm-m-photos">
									<ul class="tm-m-photos-thumb" style="height: 50px">
										<#list report.imageInfoList as imageInfo>
											<li data-src="${imageInfo.path}${imageInfo.name}" src="${imageInfo.path}${imageInfo.name}" style="width: 50px; height: 50px">
												<#-- 本地存储 -->
												<#if fileStorageSystem == 0>
													<div class="img" style="background-image: url(${imageInfo.path}${imageInfo.name})"></div>
												</#if>
												<#-- SeaweedFS存储 使用nginx image_filter的缩略图处理功能 -->
												<#if fileStorageSystem == 10>
													<div class="img" style="background-image: url(${imageInfo.path}${imageInfo.name}?width=240)"></div>
												</#if>
												<#--  MinIO存储 使用nginx image_filter的缩略图处理功能 -->
												<#if fileStorageSystem == 20>
													<div class="img" style="background-image: url(${imageInfo.path}${imageInfo.name}?width=240)"></div>
												</#if>
												<#-- 阿里云OSS存储 -->
												<#if fileStorageSystem == 30>
													<div class="img" style="background-image: url(${imageInfo.path}${imageInfo.name}?x-oss-process=image/resize,w_240)"></div>
												</#if>
											</li>
										</#list>
									</ul>
								</div>
							</#if>
						</TD>
						<TD class="dataTD">
							<#if report.module == 10>
								<a href="thread?topicId=${report.parameterId}&reportModule=${report.module}" >
									<span>查看话题</span>
								</a>
							</#if>
							<#if report.module == 20>
								<a href="thread?topicId=${report.extraParameterId}&commentId=${report.parameterId}&reportModule=${report.module}" >
									<span>查看评论</span>
								</a>
							</#if>
							<#if report.module == 30>
								<a href="thread?topicId=${report.extraParameterId?split('-')[0]}&commentId=${report.extraParameterId?split('-')[1]}&replyId=${report.parameterId}&reportModule=${report.module}" >
									<span>查看评论回复</span>
								</a>
							</#if>
							<#if report.module == 40>
								<a href="question?questionId=${report.parameterId}&reportModule=${report.module}" >
									<span>查看问题</span>
								</a>
							</#if>
							<#if report.module == 50>
								<a href="question?questionId=${report.extraParameterId}&answerId=${report.parameterId}&reportModule=${report.module}" >
									<span>查看答案</span>
								</a>
							</#if>
							<#if report.module == 60>
								<a href="question?questionId=${report.extraParameterId?split('-')[0]}&answerId=${report.extraParameterId?split('-')[1]}&replyId=${report.parameterId}&reportModule=${report.module}" >
									<span>查看答案回复</span>
								</a>
							</#if>
						</TD>
						<TD class="dataTD">
							<#if report.status == 10>待处理</#if>
							<#if report.status == 40>投诉失败</#if>
							<#if report.status == 50>投诉成功</#if>
						</TD>
						<TD class="dataTD">
							${report.processResult}
						</TD>
						<TD class="dataTD">
							<div>${report.postTime}</div>
							<#if report.processCompleteTime != null>
								<div class="processCompleteTime">${report.processCompleteTime}</div>
							</#if>
						</TD>
		    		</TR>
		    		</#list>
		    		</#if> 
		    		<#if !pageView.records?exists || pageView.totalrecord == 0 > 
		    			<TR>
							<TD colSpan="7"  class="empty">还没有举报记录</TD>
		    			</TR>
		    		</#if> 
		    	</TBODY>
			</TABLE>
			<DIV class=pageList>
				<@include action="${newPublic_1}"/>
			</DIV>
		</div>
	
	</div>

</div>
<#--引入页脚-->
<@include action="${newPublic_3}"/>
</body>
<!-- 图片点击放大 -->
<script type="text/javascript">
	$(function () {
    	$(".tm-m-photos-thumb li").simplebox();
    	
    //	$(".topicContent img,.commentContent img").simplebox();
	});
</script>
</html>
