home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 May / CMCD0505.ISO / Software / Shareware / Programare / bugzero / jsp / login_gb2312.jsp < prev    next >
Text File  |  2005-01-28  |  2KB  |  71 lines

  1. <%@ page language="java"
  2.     contentType="text/html; charset=gb2312"
  3. %>
  4. <html>
  5. <head>
  6. <title>Bugzero Login</title>
  7. </head>
  8. <body onLoad="focusFirstField()">
  9. <%
  10.   String contextPath = request.getContextPath();
  11.   String query = request.getQueryString();
  12.   String projectId = request.getParameter("projectId");
  13.   String msg = request.getParameter("msg");
  14.   if (msg == null) msg = "";
  15.   String requestUrl = null;
  16.   if (query != null && query.indexOf("requestUri=") != -1) {
  17.     requestUrl = query.substring(query.indexOf("requestUri=") + 11);
  18.   }
  19.   if (requestUrl != null) {
  20.     int index = requestUrl.indexOf('&');
  21.     if (index > -1) {
  22.        requestUrl = requestUrl.substring(0, index)+'?'+requestUrl.substring(index+1);
  23.     }
  24.   }
  25. %>
  26. <center>
  27. <table cellspacing=2 cellpadding=2 border=0>
  28. <form method="post" action="<%=contextPath%>/servlet/login">
  29. <% if (projectId != null && projectId.trim().length()>0) { %>
  30. <input type="hidden" name="projectId" value="<%=projectId.trim()%>">
  31. <% } %>
  32. <% if (requestUrl != null && requestUrl.trim().length()>0) { %>
  33. <input type="hidden" name="requestUrl" value="<%=requestUrl.trim()%>">
  34. <% } %>
  35. <tr><td colspan=2 align=center valign=top height=50>
  36. <font size=+1 color="#888888"><b>Bugzero</b></font></td></tr>
  37.   <tr><td>╙├╗º├√:</td>
  38.   <td><input type="text" name="username" size=16 maxlength=32></td>
  39.   </tr>
  40.   <tr><td>├▄┬δ:</td>
  41.   <td><input type="password" name="password" size=16 maxlength=32></td>
  42.   </tr>
  43. <tr><td colspan=2 align=center height=60>
  44. <input type="submit" value="╡╟ ┬╝">
  45. <script language="Javascript">
  46. <!--
  47. timezone=-new Date().getTimezoneOffset();
  48. document.write("<input type='hidden' name='timezone' value='" + timezone + "'>");
  49.  
  50. function focusFirstField() {
  51.   document.forms[0].username.focus();
  52.   document.forms[0].username.select();
  53. }
  54. //-->
  55. </script>
  56. </td></tr>
  57. </form>
  58. </table>
  59. <font color=red><%=msg%></font>
  60. <table cellspacing=2 cellpadding=2 border=0 width=80%>
  61. <tr><td height=30> </td></tr>
  62. <tr><td align=right>
  63. <hr>
  64. <em>Powered by</em> <a href="http://www.websina.com/cn/index.html"
  65. style="color: #888888; font-weight: bold; text-decoration: none"
  66. title="Bug Tracking and Help Desk Customer Support Software">Bugzero</a>
  67. </td></tr>
  68. </table>
  69. </center>
  70. </body></html>
  71.