📄 reclist.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
/*****
*
* 功能介绍:根据当前的MenuId,对应的action名和当前用户,判断是否有进入此页面的权限
*
*/
if(checkPv(strMenuId,"",user)<0){
noPv(out);
return;
}
%>
<%
String strStatus = request.getParameter("type");
if(igec.util.Tool.IsEmpty(strStatus)) strStatus = "1";
java.util.ArrayList lists = new java.util.ArrayList();
igec.site.base.bean.SysObj info = new igec.site.base.bean.SysObj();
info.setStrValue1(igec.util.Tool.getStr(request.getParameter("searchTj")));
info.setStrValue2(strStatus);
info.setStrValue3("");
int iFlag = igec.site.base.business.MemberBusiness.getMemberList(lists,info,user,request);
if(iFlag<0){
showError(request,response);
return;
}
%>
<html>
<head>
<title>选择接收会员</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script language="javascript">
<!--
function setRecUserList(){
func_name_str="";
func_id_str="";
var loObjs = document.all.tags("input");
if(typeof(loObjs.length)=="undefined"){
func_id_str += loObjs.value;
func_name_str += loObjs.label;
}else{
for(var i=0;i<loObjs.length;i++){
if(loObjs[i].type=="checkbox" && typeof(loObjs[i].group)!="undefined"){
if(loObjs[i].checked){
if(func_id_str==""){
func_id_str += loObjs[i].value;
func_name_str += loObjs[i].label;
}else{
func_id_str += "," + loObjs[i].value;
func_name_str += "," + loObjs[i].label;
}
}
}
}
}
var lsResult = func_id_str + ":" + func_name_str;
if(window.opener!=null){
if(typeof(window.opener.<%=request.getParameter("recFun")%>)!="undefined"){
window.opener.<%=request.getParameter("recFun")%>(lsResult);
}
window.close();
}else{
alert("系统不支持此操作!");
}
}
function init(){
<%
if(!igec.util.Tool.IsEmpty(request.getParameter("getFun"))){
%>
if(window.opener!=null){
if(typeof(window.opener.<%=request.getParameter("getFun")%>)!="undefined"){
var lsSelect = window.opener.<%=request.getParameter("getFun")%>();
if(lsSelect!=null){
lsSelect = "," + lsSelect + ",";
var loObjs = document.all.tags("input");
if(typeof(loObjs.length)=="undefined"){
if(lsSelect.indexOf(","+loObjs.value+",")>=0){
loObjs.checked = true;
}
}else{
for(var i=0;i<loObjs.length;i++){
if(loObjs[i].type=="checkbox" && typeof(loObjs[i].group)!="undefined"){
if(lsSelect.indexOf(","+loObjs[i].value+",")>=0){
loObjs[i].checked = true;
}
}
}
}
}
}
}else{
alert("系统不支持此操作!");
}
<%
}
%>
}
function setSearch(strResult){
document.getElementById("searchTj").value = strResult;
searchForm.submit();
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="5" onload="resizeWin('objBody');init();">
<table border="0" name="objBody" id="objBody" width="600" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<tr>
<td class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/user.gif" align="absmiddle"> 选择管理广告位的会员 <input type="checkbox" name="selectall" id="selectall" onclick="javascript:checkPageBox(this,'recUser');"> <label for="selectall">全选</a></td>
</td>
</tr>
<tr height="30">
<td nowrap class="TableData">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%
for(int i=0;i<lists.size();){
out.println("<tr>");
for(int n=0;n<5;n++){
if(i<lists.size()){
igec.site.base.bean.StandSysObj so = (igec.site.base.bean.StandSysObj)lists.get(i);
String strNickName = igec.site.base.business.DataUtilBusiness.getFieldValue("NICKNAME","TAB_IGECMEBADV","WHERE MEBID='"+so.getStrValue1()+"'");
out.println("<td width=\"20%\"><input type=\"Checkbox\" name=\"recUser\" id=\"recUser" + so.getStrValue1() + "\" group=\"recUser\" value=\"" + so.getStrValue1() + "\" label=\"" + strNickName + "\"> <label for=\"recUser" + so.getStrValue1() + "\">" + strNickName + "</label></td>");
}else{
out.println("<td width=\"20%\"> </td>");
}
i++;
}
out.println("</tr>");
}
%>
</table>
</td>
</tr>
<tr align="center" class="TableControl">
<td nowrap>
<input type="button" value="确 定" class="BigButton" style="cursor:hand" title="" onclick="javascript:setRecUserList();">
<input type="button" value="重新选择" class="BigButton" title="重新选定会员范围" style="cursor:hand" onclick="javascript:openWindow('../../member/search.jsp?iid=<%=strMenuId%>&recFun=setSearch&tj=<%=info.getStrValue1()%>','250','300');">
<input type="button" value="关 闭" class="BigButton" style="cursor:hand" onClick="javascript:window.close();">
</td>
</tr>
</table>
<form action="" method="get" name="searchForm" id="searchForm" target="_self">
<%
String strQuery[][] = igec.util.UrlTool.getStrFromQuery(request);
if(strQuery!=null){
for(int i=0;i<strQuery.length;i++){
if(!"searchTj".equals(strQuery[i][0])){
%>
<input type="hidden" name="<%=strQuery[i][0]%>" id="<%=strQuery[i][0]%>" value="<%=strQuery[i][1]%>">
<%
}
}
}
%>
<input type="hidden" name="searchTj" id="searchTj" value="">
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -