Dedecms V5.5后台首页信息统计代码分享
/*---------------------------------
载入右边内容
function _getRightSide() { }
---------------------------------*/
else if($dopost=='getRightSide')
{
$query = " Select count(*) as dd From `dede_member` ";
$row1 = $dsql->GetOne($query);
$query = " Select count(*) as dd From `dede_feedback` ";
$row2 = $dsql->GetOne($query);
$chArrNames = array();
$query = "Select id, typename From `dede_channeltype` ";
$dsql->Execute('c', $query);
while($row = $dsql->GetArray('c'))
{
$chArrNames[$row['id']] = $row['typename'];
}
$query = "Select count(channel) as dd, channel From `dede_arctiny` group by channel ";
$allArc = 0;
$chArr = array();
$dsql->Execute('a', $query);
while($row = $dsql->GetArray('a'))
{
$allArc += $row['dd'];
$row['typename'] = $chArrNames[$row['channel']];
$chArr[] = $row;
}
$query = "Select arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon From `dede_archives` arc
left join `dede_channeltype` ch on ch.id = arc.channel
where arc.arcrank<>-2 order by arc.id desc limit 0, 6 ";
$arcArr = array();
$dsql->Execute('m', $query);
while($row = $dsql->GetArray('m'))
{
$arcArr[] = $row;
}
AjaxHead();
?>
<dl class='dbox'>
<dt class='rside'>
<div class='l'>信息统计</div>
</dt>
<dd class='intable'>
<table width="100%" class="dboxtable">
<tr>
<td width='50%' class='nline'> 会员数: </td>
<td class='nline'> <?php echo $row1['dd']; ?> </td>
</tr>
<tr>
<td class='nline'> 文档数: </td>
<td class='nline'> <?php echo $allArc; ?> </td>
</tr>
<?php
foreach($chArr as $row)
{
?>
<tr>
<td class='nline'> <?php echo $row['typename']; ?>: </td>
<td class='nline'> <?php echo $row['dd']; ?> </td>
</tr>
<?php
}
?>
<tr>
<td> 评论数: </td>
<td> <?php echo $row2['dd']; ?> </td>
</tr>
</table>
☉本站的源码不会像其它下载站一样植入大量的广告。为了更好的用户体验以后坚持不打水印
☉本站只提供精品源码,源码在于可用,不在多!!希望在这里找到你合适的。
☉本站提供的整站程序,均带数据及演示地址。可以在任一源码详情页查看演示地址
☉本站所有资源(包括源码、模板、素材、特效等)仅供学习与参考,请勿用于商业用途。
☉如有其他问题,请加网站客服QQ(984818011)进行交流。
- 织梦dede首页列表页获取文章对应的tag标签
- 织梦dede导航栏目顶级和二级判断二级输出不同url
- 织梦dede标签array runphp静态生成乱码BUG解决方法
- 织梦dede如何禁止会员发布文章内容带超链接
- 织梦ajax跨域提交自定义表单和跨域验证码问题
- 织梦CMS MIP文章内容页图片适配百度MIP规范
- 织梦CMS时间格式实现XX秒前、XX分钟前、XX天前
- 织梦DedeCMS更新系统缓存增加清理沉余缓存的功能
- 织梦CMS让channelartlist标签支持currentstyle属性的
- 织梦dede自带编辑器替换百度ueditor编辑器
- 织梦DEDECMS整站动态化或整站静态化设置方法
- 织梦dede 模板路径templets目录都有什么?