Browse Source

优化分页

tags/6.1.9
xushubieli 2 years ago
parent
commit
c53cbfc27e
4 changed files with 6 additions and 13 deletions
  1. +1
    -1
      src/system/archive/listview.class.php
  2. +1
    -1
      src/system/archive/rssview.class.php
  3. +3
    -10
      src/system/archive/searchview.class.php
  4. +1
    -1
      src/system/archive/taglist.class.php

+ 1
- 1
src/system/archive/listview.class.php View File

@@ -973,7 +973,7 @@ class ListView
$listdd .= "<li class='page-item'><a href='".$purl."PageNo=$j' class='page-link'>".$j."</a></li>\r\n";
}
}
$plist = '';
$plist = "";
if (preg_match('/index/i', $listitem)) $plist .= $indexpage;
if (preg_match('/pre/i', $listitem)) $plist .= $prepage;
if (preg_match('/pageno/i', $listitem)) $plist .= $listdd;


+ 1
- 1
src/system/archive/rssview.class.php View File

@@ -185,7 +185,7 @@ class RssView
$row["source"] = $GLOBALS['cfg_webname'];
}
if ($row["writer"] == '') {
$row["writer"] = "秩名";
$row["writer"] = "张生";
}
foreach ($row as $k => $v) {
$row[$k] = dede_htmlspecialchars($v);


+ 3
- 10
src/system/archive/searchview.class.php View File

@@ -707,14 +707,12 @@ class SearchView
}
for ($j; $j <= $total_list; $j++) {
if ($j == $this->PageNo) {
$listdd .= "<li class='page-item active'><a class='page-link'>$j&nbsp;</a></li>\r\n";
$listdd .= "<li class='page-item active'><a class='page-link'>$j</a></li>\r\n";
} else {
$listdd .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$j'>".$j."</a>&nbsp;</li>\r\n";
$listdd .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$j'>".$j."</a></li>\r\n";
}
}
$plist = "";
//$plist = "<table cellpadding='0' cellspacing='0'>\r\n";
//$plist .= "<tr align='center' style='font-size:10pt'>\r\n";
$plist = "";
$plist .= "<form name='pagelist' action='".$this->GetCurUrl()."'>$hidenform";
$plist .= "<ul class=\"pagination justify-content-center pt-3\">";
$plist .= $infos;
@@ -723,11 +721,6 @@ class SearchView
$plist .= $listdd;
$plist .= $nextpage;
$plist .= $endpage;
//if($totalpage>$total_list)
//{
// $plist.="<td width='38'><input type='text' name='PageNo' style='width:28px;height:14px' value='".$this->PageNo."' /></td>\r\n";
// $plist.="<td width='30'><input type='submit' name='plistgo' value='GO' style='width:30px;height:22px;font-size:9pt' /></td>\r\n";
//}
$plist .= "</ul></form>\r\n";
return $plist;
}


+ 1
- 1
src/system/archive/taglist.class.php View File

@@ -541,7 +541,7 @@ class TagList
$listdd .= "<li class='page-item'><a class='page-link' href='".$purl."/$j/'>".$j."</a></li>\r\n";
}
}
$plist = '';
$plist = "";
if (preg_match('/info/i', $listitem)) {
$plist .= $maininfo.' ';
}


Loading…
Cancel
Save