|
|
@@ -13,7 +13,7 @@ require_once(DEDEINC.'/archive/partview.class.php'); |
|
|
|
function lib_channelartlist(&$ctag, &$refObj)
|
|
|
|
{
|
|
|
|
global $dsql, $envs, $_sys_globals;
|
|
|
|
//添加不调用指定栏目文档参数,语法 notypeid='1'
|
|
|
|
//添加不调用指定栏目参数notypeid
|
|
|
|
$attlist = 'typeid|0,row|20,cacheid|,notypeid|0';
|
|
|
|
FillAttsDefault($ctag->CAttribute->Items, $attlist);
|
|
|
|
extract($ctag->CAttribute->Items, EXTR_SKIP);
|
|
|
@@ -42,11 +42,11 @@ function lib_channelartlist(&$ctag, &$refObj) |
|
|
|
$tpsql = " id IN($typeid) AND ishidden<>1 ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$dsql->SetQuery("SELECT * FROM `#@__arctype` WHERE $tpsql ORDER BY sortrank ASC LIMIT $totalnum");
|
|
|
|
//否定指定栏目
|
|
|
|
if ($notypeid!=0) {
|
|
|
|
$tpsql = $tpsql."and not(id in($notypeid))";
|
|
|
|
}
|
|
|
|
$dsql->SetQuery("SELECT * FROM `#@__arctype` WHERE $tpsql ORDER BY sortrank ASC LIMIT $totalnum");
|
|
|
|
$dsql->Execute();
|
|
|
|
while ($row = $dsql->GetArray()) {
|
|
|
|
$typeids[] = $row;
|
|
|
|