<HTML>
<HEAD>
<%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic" %>
<jsp:useBean id="scheduleBean" scope="request"
class="schedule.ScheduleBean"
/>
<jsp:useBean id="scheduleItem" scope="page"
class="schedule.ScheduleItem"
/>
<TITLE>
Schedule View
</TITLE>
</HEAD>
<BODY>
<H1>
Schedule
</H1>
<table border="2">
<tr bgcolor="green">
<th>Start
Date</th>
<th>Duration</th>
<th>Text</th>
<th>Event
Type</th>
</tr>
<logic:iterate id="schedItem"
type="schedule.ScheduleItem"
collection="<%= scheduleBean.getList()
%>">
<tr>
<td><%=
schedItem.getStart() %></td>
<td><%=
schedItem.getDuration() %></td>
<td><%=
schedItem.getText() %></td>
<td><%=
schedItem.getEventType() %></td>
</tr>
</logic:iterate>
</table>
<p>
<a href="schedEntry.do"> Add New Schedule Item</a>
</BODY>
</HTML>
<HEAD>
<TITLE>
ScheduleEntryView
</TITLE>
</HEAD>
<BODY>
<H1>
Add Schedule Item
</H1>
<hr>
<html:errors/>
<html:form action="add.do">
<table border="0" width="30%" align="left">
<tr>
<th align="right">
<struts:message
key="prompt.duration"/>
</th>
<td align="left">
<html:text
property="duration"
size="16"/>
</td>
</tr>
<tr>
<th align="right">
<struts:message
key="prompt.eventType"/>
</th>
<td align="left">
<html:select
property="eventType">
<html:options
collection="eventTypes"
property="value"
labelProperty="label"/>
</html:select>
</td>
</tr>
<tr>
<th align="right">
<struts:message
key="prompt.start"/>
</th>
<td align="left">
<html:text
property="start"
size="16"/>
</td>
</tr>
<tr>
<th align="right">
<struts:message
key="prompt.text"/>
</th>
<td align="left">
<html:text
property="text"
size="16"/>
</td>
</tr>
<tr>
<td align="right">
<struts:submit>
<bean:message
key="button.submit"/>
</struts:submit>
</td>
<td align="right">
<html:reset>
<bean:message
key="button.reset"/>
</html:reset>
</td>
</tr>
</table>
</html:form>
</BODY>
</HTML>