table('system_setting')->find(['key' => MODULE_NAME.'_setting']); $system_config = json_decode($system_config['val'], true); if(empty($system_config)){ exit('请配置生?); } $map_config = $model->table('system_setting')->find(['key' => 'sitemap_html_'.MODULE_NAME.'_config']); if(empty($map_config)){ exit('请配置生?); } $map_config = json_decode($map_config['val'], true); $per_page = $map_config['page']; $category_config = $model->table('system_setting')->find(['key' => 'category']); if(empty($category_config) || !$category_config['val']){ exit('请配置分?); } $category_config = $category_config['val']; $domain = formatDomain($system_config['root_domain']); $sort_id = intval($_GET['sort']); $cate_list = getCategoryList($category_config); $tpl->assign('sort_name', getSortName($sort_id, $cate_list)); $tpl->assign('sort_id', $sort_id); $where = ['sortid'=>$sort_id]; $article_list = $model->table('jieqi_article_article')->select($where, $per_page, 'articleid DESC'); $total_count = $model->table('jieqi_article_article')->count($where); $total_page = ceil($total_count/$per_page); $pic_url = getConfig($conn, 'pic_url'); $pic_path = getConfig($conn, 'pic_path'); foreach ($article_list as $key=>$article){ $article_list[$key]['lastupdate'] = date('Y-m-d',$article['lastupdate']); $article_list[$key]['articleid1000'] = intval($article['articleid']/1000); $article_list[$key]['image'] = get_image($row['articleid'], $pic_url, $pic_path); } $tpl->assign("list", $article_list); $tpl->assign("total_page", $total_page); $tpl->display("map.html");Ǹ ׺| Ե| װȡ| ׼Ĵʦ| Ѳ| | | | ǽС˵| ʦѧȫĶ| װ| ˹῵С˵| Ϊʲô| ܹж| ׼| С˵Ƽ| ׼Ĵʦ| վȽ׼| ִ| 2020ѧ| | Եھ˳| ũ| | ¼ƬѸ| | - | ʦ߽| | ȫ| Ե| ƹ| ۾ͼ| С˵| а˰ʲô˼| ׾| Ӱ¼Ƭ| Ӱ| ˵Ļ| | |