Exemplo n.º 1
0
 private function footer()
 {
     $info_array = $this->obj_shopnc_info->getSystemList();
     $this->output('info_array', $info_array);
     $this->showpage('footer');
     /*访问记录*/
     //$input_param['ip'] = $this->agent_ip; 			//ip
     //$input_param['ip_area'] = "null";      			//来源地区
     //$input_param['visit_url'] = $this->cur_url;		//访问地址
     //$input_param['source_url'] = $this->refer_url;	//来源地址
     //$input_param['visit_system'] = $this->obj_shop_visit->getOS($_SERVER['HTTP_USER_AGENT']);//访问系统
     //$this->obj_shop_visit->addVisit($input_param);
 }
Exemplo n.º 2
0
 private function showInfo()
 {
     /*底部其他信息,侧边栏显示*/
     $info_id = intval($this->_input['info_id']);
     if ($info_id == 0) {
         header("Location:?info_id=1");
         exit;
     }
     $foot_array = $this->obj_shopnc_info->getSystemList();
     $this->output('foot_array', $foot_array);
     $info_array = $this->obj_shopnc_info->getSystemInfo(array('info_id' => intval($this->_input['info_id'])));
     $this->output('article_array', $info_array);
     $this->shopshowpage("shop_info");
 }
Exemplo n.º 3
0
 /**
  * 聚合底部文件
  *
  */
 private function showFooter()
 {
     /*店铺分类*/
     include BasePath . "/share/shop_class_show.php";
     if (is_array($node_cache)) {
         $parent_array = array();
         foreach ($node_cache as $node) {
             if ($node['parentId'] == 0 && $node['iffb'] == 1) {
                 $parent_array[] = $node;
             }
         }
         $i = 0;
         $node_array = array();
         foreach ($parent_array as $parent) {
             $node_array[$i] = $parent;
             foreach ($node_cache as $node) {
                 if ($parent['id'] == $node['parentId'] && $node['iffb'] == 1) {
                     $node_array[$i]['sub_array'][] = $node;
                 }
             }
             $i++;
         }
         $this->output('node_array', $node_array);
     }
     /*底部用户指南类文章*/
     $article_array = $this->obj_article->getArticleList('', '');
     foreach ($article_array as $k => $v) {
         if (in_array($v['arc_class'], array(4, 5, 6))) {
             if (count($class_array[$v['arc_class']]) < 3) {
                 $class_array[$v['arc_class']][] = $v;
             }
         }
     }
     /*取文章*/
     $this->output('artclass_array', $class_array);
     /*底部信息*/
     $info_array = $this->obj_shopnc_info->getSystemList();
     $this->output('info_array', $info_array);
     $this->showpage("footer");
 }