home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 July / CMCD0703.ISO / Software / Freeware / Programare / bugzero / jsp / edit.jsp < prev    next >
Text File  |  2003-06-05  |  1KB  |  43 lines

  1. <%@ page 
  2.     import="com.websina.bean.*,com.websina.util.*,com.websina.util.log.Log"
  3. %>
  4. <html>
  5. <head>
  6. <title>Edit and View</title>
  7. <script LANGUAGE="JavaScript" src="script/utils.js"></script>
  8. <script LANGUAGE="JavaScript" src="script/attachment.js"></script>
  9. </head>
  10. <body topmargin=0>
  11. <%@ include file="_cache.jspf" %>
  12. <%@ include file="_header.jspf" %>
  13. <%      
  14.   String issueStr = request.getParameter("issueId");
  15.   int issueId = 0;
  16.   try {
  17.     issueId = StringUtil.toInt(issueStr);
  18.   } catch (NumberFormatException e) {
  19.     String msg = MessageCode.get("number.format_error_issue");
  20.     msg = StringUtil.replace(msg, "$THAT", issueStr);
  21.     out.print("<center><font color=red><b>");
  22.     out.print(msg);
  23.     out.print("</b></font></center>");
  24.     return;
  25.   }
  26.   if (!person.viewAllowed(issueId)) {
  27.     String msg = MessageCode.get("servlet.issue.permission_error");
  28.     out.print("<center><font color=red><b>");
  29.     out.print(msg);
  30.     out.print("</b></font></center>");
  31.     return;
  32.   }
  33. %>
  34.  
  35. <%@ include file="_issueform.jspf" %>
  36.  
  37. <font size=+1><b><%=label.get("audit_trail", projectId)%></b></font> (<%=label.get("change_history", projectId)%>)
  38. <hr>
  39.  
  40. <%@ include file="_trail.jspf" %>
  41.  
  42. </body></html>
  43.