<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ page import="com.csc.library.database.*,com.csc.library.session.*,com.csc.library.utilities.*"  %>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<%
	UProfile up = null;
	if (session != null){
		up = (UProfile)session.getAttribute("userprofile");
	}
%>
<html ng-app='APS_INTERVIEW'>
	<head>
		<title>Employee View</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<style>
			.csc-content .center{
				padding-top: 5px !important;
				padding-bottom: 5px !important;
			}
		</style>
	</head>
	<body>
		<div class='bg-com'></div>
		<jsp:include page="EMV_HEADMENU.jsp" flush="true" />

		<%-- <link rel="stylesheet" href="<%=request.getContextPath()%>/EMPVIEW/css/APP_UP/style_apsup.css" /> --%>

		<script src="../public/lib/angular-resource/angular-resource.min.js"></script>
		<script type='text/javascript' src='JS/APS_INTERVIEW/Module.Controller.js'></script>
		<script type='text/javascript' src='JS/APS_INTERVIEW/services.js'></script>
		<script type='text/javascript' src='JS/APS_INTERVIEW/ListCandidate.Controller.js'></script>
		<script type='text/javascript'>
			setLang('<%=up.get("lang")%>')
		</script>

		<section>
			<div class="container csc-content">
				<form name="cscform" class="form-horizontal" method="post">
					<input type='hidden' name='candidateid'/>
					<input type='hidden' name='committeeid' value='<%=up.get("employeeid")%>' />
					<input type='hidden' name='lang' value="<%=up.get("lang")%>"/>

					<div class='loading-page'>
						<div class='spiner'></div>
					</div>

					<div class="table-responsive">
						<table class="table table-head table-hover table-bordered table-title-left" >
							<thead>
								<tr>
									<th class="table-title" colspan="8">รายชื่อผู้สมัครงาน</th>
								</tr>
								<tr>
									<th swlang code='SW000193'>seq</th>
									<th swlang code='SW001984'>Fullname</th>
									<th swlang code='SW000057'>Position</th>
									<th swlang code='SW000019'>Status</th>
									<th swlang code='SW002381'>Date of valuation</th>
									<th swlang code='SW013315'>Assessor's Sequence</th>
									<th swlang code='SW013316'>Previous Assessor Status</th>
									<th swlang code='SW000302'>Remark</th>
								</tr>
							</thead>
							<tbody ng-controller='listcandidate'>
								<tr ng-repeat='list in listcandidate'>
									<td class='center'>{{ $index+1 }}</td>
									<td>
										<a ng-click='goPage($index)' ng-hide='list.ispass == "0"'>{{ list.fullname }}</a>
										<span ng-show='list.ispass == "0"'>{{ list.fullname }}</span>
									</td>
									<td class='center'>{{ list.job }}</td>
									<td class='center'><span ng-repeat="status in status_desc | filter:status = list.status">{{ status.desc[lang] }}</span></td>
									<td class='center'>{{ list.apsdate }}</td>
									<td class='center'>{{ list.state }}</td>
									<td class='center'><span ng-repeat="p_status in p_status_desc | filter:status = list.previous_status">{{ p_status.desc[lang] }}</span></td>
									<td><span ng-repeat="ispass in ispass_desc | filter:status = list.ispass">{{ ispass.desc[lang] }}</span></td>
								</tr>
							</tbody>
						</table>
					</div>
				</form>
			</div>
			<a href="#top" id="top-button">
				<i class="fa fa-angle-up"></i>
				<div class="top-word">Back to top</div>
			</a>
		</section>
		<jsp:include page="FOOTER.jsp" flush="true" />
	</body>
</html>