📄 uinsert.jsp
字号:
<%@ page language="java" import="java.util.*,com.accpedu.LHcompany.dao.*,com.accpedu.LHcompany.entity.*" pageEncoding="gbk"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
background-color: #CCFFFF;
text-align:center;
}
.STYLE1 {
font-family: "宋体";
font-size: 14px;
color: #FFFFFF;
font-weight: bold;
}
.STYLE4 {font-family: "宋体"; font-size: 12px; }
-->
</style></head>
<script>
function check()
{
var x=document.form1.zhanghao.value;
var y1=document.form1.mima1.value;
var y2=document.form1.mima2.value;
if(x=="" || y1=="" )
{
alert("用户名密码不能为空!且大于6位!");
return false;
}else if(y1!=y2)
{
alert("两次密码输入不一致!");
return false;
}else
{
return true;
}
}
</script>
<body><%@ include file="checkLogin.jsp" %>
<form method="post" action="doUInsert.jsp" name="form1" target="right" onSubmit="return check()">
<table width="500" border="0" cellpadding="0" cellspacing="0" style="border-style:solid; border-color:#0099FF; border-width:1px;">
<tr>
<td height="20" colspan="2" bgcolor="#0033FF"><span class="STYLE1">增加管理员</span></td>
</tr>
<tr>
<td width="150" height="25" align="center"><span class="STYLE4">管理员账号:</span></td>
<td height="25"> <input type="text" name="zhanghao"></td>
</tr>
<tr>
<td width="150" height="25" align="center"><span class="STYLE4">管理员密码:</span></td>
<td height="25"> <input type="password" name="mima1"></td>
</tr>
<tr>
<td width="150" height="25" align="center"><span class="STYLE4">重复密码:</span></td>
<td height="25"> <input type="password" name="mima2"></td>
</tr>
<tr>
<td width="150" height="30"> </td>
<td height="30"><input type="submit" value="增 加"> <input type="reset" value="重 置"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -