<%@ 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.*" %> <%@ page import="java.util.*,org.apache.commons.lang.StringUtils" %> <% request.setCharacterEncoding("UTF-8"); %> <%@ include file="../CHECKPROFILE.jsp" %> <jsp:useBean id="EMV_NEWS" class="com.csc.library.system.Task" scope="page" /> <jsp:setProperty name="EMV_NEWS" property="appname" value="EMPVIEW" /> <% EMV_NEWS.setChannel(request, response); HelpEntry screen_news = (HelpEntry)EMV_NEWS.process("HelpEntry", "EMP_NEWS"); if (screen_news==null){ return; } String filter =" (startdate<=enddate) AND (newsstatus='1')"; screen_news.getInquiry().setFilter(filter); screen_news.getInquiry().setOrderBy("createdate"); screen_news.getInquiry().refresh(); %> <!DOCTYPE HTML> <html ng-app="myHR"> <head> <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_news.getUProfile().get("lang")%>"); var swap = new swaplang(); var titlename = swap.swap2String("SW012141"); setPageTitle(titlename); function setSrcimagefile(srcid,urlimg){ document.getElementById(srcid).src=urlimg; } </script> <section id="News" class="news"> <div class="container"> <div class="center fadeInDown"> <h2 swlang code="SW012141">News</h2> </div> <div class="row"> <% int k=0; String newsid=""; if (screen_news.getInquiry().recCount()>0){ while (screen_news.nextRec()){ newsid=screen_news.getString("newsid"); screen_news.referLangOn(); k++; %> <div class="col-md-3"> <div class="news-wrap"> <img class="img-responsive" id="newspic<%=newsid%>" src="dadsds" alt=""> <div class="overlay"> <div class="news-work-inner"> <h3><%=screen_news.getString("enewstopic")%></h3> <p class="detail"><%=screen_news.getString("enewsabstract")%> </p> <a class="preview" href="javascript:linkDetailNew(<%=screen_news.getString("newsid")%>)" swlang code="SW012143">Read more</a> </div> </div> </div> </div> <script type="text/javascript"> setTimeout(function(){ setSrcimagefile('newspic<%=screen_news.getString("newsid")%>','<%=screen_news.getInquiry().getCurrentDbRecord().getViewUrl("newspic")%>'); },<%=k*250%>) </script> <% } } %> </div> </div> <form id="newsidval" method="post" action="EMV_ANNOUNCEMENT_DETAIL.jsp"> <input type="hidden" name="newsid" id="newsid" value="" /> <button type="submit" name="submitfrm" id="submitfrm" value="submit" style="visibility: hidden;"></button> </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>