<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<title>全网监控智能分析平台</title>
<style>
.table-null .table{
	margin-bottom: 0px;
}
.table-null .table > tbody > tr > td, .table-null .table > thead > tr > th{
	text-align: center;
 	width: 25%;
}
.table-null td:first-child{	
 	text-align: right;
 	width: 36%;
}
.table-null tr td:last-child .form-control,.table-null tr td:last-child table{
	width: 400px;
}

</style>
<script type="text/javascript" src="${ctx}/static/js/validation.js"></script>
<script language="javascript">

</script>
</head>
<body>
	<div id="main-tab-container">
		<div id="content">
			<div class="section">
				<div class="tab-content">
					<div class="row me-row">
						<!-- this is for emulating position fixed of the nav -->
						<!-- /scroller-inner -->
						<!-- Top Navigation -->
						<div class="content clearfix">
							<div class="row">
								<div class="col-xs-12">
									<form id="detailForm" class="form-horizontal" role="form"
										action="${ctx}/CrawlDataManage/ViewData/submitAppCommentFrame" method="post">
										<input type="hidden" id="commentId" name="commentId" value="${appComment.commentId}">
										<input type="hidden" id="sourceId" name="sourceId" value="${appDataId}">
										<table class="table-null">
											<tr>
												<td>评论内容:</td>
												<td>${appComment.commentContent}</td>
											</tr>
											<tr>
												<td>评论时间:</td>
												<td>${appComment.commentDate}</td>
											</tr>
											<tr>
												<td>评论人:</td>
												<td>${appComment.commentAuthor}</td>
											</tr>
											<tr>
												<td>评论人评分:</td>
												<td>
												<input class="form-control input-sm" id="authorGrade" name="authorGrade" value="<c:choose><c:when test="${appComment.authorGrade<0}">0</c:when><c:otherwise>${appComment.authorGrade}</c:otherwise></c:choose>">
												</td>
											</tr>
											<tr>
												<td>情感分析评分:</td>
												<td>
												<input class="form-control input-sm" id="systemGrade" name="systemGrade" value="<c:choose><c:when test="${appComment.systemGrade==-1}">1</c:when><c:when test="${appComment.systemGrade==1}">5</c:when><c:otherwise>0</c:otherwise></c:choose>">
												</td>
											</tr>
											
											<tr>
												<td>修正评分(<font color="red">必填</font>):</td>
												<td>
												<select class="form-control input-sm" id="revisedGrade" name="revisedGrade">
													<option value="5" <c:if test="${appComment.revisedGrade == 5 }">selected</c:if> >好</option>
													<option value="3" <c:if test="${appComment.revisedGrade == 3 }">selected</c:if> >中</option>
													<option value="1" <c:if test="${appComment.revisedGrade == 1 }">selected</c:if> >差</option>
												</select>
<%-- 												<input type="input" class="form-control input-sm" id="revisedGrade" name="revisedGrade" value="${appComment.revisedGrade}"> --%>
												</td>
											</tr>
											
											<tr>
												<td></td>
												<td>
													<button type="submit" id="modelSubmit" class="btn btn-primary">确定</button>
													<!-- <button type="reset" class="btn btn-default" id="modelReset">清空</button> -->
													<button type="reset" class="btn btn-warning" id="modelBack" onclick="window.location.href='${ctx}/CrawlDataManage/ViewData/viewAppCommentsFrame?appDataId=${appDataId}'">返回</button>
												</td>
											</tr>
										</table>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>