<%@ include file="/includes.jsp" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div style="font-weight: bold; font-size: 10pt;">Topics Posted:</div>
<br/>
<div>
	<c:forEach var="discussion" items="${emdt.discussionSummary}" varStatus="meetingindex">
		<c:set var="meetingindexInteger" value="${meetingindex.count}"/>
		<%
		com.ardeo.entities.PatientDiscussion	discussion = (com.ardeo.entities.PatientDiscussion) pageContext.getAttribute("discussion");
		Integer meetingindex = (Integer) pageContext.getAttribute("meetingindexInteger");%>
	<div> 
		<c:out value="${discussion.postedBy }"/>: &nbsp;
		<a href='../meetings/patientDiscussionSelectMeeting.do?threadid=<c:out value="${discussion.threadId}"/>&link=<c:out value="${discussion.patientId}"/>&CurrentPatientId=<c:out value="${discussion.patientId}"/>'>
		<c:out value="${discussion.discussionTopic}"/></a>&nbsp;
		<c:if test="${discussion.deadLine != '1900-01-01 00:00:00.0' }">
		Please respond by <fmt:formatDate value="${discussion.deadLine}" pattern="dd MMM yyyy"/>
		</c:if>
	</div>
</c:forEach>
<c:if test="${empty discussions}">
	<div> None </div>
</c:if>

</div>
