This commit is contained in:
make
2025-04-19 11:56:30 +08:00
parent 67098a5e01
commit 4eca70d6e1
8 changed files with 60 additions and 60 deletions

View File

@@ -1,6 +1,6 @@
{if !empty($arrPaginator)}
{if !empty($page_data)}
<div class="page_num">
{volist name="arrPaginator" id="item"}
{volist name="page_data" id="item"}
{eq name="item.type" value="prev"}
<a href="{$item.url ? $strPcPath . $item.url: 'javascript:void(0)'}"
class="z {$item.disabled ? 'disabled' : ''}">
@@ -10,10 +10,10 @@
{/volist}
<select onchange="self.location.href=options[selectedIndex].value">
{volist name="arrPaginator" id="item"}
{volist name="page_data" id="item"}
{eq name="item.type" value="page"}
<?php $start = ($item['label'] - 1) * $intLimit + 1; ?>
<?php $end = $item['label'] * $intLimit; ?>
<?php $start = ($item['label'] - 1) * 100 + 1; ?>
<?php $end = $item['label'] * 100; ?>
<option value="{$strPcPath}{$item.url}" {$item.current ? 'selected' : ''}>
第{$start}-{$end}章
</option>
@@ -21,7 +21,7 @@
{/volist}
</select>
{volist name="arrPaginator" id="item"}
{volist name="page_data" id="item"}
{eq name="item.type" value="next"}
<a href="{$item.url ? $strPcPath . $item.url: 'javascript:void(0)'}"
class="y {$item.disabled ? 'disabled' : ''}">