<%@ include file="/includes.jsp" %>
<style>
	.standardBox {
		width: 200px;
		border: 1px solid #B4B4B4;
		vertical-align: middle;
		
		font-weight: bold;
		padding: 10px 3px 10px 3px;
	}
	
	.normal {
		background-color: #CCFFCC;
	}
	
	.warn {
		background-color: #FFDD6F;
	}
	
	.breach {
		background-color: #FFB3B3;
	}
	
	.error {
		background-color: red;
		color: black;
	}
</style>
<form:useForm name="LGIPathway" id="lgiData"/>
<c:set var="refVal"><form:write name="lgiData" property="LGITRefDate"/></c:set>
<c:set var="test1Val"><form:write name="lgiData" property="LGITFirstTest"/></c:set>
<c:set var="test2Val"><form:write name="lgiData" property="LGITOpAppt"/></c:set>
<c:set var="test3Val"><form:write name="lgiData" property="LGITSecTest"/></c:set>
<c:set var="test4Val"><form:write name="lgiData" property="LGITCTStaging"/></c:set>
<c:set var="test5Val"><form:write name="lgiData" property="LGITMDTDate"/></c:set>
<br/>
<div class="standardBox normal">
	Referral<br/><c:out value="${refVal}"/>
</div>
<br/>
<br/>
<emdt:breachStatus var="s" testDate="${test1Val}" startDate="${refVal}" breach="8"  warn="2"/>
<div class="standardBox <c:out value="${s.code }"/>">
	Flex Sig / Ba Enema<br/><c:out value="${test1Val}"/> (<c:out value="${s.daysSinceStart}"/> days)
</div>
<br/>
<br/>
<emdt:breachStatus var="s" testDate="${test2Val}" startDate="${refVal}" breach="9"  warn="2"/>
<div class="standardBox <c:out value="${s.code }"/>">
	OP's Appointment<br/><c:out value="${test2Val}"/> (<c:out value="${s.daysSinceStart}"/> days)
</div>
<br/>
<br/>
<emdt:breachStatus var="s" testDate="${test3Val}" startDate="${refVal}" breach="9"  warn="2"/>
<div class="standardBox <c:out value="${s.code }"/>">
	CT/Colonoscopy/Ba Enema<br/><c:out value="${test3Val}"/> (<c:out value="${s.daysSinceStart}"/> days)
</div>
<br/>
<br/>
<emdt:breachStatus var="s" testDate="${test4Val}" startDate="${refVal}" breach="9"  warn="2"/>
<div class="standardBox <c:out value="${s.code }"/>">
	CT Staging<br/><c:out value="${test4Val}"/> (<c:out value="${s.daysSinceStart}"/> days)
</div>
<br/>
<br/>
<emdt:breachStatus var="s" testDate="${test5Val}" startDate="${refVal}" breach="9"  warn="2"/>
<div class="standardBox <c:out value="${s.code }"/>">
	MDT Meeting<br/><c:out value="${test5Val}"/> (<c:out value="${s.daysSinceStart}"/> days)
</div>