소스 검색

栏目为空时候增加提示

tags/6.2.6
tianya 1 년 전
부모
커밋
f728750cc4
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      src/system/typelink/typeunit.class.admin.php

+ 5
- 0
src/system/typelink/typeunit.class.admin.php 파일 보기

@@ -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>";
}
}
/**


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