<!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=utf-8" />
|
[#include "/business/pages/include/static.html" /]
|
<link rel="stylesheet" href="${common_static}/static/css/reset.css" />
|
<style>
|
.personcont {
|
width: 98%;
|
margin: 1%;
|
font: 12px "宋体";
|
min-width: 800px;
|
}
|
.personalist {
|
background:#f0f0f0;border-bottom:dotted 1px #d1d1d1;
|
margin: 0px 15px;
|
border-left: solid 1px #d1d1d1;
|
border-right: solid 1px #d1d1d1;
|
line-height: 30px;
|
padding: 0;
|
}
|
.personalist:first-child{border-top: solid 1px #d1d1d1;}
|
.personalistnon {
|
background:#fff;
|
padding: 8px 0;
|
overflow: hidden;
|
zoom: 1;
|
border-bottom: dotted 1px #d1d1d1;
|
}
|
.personalistnon:last-child{border-bottom: solid 1px #d1d1d1;}
|
.personalistl {
|
width: 15%;
|
float: left;
|
}
|
.personalisttit {
|
background: #f0f0f0;
|
border-width: 0 0 1px 0;
|
line-height: 41px;
|
}
|
|
.personalist span {
|
color: #434343;
|
font-weight: bold;
|
}
|
.personalist span.span {
|
}
|
.personalist_chk {
|
margin: 0px 5px 0px 16px;
|
position: relative;
|
top: 3px;
|
}
|
.personalist_chkbox {
|
margin:6px 8px 11px 20%;
|
float:left;
|
}
|
.personalist_chkboxthree {
|
margin:6px 8px 12px 30%;
|
float:left;
|
}
|
.personalistr {
|
float: left;
|
width: 85%;
|
}
|
.personalistr li {
|
float: left;
|
color: #666;
|
list-style: none;
|
margin-bottom: 0px;
|
}
|
.personalistr li.li {
|
color: #333;
|
}
|
.personalistr li.li a {
|
color: #666;
|
}
|
.personalistr li.li a:hover {
|
color: #00f;
|
}
|
|
</style>
|
<script type="text/javascript">
|
|
|
function _onFormSubmit(){
|
if(!confirm('确定要重新分配人员吗?')) return false;
|
//document.getElementById("myform").target = window.top.openDialog(1,30,30,'操作提示:');
|
document.getElementById("myform").target = window.top.openDialog("1","操作",
|
{},
|
{"width":30,"height":30,"noclose":true},
|
[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
document.getElementById("btnOK").click();
|
}
|
|
function onUserClick(userid){
|
var url = '${base}/business/pages/xtgl/jsgl/userInRole.html?userid='+userid;
|
window.top.openDialog("user","人员角色",
|
{},
|
{"width":20,"height":85},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
_onFormSubmit();
|
}
|
}
|
|
function closeWin(){
|
window.top.closeDialog(0);
|
}
|
|
$(document).ready(function(){
|
|
//点击一级功能菜单
|
$("input[name='selectAll']").bind({
|
click : function(){
|
var $item = $(this).parents("div").next("div[class='personalistr']");
|
if($(this).attr("class") == "personalist_chk"){
|
$item = $(this).parents("div").next("div[class='personalistr personalisttit']");
|
}
|
if(this.checked){
|
$($item.find(":checkbox")).each(function(){
|
this.checked = true;
|
});
|
} else {
|
$($item.find(":checkbox")).each(function(){
|
this.checked = false;
|
});
|
}
|
}
|
});
|
});
|
</script>
|
<title>无标题文档</title>
|
</head>
|
|
<body>
|
<form action="userJsListSubmit.html" method="post" id="myform">
|
<input type="hidden" value="${RequestParameters.id}" name="roleid" />
|
<div class="personcont">
|
[#if ZZJGList ?? && ZZJGList?size > 0]
|
[#list ZZJGList as zzjg]
|
<div class="personalist clearfix">
|
<div class="personalistl personalisttit">
|
<input class="personalist_chk" name="selectAll" type="checkbox" value="" />
|
<span>${zzjg.JGMC}:</span></div>
|
<div class="personalistr personalisttit">
|
[#if data.PARTNERLIST?? && data.PARTNERLIST?size > 0]
|
[#list data.PARTNERLIST as a]
|
[#if a.SSBMBH == zzjg.ID]
|
<li class="li">
|
<input class="personalist_chk" name="userid" type="checkbox" [#if a.CHECKED??]checked="checked"[/#if] value="${a.ID}"/>
|
<a href="#" onclick="return onUserClick('${a.ID}')">${a.ZSXM}</a></li>
|
[/#if]
|
[/#list]
|
[/#if]
|
</div>
|
</div>
|
[#if zzjg.ejTree?? && zzjg.ejTree?size>0]
|
[#list zzjg.ejTree as ej]
|
<div class="personalist clearfix personalistnon">
|
<div class="personalistl">
|
<input class="personalist_chk personalist_chkbox" name="selectAll" type="checkbox" value="" />
|
<span class="span">${ej.JGMC}:</span> </div>
|
<div class="personalistr" id="menu">
|
[#if data.PARTNERLIST?? && data.PARTNERLIST?size > 0]
|
[#list data.PARTNERLIST as a]
|
[#if a.SSBMBH == ej.ID]
|
<li class="li">
|
<input class="personalist_chk" name="userid" type="checkbox" [#if a.CHECKED??]checked="checked"[/#if] value="${a.ID}"/>
|
<a href="#" onclick="return onUserClick('${a.ID}')">${a.ZSXM}</a></li>
|
[/#if]
|
[/#list]
|
[/#if]
|
</div>
|
</div>
|
[#if ej.sjTree?? && ej.sjTree?size>0]
|
[#list ej.sjTree as sj]
|
<div class="personalist clearfix personalistnon">
|
<div class="personalistl">
|
<input class="personalist_chk personalist_chkboxthree" name="selectAll" type="checkbox" value="" />
|
<span class="span">${sj.JGMC}:</span></div>
|
<div class="personalistr" id="menu">
|
[#if data.PARTNERLIST?? && data.PARTNERLIST?size > 0]
|
[#list data.PARTNERLIST as a]
|
[#if a.SSBMBH == sj.ID]
|
<li class="li">
|
<input class="personalist_chk" name="userid" type="checkbox" [#if a.CHECKED??]checked="checked"[/#if] value="${a.ID}"/>
|
<a href="#" onclick="return onUserClick('${a.ID}')">${a.ZSXM}</a></li>
|
[/#if]
|
[/#list]
|
[/#if]
|
</div>
|
</div>
|
[/#list]
|
[/#if]
|
[/#list]
|
[/#if]
|
[/#list]
|
[/#if]
|
</div>
|
<input type="submit" id="btnOK" value="提交" style="display:none;" />
|
</form>
|
</body>
|
</html>
|