📄 useredit.jsp
字号:
<%@page contentType=" text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title><s:text name="system.title" /></title>
<link href="../../style/style1.css" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript"
src="../../datepicker/WdatePicker.js"></script>
<STYLE type="text/css">
BODY {
SCROLLBAR-FACE-COLOR: #EFEEEE;
FONT-SIZE: 12px;
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
SCROLLBAR-SHADOW-COLOR: #ffffff;
SCROLLBAR-3DLIGHT-COLOR: #BABABA;
SCROLLBAR-ARROW-COLOR: #BABABA;
SCROLLBAR-TRACK-COLOR: #ffffff;
SCROLLBAR-DARKSHADOW-COLOR: #BABABA
}
</STYLE>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" scroll="no">
<s:action id="stateLoadAction" namespace="/public" name="loadDictData">
<s:param name="dictTypeCode">STATE_DICT_TYPE_CODE</s:param>
</s:action>
<s:action id="roleLoadAction" namespace="/public" name="loadSimpleData">
<s:param name="queryName">GET_AVAILABLE_ROLES</s:param>
</s:action>
<s:form method="post" theme="simple">
<s:token />
<s:if test="user.userId != null">
<s:hidden name="user.userId" />
<s:hidden name="user.isOnLine" />
<s:hidden name="user.createUserId" />
<s:hidden name="user.createDate" />
<s:hidden name="queryCriteria.loginName" />
<s:hidden name="queryCriteria.userName" />
</s:if>
<table width="100%" height="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td height="1%">
<table width="100%" border="0" align="center" cellpadding="0"
cellspacing="0" class="labeltable">
<tr>
<td height="38" background="../../images/main_bk.gif" class="new3">
<table width="99%" border="0" align="right" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="../../images/icon_main01.gif" width="11"
height="11"> <span class="new3"><s:text
name="user.manage" /> --> 用户编辑</span></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="99%" valign="top">
<div class="listdiv">
<table width="97%" border="0" align="center" cellpadding="3"
cellspacing="0" class="input_outtable">
<tr>
<td height="254">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="center" colspan="4" style="color: red;"><s:fielderror />
<s:actionerror /></td>
</tr>
<tr>
<td width="17%" height="24" bgcolor="#FFEEFF"
class="input_td_textright">用户登录名<span
style="color: red; font-weight: bold">*</span>:</td>
<td width="33%" bgcolor="#FFEEFF" class="input_td_textleft">
<s:if test="user.userId == null">
<s:textfield name="user.loginName" cssClass="inputnone"
maxlength="32" size="25" />
</s:if><s:else>
<s:hidden name="user.loginName" />
<s:property value="user.loginName" />
</s:else></td>
<td width="18%" bgcolor="#FFEEFF" class="input_td_textright1">
用户名称<span style="color: red; font-weight: bold">*</span>:</td>
<td width="32%" bgcolor="#FFEEFF" class="input_td_textleft">
<s:textfield name="user.userName" cssClass="inputnone"
maxlength="16" size="25" /></td>
</tr>
<s:if test="user.userId == null">
<tr>
<td height="6" bgcolor="#FFEEFF" class="input_td_textright">
密码<span style="color: red; font-weight: bold">*</span>:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><s:password
name="user.password" cssClass="inputnone" maxlength="32"
showPassword="true" size="25" /></td>
<td bgcolor="#FFEEFF" class="input_td_textright1">密码确认<span
style="color: red; font-weight: bold">*</span>:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><s:password
name="password2" cssClass="inputnone" maxlength="32"
showPassword="true" size="25" /></td>
</tr>
</s:if>
<s:else>
<s:hidden name="user.password" />
<s:hidden name="password2" />
</s:else>
<tr>
<td height="3" bgcolor="#FFEEFF" class="input_td_textright">
用户生效日期<span style="color: red; font-weight: bold">*</span>:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><input
id="userEffDate" type="text" name="user.userEffDate"
class="inputnone" size="10" readonly="true"
value='<s:date
name="user.userEffDate" format="yyyy-MM-dd" />' />
<img onclick="WdatePicker({el:$dp.$('userEffDate')})"
src="../../datepicker/skin/datePicker.gif" width="16"
height="22" align="absmiddle"></td>
<td bgcolor="#FFEEFF" class="input_td_textright1">用户失效日期<span
style="color: red; font-weight: bold">*</span>:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><input
id="userExpDate" type="text" name="user.userExpDate"
class="inputnone" size="10" readonly="true"
value='<s:date
name="user.userExpDate" format="yyyy-MM-dd" />' />
<img onclick="WdatePicker({el:$dp.$('userExpDate')})"
src="../../datepicker/skin/datePicker.gif" width="16"
height="22" align="absmiddle"></td>
</tr>
<tr>
<td height="3" bgcolor="#FFEEFF" class="input_td_textright">
密码生效日期<span style="color: red; font-weight: bold">*</span>:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><input
id="pwEffDate" type="text" name="user.pwEffDate"
class="inputnone" size="10" readonly="true"
value='<s:date
name="user.pwEffDate" format="yyyy-MM-dd" />' />
<img onclick="WdatePicker({el:$dp.$('pwEffDate')})"
src="../../datepicker/skin/datePicker.gif" width="16"
height="22" align="absmiddle"></td>
<td bgcolor="#FFEEFF" class="input_td_textright1">密码失效日期<span
style="color: red; font-weight: bold">*</span>:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><input
id="pwExpDate" type="text" name="user.pwExpDate"
class="inputnone" size="10" readonly="true"
value='<s:date
name="user.pwExpDate" format="yyyy-MM-dd" />' />
<img onclick="WdatePicker({el:$dp.$('pwExpDate')})"
src="../../datepicker/skin/datePicker.gif" width="16"
height="22" align="absmiddle"></td>
</tr>
<tr>
<td height="3" bgcolor="#FFEEFF" class="input_td_textright">
状态<span style="color: red; font-weight: bold">*</span>:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><s:radio
name="user.state" list="#stateLoadAction.dictDataList"
listKey="code" listValue="name" /></td>
<td bgcolor="#FFEEFF" class="input_td_textright1">电子邮箱<span
style="color: red; font-weight: bold">*</span>:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><s:textfield
name="user.email" cssClass="inputnone" maxlength="32" size="25" />
</td>
</tr>
<tr>
<td height="6" bgcolor="#FFEEFF" class="input_td_textright">
办公电话:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><s:textfield
name="user.officePhone" cssClass="inputnone" maxlength="32"
size="25" /></td>
<td bgcolor="#FFEEFF" class="input_td_textright1">移动电话:</td>
<td bgcolor="#FFEEFF" class="input_td_textleft"><s:textfield
name="user.mobilePhone" cssClass="inputnone" maxlength="32"
size="25" /></td>
</tr>
<tr>
<td height="6" bgcolor="#FFEEFF" class="input_td_textright">
备注:</td>
<td colspan="3" valign="top" bgcolor="#FFEEFF"
class="input_td_textleft"><s:textarea cssClass="inputnone"
name="user.remark" cols="80" rows="5" /></td>
</tr>
<tr>
<td height="12" bgcolor="#FFEEFF" class="input_td_textright2">
角色:</td>
<td height="5" colspan="3" bgcolor="#FFEEFF"
class="input_td_line_dx"><s:checkboxlist name="roleIds"
list="#roleLoadAction.simpleDataList" listKey="id"
listValue="name" /> </td>
</tr>
<tr>
<td height="12" colspan="4" bgcolor="#FFEEFF"
class="input_td_textright_bk"><s:if
test="user.userId == null">
<s:submit value="创建" action="createUser" cssClass="topbut2" />
</s:if><s:else>
<s:submit value="修改" action="updateUser" cssClass="topbut2" />
</s:else> <s:submit value="取消" action="findUsers" cssClass="topbut2" /></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</s:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -