Rev 1814 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
766 | jmachado | 1 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.IServiceManager" %> |
2 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.ServiceManager" %> |
||
3 | <%@ page import="pt.estgp.estgweb.web.utils.RequestUtils" %> |
||
4 | <%@ page import="pt.estgp.estgweb.domain.views.AnnouncementView" %> |
||
5 | <%@ page import="java.util.List" %> |
||
1814 | jmachado | 6 | <%@ page import="pt.estgp.estgweb.utils.Globals" %> |
1048 | jmachado | 7 | <%@ page import="jomm.dao.impl.AbstractDao" %> |
8 | <%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
||
9 | <%@ page import="pt.estgp.estgweb.domain.ConfigurationGrades" %> |
||
10 | <%@ page import="pt.estgp.estgweb.domain.views.ConfigurationGradesView" %> |
||
156 | jmachado | 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
12 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
13 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
14 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
15 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
1048 | jmachado | 16 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
163 | jmachado | 17 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
312 | jmachado | 18 | <jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSession" scope="request"/> |
156 | jmachado | 19 | <jomm:messages/> |
20 | <html:errors/> |
||
163 | jmachado | 21 | |
766 | jmachado | 22 | <% |
23 | |||
24 | IServiceManager sm = ServiceManager.getInstance(); |
||
25 | String subTarget = null; |
||
26 | String[] names = new String[]{}; |
||
27 | Object[] args = new Object[]{Globals.ANNOUNCEMENT_TYPE_POPUP, subTarget}; |
||
28 | List<AnnouncementView> popupViews = (List<AnnouncementView>) sm.execute(RequestUtils.getRequester(request, response), "LoadTypeMaxAnnouncements", args, names); |
||
29 | |||
30 | request.setAttribute("Popups", popupViews); |
||
31 | |||
32 | for(AnnouncementView popup: popupViews) |
||
33 | { |
||
34 | %> |
||
35 | <script type="text/javascript"> |
||
36 | |||
37 | window.open('<%=popup.getUrl()%>','<%=popup.getTitle()%>',"status=0,toolbar=0,menubar=0,scrollbars=0,location=0,resizable=0,width=<%=popup.getPopupwidth()%>,height=<%=popup.getPopupheight()%>"); |
||
38 | |||
39 | </script> |
||
40 | <% |
||
41 | } |
||
42 | %> |
||
43 | |||
1147 | jmachado | 44 | <div class="row"> |
1830 | jmachado | 45 | <%-- |
1147 | jmachado | 46 | <div class="col-md-2 col-sm-2 hidden-xs" style=" padding-right: 0"> |
47 | <jsp:include page="/public/announcements/announcementsPortalLeft.jsp?role=${UserSession.user.roles}&from=Home"/> |
||
1830 | jmachado | 48 | </div>--%> |
49 | <div class="col-md-9 col-sm-9 col-xs-12" style="padding-left: 3px; padding-right: 3px"> |
||
1147 | jmachado | 50 | <baco:hasRole role="student"><jsp:include page="/user/home/student.jsp"/></baco:hasRole> |
51 | <baco:hasRole role="teacher"><jsp:include page="/user/home/teacher.jsp"/></baco:hasRole> |
||
52 | <baco:hasNotRole role="student,teacher"><jsp:include page="/user/home/user.jsp"/></baco:hasNotRole> |
||
53 | </div> |
||
54 | <div class="col-md-3 col-sm-3 col-xs-12" style="padding-left: 0"> |
||
1317 | jmachado | 55 | <jsp:include page="/user/home/announcementsPortalRightHome.jsp?role=${UserSession.user.roles}&from=Home"/> |
1147 | jmachado | 56 | </div> |
57 | </div> |
||
766 | jmachado | 58 |