<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<jsp:useBean id="REV004" class="com.csc.library.system.Task" scope="page"/>
<jsp:setProperty name="REV004" property="appname" value="empview" />
<%
		REV004.setChannel(request ,response);
		HelpEntry screen=(HelpEntry) REV004.process("HelpEntry","REV004HELP");
		if(screen==null)return;		
        screen.getInquiry().setFilter("requestid in(select requestid from mcommittee where employeeid='"+screen.getUProfile().get("employeeid")+"')");
		screen.getInquiry().getChild("mcandidatere").setFilter("candidatestatus='2'");  
		screen.getInquiry().setRequireFoundTable("MCANDIDATERE,MAPPLICANT");  
		screen.process();
%>
<html xmlns="http://www.w3.org/1999/xhtml" ng-app="myHR">
	<head>

		<title>Interview Schedule</title>

		<meta http-equiv="Content-Type" content="text/html; charset=TIS620" />
		
		<script type='text/javascript' src='/hr/dwr/interface/SearchDWR.js'></script>
		<script type='text/javascript' src='/hr/dwr/engine.js'></script>
		<script type='text/javascript' src='/hr/dwr/util.js'></script>
		<script type="text/javascript" src="/hr/dwr/interface/SystemCode.js"></script>
		<script type="text/javascript" src="/hr/dwr/interface/CscCalendar.js"></script>
	</head>
	<body>
		<div class="bg-com"></div>
		<jsp:include page="EMV_HEADMENU.jsp" flush="true" />
		
		<script>
			setLang('<%=screen.getUProfile().get("lang")%>');
			var swap = new swaplang();
            var titlename = swap.swap2String("SW002169");
			setPageTitle(titlename);
		
			function goView(id){
				var  pam="REV001.jsp?__help=__applicantid$"+id+";&__cmd=search;&isView=true";
				window.open(pam,"AppInfo","left=50,top=50,width=1300,height=620,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
			}

		</script>

		<section>
			<div class="container csc-content">
				<%
					String helpReturn="";
					if(request.getParameter("__helpReturn")!=null){
						helpReturn=request.getParameter("__helpReturn");
					}
				%>
				<form name="cscform" class="form-horizontal" method="get" action="REV004.jsp">
					<%=screen.InitialVariable()%>
					<input type="hidden" name="__cmd" value="">
					<input type="hidden" name="__screen" value="REV004">
					<input type="hidden" name="__help" value="">
					<input type="hidden" name="__goPage" value="">
					<input type="hidden" name="__orderBy" value="<%=request.getParameter("__orderBy")%>">
					<input type="hidden" name="__helpReturn" value="<%=helpReturn%>">
					<input type="hidden" name="__helpName" value="<%=request.getParameter("__helpName")%>">
					<input type="hidden" name="__pageCall" value="<%=request.getParameter("__screen")%>">
					<input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>">
					<input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>">
					<input type="hidden" name="__requestid" value="">
					<script>getInputFormatDate();</script> 
				
					<div class="table-responsive">	
						<table class="table table-head table-hover table-bordered table-title-left table-content-center">
							<thead>
								<tr>
									<th class="table-title " colspan=6 swlang code="SW002169">Interview Schedule</th>
								</tr>
								<tr>
									<th swlang code="SW012126">Applicant Name</th> 
									<th swlang code="SW000057">Position</th> 
									<th swlang code="SW000002">Date</th>  
									<th swlang code="SW000283">Time</th>  
									<th swlang code="SW002157">Place</th>  
									<th swlang code="SW002318">Room no</th> 
								</tr>
							</thead>
							<tbody>
								<%
									while(screen.nextRec()){ 					
										screen.referLangOn();
								%>
								<tr>
									<td><a href="javascript:goView('<%=screen.getString("applicantid")%>')"><%=screen.getString("mapplicant","fullname")%></a></td>
									<td><%=screen.getString("MJOBCODE","tdesc")%></td>
									<td><%=screen.getString("interviewdate")%></td>
									<td><%=screen.getString("interviewtime")%></td>
									<td><%=screen.getString("interviewplace")%></td>
									<td><%=screen.getString("interviewroom")%></td>
								</tr>
								<%
									screen.referLangOff();
								}%> 
							</tbody>
						</table>
					</div>
					<%=screen.endJSP()%>
				</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>