Browse Source

栏目为空时候增加提示

tags/6.2.6
tianya 1 year ago
parent
commit
f728750cc4
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/system/typelink/typeunit.class.admin.php

+ 5
- 0
src/system/typelink/typeunit.class.admin.php View File

@@ -92,6 +92,7 @@ class TypeUnit
}
$this->dsql->SetQuery("SELECT id,typedir,typename,ispart,sortrank,ishidden FROM `#@__arctype` WHERE reid=0 ORDER BY sortrank");
$this->dsql->Execute(0);
$i = 0;
while ($row = $this->dsql->GetObject(0)) {
if ($cfg_admin_channel == 'array' && !in_array($row->id, $admin_catalogs)) {
continue;
@@ -152,6 +153,10 @@ class TypeUnit
echo "</table>";
}
echo "</td></tr></table>";
$i++;
}
if ($i === 0) {
echo "<div class='text-center py-3'>暂无栏目,请先添加栏目</div>";
}
}
/**


Loading…
Cancel
Save