?? dispatchrole.jsp
字號:
<%@ page contentType="text/html; charset=GB2312" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用戶角色分配</title>
<style type="text/css">
td{
font-size:12px;
}
.selectLeft{
font-size: 13px;
width: 170px;
background-color: #ffffcc
}
.selectRight{
font-size: 13px;
width: 170px;
background-color: #ffffcc
}
</style>
<script language="javascript" type="text/javascript" src="js/dispatchrole.js" charset="gb2312">;</script>
</head>
<body onload="init()" style="margin-top:10px">
<form id="form1" name="form1" action="dispatchRoleAction.do" method="post">
<table cellpadding="2" cellspacing="2" align="center">
<tr>
<td align="center" style="font-weight:bold">未分配角色</td>
<td> </td>
<td align="center" style="font-weight:bold">已分配角色</td>
</tr>
<tr>
<td align="center">
<select class="selectLeft" multiple="multiple" ondblclick="swapItem('>>')" size="10" name="list1" id="list1">
<logic:iterate id="first" name="listRole1">
<logic:iterate id="second" name="first" length="1" offset="0">
<option value="<bean:write name="second" filter="false"/>">
</logic:iterate>
<logic:iterate id="second" name="first" length="1" offset="1">
<bean:write name="second" filter="false"/></option>
</logic:iterate>
</logic:iterate>
</select>
<input type="button" id="mysubmit" value="保 存" style="width: 100px; display:inline; margin-top:10px" onclick="saveRoles()" class="downbutton">
</input>
</td>
<td valign="middle" width="60px">
<input type="button" id="addbutton1" value=">>" onClick="swapItem('>>')" name="B1" class="downbutton" style="width: 60px; height:25px; display:inline" />
<p></p>
<input type="button" id="addbutton2" value="<<" onClick="swapItem('<<')" name="B2" class="downbutton" style="width: 60px; height:25px; display:inline" />
</td>
<td align="center">
<select class="selectRight" multiple="multiple" ondblclick="swapItem('<<')" size="10" name="list2" id="list2">
<logic:iterate id="first" name="listRole2">
<logic:iterate id="second" name="first" length="1" offset="0">
<option value="<bean:write name="second" filter="false"/>">
</logic:iterate>
<logic:iterate id="second" name="first" length="1" offset="1">
<bean:write name="second" filter="false"/></option>
</logic:iterate>
</logic:iterate>
</select>
<input type="button" id="close" value="取 消" style="width: 100px; display:inline; margin-top:10px" onclick="window.close()" class="downbutton" />
</td>
</tr>
</table>
<input type="hidden" id="userNo" name="userNo" value="<bean:write name="userNo" filter="false"/>"/>
</form>
<input type="hidden" id="successFlag" name="successFlag" value="<bean:write name="successFlag" filter="false"/>"/>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -