home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 July
/
CMCD0703.ISO
/
Software
/
Freeware
/
Programare
/
bugzero
/
jsp
/
_trail.jspf
< prev
next >
Wrap
Text File
|
2003-06-09
|
3KB
|
55 lines
<table cellspacing=1 cellpadding=2 width=100% border=1>
<% Trail[] trailArray = issue.getTrailArray();
String versionLabel;
String descriptionLabel;
String ccMail;
String[] filenames;
for (int index=trailArray.length-1; index>=0; index--) {
versionLabel = label.get("issue_version", projectId) + (index+1);
if (trailArray[index].get("state").equalsIgnoreCase("new")) {
descriptionLabel = label.get("issue_description", projectId);
} else {
descriptionLabel = label.get("issue_response", projectId);
}
Access access = conf.getAccess();
DateTime dateTime = (DateTime)session.getAttribute("datetime");
%>
<tr><td>
<table cellspacing=1 cellpadding=2 border=0 width=100%>
<tr><td bgcolor="#e0e0e0" valign=top width=80>
<%=versionLabel%></td>
<td bgcolor="#efefef"><%=label.get("author", projectId)%>: <%=access.getDisplay(trailArray[index].get("author"))%>,
<%=label.get("date")%>: <%=dateTime.localTime(trailArray[index].getDate())%><br>
<%=label.get("issue_type", projectId)%>: <%=trailArray[index].get("issue_type")%>,
<%=label.get("severity", projectId)%>: <%=trailArray[index].get("severity")%>,
<%=label.get("priority", projectId)%>: <%=trailArray[index].get("priority")%>,
<%=label.get("state", projectId)%>: <%=trailArray[index].get("state")%>,
<% String resp=trailArray[index].get("responsible");
if (resp == null) resp = "nobody"; %>
<%=label.get("responsible", projectId)%>: <%=access.getDisplay(resp)%>
<% ccMail = trailArray[index].get("cc_mail");
if (ccMail != null) { %>
<br><%=label.get("cc_mail", projectId)%> <%=HtmlParser.escapeTag(ccMail)%>
<%}%>
</td></tr>
<tr><td bgcolor="#e0e0e0" valign=top><%=descriptionLabel%></td>
<td bgcolor="#efefef"><%=HtmlParser.toHtml(trailArray[index].get("issue_description"))%></td></tr>
<% filenames = trailArray[index].getFilenames();
if (filenames != null && filenames.length > 0) { %>
<tr><td bgcolor="#e0e0e0"><%=label.get("attachment", projectId)%></td>
<td bgcolor="#efefef">
<% for (int i=0; i<filenames.length; i++) {
String filename = filenames[i];
String filenameEncoded = java.net.URLEncoder.encode(filename);
%>
<a target="_file" href="<%=contextPath%>/servlet/download/<%=filenameEncoded%>?trail_id=<%=trailArray[index].getId()%>&filename=<%=filenameEncoded%>"><%=filename%></a>
<%}%>
</td></tr>
<%}%>
</table>
</td></tr>
<% } %>
</table>