- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="./GVinc/gvImport.jsp" %>
- <jsp:useBean id="gm" scope="page" class="com.gamvan.tools.Gmail"/>
- <jsp:useBean id="cti" scope="page" class="com.gamvan.club.topic.ClubTopicInfo"/>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <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" />
- <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; 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>
- <script type="text/javascript" src="GVscript/GVtopCode.js"></script>
- <script language="javascript" src="GVscript/GVrunCode.js"></script>
- <script type="text/javascript" src="GVscriptInc/topBar.js"></script>
- <script language="javascript" type="text/javascript" src="./GVscript/GVpost.js"></script>
- <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr class="tab1"><td>
- <%=com.gamvan.club.ClubHtmlConst.gamvan_menu("推荐佳作给朋友")%>
- </td></tr></table>
- <%
- int tID=ParamUtils.getIntParameter(request,"tID");
- ccID=ParamUtils.getIntParameter(request,"ccID");
- if(tID<=0){
- out.print(errs(3,"您所请求的页面不存在或已被删除!"));
- out.close();
- if(true) return;
- }
- String userEmail="";
- if(gvUserID>0){
- cuc.setUserID(gvUserID);
- cui = (ClubUserItem)cuc.userInfo();
- if(cui!=null)
- userEmail = cui.getUserEmail();
- }
- if(request.getMethod().equals("POST")){
- String content = "";
- String fromEmail = request.getParameter("fromEmail");
- String fromName = request.getParameter("fromName");
- String toName = request.getParameter("toName");
- String toEmail = request.getParameter("toEmail");
- content = ">>"+toName+":你好!n";
- content += ">>您的朋友"+fromName+"从<"+clubName+">给您推荐一篇帖子n";
- content += ">>以下是详细内容nn";
- content += request.getParameter("content").trim();
- content += "nn>>>>>>本邮件回复地址为: "+fromEmail+" <<<<<<";
- gm.setFromEmail(fromEmail);
- gm.setFromName(fromName);
- gm.setToEmail(toEmail);
- gm.setToName(toName);
- gm.setSubject("来自<"+clubName+">的推荐信");
- gm.setContent(content);
- gm.setSmtpServer(clubSmtp);
- gm.setSmtpID(clubSmtpID);
- gm.setSmtpPass(clubSmtpPass);
- gm.setSmtpPort(clubSmtpPort); //验证服务器端口
- gm.setNeedSSL(clubSmtpSSL); //验证服务器要加密
- if(clubSmtpUsePass==1){
- gm.setNeedAuth("true");
- }else{
- gm.setNeedAuth("false");
- }
- try{
- gm.mailSender();
- }catch(Exception e){
- out.print(e.toString());
- }
- out.print(prtCenter(gm.getMessage(),clubUrl+"/club/clubPage.jsp?ccID="+ccID+"&tID="+tID+"",1));
- out.print(Gfoot());
- out.close();
- if(true)return;
- }
- %>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <form name="form1" id="form1" method="post" action="" onSubmit="postMsg();">
- <tr class="tab2">
- <td width="120" class="td"><strong>您的名字 :
- </strong></td>
- <td width="626" valign="middle" class="bg0">
- <input value="<%=gvUserName%>" name="fromName" type="text" id="fromName" size="30" maxlength="1000" />
- </td>
- </tr>
- <tr class="tab2">
- <td class="td"><strong>您的Email:</strong></td>
- <td valign="middle" class="bg0">
- <input value="<%=userEmail%>" name="fromEmail" type="text" id="fromEmail" size="30" maxlength="1000" />
- (朋友回邮给您时的地址)</td>
- </tr>
- <tr class="tab2">
- <td class="td"><strong>朋友的名字:</strong></td>
- <td valign="middle" class="bg0">
- <input name="toName" type="text" id="toName" size="30" maxlength="1000" />
- </td>
- </tr>
- <tr class="tab2">
- <td class="td"><strong>朋友的Email:</strong></td>
- <td valign="middle" class="bg0"><input name="toEmail" type="text" id="toEmail" size="30" maxlength="1000" /></td>
- </tr>
- <tr class="tab2">
- <td class="td"><strong>内容:</strong></td>
- <td valign="middle" class="bg0">
- <textarea name="content" cols="60" rows="10">
- 我在<%=clubName%>发现了一篇很棒的帖子
- 帖子主题是:<%
- try{
- ClubTopicItem ctii = (ClubTopicItem)cti.topicInfo(tID,0,(byte)0);
- out.print(ctii.getTopic());
- }catch(Exception e){
- }
- %>
- 点击下面的链接可以查看详细内容:
- <%=clubUrl%>/club/clubPage.jsp?ccID=<%=ccID%>&tID=<%=tID%>
- </textarea>
- </td>
- </tr>
- <tr class="tab2">
- <td height="30" class="td"> </td>
- <td valign="middle" class="tab2">
- <input name="gvSubmit" type="submit" id="gvSubmit" value="发送给朋友" />
-
- <input type="button" name="gvBack" value="取消" onClick="javascript:history.back();"/>
- </td>
- </tr></form>
- </table>
- <%@ include file="GVinc/gvOnlineArea.jsp" %>
- <%=Gfoot()%>
- </body>
- </html>
- <!-- Powered by www.GamVan.com -->