<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@page import="com.csc.library.entry.EmvHelpEntry,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="EMV" class="com.csc.library.system.Task" scope="page"/>
<jsp:setProperty name="EMV" property="appname" value="empview" />
<%
EMV.setChannel(request, response);
EmvHelpEntry screen = (EmvHelpEntry) EMV.process("EmvHelpEntry","WEL_EMV011");
String lang = screen.getUProfile().get("lang");
screen.getInquiry().clearSubFilter();
screen.process();
screen.referLangOn();
%>
<html ng-app="myHR">
	<head>
		<title>Employee View</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</head>
	<body>
		<div class="bg-com"></div>
		<jsp:include page="EMV_HEADMENU.jsp" flush="true" />

		<script language="javascript">

		setLang("<%=screen.getUProfile().get("lang")%>");
		var swap = new swaplang();
		var titlename = swap.swap2String("SW010714");
		setPageTitle(titlename);
		setLang('<%=lang%>');

		$(document).ready(function(){
			$(".tdalert").on("click",function(){
				alert($(this).closest("tr").attr("alert"));
			});
		});

		</script>

		<style>
			.tdalert {
				cursor: pointer;
			}
		</style>

		<section>
			<div class="container csc-content">
				<div class="csc-block-white">
					<form name="cscform" class="form-horizontal" method="post" action="WEL_EMV011.jsp">
						<input name="__cmd" type="hidden" value=""/>
						<input type="hidden" name="__calendar"/>
						<script language="javascript">getInputFormatDate();</script>
						<input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>"/>
						<input type="hidden" name="__help" value=""/>
						<input type="hidden" name="__goPage" value=""/>
						<input type="hidden" name="__orderBy" value=""/>
						<input type="hidden" name="__helpReturn" value=""/>
						<input type="hidden" name="__helpName" value=""/>
						<input type="hidden" name="__pageCall" value=""/>
						<input type="hidden" name="__referPage" value=""/>
						<input type="hidden" name="__lockPage" value=""/>
						<input type="hidden" name="__calendar" value=""/>
						<input type="hidden" name="__companyid"  value="<%=screen.getUProfile().get("companyid")%>"/>
						<input type="hidden" name="__fixCon" value=""/>
						<input name="__screen" type="hidden" value="WEL_EMV011"/>

						<div class="container csc-content">
							<div class="center">
								<h2 swlang code='SW010714'>Welfare Details</h2>
							</div>

							<div class="table-responsive">
								<table class="table table-head table-hover table-bordered table-title-left">
									<thead>
										<tr>
											<th><%=screen.getLabel("WELID")%></th>
											<th swlang code='SW000012'>Description</th>
										</tr>
									</thead>
									<tbody>
										<%
										String groupid="";
										while (screen.nextRec()){
											if(!groupid.equalsIgnoreCase(screen.getString("welgid"))){
												%>
												<tr>
													<td class="table-title td-bold" colspan=4><%=screen.getString("mwelfaregrp","tdesc")%></td>
												</tr>
												<%
											}
											%>
											<tr alert="<%=screen.getString("TDETAIL")%>">
												<td class="tdalert"><%=screen.getString("WELID")%></td>
												<td class="tdalert"><%=screen.getString("TDESC")%></td>
											</tr>
											<%
											groupid=screen.getString("welgid");
										}
										%>
									</tbody>
								</table>
							</div>
						</div>
					</form>
				</div>
			</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>