用户增删改查.pdf
文本预览下载声明
用户增删改查
涉及表 UserRegisterInformation
涉及Controller UserController
注册页面
form name formAirplanes action
input type hidden value 3 name userType / input
type hidden value 0 name isFormalUser / input
type hidden value ${User.id} name id /
ul class frome_ul
li
div class name
span class must*/spannbsp;用户名 :
/div input type text class text_01 value ${User.loginName}
onchange checkLoginName() name loginName maxlength 16 id loginName /
/li
lispan nbsp;请输入以字母开头 ,允许5-16字节 ,允许字母数字下划线/span/li
li
div class name
span class must*/spannbsp;密码 :
/div input type password class text_01 value ${User.password}
name password id password onchange checkOther(2); maxlength 16 /
/li
lispan nbsp;只能输入英文和数字 ,最少6位 :/span/li
li
/ul
div class fb clear
c:if test ${update! y}
input type button value 保存 class btn onclick adduser(); /
/c:if
c:if test ${update y}
input type button value 修改 class btn
onclick updateUser(); /
/c:if
input type reset value 返回 class btn
onclick j avascript:window.history.go(-1); /
/div
/form
script type text/j avascript
//新增用户信息
function adduser() {
if ($(#loginName).val().length 0) {
alert(请输入用户名 !);
return false;
}
if (checkForm(1).length 2) {
alert(checkForm(1));$(#mobilephoneNumber).val()
return false;
}
if ($(#password).val().length 0) {
alert(请输入密码 !);
return false;
}
if (window.confirm(你确定要提交吗 ?)) {
var form document.forms.formAirplanes;
form.action ${c
显示全部