You are on page 1of 2

<%

}
if (db_oocTrfItemsEntity.getItemType().equalsIgnoreCase(ItemType.BUS_ITEM.ge
tType())) {
%>
<tr>
<td>
<table class='searchbox' width='700px'>
<tr>
<td colspan='3'>
<table>
<tr>
<td width='20px'><img src='images/ooc_bus.gif' width
='20px' height='20px'></td>
<td>Bus Details</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Leaving From : <%= StringUtils.getString(new
CityUtils(db_oocTrfItemsEntity.getOriginCity()).getCityN
ame(), "NA") %> "
</td>
<td>Going To: <%= StringUtils.getString(new
CityUtils(db_oocTrfItemsEntity.getDestinationCity()).get
CityName(), "NA") %>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td nowrap>
Departing: <%= StringUtils.getString(Dates.formatDateInMedi
um(new Date(db_oocTrfItemsEntity.getStartDatetime().getTime())), "NA") %>
</td>
<td nowrap>
Returning: <%= StringUtils.getString(Dates.formatDateInMedi
um(new Date(db_oocTrfItemsEntity.getEndDatetime().getTime())), "NA") %>
</td>
<%if (db_oocTrfItemsEntity.getIsoneway() == TrueFalseType.TRUE.g
etId()) {%>
<td nowrap>One Way Trip</td>
<%} else {%>
<td nowrap>Return Trip</td>
<%}%>
</tr>
</table>
</td>
</tr>

<tr>
<td>
<hr>
</td>
</tr>
<%
}
if (db_oocTrfItemsEntity.getItemType().equalsIgnoreCase(ItemType.TRAIN_ITEM.
getType())) {
%>
<tr>
<td>
<table class='searchbox' width='700px'>
<tr>
<td colspan='3'>
<table>
<tr>
<td width='20px'><img src='images/ooc_train.gif' wid
th='20px' height='20px'></td>
<td>Train Details</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Leaving From :
<%= StringUtils.getString(new CityUtils(db_oocTrfItemsEntity
.getOriginCity()).getCityName(), "NA") %>
</td>
<td>Going To:
<%= StringUtils.getString(new CityUtils(db_oocTrfItemsEntity
.getDestinationCity()).getCityName(), "NA") %>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td nowrap>Departing:
<%= StringUtils.getString(Dates.formatDateInMedium(new Date(
db_oocTrfItemsEntity.getStartDatetime().getTime())), "NA") %>
</td>
<td nowrap>Returning:
<%= StringUtils.getString(Dates.formatDateInMedium(new Date(
db_oocTrfItemsEntity.getEndDatetime().getTime())), "NA") %>
</td>
<%
if (db_oocTrfItemsEntity.getIsoneway() == TrueFalseType.TRUE
.getId()) {
%>
<td nowrap>One Way Trip</td>
<%} else {%>
<td nowrap>Return Trip</td>
<%}%>
</tr>
</table>
</td>
</tr>

You might also like