两个listbox实现选项的添加删除和搜索(2)


<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/Taglibs.jsp"%>
<%@ include file="/pages/common/Header.jsp"%>

<!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>
<script type="text/javascript" src="https://www.jb51.net/<%=basePath%>/script/group.js"></script>
<script type="text/javascript">
$(document).keydown(function (event){
if(event && event.keyCode==13){
$("#searchBtn").click();
}
});

function backpage(group_id){
//window.history.back();
window.location.href="<%=basePath%>/server/group?group_id="+group_id;
}
function closeWin()
{
this.close();
}

function saveChanges() {
function okFun() {
var deleteMembersId = $("#deleteMembersId").val();
var newAddMembersId = $("#newAddMembersId").val();
var group_id = $("#group_id").val();
window.location.href = "<%=basePath%>/server/group!saveGroupMember?group_id="
+ group_id
+ "&newAddMembersId="
+ newAddMembersId
+ "&deleteMembersId=" + deleteMembersId;
};
function cancelFun() {
};
//PopuMsgBox("确认提示","是否保存?",okFun,cancelFun,150,100);
okFun();
}

</script>

</head>

<body>
<div>
<div>
<div>
<span>&nbsp;群组<s:property value="group_name"></s:property> </span>
<span>&nbsp;${gNumber}人</span><br/>
<hr/>
</div>
<div>
<!-- 内容列表 -->
<s:if test="#request.groupMemberList!=null && #request.groupMemberList.size!=0">
<s:iterator value="#request.groupMemberList">
<div>
<div>
<div>
<input type="checkbox" />
<input type="hidden" value="<s:property value="#gmember.id"/>" />
<span><s:property value="#gmember.name" /></span>
</div>
<div>
<span><s:property value="#gmember.position_name" /></span>
</div>
</div>
<div></div>
</div>
</s:iterator>
</s:if>
</div>
</div>
<div>
<div>
<input type="button" value="&lt;&lt;添加" />
</div>
<br/>
<div>
<input type="button" value="移除&gt;&gt;" />
</div>
</div>
<div>
<div>
<span>&nbsp;所有企业成员</span>
<span>&nbsp;${eNumber}人</span><br/>
<hr />
</div>
<div>
<div><input type="text" value="搜索企业成员" onfocus="clearTxt()" onblur="setsearchTxt()"/></div>
<div><img src="https://www.jb51.net/<%=basePath%>/images/searchBtn.PNG"/></div>
<div></div>
</div>
<div>
<!-- 内容列表 -->
<s:if test="#request.departmentMemberList!=null && #request.departmentMemberList.size!=0">
<s:iterator value="#request.departmentMemberList">
<div>
<div><img src="https://www.jb51.net/<%=basePath%>/images/folder_close.PNG"/></div>
<div><span><s:property value="#department.departmentName"/><span>&nbsp;<s:property value="#department.memberCount"/>人</span></span></div>
<div></div>
<div>
<s:iterator value="#department.memberList">
<div>
<div>
<div>
<input type="checkbox"/>
<input type="hidden" value="<s:property value="#emember.id"/>" />
<span><s:property value="#emember.name" /></span>
</div>
<div>
<span><s:property value="#emember.position_name" /></span>
</div>
</div>
<div></div>
</div>
</s:iterator>
</div>
</div>
</s:iterator>
</s:if>
</div>
</div>
<div>
<div>
<input type="button" value="保存"/>
<input type="hidden" value=""/>
<input type="hidden" value=""/>
<input type="hidden" value="${existedMemberId}"/>
<input type="hidden" value="${group_id}"/>
</div>
</div>
</div>
</body>
</html>


您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wddwgw.html