require ROOT_PATH . "inc/label_module.php"; if ($spid) { $SQL = " AND A.spid='{$spid}' "; } else { $SQL = " "; } if ($cityID) { $SQL = " AND A.cityid='{$cityID}' "; } elseif ($provinceID) { $SQL = " AND A.provinceid='{$provinceID}' "; } $Lrows = $fidDB[maxperpage] > 0 ? $fidDB[maxperpage] : ($webdb[Infolist_row] > 0 ? $webdb[Infolist_row] : 15); if ($fidDB[type] == 0) { @extract($db->get_one("SELECT COUNT(*) AS NUM FROM {$_pre}content A WHERE A.fid={$fid} AND A.yz=1 {$SQL}")); } /*大分类*/ if ($fidDB[type] == 1) { $sort_db = $listdb_moresort = ListOnlySort(100); } /*小分类*/ if ($fidDB[type] == 0) { $listdb = ListThisSort($Lrows, $webdb[InfoListLeng] > 0 ? $webdb[InfoListLeng] : 70); $showpage = getpage("{$_pre}content A", "WHERE A.fid={$fid} AND A.yz=1 {$SQL}", $_url, $Lrows, $NUM); } require ROOT_PATH . "inc/head.php"; if ($fidDB[type]) { require getTpl("bigsort", $FidTpl['list']); } else { require getTpl("list", $FidTpl['list']); } require ROOT_PATH . "inc/foot.php";
ob_start(); unset($ckk); unset($lfjuid, $web_admin, $lfjid, $lfjdb); for ($I = $Min; $I < $Min + $Rows; $I++) { $page = $I + 1; if ($page != 1 && $page > ceil($NUM / $Lrows)) { break; } if ($fidDB[passwd]) { //栏目密码 $atc_content = "<META HTTP-EQUIV=REFRESH CONTENT='0;URL={$webdb['www_url']}{$webdb['path']}/list.php?page={$page}&fid={$fid}&NeedCheck=1'>"; } elseif ($fidDB[allowviewtitle] || $fidDB[allowviewcontent]) { //浏览权限 $atc_content = "<META HTTP-EQUIV=REFRESH CONTENT='0;URL={$webdb['www_url']}{$webdb['path']}/list.php?page={$page}&fid={$fid}&NeedCheck=1'>"; } else { $listdb = ListThisSort($Lrows, $webdb[ListLeng] ? $webdb[ListLeng] : 50); //本栏目文章列表 $listdb || ($hide_listnews = 'none'); //如果是大分类的话,就不存在标题,就把标题框隐藏 $showpage = getpage("", "WHERE fid={$fid}", "list.php?fid={$fid}", $Lrows, $NUM); } ob_end_clean(); ob_start(); require html("list", $FidTpl['list']); $content = $atc_content ? $atc_content : $content_head . ob_get_contents() . $content_foot; $content = preg_replace("/<!--include(.*?)include-->/is", "\\1", $content); make_html($content, 'list'); $ckk++; } ob_end_clean(); require_once ROOT_PATH . "cache/htm_cache/{$cacheid}_makelist.php";
<?php require_once dirname(__FILE__) . "/" . "global.php"; //列表页多少篇文章 $rows = 20; $fidDB[listorder] = 8; $listdb = ListThisSort($rows, 50); //本栏目文章列表 $showpage = getpage("{$pre}article", "WHERE yz=1", "?", $rows); //文章列表分页 require ROOT_PATH . "inc/head.php"; require html("digg"); require ROOT_PATH . "inc/foot.php"; //伪静态处理 if ($webdb[NewsMakeHtml] == 2) { $content = ob_get_contents(); ob_end_clean(); ob_start(); $content = fake_html($content); echo "{$content}"; }