[php]代码库##############说明################
建立数据库
执行 /twe_installer/index.php
include( 'includes/application_top.php');
// create smarty elements
$smarty = new Smarty;
// include boxes
require(DIR_FS_CATALOG .'templates/'.CURRENT_TEMPLATE. '/source/boxes.php');
// the following cPath references come from application_top.php
$category_depth = 'top';
if (isset($cPath) && twe_not_null($cPath)) {
$categories_products_query = twe_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . $current_category_id . "'");
$cateqories_products = twe_db_fetch_array($categories_products_query);
if ($cateqories_products['total'] > 0) {
$category_depth = 'products'; // disp