home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <title>Bugzero Login</title>
- <meta http-equiv=Content-Type content="text/html">
- </head>
- <body onLoad="focusFirstField()">
- <%
- String contextPath = request.getContextPath();
- String query = request.getQueryString();
- String projectId = request.getParameter("projectId");
- String msg = request.getParameter("msg");
- if (msg == null) msg = "";
- String requestUrl = null;
- if (query != null && query.indexOf("requestUri=") != -1) {
- requestUrl = query.substring(query.indexOf("requestUri=") + 11);
- }
- if (requestUrl != null) {
- int index = requestUrl.indexOf('&');
- if (index > -1) {
- requestUrl = requestUrl.substring(0, index)+'?'+requestUrl.substring(index+1);
- }
- }
- %>
- <center>
- <form method="post" action="<%=contextPath%>/servlet/login">
- <% if (projectId != null && projectId.trim().length()>0) { %>
- <input type="hidden" name="projectId" value="<%=projectId.trim()%>">
- <% } %>
- <% if (requestUrl != null && requestUrl.trim().length()>0) { %>
- <input type="hidden" name="requestUrl" value="<%=requestUrl.trim()%>">
- <% } %>
- <table cellspacing=2 cellpadding=2 border=0>
- <tr><td colspan=2 align=center valign=top height=50>
- <font color="#cccc00" size=+1><b>Bugzero</b></font></td></tr>
- <tr><td>Username:</td>
- <td><input type="text" name="username" size=16 maxlength=32></td>
- </tr>
- <tr><td>Password:</td>
- <td><input type="password" name="password" size=16 maxlength=32></td>
- </tr>
- <tr><td colspan=2 align=center height=60>
- <input type="submit" value=Login>
- <script language="Javascript">
- <!--
- timezone=-new Date().getTimezoneOffset();
- document.write("<input type='hidden' name='timezone' value='" + timezone + "'>");
-
- function focusFirstField() {
- document.forms[0].username.focus();
- document.forms[0].username.select();
- }
- //-->
- </script>
- </td></tr>
- </table>
- </form>
- <font color=red><%=msg%></font>
- </center>
- <hr>
- Copyright © 2003 <a href="http://www.websina.com/bugzero/">WEBsina Inc</a>
- </body></html>
-