⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.jsp

📁 j2ee源码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/leeman-chtml.tld" prefix="chtml" %>
<%@ page 
language="java"
contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"
%>
<chtml:baseLink/>
<TITLE><bean:message key="header.SM_UserProf"/></TITLE>
<SCRIPT Language="JavaScript">
function validate()
{
	var form = document.forms[0];
	var mode = form.mode.value;
	
	initMsg();
	if (mode == 'addNew'){
		chkEmpty( form.user_id, "<bean:message key="SM_UserProf.userId"/>");
	}
	chkEmpty(form.name, "<bean:message key="SM_UserProf.name"/>");
	chkEmpty(form.password, "<bean:message key="SM_UserProf.password"/>");
	chkEmpty(form.role_id, "<bean:message key="SM_UserProf.roleId"/>");
	chkDdlEmpty(form.dept_id, "<bean:message key="SM_UserProf.deptId"/>");
	//chkEmpty(form.position, "<bean:message key="SM_UserProf.position"/>");
				
	if (errorMsg.length > 0)
	{
		showMsg();
		return false;
	}
	else
	{
		return true;
	}
}

function resetPassword(obj)
{
	if (obj.value == "**********")
	{
		obj.value = "";
		return false;
	}
}
</SCRIPT>
</HEAD>
<BODY>
<chtml:baseBanner mode="enq" />
<html:form action="/master/userprofile/main">
<html:hidden property="mode"/>
<chtml:screenMessage />
<chtml:baseMainTopButtons name="userProfileMainForm" styleClass="buttons"/>
<p>
<table>
<tr>
	<td><chtml:requiredMark/><bean:message key="SM_UserProf.userId"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="addNew">
			<html:text property="user_id" maxlength="10" size="20" onkeypress="javascript:uppercase();" style="width:130px"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="addNew">
			<html:text property="user_id" maxlength="10" size="20" onkeypress="javascript:uppercase();" readonly="true" styleClass="inputDisabled" style="width:130px"/>
		</logic:notEqual>
	</td>
</tr>
<tr>
	<td><chtml:requiredMark/><bean:message key="SM_UserProf.name"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<html:text property="name" maxlength="50" size="50" readonly="true" styleClass="inputDisabled" style="width:500px"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<html:text property="name" maxlength="50" size="50" style="width:500px"/>
		</logic:notEqual>
	</td>
</tr>
<tr>
	<td><chtml:requiredMark/><bean:message key="SM_UserProf.password"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<html:password property="password" maxlength="10" size="10" readonly="true" styleClass="inputDisabled" style="width:130px"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<html:password property="password" maxlength="10" size="10" style="width:130px" onkeydown="javascript:resetPassword(this);"/>
		</logic:notEqual>
	</td>
</tr>
<tr>
	<td><chtml:requiredMark/><bean:message key="SM_UserProf.roleId"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<html:text property="role_id" maxlength="5" size="10" readonly="true" styleClass="inputDisabled" onkeypress="javascript:uppercase();" style="width:130px"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<html:text property="role_id" maxlength="5" size="10" onkeypress="javascript:uppercase();"/>
			<chtml:searchListButton searchListId="roleMgtList" url="/master/rolemgt/searchlist.do" returnFieldNames="'role_id'" sourceFieldNames="'role_id'" preloadFieldNames="'role_id'"/>
		</logic:notEqual>
	</td>
</tr>
<tr>
	<td><chtml:requiredMark/><bean:message key="SM_UserProf.deptId"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<div id="awmobject1">
			<html:select property="dept_id" disabled="true">
				<bean:define id="deptIdList" name="userProfileMainForm" property="deptIdList" scope="request"/> 
				<html:options collection="deptIdList" labelProperty="label" property="value"/>
			</html:select>
			</div>
			<html:hidden property="dept_id" name="userProfileMainForm"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<div id="awmobject1">
			<html:select property="dept_id">
				<bean:define id="deptIdList" name="userProfileMainForm" property="deptIdList" scope="request"/> 
				<html:options collection="deptIdList" labelProperty="label" property="value"/>
			</html:select>
			</div>
		</logic:notEqual>
	</td>
</tr>
<tr>
	<td><bean:message key="SM_UserProf.position"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<html:text property="position" maxlength="50" size="50" readonly="true" styleClass="inputDisabled" style="width:500px"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<html:text property="position" maxlength="50" size="50" style="width:500px"/>
		</logic:notEqual>
	</td>
</tr>
<tr>
	<td><bean:message key="SM_UserProf.telephone"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<html:text property="telephone" maxlength="30" size="30" readonly="true" styleClass="inputDisabled" style="width:200px;"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<html:text property="telephone" maxlength="30" size="30" style="width:200px;"/>
		</logic:notEqual>
	</td>
</tr>
<tr>
	<td><bean:message key="SM_UserProf.fax"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<html:text property="fax" maxlength="30" size="30" readonly="true" styleClass="inputDisabled" style="width:200px;"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<html:text property="fax" maxlength="30" size="30" style="width:200px;"/>
		</logic:notEqual>
	</td>
</tr>
<tr>
	<td><bean:message key="SM_UserProf.email"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<html:text property="email" maxlength="50" size="50" readonly="true" styleClass="inputDisabled" style="width:500px;"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<html:text property="email" maxlength="50" size="50" style="width:500px;"/>
		</logic:notEqual>
	</td>
</tr>
<tr>
	<td><chtml:requiredMark/><bean:message key="SM_UserProf.activate"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<html:checkbox property="active" disabled="true" styleClass="inputDisabled"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<html:checkbox property="active"/>
		</logic:notEqual>
	</td>
</tr>
<!--<tr>
	<td><bean:message key="SM_UserProf.approvalPassword"/>:</td>
	<td>
		<logic:equal property="mode" name="userProfileMainForm" value="view">
			<html:password property="approval_password" maxlength="10" size="10" readonly="true" styleClass="inputDisabled" style="width:130px"/>
		</logic:equal>
		<logic:notEqual property="mode" name="userProfileMainForm" value="view">
			<html:password property="approval_password" maxlength="10" size="10" style="width:130px" onkeydown="javascript:resetPassword(this);"/>
		</logic:notEqual>
	</td>
</tr>-->
</table>

<chtml:baseMainBottomButtons name="userProfileMainForm" styleClass="buttons"/>
<chtml:baseFooter/>
</html:form>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -