PbootCMS整理分頁判斷進階各種條件判斷和標籤

黄文Rex發表於2024-10-04
{pboot:if('{page:rows}' > 0)}
<div class="page">
  <a href="{page:index}" {pboot:2if('{page:current}' == 1)}class="hide"{/pboot:2if}>首頁</a>
  <a href="{page:pre}" {pboot:2if('{page:current}' == 1)}class="hide"{/pboot:2if}>上一頁</a>
  {page:numbar}
  <a href="{page:next}" {pboot:2if('{page:current}' == '{page:count}')}class="hide"{/pboot:2if}>下一頁</a>
  <a href="{page:last}" {pboot:2if('{page:current}' == '{page:count}')}class="hide"{/pboot:2if}>尾頁</a>
</div>
{else}
<div class="page">暫無內容</div>
{/pboot:if}

相關文章