六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 148|回复: 0

修改页面

[复制链接]

升级  64%

8

主题

8

主题

8

主题

童生

Rank: 1

积分
32
 楼主| 发表于 2013-2-7 19:40:22 | 显示全部楼层 |阅读模式
<%@ page language="java" contentType="text/html; charset=GB18030"
    pageEncoding="GB18030"%>
<%@ taglib prefix="bean"  uri="http://struts.apache.org/tags-bean" %>   
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>修改用户</title>
<link rel="stylesheet" href="../style/drp.css">
<script src="../script/client_validate.js"></script>
<script type="text/javascript">

function goBack() {
window.self.location ="list.do"
}

function modifyUser() {
if (document.getElementById("userName").value == "") {
alert("用户名称不能为空!");
return;
}
if (document.getElementById("password").value.length < 6) {
alert("用户密码不能小于6个字符!");
return;
}
with (document.getElementById("userForm")) {
method = "post";
action = "modify.do";
submit();
}
}
</script>

</head>

<body class="body1">
<form name="userForm" id="userForm">
<div align="center">
<table width="95%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>
 
</td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0"
height="25">
<tr>
<td width="522" class="p1" height="25" nowrap>
<img src="../images/mark_arrow_03.gif" width="14" height="14">
 
<b>系统管理>>用户维护>>修改</b>
</td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="22%" height="29">
<div align="right">
用户代码: 
</div>
</td>
<td width="78%">
<input name="userId" type="text" class="text1" id="userId" value="<bean:write name="user" property="userId"/>"
size="10" maxlength="10" readonly="true">
</td>
</tr>
<tr>
<td height="26">
<div align="right">
<font color="#FF0000">*</font>用户名称: 
</div>
</td>
<td>
<input name="userName" type="text" class="text1" id="userName" value="<bean:write name="user" property="userName"/>"
size="20" maxlength="20">
</td>
</tr>
<tr>
<td height="26">
<div align="right">
<font color="#FF0000">*</font>密码: 
</div>
</td>
<td>
<label>
<input name="password" type="password" class="text1" value="<bean:write name="user" property="password"/>"
id="password" size="20" maxlength="20">
</label>
</td>
</tr>
<tr>
<td height="26">
<div align="right">
联系电话: 
</div>
</td>
<td>
<input name="contactTel" type="text" class="text1" value="<bean:write name="user" property="contactTel"/>"
id="contactTel" size="20" maxlength="20">
</td>
</tr>
<tr>
<td height="26">
<div align="right">
email: 
</div>
</td>
<td>
<input name="email" type="text" class="text1" id="email"  value="<bean:write name="user" property="email"/>"
size="20" maxlength="20">
</td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<div align="center">
<input name="btnModify" class="button1" type="button"
id="btnModify" value="修改" >
    
<input name="btnBack" class="button1" type="button" id="btnBack"
value="返回"  />
</div>
</div>
</form>
</body>
</html>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表