随笔分类 -  BEESCMS

[任务][理解]
摘要:/** * 根据模板ID获得列表页子栏目 * * @access public * @param $tpl:模板id的值 * @return array */function get_tpl_list_nav($tpl_id='',$is_content=0){ $lang=$GLOBALS['lang']; global $cateid; if(empty($tpl_id)) { $cate = $GLOBALS['cat_id']; } else { $tpl_id = intval($tpl_id);//获得栏目模板ID,不存在获取内容页的 阅读全文
posted @ 2014-02-08 15:16 坠落的数字 阅读(305) 评论(0) 推荐(0)
关于beescms如何去掉底部版权信息
摘要:找到文件 \includes\tpl.class.php注释掉下面的代码即可。function r_cp($is_copy){ if(!$is_copy) { //$this->content = $this->content.$this->r_cp2; } $this->tp=1; } 阅读全文
posted @ 2014-02-08 14:00 坠落的数字 阅读(846) 评论(0) 推荐(0)
beescms文章列表页函数学习
摘要://函数:get_tpl_list_nav($tpl_id='',$is_content=0)//功能:根据模板ID或当前栏目ID获得子栏目列表页{assign source=get_tpl_list_nav('3',1) name=tree/} {if $tree} 产品导航 {loop source=$tree item=$nav} {print $nav['cate_name']/}({print $nav['content_num']/}) {loop source=$nav['child']} {prin 阅读全文
posted @ 2014-01-22 11:34 坠落的数字 阅读(230) 评论(0) 推荐(0)
beescms相关函数学习
摘要://获取指定栏目的所有子栏目//@param:$id(栏目ID)function get_child_id($id){ $arr=''; $sql="select id from ".DB_PRE."category where cate_hide!=1 and cate_parent=".intval($id); $child=$GLOBALS['mysql']->fetch_asc($sql); if(empty($child)){ return ''; }else{ foreach($child 阅读全文
posted @ 2014-01-22 10:50 坠落的数字 阅读(241) 评论(0) 推荐(0)
这是二零一四年十点整的广州
摘要:人生的重大转折点 阅读全文
posted @ 2014-01-22 10:03 坠落的数字