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

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

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="./GVinc/gvImport.jsp" %> 
  3. <jsp:useBean id="gm" scope="page" class="com.gamvan.tools.Gmail"/>
  4. <jsp:useBean id="cti" scope="page" class="com.gamvan.club.topic.ClubTopicInfo"/>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <title><%=clubTitle%>__推荐文章</title>
  9. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  10. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  11. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  12. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  13. <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
  14. </head>
  15. <body>
  16. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
  17. <TABLE cellPadding=6 border=0>
  18. <TBODY><TR><TD align=middle>
  19. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  20. <BR>
  21. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  22. <script type="text/javascript" src="GVscript/GVtopCode.js"></script>
  23. <script language="javascript" src="GVscript/GVrunCode.js"></script>
  24. <script type="text/javascript" src="GVscriptInc/topBar.js"></script>
  25. <script language="javascript" type="text/javascript" src="./GVscript/GVpost.js"></script>
  26. <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  27. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  28. <tr class="tab1"><td>
  29. <%=com.gamvan.club.ClubHtmlConst.gamvan_menu("推荐佳作给朋友")%>
  30. </td></tr></table>
  31. <%
  32. int tID=ParamUtils.getIntParameter(request,"tID");
  33. ccID=ParamUtils.getIntParameter(request,"ccID");
  34. if(tID<=0){
  35. out.print(errs(3,"您所请求的页面不存在或已被删除!"));
  36. out.close();
  37. if(true) return;
  38. }
  39. String userEmail="";
  40. if(gvUserID>0){
  41. cuc.setUserID(gvUserID);
  42. cui = (ClubUserItem)cuc.userInfo();
  43. if(cui!=null)
  44. userEmail = cui.getUserEmail();
  45. }
  46. if(request.getMethod().equals("POST")){
  47. String content = "";
  48. String fromEmail = request.getParameter("fromEmail");
  49. String fromName = request.getParameter("fromName");
  50. String toName = request.getParameter("toName");
  51. String toEmail = request.getParameter("toEmail");
  52. content = ">>"+toName+":你好!n";
  53. content += ">>您的朋友"+fromName+"从<"+clubName+">给您推荐一篇帖子n";
  54. content += ">>以下是详细内容nn";
  55. content +=  request.getParameter("content").trim();
  56. content += "nn>>>>>>本邮件回复地址为:  "+fromEmail+"  <<<<<<";
  57. gm.setFromEmail(fromEmail);
  58. gm.setFromName(fromName);
  59. gm.setToEmail(toEmail);
  60. gm.setToName(toName);
  61. gm.setSubject("来自<"+clubName+">的推荐信");
  62. gm.setContent(content);
  63. gm.setSmtpServer(clubSmtp);
  64. gm.setSmtpID(clubSmtpID);
  65. gm.setSmtpPass(clubSmtpPass);
  66. gm.setSmtpPort(clubSmtpPort); //验证服务器端口
  67. gm.setNeedSSL(clubSmtpSSL); //验证服务器要加密
  68. if(clubSmtpUsePass==1){
  69. gm.setNeedAuth("true");
  70. }else{
  71. gm.setNeedAuth("false");
  72. }
  73. try{
  74. gm.mailSender();
  75. }catch(Exception e){
  76. out.print(e.toString());
  77. }
  78. out.print(prtCenter(gm.getMessage(),clubUrl+"/club/clubPage.jsp?ccID="+ccID+"&tID="+tID+"",1));
  79. out.print(Gfoot());
  80. out.close();
  81. if(true)return;
  82. }
  83. %>
  84. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  85. <form name="form1" id="form1" method="post" action="" onSubmit="postMsg();">
  86. <tr class="tab2">
  87. <td width="120" class="td"><strong>您的名字 :
  88. </strong></td>
  89. <td width="626" valign="middle" class="bg0">
  90. <input value="<%=gvUserName%>" name="fromName" type="text" id="fromName" size="30" maxlength="1000" />
  91. </td>
  92. </tr>
  93.   <tr class="tab2">
  94.     <td class="td"><strong>您的Email:</strong></td>
  95.     <td valign="middle" class="bg0">
  96. <input value="<%=userEmail%>" name="fromEmail" type="text" id="fromEmail" size="30" maxlength="1000" />
  97.       (朋友回邮给您时的地址)</td>
  98.   </tr>
  99.   <tr class="tab2">
  100.     <td class="td"><strong>朋友的名字:</strong></td>
  101.     <td valign="middle" class="bg0">
  102. <input name="toName" type="text" id="toName" size="30" maxlength="1000" />
  103. </td>
  104.   </tr>
  105.   <tr class="tab2">
  106.     <td class="td"><strong>朋友的Email:</strong></td>
  107.     <td valign="middle" class="bg0"><input name="toEmail" type="text" id="toEmail" size="30" maxlength="1000" /></td>
  108.   </tr>
  109.   <tr class="tab2">
  110.     <td class="td"><strong>内容:</strong></td>
  111.     <td valign="middle" class="bg0">
  112. <textarea name="content" cols="60" rows="10">
  113. 我在<%=clubName%>发现了一篇很棒的帖子
  114. 帖子主题是:<%
  115. try{
  116. ClubTopicItem ctii = (ClubTopicItem)cti.topicInfo(tID,0,(byte)0);
  117. out.print(ctii.getTopic());
  118. }catch(Exception e){
  119. }
  120. %>
  121. 点击下面的链接可以查看详细内容:
  122. <%=clubUrl%>/club/clubPage.jsp?ccID=<%=ccID%>&tID=<%=tID%>
  123. </textarea>
  124. </td>
  125.   </tr>
  126.   <tr class="tab2">
  127.     <td height="30" class="td">&nbsp;</td>
  128.     <td valign="middle" class="tab2">
  129. <input name="gvSubmit" type="submit" id="gvSubmit" value="发送给朋友" />
  130. &nbsp;&nbsp;
  131. <input type="button" name="gvBack" value="取消" onClick="javascript:history.back();"/>
  132.     </td>
  133.   </tr></form>
  134. </table>
  135. <%@ include file="GVinc/gvOnlineArea.jsp" %>
  136. <%=Gfoot()%>
  137. </body>
  138. </html>
  139. <!-- Powered by www.GamVan.com -->