> Zencart中文手册 > zen cart系统的右侧栏目

zen cart系统的右侧栏目也和左侧栏目运行的机制一样,都是先从数据库中读出栏目文件.然后根据文件名称来显示对应的栏目块.

右边的搜索模块.includes/templates/template_default/common /tpl_box_default_right.php,这个是显示右边栏目子模块的内容的。每个模块的内容,都是通过他来显示的。里面主要有两个参 数,$box_id,$content.

$box_id,$content来自includes/modules/column_right.php中,通 过$column_right_display= $db->Execute(“select layout_box_name from ” . TABLE_LAYOUT_BOXES . ” where layout_box_location=1 and layout_box_status=1 and layout_template =’” . $template_dir . “‘” . ‘ order by layout_box_sort_order’);查询显示出来的。

比如查询模块,他就是通过includes/modules/sidebox/search.PHP文件来处理的,他包含了tpl_search.php