zen-cart左侧栏目left_comlumn的运行机制

zen-cart系统的左侧栏目和右侧栏目基本上是统一不变的,在多的页面,再多的变化,他们变化的只是中间局部的变化.

zen-cart左侧栏目的内容包括zen-cart产品分类,新进商品等栏目.其中控制左侧栏目是includes/modules/column_left.php文件,他靠 tpl_box_default_left.php这个文件来显示栏目详细内容.

他的位置在includes/templates/template_default/common/tpl_box_default_left.php 文件里面,他用来显示栏目内容的主要内容.$column_left_display= $db->Execute("select layout_box_name from " . TABLE_LAYOUT_BOXES . " where layout_box_location = 0 and layout_box_status= '1' and layout_template ='" . $template_dir . "'" . ' order by layout_box_sort_order'); 这条sql语句主要是用来读取存储在表zen_layout_boxes栏目的名称和文件名称.通过调用,达到一个整体保持风格的作用。

他的结果集,通过zen-cart函数,循环包含tpl_box_default_left.php文件,相应的赋值,达到整体效果的作用。

你可能感兴趣的:(机制,休闲,左侧栏目,Zen-cart,left_comlumn)