private function nc_header() { /*在导航的商品分类*/ $header_product_class = $this->obj_product_class->getSpecificClass(array('show_type' => 'header')); $this->output('header_product_class', $header_product_class); /*在导航的文章分类*/ $header_article_class = $this->obj_article_class->getArticleClass(array('article_class_menu' => 1)); $this->output('header_article_class', $header_article_class); /*语言包选择*/ require_once "moduleLanguage.class.php"; $module_language = new ModuleLanguageClass(); $conditon_array = array(); $language_array = $module_language->getLanguageList($conditon_array); $this->output('language_array', $language_array); /*判断选中的语言包类型*/ if ($_SESSION['language'] != '') { $language_ver = $_SESSION['language']; } else { $language_ver = $this->_configinfo['websit']['versionarea']; } $this->output('language_ver', $language_ver); /*购物车*/ require_once "shopCart.class.php"; $shop_cart = new ShopCartClass(); $this->output('cart_count', $shop_cart->GoodsCount()); /*导航菜单选中*/ $show_menu = ''; $show_product_menu = ''; $show_article_menu = ''; $menu_name = basename($_SERVER['PHP_SELF']); if ($menu_name == 'index.php') { $show_menu = 'index'; } elseif ($menu_name == 'product_subject.php') { $show_menu = 'subject'; } elseif ($menu_name == 'product_brand.php') { $show_menu = 'brand'; } elseif ($menu_name == 'article_class.php') { $show_article_menu = $this->_input['id']; if ($show_article_menu == '') { $show_article_menu = 'article'; } } elseif ($menu_name == 'product_class.php') { $show_product_menu = $this->_input['classid']; } $this->output('show_menu', $show_menu); $this->output('show_product_menu', $show_product_menu); $this->output('show_article_menu', $show_article_menu); $this->showpage('header'); }
/** * 文章内容分类列表 * */ private function articleList() { $condition['article_class_id'] = intval($this->_input['id']); /*侧边文章分类*/ $class_array = $this->obj_show_class->getClass(array('article_class_topid' => $condition['article_class_id'])); $this->output('class_array', $class_array); /*创建分页对象*/ require_once "commonpage.class.php"; $obj_page = new CommonPage(); $obj_page->pagebarnum(12); $article_array = $this->obj_show_article->getArticleList($condition, $obj_page, array('article_commend desc,article_sort')); $show_page = $obj_page->show(6); $this->output('article_array', $article_array); $this->output('show_page', $show_page); /*当前分类信息*/ $class_info = $this->obj_show_class->getArticleClass(array('article_class_id' => intval($this->_input['id']))); $article_class['title'] = $class_info[0]['article_class_name']; $article_class['keywords'] = $class_info[0]['article_class_keywords']; $article_class['description'] = $class_info[0]['article_class_description']; $this->output('article_class', $article_class); $this->showpage('article_list'); }