📄 site.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");
String strMenuId = request.getParameter("iid");
//System.out.prinln( "strMenuId :"+ strMenuId);
igec.site.base.bean.UserObj user = (igec.site.base.bean.UserObj)request.getAttribute("user");
java.util.ArrayList lists = (java.util.ArrayList)request.getAttribute("lists");
igec.site.base.bean.StandSysObj info = (igec.site.base.bean.StandSysObj)request.getAttribute("info");
if(lists==null || info==null || user==null){
showMsg("获取数据失败!",request,response);
return;
}
int iHasSitePv = igec.site.base.business.PurviewBusiness.hasServicePurviewOk("S00014","",user);
if(iHasSitePv<0){
showMsg("不具备此项功能!",request,response);
return;
}
%>
<!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=GBK" />
<title> 会员办公室--<%=site.bean.SitePara.strWebTitle%> </title>
<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>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/member/js/public.js"></script>
<link rel="shortcut icon" href="<%=site.bean.SitePara.strVirtualName%>/favicon.ico">
<script language="javascript">
<!--
//-->
</script>
</head>
<body>
<%@ include file="../top.jsp"%>
<div id="screen">
<!--content-->
<div id="contentfloat">
<div id="content">
<!-- 开始正文内容 -->
<table width="100%" border="0" align="center" class="list_lb_border">
<tr>
<td colspan="2" align="center" class="list_lb_title"><strong>企 业 新 闻 管 理</strong></td>
</tr>
<tr>
<td width="70" class="TableData"><strong>管理导航:</strong></td>
<td class="TableData"><a href="?iid=<%=strMenuId%>&action=site">管理首页</a> | <a href="?action=add&iid=<%=strMenuId%>">文章发布</a></td>
</tr>
</table>
<%
String strCurPath = "";
String strCurTopClassId = "";
String strCurClassName = "";
String strTopClassId = info.getStrValue5();
if(iHasSitePv>=0){
//倒着搜索当前的完整路径
while(!"0".equals(strTopClassId)){
String strTemp[] = igec.site.base.business.DataUtilBusiness.getValue("SELECT TITLE,PARENTID FROM TAB_MEBCLASS WHERE ID='" + strTopClassId + "'");
if(strTemp!=null && strTemp.length==2){
strCurPath = " >> <a href=\"?iid=" + strMenuId + "&classId=" + strTopClassId + "&action=site\">" + strTemp[0] + "</a>" + strCurPath;
if("0".equals(strTemp[1])){
strCurTopClassId = strTopClassId;
}
strTopClassId = strTemp[1];
}else{
strTopClassId = "0";
}
}
%>
<table width="100%" border="0" align="center" >
<tr><td height="22" >
<%
String strCurForumName = "";
String strTopClass[][] = null;
strTopClass = igec.site.base.business.DataUtilBusiness.getValues("SELECT ID,TITLE FROM TAB_MEBCLASS WHERE MEBID='" + user.getStrUserId() + "' AND PARENTID='0' AND TYPEFLAG='0' AND POSID='S00020' ORDER BY XH");
if(strTopClass!=null){
for(int i=0;i<strTopClass.length;i++){
if(strCurTopClassId.equals(strTopClass[i][0])){
strCurClassName = strTopClass[i][1];
out.println(" | <a href=\"?iid=" + strMenuId + "&classId=" + strTopClass[i][0] + "&action=site\"><font color=\"#FF0000\">" + strTopClass[i][1] + "</font></a>");
}else{
out.println(" | <a href=\"?iid=" + strMenuId + "&classId=" + strTopClass[i][0] + "&action=site\">" + strTopClass[i][1] + "</a>");
}
}
}
%>
</td></tr>
</table>
<%
}
%>
<table width="100%" border="0" align="center" class="list_lb_border">
<tr>
<td height="22" class="list_lb_title">您现在的位置: <a href="?iid=<%=strMenuId%>&action=site">文章管理</a><%=strCurPath%> >> 所有文章</td>
</tr>
</table>
<br>
<table border="0" width="100%" >
<form name="form1" id="form1">
<tr height="22">
<td align="center" class="list_lb_title"><strong>文章标题</strong></td>
<td width="6%" align="center" class="list_lb_title" nowrap><strong>点击数</strong></td>
<td width="10%" align="center" class="list_lb_title" nowrap><strong>发表时间</strong></td>
<td align="center" width="15%" class="list_lb_title" nowrap><strong>操作</strong></td>
</tr>
<%
for(int i=0;i<lists.size();i++){
igec.site.base.bean.StandSysObj sso = (igec.site.base.bean.StandSysObj)lists.get(i);
%>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td class=list_lb_content2>
<%
if(iHasSitePv>=0){
String strClassArray[] = igec.site.base.business.DataUtilBusiness.getValue("SELECT ID,TITLE FROM TAB_MEBCLASS WHERE ID=(SELECT CLASSID FROM TAB_ARTICLELIST WHERE NEWSID='" + sso.getStrValue1() + "' AND TYPE='1')");
if(strClassArray!=null && strClassArray.length==2){
out.print("[<a href=\"?classId=" + strClassArray[0] + "&iid=" + strMenuId + "&action=site\">" + strClassArray[1] + "</a>]");
}
}
%>
<a href="?action=preview&iid=<%=strMenuId%>&id=<%=sso.getStrValue1()%>" title="点击预览" target="_blank"><%if("1".equals(sso.getStrValue7())) out.print("(<font color=\"#FF0000\">图</font>)");%><%=sso.getStrValue3()%></a><%if("1".equals(sso.getStrValue6())) out.print("(<font color=\"#0000FF\">已投稿</font>)");%>
<!--<a href="javascript:openWindow('stand/article/addComent.jsp?newsId=<%=sso.getStrValue1()%>&iid=<%=strMenuId%>','500','400');" title="点击进行评论">[评论]</a>--></td>
<td align="center" class=list_lb_content nowrap><%=sso.getStrValue4()%></td>
<td align="center" class=list_lb_content nowrap><%=igec.util.Tool.getStrTime(sso.getStrValue5(),0)%></td>
<td align="center" class=list_lb_content nowrap>
<a href="?action=edit&id=<%=sso.getStrValue1()%>&iid=<%=strMenuId%>&articleType=site">修改</a>
<a href="javascript:" onclick="return delRs('?action=del&iid=<%=strMenuId%>&id=<%=sso.getStrValue1()%>');">删除</a>
</td>
</tr>
<%}%>
</form>
</table>
<%if(false){%>
<br>
<table width="100%" border="0" class="TableContent" style="display:none">
<tr>
<td height="30" width="10%" class="TableControl" nowrap>
</td>
<td class="TableControl" align="right">
<input type="button" name="button54" value="将选定的文章移动到" onClick="javascript:moveNews();">
<select name="TargetClassID"><script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/dynamic/js/bbsType.jsp"></script>
</select>
</td>
</tr>
</table>
<%}%>
<br>
<div align="center"><font style="font-size:12px"><%=info.getStrValue10()%></font></div>
<%
if(iHasSitePv>=0){
if(!igec.util.Tool.IsEmpty(strCurTopClassId) && !"0".equals(strCurTopClassId)){
//取其下级分类的数据
String strSonClass[][] = igec.site.base.business.DataUtilBusiness.getValues("SELECT ID,TITLE FROM TAB_MEBCLASS WHERE PARENTID='" + strCurTopClassId + "' ORDER BY XH");
if(strSonClass!=null && strSonClass.length>0){
%>
<br>
<table width="100%" border="0" align="center" class="TableContent">
<tr height="20">
<td width="150" align="right" class="TableControl">【<a href="?iid=<%=strMenuId%>&classId=<%=info.getStrValue5()%>"><%=strCurClassName%></a>】子板块导航:</td>
<td class="TableControl">
<%
for(int i=0;i<strSonClass.length;i++){
out.println(" <a href=\"?iid=" + strMenuId + "&classId=" + strSonClass[i][0] + "\">" + strSonClass[i][1] + "</a>");
}
%>
</td></tr>
</table>
<%}}}%>
<!-- 结束正文内容 -->
</div>
</div>
<!--end/content-->
<!--left-->
<div id="leftmenu">
<!--menu-->
<div id="tree1"></div>
<!--end/menu-->
</div>
<!--end/left-->
</div>
<%
String strCid = igec.util.Tool.getStr(request.getParameter("cid"));
if(igec.util.Tool.IsEmpty(strCid)){
strCid = igec.util.Tool.getStr(request.getParameter("iid"));
}
%>
<script language="javascript" src="<%=strOfficeStyle%>/menu.jsp?iid=<%=strCid%>"></script>
<%@ include file="../bot.jsp"%>
<script language="javascript">
<!--
treeInit();
//-->
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -