zoukankan      html  css  js  c++  java
  • 帝国留言板管理员回复发送EMAIL通知客户

    说明:修改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);

    }

     

     

  • 相关阅读:
    bind函数(c++11)
    谓词
    lambda表达式(c++11)
    重载运算符
    sizeof新用法(c++11)
    引用限定符(c++11)
    this指针和const成员函数
    JavaScript for循环元素取下标问题
    Hbuider sass配置 webstorm scss配置
    检测对象是否拥有某一属性
  • 原文地址:https://www.cnblogs.com/xiaomifeng/p/4549696.html
Copyright © 2011-2022 走看看