<%@page contentType="text/html; charset=UTF-8"%> <%@page import="com.csc.library.utilities.CheckNull, com.csc.library.utilities.CscCalendar, com.csc.library.databean.MyDataList"%> <%@ include file="../CHECKPROFILE.jsp" %> <jsp:useBean id="screen" class="com.csc.library.system.Task" scope="page" /> <% CheckNull chk = new CheckNull(); screen.setChannel(request,response); screen.checkProfile(); String apsid = ""; String apsassessor = ""; String apsassessy = ""; String apsstatus = ""; if(screen.getUProfile() != null){ MyDataList datalist = new MyDataList(screen.getUProfile()); datalist.setDbXmlName("EMPVIEW/APP_EMV707_2"); datalist.setFilter(" tapstran.apsassessy = tapstran.apsassessor "+ " and tapstran.apsassessy = '"+screen.getUProfile().get("employeeid")+"' " + " and tapstran.astid = 'AP10' "); datalist.init(); if(datalist.next()){ apsid = datalist.getString("apsid"); apsassessor = datalist.getString("tapstran","apsassessor"); apsassessy = datalist.getString("tapstran","apsassessy"); apsstatus = datalist.getString("tapstran","apsstatus"); } } String include_page = "APP_EMV010_1.jsp?__cmd=&apsid="+apsid+"&apsassessor="+apsassessor+"&apsassessy="+apsassessy+"&bpage=&ass_level=0&isread="+((apsstatus.equals("A"))?"1":"0"); %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" ng-app="myHR"> <head> <title>Employee View</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <jsp:include page="EMV_HEADMENU.jsp" flush="true" /> <script type="text/javascript"> setLang("<%=screen.getUProfile().get("lang")%>"); var swap = new swaplang(); var titlename = swap.swap2String("SW012105"); setPageTitle(titlename); /*function resize_iframe() { var iframe = document.getElementById("history-content"); var height=window.innerWidth;//Firefox if (document.body.clientHeight) { height=document.body.clientHeight;//IE } //resize the iframe according to the size of the window frameHeight = parseInt(height-iframe.offsetTop-8)-64; //frameHeight = parseInt(height, 10)-240; if(frameHeight<500) { frameHeight = 500; } iframe.style.height= frameHeight+"px"; iframe.style.zindex= "-10"; iframe.onerror =function() { alert('Something'); }; }*/ function NoDataFound(errcode){ window.location.href="CONTROLERR.jsp?errcode="+errcode; } </script> <section> <form name="cscform" method="post" action="APP_EMV010.jsp"> <div class="content"> <% if(screen.getUProfile() != null && !apsid.equals("")){ %> <div id="history-container"> <iframe src="<%=include_page %>" id="history-content" name="history-content" width="100%" height="1000px" align= "top" scrolling="auto" allowtransparency="true"> </iframe> </div> <% }else{ %> <script> NoDataFound('nodata'); </script> <% } %> </div> </form> <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>