找回密码
 注册
查看: 3089|回复: 3
收起左侧

在积分记录里增加个人附件消费与收益记录

[复制链接]

5340

主题

8360

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14731
帖子
8360
精华
67
体力
14731 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2007-12-9 04:57:45 | 显示全部楼层 |阅读模式
1、templates/default/templates.lang.php
查找:
复制内容到剪贴板
代码:
\'memcp_credits_log_payment\' => \'主题付费记录\',
添加
复制内容到剪贴板
代码:
\'memcp_credits_log_attachpayment\' => \'附件付费记录\',
\'memcp_credits_log_attachincome\' => \'附件收益记录\',
2、memcp.php
查找
复制内容到剪贴板
代码:

} elseif($operation == \'incomelog\') {
$page = max(1, intval($page));
$start_limit = ($page - 1) * $tpp;
$query = $db->query(\"SELECT COUNT(*) FROM {$tablepre}paymentlog WHERE authorid=\'$Discuz\">discuz_uid\'\");
$multipage = multi($db->result($query, 0), $tpp, $page, \"memcp.php?action=creditslog&operation=incomelog\");
$loglist = array();
$query = $db->query(\"SELECT p.*, m.username, f.fid, f.name, t.subject, t.dateline AS tdateline FROM {$tablepre}paymentlog p
LEFT JOIN {$tablepre}threads t ON t.tid=p.tid
LEFT JOIN {$tablepre}forums f ON f.fid=t.fid
LEFT JOIN {$tablepre}members m ON m.uid=p.uid
WHERE p.authorid=\'$discuz_uid\' ORDER BY p.dateline DESC
LIMIT $start_limit, $tpp\");
while($log = $db->fetch_array($query)) {
$log[\'dateline\'] = gmdate(\"$dateformat $timeformat\", $log[\'dateline\'] + $timeoffset * 3600);
$log[\'tdateline\'] = gmdate(\"$dateformat $timeformat\", $log[\'tdateline\'] + $timeoffset * 3600);
$loglist[] = $log;
}
include template(\'memcp_credits\');
添加:
复制内容到剪贴板
代码:

//附件消费与收益
} elseif($operation == \'attachpaymentlog\') {
$page = max(1, intval($page));
$start_limit = ($page - 1) * $tpp;
$query = $db->query(\"SELECT COUNT(*) FROM {$tablepre}attachpaymentlog WHERE uid=\'$discuz_uid\'\");
$multipage = multi($db->result($query, 0), $tpp, $page, \"memcp.php?action=creditslog&operation=attachpaymentlog\");
$loglist = array();
$query = $db->query(\"SELECT p.*, m.username, f.fid, f.name, t.subject, t.dateline AS tdateline FROM {$tablepre}attachpaymentlog p
LEFT JOIN {$tablepre}attachments a ON a.aid=p.aid
LEFT JOIN {$tablepre}threads t ON t.tid=a.tid
LEFT JOIN {$tablepre}forums f ON f.fid=t.fid
LEFT JOIN {$tablepre}members m ON m.uid=p.authorid
WHERE p.uid=\'$discuz_uid\' ORDER BY p.dateline DESC
LIMIT $start_limit, $tpp\");
while($log = $db->fetch_array($query)) {
$log[\'dateline\'] = gmdate(\"$dateformat $timeformat\", $log[\'dateline\'] + $timeoffset * 3600);
$log[\'tdateline\'] = gmdate(\"$dateformat $timeformat\", $log[\'tdateline\'] + $timeoffset * 3600);
$loglist[] = $log;
}
include template(\'memcp_credits\');
3、templates/default/memcp_credits.htm
查找
复制内容到剪贴板
代码:
  • class=\"current\">{lang memcp_credits_log_payment}

  • class=\"current\">{lang memcp_credits_log_income}
  • 下面添加
    复制内容到剪贴板
    代码:
  • class=\"current\">{lang memcp_credits_log_attachpayment}

  • class=\"current\">{lang memcp_credits_log_attachincome}
  • 查找
    复制内容到剪贴板
    代码:
    在前面行添加
    复制内容到剪贴板
    代码:



































    {lang subject}{lang author}{lang dateline}{lang forum}{lang memcp_credits_log_payment_dateline}{lang price}{lang pay_author_income}
    $log[subject] $log[username] $log[tdateline] $log[name] $log[dateline] {lang memcp_credits_log_payment_refunded} {$extcredits[$creditstrans][title]} $log[amount] {$extcredits[$creditstrans][unit]} {$extcredits[$creditstrans][title]} $log[netamount] {$extcredits[$creditstrans][unit]}
    {lang memcp_credits_log_none}

    $multipage




































    {lang subject}{lang dateline}{lang forum}{lang memcp_credits_log_income_buyer}{lang memcp_credits_log_payment_dateline}{lang price}{lang pay_author_income}
    $log[subject] $log[tdateline] $log[name] $log[username] $log[dateline] {lang memcp_credits_log_payment_refunded} {$extcredits[$creditstrans][title]} $log[amount] {$extcredits[$creditstrans][unit]} {$extcredits[$creditstrans][title]} $log[netamount] {$extcredits[$creditstrans][unit]}
    {lang memcp_credits_log_none}

    $multipage
    出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
    懒得打字嘛,点击右侧快捷回复
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    关闭

    网站公告上一条 /2 下一条

    GMT+8, 2025-2-5 17:46 , Processed in 0.205346 second(s), 23 queries , Gzip On.

    © 2006-2022 Powered by Discuz! X3.4

    快速回复 返回顶部 返回列表