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

📄 add.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/super.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
	java.util.ArrayList roleList = new java.util.ArrayList();
	igec.site.base.bean.SysObj info = new igec.site.base.bean.SysObj();
	info.setStrValue1(user.getStrUserId());
	int iFlag = igec.site.base.business.MRoleBusiness.getRoleList(roleList,info,request);
	if(iFlag<0){
		showError(out);
		return;
	}
%>
<html>
<head>
<title>新建用户</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script Language="JavaScript">
<!--
	function sendForm(loForm){
		if(!Check(loForm)) return false;
		try{
			aJax_SendForm(loForm,"");	
		}catch(eee){
			alert(eee.description);
		}
	}
//-->
</script>
</head>

<body class="bodycolor" topmargin="5"  onload="resizeWin('objBody');">
<table border="0" name="objBody" id="objBody" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center" >
  <form action="<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/user.do?action=save"  method="post" name="form1" onsubmit="sendForm(this);return false;">
   <tr>
    <td nowrap class="TableHeader" colspan="2"><img src="<%=strSkinBase%>/images/green_arrow.gif" align="absMiddle"> 请认真填写下列各项:</td>
   </tr>
   <tr>
    <td nowrap class="TableData" width="120">登录名:</td>
    <td nowrap class="TableData">
        <input type="text" name="USERNAME" class="BigInput" size="10" maxlength="20" EmptyDisable label="登录名">&nbsp;最好为英文字母加数字 <font color="#FF0000">必填</font>
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">密码:</td>
    <td nowrap class="TableData">
        <input type="password" name="PASSWORD" class="BigInput" size="10" maxlength="10" abel="密码">&nbsp; <font color="#FF0000">必填</font>
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">真实姓名:</td>
    <td nowrap class="TableData">
        <input type="text" name="NICKNAME" class="BigInput" size="10" maxlength="10" EmptyDisable label="真实姓名">&nbsp;用户真实姓名 <font color="#FF0000">必填</font>
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">所属部门:</td>
    <td nowrap class="TableData">
        <select name="DEPTID" class="BigSelect" EmptyDisable label="所属部门">
        <option value=""></option>
        <script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/file/static/js/departlist.js"></script>
      </select> <font color="#FF0000">必填</font>
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">角色:</td>
    <td nowrap class="TableData">
        <select name="ROLEID" class="BigSelect" EmptyDisable label="角色">
        <option value=""></option>
<%
	for(int i=0;i<roleList.size();i++){
		igec.site.base.bean.SysObj so = (igec.site.base.bean.SysObj)roleList.get(i);
		if(so!=null){
%> 
			<option value="<%=so.getStrValue1()%>"><%=so.getStrValue2()%></option>
<%}}%>
      </select> <font color="#FF0000">必填</font>
    </td>
   </tr>
   <%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenAdminJob)){%>
   <tr>
    <td nowrap class="TableData">职位:</td>
    <td nowrap class="TableData">
    	<%
    		String strZwList[][] = igec.site.base.business.DataUtilBusiness.getValues("SELECT ID,NAME FROM TAB_IGECMNGTY ORDER BY ID DESC");
    	if(strZwList!=null){
    		for(int i=0;i<strZwList.length;i++){
	    %>
	    		<input type="radio" name="JobSeat" id="JobSeat" value="<%=strZwList[i][0]%>" <%if(i==0) out.print("checked");%>> <%=strZwList[i][1]%> &nbsp;
	    <%
    		}
    	}
    	%>
    </td>
   </tr>  
  <%}else{%>
  	<input type="hidden" name="JobSeat" id="JobSeat" value="S0005">
	<%}%>
   <tr>
    <td nowrap class="TableData">是否起用:</td>
    <td nowrap class="TableData">
    	<input type="radio" name="USEFLAG" id="USEFLAG" value="1" checked> 起用 <input type="radio" name="USEFLAG" id="USEFLAG" value="0" > 不起用 
    </td>
   </tr>
   <tr>
    <td nowrap  class="TableControl" colspan="2" align="center">
        <input type="submit" value="新 建" class="BigButton" title="新建用户" name="button">&nbsp;&nbsp;
        <input type="button" value="关 闭" class="BigButton" title="关闭窗口" onclick="window.close();">
    </td>
  </form>
</table>
</body>
</html>

⌨️ 快捷键说明

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