myFriends.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:5k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8"
  2.  session="true" errorPage="err.jsp" %>
  3. <%@ include file="./GVinc/gvImport.jsp" %>
  4. <jsp:useBean id="cmf" scope="page" class="com.gamvan.club.user.ClubMyFriends"/>
  5. <jsp:useBean id="cfc" scope="page" class="com.gamvan.club.user.ClubFriendsCollection"/>
  6. <%
  7. if(gvUserName==null || gvUserName.equals("")){
  8. out.print(prtCenter("您尚未登陆,无权进行此项操作!","userLogin.jsp",1));
  9. out.close();
  10. }
  11. int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
  12. if(iPage<1)iPage=1;
  13. if(request.getMethod().equals("POST")){
  14. cmf.friendDel(request.getParameterValues("cfID"));
  15. out.print(prtCenter(cmf.getMessage(),"myFriends.jsp",1));
  16. out.close();
  17. if(true)return;
  18. }
  19. %><html xmlns="http://www.w3.org/1999/xhtml">
  20. <head>
  21. <title>我的好友  <%=clubTitle%></title>
  22. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  23. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  24. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  25. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  26. <STYLE type=text/css media=screen>
  27. @import url(./GVinc/main.css);
  28. </STYLE>
  29. </head>
  30. <body>
  31. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 30%; TEXT-ALIGN: center">
  32. <TABLE cellPadding=6 border=0>
  33. <TBODY><TR><TD align=middle>
  34. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  35. <BR>
  36. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  37. <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0  height=0></IFRAME>
  38. <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
  39. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  40. <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  41. <script language="javascript" type="text/javascript">
  42. prtie2('<%=clubTitle%>__好朋友');
  43. </script>
  44. <%@ include file="./GVinc/userMenu.jsp" %>
  45. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  46. <tr class="tab1">
  47. <td>
  48. <%=com.gamvan.club.ClubHtmlConst.gamvan_menu("<a href="userBox.jsp">我的工具箱</a>&gt;&gt;好朋友")%>
  49. &nbsp;&nbsp;
  50. [<a href="./myFriendAdd.jsp">添加好友</a>]&nbsp;&nbsp;[<a href="./myFriends.jsp">朋友列表</a>]
  51. </td>
  52.   </tr>
  53. </table>
  54. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  55. <form name="Gforms" id="Gforms" method="post" action="" onSubmit="javascript:postMsg();">
  56. <tr align="center" class="tr"><td height="24"><strong>朋友ID</strong></td>
  57. <td width="40"><strong>性别</strong></td><td width="120"><strong>来自</strong></td>
  58. <td width="100"><strong>注册时间</strong></td><td width="120"><strong>最后登陆</strong></td>
  59. <td width="40"><strong>状态</strong></td><td width="60"><strong>短消息</strong></td>
  60. <td width="40"><strong>选择</strong></td></tr>
  61. <%
  62. cfc.setUserMeID(gvUserID);
  63. int totalPage = cfc.myFriendsListCount();
  64. int isOnLine = 0;
  65. out.print(cfc.getMessage());
  66. %>
  67. <c:forEach var="f" items="<%=cfc.myFriendsList(iPage, 30)%>">
  68. <c:set value="${f.userFriendID}"  target="${cuc}" property="userID"/>
  69. <c:set value="${f.userFriendID}"  target="${col}" property="onUserID"/>
  70. <%
  71. cui = cuc.userInfo();
  72. if(col.isOnline()){
  73. isOnLine = 1;
  74. }else{
  75. isOnLine = 0;
  76. }
  77. %>
  78. <tr align="center" class="tab3">
  79. <td height="25">
  80. <club:users type="userName"  idIs="${f.userFriendID}" value="${f.userFriend}" bea="<%=false%>"/>
  81. </td>
  82. <td>
  83. <club:users type="userSex" value="<%=String.valueOf(cui.getUserSex())%>"/>
  84. </td><td>
  85. <club:users type="userArea" value="<%=cui.getUserArea()%>"/>,<club:users type="userCity" value="<%=cui.getUserCity()%>"/>
  86. </td><td>
  87. <club:users type="dateTime" value="<%=cui.getUserRegTime()%>"/>
  88. </td><td>
  89. <club:users type="dateTime" value="<%=cui.getUserLastTime()%>"/>
  90. </td><td>
  91. <club:users type="isOnLine" idIs="<%=isOnLine%>"/>
  92. </td><td>
  93. <club:users type="imgMessage"  idIs="${f.userFriendID}" property="${f.userFriend}"/>
  94. </td>
  95. <td>
  96. <club:users type="htmlCfID"  idIs="${f.cfID}"/>
  97. </td>
  98. </tr>
  99. </c:forEach>
  100. <tr align="center" class="tab2">
  101. <td height="25" colspan="7" align="right">
  102. <input name="gvSubmit" type="submit" class="btn" value="确定删除" /> 
  103. <input type="hidden" name="gvBack" value=""/>
  104. 全(反)选 </td>
  105.     <td>
  106. <input name="chkall" type="checkbox" id="chkall" value="on" onclick="checkAll(this.form)"/> </td>
  107.   </tr>
  108. </form>
  109. </table>
  110. <table width="99%"  border="0" align="center" cellpadding="0" cellspacing="0">
  111. <tr><td>
  112. <%=OutPrint.pageJump(totalPage,30, iPage, "myFriends.jsp?")%></td>
  113. </tr>
  114. </table>
  115. <%=Gfoot()%>
  116. </body>
  117. </html>