competence.jsp

来自「一套自己原先在学校作的CRM,大家指点下」· JSP 代码 · 共 77 行

JSP
77
字号
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>



<HTML>
<head>
<style>
	th{
		font-size:12px;
		text-align:right;
		font-weight:normal;
	}
	td{
		font-size:12px;
		text-align:left;
	}
	input{
		width:100px;
		font-size:12px;
		border:solid 1px lightblue;
	}

</style>
<script type="text/javascript">
		function doOperate(operate){
			document.forms[0].elements["operate"].value=operate;
			document.forms[0].submit();
		}
	</script>
</head>
<link href="html/css/style.css" rel="stylesheet" type="text/css">
<body>
<form method="post" action="user.do">
  <input type="hidden" name="operate">
  <div class="page_title">&nbsp;权限管理 -- 用户管理</div>
	<div class="button_bar">
	<button class="common_button" onClick="help('');">帮助</button> 
	<button class="common_button" onClick="doOperate('toUser')">返回</button> 
	<button class="common_button" onClick="doOperate('toAddUser')">新建</button> 
	<button class="common_button" onClick="doOperate('searchUser')">查询</button>  
	</div>
<table class="query_form_table">

	<tr> 	
    <th colspan="4" width="30%">
	    &nbsp;&nbsp;搜索用户:</th>
	   <td><input name="txtuser" type="text" id="txtuser"></td>
  </tr>
</table></form>


<table width="804" height="54" border="1">
  <tr bordercolor="#ADDBE7" >
    <td class="FormTitle"><div align="center">用户ID </div></td>
    <td class="FormTitle"><div align="center">用户名 </div></td>
    <td class="FormTitle"><div align="center">角色名称</div></td>
    <td class="FormTitle"><div align="center">当前权限</div></td>
    <td class="FormTitle"><div align="center">修改权限</div></td>
    <td class="FormTitle"><div align="center">删除角色</div></td>
  </tr>
	<c:forEach var="pet" items="${sessionScope.list}">
	<tr bordercolor="#ADDBE7">
	<td class="FormTitle"><div align="center">${pet.userId}</div></td>
  	<td class="FormTitle"><div align="center">${pet.userName}</div></td>
    <td class="FormTitle"><div align="center">${pet.role.roleName}</div></td>
    <td class="FormTitle"><div align="center">${pet.role.roleName}(${pet.userFlag})</div></td>
    <td class="FormTitle"><div align="center"><a class="syslink" href="html/purview/Revised.jsp?name=${pet.userName}&role=${pet.role.roleName}&id=${pet.userId}&pwd=${pet.userPassword }" >修改</a></div></td>
    <td class="FormTitle"><div align="center"><a href="html/purview/Delete.jsp?name=${pet.userName}&flag=${pet.userFlag}&role=${pet.role.roleName}&id=${pet.userId}" class="syslink" >删除</a></div></td>   
  </tr>
  </c:forEach>
</table>

<p class="syslink2">&nbsp;</p>

</body>
</HTML>

⌨️ 快捷键说明

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