📄 xt6202.jsp
字号:
<%@ page language="java" pageEncoding="gb2312"%>
<%@ page session="false" %>
<jsp:directive.page import="jp.com.cost.pojo.Page"/>
<jsp:directive.page import="java.util.List"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link href="css/content.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-bottom: 20%;
}
-->
</style>
<link href="css/main_content.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {font-size: large}
.STYLE2 {font-size: 16px}
-->
</style>
</head>
<body style="margin:0px;" background="images/WelcomePage.jpg">
<form name="form1" method="post" action="XT6202E1S.do"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tr_title4" ><div align="center"></div></td>
</tr>
<tr>
<td colspan="2"><table width="573" height="143" border="1" align="center">
<tr>
<td colspan="4" class="tr_title4"><div align="center"><font size="4.5" color="#004198">添加新角色</font></div></td>
</tr>
<tr>
<td colspan="2" class="title_tr"><font color="#004198">角色名称:</font></td>
<td colspan="2" class="title_tr" align="left" valign="middle"><input type="text" name="rolename"></td>
</tr>
<tr>
<td colspan="4" class="title_tr"><font color="#004198">所选功能</font></td>
</tr>
<tr>
<td width="112"><select multiple size="15" name="list1" id="list1" style="width:250px">
</select> </td>
<td width="77" class="title_tr"><input type="button" value=" >> " onClick="move(this.form.list1,this.form.list2);change();" name="B1"></td>
<td width="124" class="title_tr"><input type="button" value=" << " onClick="move(this.form.list2,this.form.list1);change();" name="B2"> </td>
<td width="232">
<select multiple size="15" name="list2" style="width:250px">
<%List<Page> list = (List<Page>)request.getAttribute("pagelist");
for(Page p:list){
%>
<option value="<%=p.getPid() %>"><%=p.getPname() %></option>
<%} %>
</select> </td>
</tr>
</table>
<p align="center" class="STYLE1"> </p>
</td>
<tr>
<td colspan="2" class="content_tr">
<div align="center">
<input type="submit" name="Submit" class="title_tr" value="保存">
<input name="Button_back" type="button" class="title_tr" id="Button" title="返回" onClick="history.back();;" value="返回">
</div></td>
<input type="hidden" name="hidden">
</tr>
<tr>
<td colspan="2" class="tr_title4"> </td>
</tr>
</table>
</form>
</body>
</html><SCRIPT LANGUAGE="JavaScript">
<!-- Begin
sortitems = 1; // Automatically sort items within lists? (1 or 0)
function move(fbox,tbox) {
for(var i=0; i<fbox.options.length; i++) {
if(fbox.options[i].selected && fbox.options[i].value != "") {
var no = new Option();
no.value = fbox.options[i].value;
no.text = fbox.options[i].text;
tbox.options[tbox.options.length] = no;
fbox.options[i].value = "";
fbox.options[i].text = "";
}
}
BumpUp(fbox);
if (sortitems) SortD(tbox);
}
function moveall(fbox,tbox) {
for(var i=0; i<fbox.options.length; i++) {
if(fbox.options[i].value != "") {
var no = new Option();
no.value = fbox.options[i].value;
no.text = fbox.options[i].text;
tbox.options[tbox.options.length] = no;
fbox.options[i].value = "";
fbox.options[i].text = "";
}
}
BumpUp(fbox);
if (sortitems) SortD(tbox);
}
function BumpUp(box) {
for(var i=0; i<box.options.length; i++) {
if(box.options[i].value == "") {
for(var j=i; j<box.options.length-1; j++) {
box.options[j].value = box.options[j+1].value;
box.options[j].text = box.options[j+1].text;
}
var ln = i;
break;
}
}
if(ln < box.options.length) {
box.options.length -= 1;
BumpUp(box);
}
}
function SortD(box) {
var temp_opts = new Array();
var temp = new Object();
for(var i=0; i<box.options.length; i++) {
temp_opts[i] = box.options[i];
}
for(var x=0; x<temp_opts.length-1; x++) {
for(var y=(x+1); y<temp_opts.length; y++) {
if(temp_opts[x].text > temp_opts[y].text) {
temp = temp_opts[x].text;
temp_opts[x].text = temp_opts[y].text;
temp_opts[y].text = temp;
temp = temp_opts[x].value;
temp_opts[x].value = temp_opts[y].value;
temp_opts[y].value = temp;
}
}
}
for(var i=0; i<box.options.length; i++) {
box.options[i].value = temp_opts[i].value;
box.options[i].text = temp_opts[i].text;
}
}
// End -->
</script>
<Script Language="JavaScript" defer>
function change()
{
var oArray='';
for(var i=0;i<=document.all.list1.options.length-1;i++){
oArray += document.all.list1.options[i].value+' ';
}
document.all.hidden.value = oArray;
}
function fanhui()
{
location.href="rulerquery.jsp";
}
</Script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -