?? edit.jsp
字號:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/jb-common.tld" prefix="jb" %>
<script src="validate.js" ></script>
<script src="icommon.js" ></script>
<html:errors/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>編輯用戶</title>
<link rel="stylesheet" type="text/css" href="styles.css" >
<script>
function doDel(id){
if ( window.confirm("確定刪除?") ){
window.location.href = "?o=doDel&id=" + id;
}
}
</script>
</head>
<body class="main">
<html:form action="user" method="post">
<html:hidden property="o" value="doEdit" />
<html:hidden property="item.usrId" />
<html:hidden property="item.usrFlag" />
<span class="page_title">編輯用戶</span>
<div class="button_bar">
<button class="common_button" onclick="javascript:history.go(-1);">返回</button>
<button class="common_button" onclick="javascript:doSubmit('doEdit');">保存</button>
</div>
<table class="query_form_table" border="0" cellPadding="3" cellSpacing="0">
<tr>
<th class="input_title">用戶名</th>
<td class="input_content">
<html:text property="item.usrName" />
</td>
<th class="input_title">密碼</th>
<td class="input_content">
<html:password property="item.usrPassword" />
</td>
</tr>
<tr>
<th class="input_title">角色</th>
<td class="input_content">
${userForm.item.usrRole.roleName==null?"未指定":userForm.item.usrRole.roleName }
</td>
<th class="input_title">狀態</th>
<td class="input_content">
${userForm.item.usrFlagString }
</td>
</tr>
</table>
<script>
build_validate("item.usrName","用戶名不能為空","Limit","1","50");
build_validate("item.usrPassword","密碼不能為空","Limit","1","50");
</script>
</html:form>
</body>
</html:html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -