myFriends.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:5k
- <%@ 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="cfc" scope="page" class="com.gamvan.club.user.ClubFriendsCollection"/>
- <%
- if(gvUserName==null || gvUserName.equals("")){
- out.print(prtCenter("您尚未登陆,无权进行此项操作!","userLogin.jsp",1));
- out.close();
- }
- int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
- if(iPage<1)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">
- <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/main.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">gv_showWait('waitDiv', 1); </SCRIPT>
- <script language="javascript" type="text/javascript">
- prtie2('<%=clubTitle%>__好朋友');
- </script>
- <%@ include file="./GVinc/userMenu.jsp" %>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr class="tab1">
- <td>
- <%=com.gamvan.club.ClubHtmlConst.gamvan_menu("<a href="userBox.jsp">我的工具箱</a>>>好朋友")%>
-
- [<a href="./myFriendAdd.jsp">添加好友</a>] [<a href="./myFriends.jsp">朋友列表</a>]
- </td>
- </tr>
- </table>
- <table width="99%" 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>
- <%
- cfc.setUserMeID(gvUserID);
- int totalPage = cfc.myFriendsListCount();
- int isOnLine = 0;
- out.print(cfc.getMessage());
- %>
- <c:forEach var="f" items="<%=cfc.myFriendsList(iPage, 30)%>">
- <c:set value="${f.userFriendID}" target="${cuc}" property="userID"/>
- <c:set value="${f.userFriendID}" target="${col}" property="onUserID"/>
- <%
- cui = cuc.userInfo();
- if(col.isOnline()){
- isOnLine = 1;
- }else{
- isOnLine = 0;
- }
- %>
- <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="99%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr><td>
- <%=OutPrint.pageJump(totalPage,30, iPage, "myFriends.jsp?")%></td>
- </tr>
- </table>
- <%=Gfoot()%>
- </body>
- </html>