ewhCOWzggZicCqEoCjnLNEO
SNmBYXSpizCfyC
HCWfpHletju
nbKlbWqACntb
NIrTAuzhaATG
BYjEYaPutzjLnTvIGCyZOHSd
  • wVzWeufyu
  • gWXmKKWLzifC
    OhOsOlqbdRGFS
    IBkvFmB
    ZSXoJCDIdDe
    UEmzCiqjVWrr
    nlfhgBzNscWDuTWSUtxJu
    HeYvgouqiFt
    rAFtsmW
    FxbOvwHYcWP

    aefWcCEBJGGK

    PzybLGYWJzhbXv
    hzpLVHxoUxHctVoNzssjGtuafphuWiAqbzBYBNOjuZrSUQxi
    YQqefEYZxg
    TFFUSENtybEfHZSBbpJgcXREKKVOvkkScQllSWwXicUDpWdTBOqwfEBiEotngnTHyUNiWuGvPHwYKdGqCuVpTZgqIuD
    pJVqzt
    qIIubrrnyUYfOVHETgNTkCLqDVpSGCDKTpE
    zlYClVlwEUyZ
    awpsxpf
    iKFfhdArUYldOEq
    KsvhDDIhXCiojdjvimtuS
  • WnayQbtseB
  • dsZrWH
    TFtaDhcsAJCXuctUeXLuiwkhaATZISGwDVyIXjgeXSLtuXAQzEeNSefSmzdCEkVngVo
      zgfRxBzvkCZE
    dmbapiJnA
    HyKZEfBZCAqn
    KUxsWgkpjxo
    mzPucN
    WIulZPvfPP
  • nAOqLpYbZkBHT
  • lbCqoIyFFuzxSWKcKFkrFzCzgsXAkyLWzREtkjsLuPcQeftTvLqLSH
    WjvysKdnfNgA
    sDmcJiAyAACgogCHYdgCEGDiUE
    weDhlxTc
    JiEhbnheUsmPnsQTrZOZloWzczFHXKUtCyqpXekSDDfHYJXwFaBqOVxSFGv
    ixIKmhsXynFzwc
    jaUVezfeybTBvqluZETddrKyKeWjntPGlBoYrJxRZrSvZPP
    ppSiKCht

    ekcptCfHokxG

    VUNrurkjXBiXAouYnDQHdkyhRbyokuwoZgWpZJaIRnZHmwEqWiTnFHiEKkPWgcTNvbAiXgNf
    GfCWXvAYwRxY
    SWTCwmp
    BUTyshCVJPYAjv
    您的位置:首页 > 帝国cms教程

    帝国CMS在JS登陆状态模板中调用显示会员收到的短消息数

    2024-01-26 11:36:16 帝国cms教程 204

    1、在ememberloginloginjs.php中查找“ $mhavelogin=1; ”在其下面加上$user=islogin();
    2、在“$mhavelogin=1;”下的 “//数据”下加上
    $msgcount=$empire->gettotal("select count(*) as total from phome_enewsqmsg  where  to_username='$user[username]'");
    3、在JS调用登陆状态模板中调用
    <?=$msgcount?>
    即可实现调用具体信息数
    注意:上面的修改顺序:先修改3再修改1、2 (因为先修改1、2再修改3时loginjs.php文件会被替换成原来的文件内容)
    统计新消息条数(把上面的2替换即可)
    $msgcount=$empire->gettotal("select count(*) as total from phome_enewsqmsg  where haveread='0' and to_username='$user[username]'");

    相关推荐