当前位置:首页- - emlog今日更新,全全站资源美化统计代码

emlog今日更新,全全站资源美化统计代码

2020-8-20 作者:晓峰  分类:    阅读:10

1.一般的话都是放在首页统计

最新发布

$today”;
$today_num = $Log_Model->getLogNum(‘n’, $today_sql);
$threeday_sql = “and date>$threeday”;
$threeday_num = $Log_Model->getLogNum(‘n’, $threeday_sql);
$tenday_sql = “and date>$tenday”;
$tenday_num = $Log_Model->getLogNum(‘n’, $tenday_sql);
if($tenday_num==’0′){echo ’10几天没有更新 | ‘;}
elseif($threeday_num==’0’){echo ‘3天没有更新了 | ‘;}
elseif($today_num==’0’){echo ‘今日未更新,’;}
else{echo ‘ 今日更新’.$today_num.’个资源 丨 ‘;}
?> 全站个资源

2.css部分

css可以丢在当前文件或者头部文件header.php也可以丢在mian.css文件里头(强制全新即可)

.zuixin {
height: 28px;
line-height: 28px;
color: #fff;
left: 0;
display: inline-block;
text-align: center;
padding: 0 10px;
border-radius: 5px;
}

.youqing_more2 {
float: right;
right: 0;
text-indent: 0px;
margin-right: 0px;
height: 28px;
position: absolute;
text-transform: uppercase;
line-height: 26px;
letter-spacing: 1px;
background: #2196F3;
color: #fff;
display: inline-block;
padding: 0 10px;
text-align: center;
margin-left: 6px;
border-radius: 5px;
}

发表评论

快捷回复: