<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ page import="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" %>
<%
   UProfile ups = null;
   String p_eventid = request.getParameter("eventid");
   if (session != null){
      ups = (UProfile)session.getAttribute("userprofile");
   }

   DbInquiry inqev = new InitialInquiry(ups).getDbInquiry("tevent");
   inqev.setFilter("eventid ='"+p_eventid+"'");
   inqev.refresh();
%>
<html ng-app='myHR'>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <link rel='stylesheet' href='css/event.css'>
   </head>
   <body>
      <jsp:include page="EMV_HEADMENU.jsp" flush="true" />
      <script type='text/javascript'>setLang("<%=ups.get("lang")%>")</script>
      <script type='text/javascript'>console.log(getLang());</script>
      <section id="News" class="read-news">
         <div class="container">
            <%
               if (inqev.recCount()>0){
                  while (inqev.next()){
                     inqev.referLangOn();
            %>
                  <div class="img-topic center">
                     <img src="<%=inqev.getCurrentDbRecord().getDownloadUrl("mainpic")%>"></img>
                  </div>
                  <div class="center fadeInDown">
                     <h2 class="head-topic"><%=inqev.getString("topic")%></h2>
                  </div>
                  <div class='title-event'>
                     <div class='titledate-start'><span swlang code='SW000022'>Start</span> : <%=inqev.getString("datestart")%> <%=inqev.getString("timestart")%></div>
                     <div class='titledate-end'><span swlang code='SW000217'>End</span> : <%=inqev.getString("dateend")%> <%=inqev.getString("timeend")%></div>
                     <div class='titleplace'><span swlang code='SW002157'>Place</span> : <%=inqev.getString("place")%></div>
                  </div>
                  </div>
                  <div class="work-inner">
                     <div class="detail">
                        <div class="show-content">
                           <%
                              String detail = inqev.getString("detail");
                              detail = detail.replaceAll("&lt;","<");
                              detail = detail.replaceAll("&gt;",">");
                              detail = detail.replaceAll("&quot;","\"");
                              detail = detail.replaceAll("src=","src=");
                              out.println(detail);
                           %>
                        </div>
                     </div>
                  </div>
            <%
                  }
               }
            %>
            <center>
               <a href="INDEX.jsp">
						<div class="back-news">
							<i class="fa fa-chevron-left"></i>
						</div>
					</a>
            </center>
         </div>
      </section>

      <script type='text/javascript'>

      </script>
   </body>
</html>