From 9c57e60984b0386485255eace28494f8f46d7221 Mon Sep 17 00:00:00 2001 From: tianya Date: Tue, 28 Feb 2023 22:13:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E9=A6=96=E9=A1=B5=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E6=96=87=E6=A1=A3=E6=9D=83=E9=99=90=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/index_body.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/admin/index_body.php b/src/admin/index_body.php index ce0de882..e60d8647 100644 --- a/src/admin/index_body.php +++ b/src/admin/index_body.php @@ -35,7 +35,12 @@ else if ($dopost == 'setskin') { ?> -2 ORDER BY arc.id DESC LIMIT 0,12"; + $userCatalogSql = ''; + if (count($admin_catalogs) > 0) { + $admin_catalog = join(',', $admin_catalogs); + $userCatalogSql = "AND arc.typeid IN($admin_catalog) "; + } + $query = "SELECT arc.id, arc.arcrank, arc.title, arc.typeid, arc.pubdate, arc.channel, ch.editcon, tp.typename FROM `#@__archives` arc LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id WHERE arc.arcrank<>-2 {$userCatalogSql} ORDER BY arc.id DESC LIMIT 0,12"; $arcArr = array(); $dsql->Execute('m', $query); while($row = $dsql->GetArray('m'))