📄 list.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/user.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
/*****
*
* 功能介绍:根据当前的MenuId,对应的action名和当前用户,判断是否有进入此页面的权限
*
*/
if(checkPv(strMenuId,"list",user)<0){
noPv(out);
return;
}
String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");
java.util.ArrayList lists = (java.util.ArrayList)request.getAttribute("lists");
igec.site.base.bean.SysObj info =(igec.site.base.bean.SysObj)request.getAttribute("info");
if(lists==null){
showError(out);
return;
}
String strSltFlag=request.getParameter("sltFlag");
if(strSltFlag==null){
strSltFlag="0";
}
String strTypeFlag=request.getParameter("typeFlag"); // 新闻发布者 0:会员发布 1:展会人员发布(与新闻表的TYPEFLAG字段对应)
if(strTypeFlag==null){
strTypeFlag="0";
}
%>
<!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>会员办公室--<%=site.bean.SitePara.strWebTitle%></title>
<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="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/content.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/tree.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/mainframe.css" type="text/css" />
<script type="text/javascript" src="<%=site.bean.SitePara.strVirtualName%>/member/js/tree.jsp?baseurl=<%=strOfficeStyle%>"></script>
<link rel="shortcut icon" href="<%=site.bean.SitePara.strVirtualName%>/favicon.ico">
<SCRIPT language="javascript">
<!--
function passOption(strPbId,varPassFlag){
if(strPbId!=""){
if(varPassFlag==1){
alert("该申请已经审批")
return false;
}
if(confirm("确定要审核通过此申请吗?")){
//strPbId="'"+strPbId+"'";
var strHref = "<%=site.bean.SitePara.strVirtualName%>/member/memnewscomment.do?action=pass&iid=<%=strMenuId%>&passFlag=1&id=" + strPbId + "&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
}else{
if(varPassFlag==4){
alert("所选申请中可能存在无效的,或已经申请的纪录!\r\n请在点击未申批导航!");
return false;
}else if(varPassFlag==1){
alert("所选申请已经审批!");
return false;
}else if(varPassFlag==2){
alert("对不起,所选申请是无效的!");
return false;
}
var strPubId = getSelectRsFromForm("RSID",form1);
if(strPubId!="ERROR"){
if(confirm("确定要将选中申请审核通过吗?")){
var strHref = "<%=site.bean.SitePara.strVirtualName%>/member/memnewscomment.do?action=pass&iid=<%=strMenuId%>&passFlag=1&id=" + strPubId + "&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
}
}
}
function delOption(strPbId){
if(strPbId!=""){
if(confirm("确定要删除此搜索竞价信息吗?")){
//strPbId="'"+strPbId+"'";
var strHref = "<%=site.bean.SitePara.strVirtualName%>/member/memnewscomment.do?action=del&iid=<%=strMenuId%>&id=" + strPbId + "&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
}else{
var strPubId = getSelectRsFromForm("RSID",form1);
if(strPubId!="ERROR"){
if(confirm("确定要删除此搜索竞价信息吗?")){
var strHref = "<%=site.bean.SitePara.strVirtualName%>/member/memnewscomment.do?action=del&iid=<%=strMenuId%>&id=" + strPubId + "&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
}
}
}
function invalOption(strPbId,varPassFlag){
if(strPbId!=""){
if(varPassFlag==2){
alert("对不起,该申请已经处于无效状态!");
return;
}
if(confirm("确定要将该申请设为无效吗?")){
//strPbId="'"+strPbId+"'";
var strHref = "<%=site.bean.SitePara.strVirtualName%>/member/memnewscomment.do?action=inval&iid=<%=strMenuId%>&passFlag=2&id=" + strPbId + "&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
}else{
var strPubId = getSelectRsFromForm("RSID",form1);
if(strPubId!="ERROR"){
if(confirm("确定要将该申请设为无效吗?")){
var strHref = "<%=site.bean.SitePara.strVirtualName%>/member/memnewscomment.do?action=inval&iid=<%=strMenuId%>&passFlag=2&id=" + strPubId + "&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
}
}
}
// 审批
function editOpen(strPbId){
if(strPbId!=""){
//alert('<%=strSkinBase%>/newscomment/editNewsComment.jsp?iid=<%=strMenuId%>&id='+strPbId);
openWindow('<%=strOfficeStyle%>/commentmng/editNewsComment.jsp?iid=<%=strMenuId%>&id='+strPbId,'800','540');
}
return false;
}
// 设置搜索条件
function setSearchTj(strId,strKeyWord,strPrice,strType,strItem){
document.getElementById("id").value = strId;
document.getElementById("keyWord").value = strKeyWord;
document.getElementById("price").value = strPrice;
document.getElementById("jjStyle").value = strType;
document.getElementById("jjItem").value = strItem;
document.searchForm.submit();
}
//-->
</SCRIPT>
</head>
<body width="100%" border="0" cellspacing="0" cellpadding="0">
<%@ include file="../top.jsp"%>
<div id="screen">
<!--content-->
<div id="contentfloat">
<div id="content">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> </tr>
<tr>
<td width="79%" class="TableContentTitle"><img src="../member/stand/images/xiugai.gif" width="25" height="28" align="absmiddle" /> 评论管理</td>
<td width="21%" class="TableContentTitle " align="right"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2" bgcolor="#ff7b0f"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td height="20" align="right" class="small1">
<strong>
<font color='<%="0".equals(strSltFlag)?"#ADA61D":"blue"%>' style="cursor:hand" onclick="javascript:window.location='?typeFlag=<%=strTypeFlag%>&action=list&iid=<%=strMenuId%>&sltFlag=0'">
全部
</font> |
<font color='<%="1".equals(strSltFlag)?"#ADA61D":"blue"%>' style="cursor:hand" onclick="javascript:window.location='?typeFlag=<%=strTypeFlag%>&action=list&sltFlag=1&passFlag=1&iid=<%=strMenuId%>'">
已审批
</font> |
<font color='<%="2".equals(strSltFlag)?"#ADA61D":"blue"%>' style="cursor:hand" onclick="javascript:window.location='?typeFlag=<%=strTypeFlag%>&action=list&sltFlag=2&passFlag=0&iid=<%=strMenuId%>'">
未审批
</font><!-- |
<font color='<%="3".equals(strSltFlag)?"#ADA61D":"blue"%>' style="cursor:hand" onclick="javascript:window.location='?typeFlag=<%=strTypeFlag%>&action=list&sltFlag=3&repFlag=1&iid=<%=strMenuId%>'">
已回复
</font> |
<font color='<%="4".equals(strSltFlag)?"#ADA61D":"blue"%>' style="cursor:hand" onclick="javascript:window.location='?typeFlag=<%=strTypeFlag%>&action=list&sltFlag=4&repFlag=0&iid=<%=strMenuId%>'">
未回复
</font>-->
</strong>
</td>
<td align="right"> </td>
</tr>
</table>
<table border="0" width="100%" cellpadding="3" class="small" cellspacing="1">
<tr>
<td>
<form name="form1" id="form1">
<%
if(lists.size()>0){
for(int i=0;i<lists.size();i++){
site.bean.MemNewsCommentObj newsCommentObj = (site.bean.MemNewsCommentObj)lists.get(i);
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class=list_lb_loca>
<tr bgcolor="#DBD5EA" height="26" class="list_lb_title">
<td colspan="4" class="list_lb_title">
<a title="点击查看更多评论" href="?typeFlag=<%=strTypeFlag%>&action=listOne&sltFlag=<%=strSltFlag%>&iid=<%=strMenuId%>&newsId=<%=newsCommentObj.getStrNewsId()%>">
<b><%=newsCommentObj.getStrNewsTitle()%></b>
</a>
</td>
</tr>
<%
java.util.ArrayList newsComLists=newsCommentObj.getCommentLists();
if(newsComLists!=null && newsComLists.size()>0){
for(int m=0;m<newsComLists.size();m++){
site.bean.MemNewsCommentObj tempObj=(site.bean.MemNewsCommentObj)newsComLists.get(m);
%>
<tr height="20" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#BFDFFF'">
<td width="59%" class="list_lb_content" align="left">
<%
String reContentTemp=" ";
site.util.StrTool strTool=new site.util.StrTool(tempObj.getStrComContent());
if(!igec.util.Tool.IsEmpty(tempObj.getStrComContent())){
if(strTool.length()>72){
reContentTemp=strTool.substring(0,72)+"...";
}else
reContentTemp=tempObj.getStrComContent();
}
%>
<div align="left"><a title="点击查看详情" href="javascript:" onClick="javascript:openWindow('<%=igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieAdminTheme,"stand")%>/commentmng/viewNewsComment.jsp?iid=<%=strMenuId%>&id=<%=tempObj.getStrId()%>','800','480');"><font color="#00a666" onmouseover="this.style.color='#001818';" onmouseout="this.style.color='#00a666';"><%=reContentTemp%></font></a></div>
</td>
<td width="17%" height="20" colspan="-5" align="center" class=list_lb_content>
<%=tempObj.getStrUpdTime()==null?" ":tempObj.getStrUpdTime().substring(0,19)%>
</td>
<td width="6%" height="20" align="center" class=list_lb_content>
<%="0".equals(tempObj.getStrPassFlag())?"隐藏":"显示"%>
</td>
<td width="18%" height="20" align="center" class=list_lb_content>
<a href="javascript:" onClick="javascript:editOpen('<%=tempObj.getStrId()%>');">编辑</a>
<a href="javascript:" onClick="javascript:passOption('<%=tempObj.getStrId()%>',<%=tempObj.getStrPassFlag()%>);">审批</a> <a href="javascript:" onClick="javascript:delOption('<%=tempObj.getStrId()%>');">删除</a><!-- <a href="javascript:" onClick="javascript:openWindow('<%=igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieAdminTheme,"stand")%>/commentmng/replaynewsComment.jsp?iid=<%=strMenuId%>&id=<%=tempObj.getStrId()%>','800','480');">回复</a>--></td>
</tr>
<%
}
}else{
%>
<tr height="20">
<td width="60%" bgcolor="#FFFFFF" height="20" collspan="4" align="center">
没有相关的评论
</td>
</tr>
<%
}
%>
</table>
<%
}
}else{
%>
<table border="0" width="100%" cellpadding="3" cellspacing="1" class="list_lb_border">
<tr bgcolor="#DBD5EA" height="26">
<td colspan="4" class="list_lb_title">没有您要查询的记录</td>
</tr>
<tr height="20" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#BFDFFF'">
<td width="64%" bgcolor="#FFFFFF" height="20" class="list_lb_content">
</td>
<td width="16%" height="20" colspan="-5" align="center" bgcolor="#FFFFFF" class="list_lb_content">
</td>
<td width="6%" height="20" align="center" bgcolor="#FFFFFF" class="list_lb_content">
</td>
<td width="14%" height="20" align="center" bgcolor="#FFFFFF" class="list_lb_content"></td>
</tr>
</table>
<%}%>
</form>
</td>
</tr>
</table>
<br>
<div align="center"><br>
<span class="big3"> <%=info.getStrValue5()%></span>
</div>
<br>
<form action="?" method="get" name="searchForm" id="searchForm" target="_self">
</form>
<br />
<br />
<script language=javascript>
document.onkeydown=nextpage
function nextpage(event) {
event = event ? event : (window.event ? window.event : null);
if (event.keyCode==13) userlogin();
}
</script>
<script language="JavaScript">
function userlogin(){
document.loginform.submit();
}
</script>
</div>
</div>
<!--end/content-->
<!--left-->
<div id="leftmenu">
<!--menu-->
<div id="tree1"></div>
<!--end/menu-->
</div>
<!--end/left-->
</div>
<script language="javascript" src="<%=strOfficeStyle%>/menu.jsp?iid=<%=request.getParameter("iid")%>"></script>
<script type="text/javascript">treeInit();</script>
<%@ include file="../bot.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -