Joomla模块学习之后台mod_stats模块
2011-02-27 11:10
260 查看
Joomla模块学习之后台mod_stats模块
菜单统计模块
后台管理模块效果图
原理:
后台mod_stats菜单统计模块通过在后台配置相应的信息. 返回菜单统计
配置界面:
mod_stats模块结构图:
关键代码
菜单统计模块
后台管理模块效果图
原理:
后台mod_stats菜单统计模块通过在后台配置相应的信息. 返回菜单统计
配置界面:
mod_stats模块结构图:
关键代码
$db =& JFactory::getDBO(); // 返回属于同一菜单项信息,以及数量 $query = 'SELECT menutype, COUNT(id) AS numitems' . ' FROM #__menu' . ' WHERE published = 1' . ' GROUP BY menutype' ; $db->setQuery( $query ); $rows = $db->loadObjectList(); ?> <table class="adminlist"> <tr> <td class="title" width="80%"> <strong><?php echo JText::_( 'Menu' ); ?></strong> </td> <td class="title"> <strong><?php echo JText::_( 'Num Items' ); ?></strong> </td> </tr> <?php foreach ($rows as $row) { $link = 'index.php?option=com_menus&task=view&menutype='. $row->menutype; ?> <tr> <td> <a href="<?php echo $link; ?>"> <?php echo $row->menutype;?></a> </td> <td> <?php echo $row->numitems;?> </td> </tr> <?php } ?> </table>
相关文章推荐
- Joomla模块学习之后台mod_status模块
- Joomla模块学习之后台mod_login模块
- Joomla模块学习之后台mod_latest模块
- Joomla模块学习之后台mod_menu模块
- Joomla模块学习之后台mod_logged模块
- Joomla模块学习之后台mod_popular模块
- Joomla模块学习之后台mod_feed模块
- Joomla模块学习之后台mod_quickicon模块
- Joomla组件学习之后台com_admin组件-系统信息
- joomla学习之mod_gk_weather Modules
- yii 学习笔记六、后台模块效果设计
- 关于后盾网yii框架的学习小结(5)--验证码的使用与规则的设置,为后台模块设置独立的布局
- php学习笔记-后台模块
- 【中文】Joomla1.7扩展介绍之MetaMod (模块管理)
- 网上图书商城项目学习笔记-024后台模块介绍及管理员登录
- Joomla组件学习之后台com_banners组件-旗帜广告
- Joomla学习之模块
- Joomla组件学习之后台com_admin组件-帮助信息
- 关于后盾网yii框架的学习小结(5)--验证码的使用与规则的设置,为后台模块设置独立的布局
- joomla模块Dinamod使用指南