소스 검색

修正否定栏目

tags/6.2.7
叙述、别离 2 년 전
부모
커밋
33934f0b65
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/system/taglib/channelartlist.lib.php

+ 1
- 1
src/system/taglib/channelartlist.lib.php 파일 보기

@@ -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;


불러오는 중...
취소
저장