/website/student/courses/eventListIncludeInclude.jsp (CVS)
/var/lib/tomcat5.5/webapps/karamba/public_html/website/student/courses/eventListIncludeInclude.jsp
errors!
details
Relations     execute    source    business logic    login page        Other tools
Hide: Comments HTML Java JSTL Core JSTL Format Makumba
1:	<% /* $Header: /usr/local/cvsroot/karamba/public_html/website/student/courses/eventListIncludeInclude.jsp,v 1.10 2011-12-19 17:28:32 risto Exp $ */ %>
2:	
3:	<%-- this code is included multiple times on the eventListInclude.jsp page --%>
4:	
5:	<mak:value expr="l.name" printVar="lbgname"/>
6:	<mak:value expr="bjac.actualPlace" printVar="place"/>
7:	<mak:value expr="bjac.appDeadline" printVar="thisDL" format="d MMMM yyyy 'at' HH:mm zzz" />
8:	<mak:value expr="bjac.type" var="eventType"/>
9:	<mak:value expr="bjac.appDeadline" var="thisDLtemp"/>
10:	
11:	<% Date thisDL2 = (java.util.Date)thisDLtemp; %>
12:	<% if(thisDL2==null) thisDL2=seasonAppDL2;%>
13:	
14:	<dl>
15:	<dt> <A href="${requestScope.wwwPathAbsolute}/student/courses/event.jsp?activity=<mak:value expr="bjac"/>"><mak:value expr="bjac.name" /></a><br/>
16:	
17:	<c:choose>
18:	  <c:when test="${eventType == '10'}">
19:	    <dd> <b>Type:</b> BEST Course on Technology
20:	  </c:when>
21:	  <c:when test="${eventType == '30'}">
22:	    <dd> <b>Type:</b> BEST Course on Career Related Skills
23:	  </c:when>
24:	  <c:when test="${eventType == '20'}">
25:	    <dd> <b>Type:</b> BEST Course on Language
26:	  </c:when>
27:	  <c:when test="${eventType == '50'}">
28:	    <dd> <b>Type:</b> Seasonal BEST Engineering Competition
29:	  </c:when>
30:	  <c:when test="${eventType == '-320'}">
31:	    <dd> <b>Type:</b> BEST Symposium on Education
32:	  </c:when>
33:	  <c:when test="${eventType == '100'}">
34:	    <dd> <b>Type:</b> BEST Symposium on Education
35:	  </c:when>
36:	  <c:otherwise>
37:	    <dd> <b>Type:</b> <mak:value expr="bjac.type" />
38:	  </c:otherwise>
39:	</c:choose>
40:	
41:	<%-- showing the fields of activity in brackets, if any have been specified --%>
42:	<mak:list from="bjac.fieldsOfActivity foa2" separator=", "><c:if test="${mak:count()==1}">(</c:if><mak:value expr="foa2.name"/></mak:list><c:if test="${mak:lastCount()!=0}">)</c:if>
43:	<br/>
44:	
45:	<%-- Academic highlights, if appropriate --%>
46:	<mak:if test="bjac.type = 10 OR bjac.type = 20 OR  bjac.type = 30 OR bjac.type= 50 ">
47:	  <b>Participation requirements: </b>
48:	  <mak:value expr="bjac.priorKnowledgeRequired"/>
49:	  <mak:if test="bjac.priorKnowledgeRequired =10 or bjac.priorKnowledgeRequired = NIL">
50:	    (<mak:value expr="bjac.requirements" html="auto" longLineLength="0" lineSeparator=""/>)
51:	  </mak:if>
52:	  <br/>
53:	  <b>Academic complexity:</b> <mak:value expr="bjac.level"/> [<%= helplinkText("Events", "academicComplexity", "Read more") %>] <br/>
54:	</mak:if>
55:	
56:	<b><%= (place!=null && place.length()<5 )?lbgname:place%></b>, 
57:	  from <mak:value expr="bjac.start" format="d MMMM yyyy"/> until <mak:value expr="bjac.end" format="d MMMM yyyy" />, <br/>
58:	  <% if(now.compareTo(thisDL2)>0) { %>
59:	    <i>application closed on <%=(thisDL!=null && thisDL.length()>5 )?thisDL:seasonAppDL%></i>
60:	    <b>(Application deadline has passed.)</b>
61:	  <% } else { %>
62:	    <%-- checking if the user has already applied to this event --%>
63:	    <mak:value expr="bjac" printVar="actPtr"/>
64:	    <c:choose>
65:	      <c:when test="${fn:contains(eventApplications, actPtr)}">
66:	        <i>application open until <%=(thisDL!=null && thisDL.length()>5 )?thisDL:seasonAppDL%> </i>
67:	        <b>(You have applied to this event)</b>
68:	      </c:when>
69:	      <c:otherwise>
70:	        <%-- here we use a form instead of plain link, to create a button that works on all browsers --%>
71:	        <form method="get" action="${requestScope.wwwPathAbsolute}/student/private/applying/approveResponsibilities.jsp">
72:	          <%-- Following text inside form to fit it on the same line as application link --%>
73:	          <i>application open until <%=(thisDL!=null && thisDL.length()>5 )?thisDL:seasonAppDL%> </i>
74:	          <input name="season" value="<mak:value expr="bjac.season"/>" type="hidden"/>
75:	          <input name="activity" value="<mak:value expr="bjac"/>" type="hidden"/>
76:	          <mak:value expr="bjac.type" var="actType"/>
77:	          <input name="type" value="${actType}" type="hidden"/>
78:	          <input type="submit" value="Apply now" />
79:	        </form>
80:	      </c:otherwise>
81:	    </c:choose>
82:	  <% } %>
83:	</dl>
84:	

Function 'count' needs to be enclosed in a LIST or OBJECT tag

Makumba developer support; version:0.9.5.1 dataSource:production host:brussels.best.eu.org path:/var/lib/tomcat5.5/temp