代刷网主站后台添加本月交易额等代码

<?php
$thtime=date("Y-m-d").' 00:00:00';
$zrpq = date("Y-m-d",strtotime("-1 day"));   //昨日交易额
$bypq = date("Y-m").' 00:00:00';  //本月交易额
$sypq = date("Y-m",strtotime("-1 months"));     //上月交易额
$count97=$DB->count("SELECT sum(money) from shua_pay where tid!=-1 and addtime>='$zrpq' and status=1");	//昨日交易额
$count98=$DB->count("SELECT sum(money) from shua_pay where tid!=-1 and addtime>='$bypq' and status=1");	  //本月交易额
$count99=$DB->count("SELECT sum(money) from shua_pay where tid!=-1 and addtime>='$sypq' and status=1");  //上月交易额
$count100=$DB->count("SELECT sum(money) from shua_pay where tid!=-1 and addtime>='$thtime' and status=1"); //今日交易额
?>
<tr height="25">
<td align="center"><font color="#808080"><b><i class="glyphicon glyphicon-time"></i>昨日交易额</b></br><?php echo round($count97,2)-round($count100,2)?>元</font></td>
<td align="center"><font color="#808080"><b><span class="glyphicon glyphicon-tint"></span>本月交易额</b></br><?php echo round($count98,2)?>元</font></td>
<td align="center"><font color="#808080"><b><i class="glyphicon glyphicon-usd"></i>上月交易额</b></br></span><?php echo round($count99,2)-round($count98,2)?>元</font></td>
</tr>

相关推荐

发表评论

路人甲

网友评论(0)