<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<h1><bean:message key="prompt.jobTriggerListForm.title"/></h1>
<logic:messagesPresent>
	<ul>
	<bean:message key="errors.header"/>
	<html:messages id="error">
		<li><bean:write name="error"/></li>
	</html:messages>
	</ul>
	<hr>
</logic:messagesPresent>


<div id="DISPLAYTAG">
	<table width="100%">
	  <thead>
		<tr>
			<th><bean:message key="prompt.jobTriggerListForm.jobGroup"/></th>
			<th><bean:message key="prompt.jobTriggerListForm.jobName"/></th>
			<th rowspan="2"><bean:message key="prompt.jobTriggerListForm.triggerTypeName"/></th>
			
			<th colspan="4"><bean:message key="prompt.jobTriggerListForm.triggerDescription"/></th>
			
			<th rowspan="2"><bean:message key="prompt.jobTriggerListForm.misfireCount"/></th>
			<th rowspan="2"><bean:message key="prompt.jobTriggerListForm.triggerDelete"/></th>
		</tr>
		<tr>
			<th><bean:message key="prompt.jobTriggerListForm.triggerGroupName"/></th>
			<th><bean:message key="prompt.jobTriggerListForm.triggerName"/></th>
			<th><bean:message key="prompt.jobTriggerListForm.firesNext"/></th>
			<th><bean:message key="prompt.jobTriggerListForm.firesLast"/></th>
			<th><bean:message key="prompt.jobTriggerListForm.startTime"/></th>
			<th><bean:message key="prompt.jobTriggerListForm.endTime"/></th>
		</tr>
	  </thead>
	  <tbody>
		<logic:present name="jobTriggerList">
			<logic:iterate id="oneTrigger" name="jobTriggerList">
			    <tr class="even">
					<td>
						<bean:write name="oneTrigger" property="jobGroup"/>
					</td>
					<td>
						<html:link href="jobScheduleView.do" name="oneTrigger"  property="jobParamMap">
							<bean:write name="oneTrigger" property="jobName"/>
						</html:link>
					</td>
					<td rowspan="2">
						<bean:write name="oneTrigger" property="type"/>
					</td>
					<td colspan="4">
						<bean:write name="oneTrigger" property="description"/>
					</td>
					<td rowspan="2">
						<bean:write name="oneTrigger" property="misFireInstruction"/>
					</td>
					<td rowspan="2">
						<html:link href="jobTriggerDelete.do" name="oneTrigger"  property="paramMap">
							<bean:message key="prompt.jobScheduleViewForm.triggerDelete"/>
						</html:link>		
					</td rowspan="2">
			    </tr>
			    <tr class="even">
					<td>
						<bean:write name="oneTrigger" property="triggerGroup"/>
					</td>
					<td>
						<bean:write name="oneTrigger" property="triggerName"/>
					</td>
					<td>
						<bean:write name="oneTrigger" property="nextFireTime"/>
					</td>
					<td>
						<bean:write name="oneTrigger" property="previousFireTime"/>
					</td>
					<td>
						<bean:write name="oneTrigger" property="startTime"/>
					</td>
					<td>
						<bean:write name="oneTrigger" property="stopTime"/>
					</td>
			    </tr>
			</logic:iterate>
		</logic:present>
	  </tbody>
	</table>
</div>

