📄 index.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");
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.SysObj info = (igec.site.base.bean.SysObj)request.getAttribute("info");
if(lists==null || info==null || user==null){
showMsg("获取数据失败!",request,response);
return;
}
int iHasBlogPv = igec.site.base.business.PurviewBusiness.hasServicePurviewOk("S00007","",user);
int iHasSitePv = igec.site.base.business.PurviewBusiness.hasServicePurviewOk("S00014","",user);
%>
<!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">
<!--
function delLinkRs(strDelId){
if(strDelId==""){
strDelId = getSelectRsFromForm("RSID",form1);
if(strDelId!="ERROR"){
if(confirm("确定要删除选中的友情链接吗?")){
var strHref = "?action=del&iid=<%=strMenuId%>&id=" + strDelId + "&mr=" + Math.random();
__XmlHttpPool__.PostRemoteData(strHref,function onGetData(strContent){on_aJax_GetReceiveData(strContent,"");},"");
}
}
}else{
delRs('?action=del&iid=<%=strMenuId%>&id=' + strDelId);
}
}
//-->
</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%>">管理首页</a> | <a href="?action=add&iid=<%=strMenuId%>">添加新链接</a> | <a href="?action=sort&iid=<%=strMenuId%>">链接排序</a></td>
</tr>
</table>
<br>
<table width="100%" border="0" align="center" class="list_lb_border">
<tr>
<td height="22" class="list_lb_title">您现在的位置: <a href="?iid=<%=strMenuId%>">友情链接管理</a> >> 所有链接</td>
</tr>
</table>
<br>
<table border="0" width="100%" >
<form name="form1" id="form1">
<tr height="22">
<td width="5%" align="center" class="list_lb_title" nowrap><strong>选中</strong></td>
<td align="center" class="list_lb_title"><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 align="center" class=list_lb_content nowrap>
<input name="RSID" type="checkbox" id="RSID" value="<%=sso.getStrValue1()%>"></td>
<td class=list_lb_content>
<%
if(iHasBlogPv>=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='0')");
if(strClassArray!=null && strClassArray.length==2){
out.print("[<a href=\"?classId=" + strClassArray[0] + "&iid=" + strMenuId + "\">" + strClassArray[1] + "</a>]");
}
}
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 + "\">" + strClassArray[1] + "</a>]");
}
}
%>
<a href="<%=sso.getStrValue4()%>" target="_blank"><%=sso.getStrValue3()%></a></td>
<td align="center" class=list_lb_content nowrap><%=igec.util.Tool.getStrTime(sso.getStrValue8(),0)%></td>
<td align="center" class=list_lb_content nowrap>
<a href="?action=edit&id=<%=sso.getStrValue1()%>&iid=<%=strMenuId%>">修改</a>
<a href="javascript:" onclick="return delLinkRs('<%=sso.getStrValue1()%>');">删除</a>
</td>
</tr>
<%}%>
</form>
</table>
<br>
<table width="100%" border="0" style="display:">
<tr>
<td height="30" width="10%" class="list_lb_title" nowrap>
<input name="chkAll" type="checkbox" id="chkAll" onclick="checkAll(this,'RSID',form1);" value="checkbox"> 选中本页显示的所有链接
</td>
<td class="list_lb_title" >
<input name="button4" type="button" value="删除选定的链接" onClick="javascript:delLinkRs('');" title="将选定的所有链接信息删除">
</td>
</tr>
</table>
<br>
<div align="center"><font style="font-size:12px"><%=info.getStrValue5()%></font></div>
<!-- 结束正文内容 -->
</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>
<%@ include file="../bot.jsp"%>
<script language="javascript">
<!--
treeInit();
//-->
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -