📄 myfriends.jsp
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8"
session="true" errorPage="err.jsp" %><%@
include file="./GVinc/gvImport.jsp" %>
<jsp:useBean id="cmf" scope="page" class="com.gamvan.club.user.ClubMyFriends"/>
<jsp:useBean id="cfr" scope="page" class="com.gamvan.club.user.ClubFriendsResults"/>
<%
if(gvUserID<1){
out.print(prtCenter("您尚未登陆,无权进行此项操作!","userLogin.jsp",1));
out.close();
if(true)return;
}
int iPage = ParamUtils.getIntParameter(request,"iPage",1);
if(request.getMethod().equals("POST")){
cmf.friendDel(request.getParameterValues("cfID"));
out.print(prtCenter(cmf.getMessage(),"myFriends.jsp",1));
out.close();
if(true)return;
}
%><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=clubTitle%> - 好好友</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META content=<%=clubMeta%> name=keywords>
<link href="./GVimgs/favicon.ico" rel="Bookmark">
<link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
<STYLE type="text/css" media="screen">
@import url(./GVinc/GamVanClubStyle.css);
</STYLE>
</head>
<body>
<DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 30%; TEXT-ALIGN: center">
<TABLE cellPadding=6 border=0>
<TBODY><TR><TD align=middle>
<IMG src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
<BR>
<FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
<IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0 height=0></IFRAME>
<script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
<script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
<script language="javascript" type="text/javascript">
gv_showWait('waitDiv', 1);
prtie2('<%=clubTitle%> - 好朋友');
</script>
<%@ include file="./GVinc/userMenu.jsp" %>
<DIV class="line"></DIV>
<DIV class="list_table_0">
<%=com.gamvan.club.ClubHtmlConst.gamvan_menu("<a href=\"userBox.jsp\">我的工具箱</a>>>好朋友")%>
[<a href="./myFriendAdd.jsp">添加好友</a>] [<a href="./myFriends.jsp">朋友列表</a>]
</DIV>
<DIV class="line"></DIV>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
<form name="Gforms" id="Gforms" method="post" action="" onSubmit="javascript:postMsg();">
<tr align="center" class="tr"><td height="24"><strong>朋友ID</strong></td>
<td width="40"><strong>性别</strong></td><td width="120"><strong>来自</strong></td>
<td width="100"><strong>注册时间</strong></td><td width="120"><strong>最后登陆</strong></td>
<td width="40"><strong>状态</strong></td><td width="60"><strong>短消息</strong></td>
<td width="40"><strong>选择</strong></td></tr>
<%
cfr.setUserMeID(gvUserID);
int totalPage = cfr.myFriendsListCount();
List list = cfr.myFriendsList(iPage, 30);
int isOnline = 0;
%>
<c:forEach var="f" items="<%=list%>">
<c:set value="${f.userFriendID}" target="${cu}" property="userID"/>
<c:set value="${f.userFriendID}" target="${col}" property="onUserID"/>
<%
cui = cu.userInfo(0);
isOnline=0;
if(col.isOnline(3)){
if(!col.getUserHide()){
isOnline=1;
}
}
%>
<tr align="center" class="tab3">
<td height="25">
<club:users type="userName" idIs="${f.userFriendID}" value="${f.userFriend}" bea="<%=false%>"/>
</td>
<td>
<club:users type="userSex" value="<%=String.valueOf(cui.getUserSex())%>"/>
</td><td>
<club:users type="userArea" value="<%=cui.getUserArea()%>"/>,<club:users type="userCity" value="<%=cui.getUserCity()%>"/>
</td><td>
<club:users type="dateTime" value="<%=cui.getUserRegTime()%>"/>
</td><td>
<club:users type="dateTime" value="<%=cui.getUserLastTime()%>"/>
</td><td>
<club:users type="isOnLine" idIs="<%=isOnline%>"/>
</td><td>
<club:users type="imgMessage" idIs="${f.userFriendID}" property="${f.userFriend}"/>
</td>
<td>
<club:users type="htmlCfID" idIs="${f.cfID}"/>
</td>
</tr>
</c:forEach>
<tr align="center" class="tab2">
<td height="25" colspan="7" align="right">
<input name="gvSubmit" type="submit" class="btn" value="确定删除" />
<input type="hidden" name="gvBack" value=""/>
全(反)选
</td><td>
<input name="chkall" type="checkbox" id="chkall" value="on" onclick="checkAll(this.form)"/>
</td>
</tr>
</form>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td>
<%=OutPrint.pageJump(totalPage,30, iPage, "myFriends.jsp?")%></td>
</tr>
</table>
<%=Gfoot()%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -