說明:修改1:e/admin/tool/ReGook.php /*回復表單*/
43行處添加代碼
-----------------------------------------------------------------------------------------------
復制代碼 代碼如下:
<input name="email" type="hidden" id="email" value="<?=$r[email]?>"> /*取用戶EMIAL地址*/
<input name="lytext" type="hidden" id="lytext" value="<?=$r[lytext]?>"> /*取用戶留言信息*/
-----------------------------------------------------------------------------------------------
67行添加表單選擇項
------------------------------------------------------------------------------------------------------------------
<tr bgcolor="#FFFFFF"> <td height="25">通知書友:</td> <td height="25"> <input name="checked[]" type="checkbox" id="checked[]" value="" title="發Emial通知書友" style="background:#99C4E3"> <span style="color:red"> 書友Email:<?=$r[email]?> </span> </td> </tr>
---------------------------------------------------------------------------------------------------------------------
修改2:
e/admin/tool/gbook.php 添加一行:
include("../../class/SendEmail.inc.php");
30行代碼
----------------------------------------------------------
elseif($enews=="ReGbook") { $lyid=$_POST['lyid']; $bid=$_POST['bid']; $retext=$_POST['retext']; ReGbook($lyid,$retext,$bid,$logininid,$loginin); }
----------------------------------------------------------
修改成:
----------------------------------------------------------
elseif($enews=="ReGbook") { $lyid=$_POST['lyid']; $bid=$_POST['bid']; $retext=$_POST['retext']; $email=$_POST['email']; $lytext=$_POST['lytext']; $checked=(int)$_POST['checked']; if($checked)//發送 { EcmsToSendMail($email,$lytext,$retext); } ReGbook($lyid,$retext,$bid,$logininid,$loginin); }
以上所述就是本文的全部內容了,希望大家能夠喜歡。