index.jsp
资源名称:examasp.rar [点击查看]
上传用户:hjt198082
上传日期:2015-04-16
资源大小:95k
文件大小:2k
源码类别:
MySQL数据库
开发平台:
Java
- <%@page contentType="text/html;charset=GBK"%>
- <html>
- <head>
- <title>管理员登录</title>
- <META http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link rel="stylesheet" href="../public/style.css">
- <Script Language="JavaScript">
- function check() {
- if(document.myform.username.value == "") {
- alert("请输入用户名!");
- return;
- }
- if(document.myform.password.value == "") {
- alert("请输入密码!");
- return;
- }
- document.myform.submit();
- }
- </Script>
- </head>
- <body class="ss">
- <br><br><br><br><br><br><br><br><br><br>
- <div align="center"><center>
- <table border="0" cellspacing="1" width="90%">
- <tr>
- <td>
- <p align="center"><font size="7" face="楷体_GB2312" color="#0000FF">系统管理员登陆</font></p>
- <form name="myform" method="post" action="chkadmin.jsp">
- <table width="45%" border="1" cellspacing="0" cellpadding="1" align="center" bordercolordark="#ecf5ff" bordercolorlight="#6699cc">
- <tr>
- <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
- <tr>
- <td width="33%" align="right" height="30">用户名:</td>
- <td width="67%"><input name="username" maxlength="20" class="smallInput" size="20"> </td>
- </tr>
- <tr>
- <td width="33%" align="right" height="30">密码:</td>
- <td width="67%"><input type="password" name="password" maxlength="16" class="smallInput" size="20"> </td>
- </tr>
- <tr>
- <td colspan="2" height="15"></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr align="center">
- <td height="40">
- <input type="button" name="Submit" value="确定" class="buttonface" onclick="check()">
-
- <input type="reset" name="Submit2" value="重填" class="buttonface">
- </td>
- </tr>
- <%
- String msg = (String)request.getParameter("errmsg");
- if(msg != null && !msg.equals("")) {
- %>
- <tr align="center">
- <td colspan="2"><font color=red><%=msg%></font></td>
- </tr>
- <%
- }
- %>
- </table>
- </form>
- <p align="center"> </td>
- </tr>
- </table>
- </center></div>
- </body>
- </html>