adminInsert.jsp
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:3k
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.domain.UserForm"%>
- <%@ page import="com.tool.Chinese"%>
- <%@ page import="java.util.List"%>
- <%@ page import="java.sql.*"%>
- <%String countID=(String)request.getAttribute("countID");%>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>添加管理员</title>
- <style type="text/css">
- <!--
- body {
- background-color: #000000;
- margin-left: 0px;
- margin-top: 0px;
- }
- td{
- font-size:9pt;
- }
- .style1 {font-size: 11pt}
- -->
- </style>
- </head>
- <script language="JavaScript">
- function RgTest(){
- if(document.form.name.value==""){
- window.alert("请输入管理员账号");
- return false;
- }
- if(document.form.mm.value==""){
- window.alert("请输入管理员密码");
- return false;
- }
- return true;
- }
- </script>
- <body>
- <table width="579" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <tr>
- <td> </td>
- </tr>
- </table>
- <table width="579" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="2%" height="28"> </td>
- <td width="9%" background="images/circle.jpg"> </td>
- <td width="89%" bgcolor="#FFFFFF"><span class="style1">添加管理员</span></td>
- </tr>
- <tr style="line-height:2px">
- <td width="2%" height="5"> </td>
- <td height="5" colspan="2" bgcolor="#D4D0C8"> </td>
- </tr>
- <tr align="center" valign="top" bgcolor="#FFFFFF">
- <td height="454" colspan="3">
- <p> </p>
- <form name="form" method="post" action="adminInsert.do" onSubmit="return RgTest()">
- <table width="56%" border="1" cellspacing="0" cellpadding="0">
- <tr>
- <td width="30%" height="30" align="center" bgcolor="#FFCC00">管理员编号</td>
- <td width="70%" align="center"><input type="hidden" name="id" value="User-<%=countID%>">User-<%=countID%>
- </td>
- </tr>
- <tr>
- <td width="30%" height="30" align="center" bgcolor="#FFCC00">管理员账号</td>
- <td width="70%" align="center"><input type="text" name="name">
- </td>
- <tr>
- <td width="30%" height="30" align="center" bgcolor="#FFCC00">管理员密码</td>
- <td width="70%" align="center"><input type="password" name="mm">
- </td>
- </tr>
- </table>
- <p>
- <input type="submit" name="Submit2" value="提交">
-
- <input type="reset" name="Submit" value="重置">
- </p>
- </form> <p><a href="adminSelect.do?user_bs=0">返回</a></p>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>