@@ -102,7 +102,7 @@ if (isset($dopost) && $dopost == 'getone') { | |||||
$msg = "<table width='96%' border='0' align='center' cellpadding='3' cellspacing='1' bgcolor='#cfcfcf'> | $msg = "<table width='96%' border='0' align='center' cellpadding='3' cellspacing='1' bgcolor='#cfcfcf'> | ||||
<tr align='center' bgcolor='#FBFCE2'> | <tr align='center' bgcolor='#FBFCE2'> | ||||
<td width='18%' height='26'><strong>管理员↓|统计信息→</strong></td> | |||||
<td width='18%' height='26'><strong>管理员::统计信息</strong></td> | |||||
<td width='18%'><strong>全部(文档|点击)</strong></td> | <td width='18%'><strong>全部(文档|点击)</strong></td> | ||||
<td width='16%'><strong>季度</strong></td> | <td width='16%'><strong>季度</strong></td> | ||||
<td width='16%'><strong>当月</strong></td> | <td width='16%'><strong>当月</strong></td> | ||||
@@ -304,7 +304,7 @@ table{border-collapse:separate} | |||||
<td> | <td> | ||||
<table border="0" cellpadding="0" cellspacing="0"> | <table border="0" cellpadding="0" cellspacing="0"> | ||||
<tr> | <tr> | ||||
<td width="86" height="26" align="center" background="images/itemnote1.gif"><a href='javascript:ShowHideT("adset")'>高级参数↑</a></td> | |||||
<td width="86" height="26" align="center" background="images/itemnote1.gif"><a href='javascript:ShowHideT("adset")'>高级参数</a></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -57,21 +57,21 @@ | |||||
var ahtml = "<ul class='pagination justify-content-center'>"; | var ahtml = "<ul class='pagination justify-content-center'>"; | ||||
var startloop = 1; | var startloop = 1; | ||||
var endnum = 0; | var endnum = 0; | ||||
ahtml += "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共:" + totalrow + " 条记录/" + pagenum + "页</span></li>"; | |||||
if (pageno > 1 && pageno != 1) ahtml += "<li class='page-item d-none d-sm-block disabled'><a href='javascript:;' class=\"page-link\" onclick='LoadPage(1)'>首页</a></li>"; | |||||
if (pageno > 1) ahtml += "<li class='page-item d-none d-sm-block'><a href='javascript:;' class=\"page-link\" onclick='LoadPage(" + (pageno - 1) + ")'>↑上页</a></li> "; | |||||
ahtml += "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>" + pagenum + "页" + totalrow + "篇</span></li>"; | |||||
if (pageno > 1 && pageno != 1) ahtml += "<li class='page-item d-none d-sm-block disabled'><a href='javascript:;' class='page-link' onclick='LoadPage(1)'>首页</a></li>"; | |||||
if (pageno > 1) ahtml += "<li class='page-item d-none d-sm-block'><a href='javascript:;' class='page-link' onclick='LoadPage(" + (pageno - 1) + ")'>上页</a></li> "; | |||||
if (startnum >= pagenum - listsize) { | if (startnum >= pagenum - listsize) { | ||||
startloop = pagenum - (listsize * 2); | startloop = pagenum - (listsize * 2); | ||||
if (startloop < 1) startloop = 1; | if (startloop < 1) startloop = 1; | ||||
for (i = startloop; i <= pagenum; i++) { | for (i = startloop; i <= pagenum; i++) { | ||||
if (i == pageno) ahtml += "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">" + i + "</span></li>"; | |||||
else ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a></li>"; | |||||
if (i == pageno) ahtml += "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>" + i + "</span></li>"; | |||||
else ahtml += "<li class='page-item d-none d-sm-block'><a class='page-link' href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a></li>"; | |||||
} | } | ||||
} | } | ||||
else if (pagenum < listsize) { | else if (pagenum < listsize) { | ||||
for (i = 1; i <= pagenum; i++) { | for (i = 1; i <= pagenum; i++) { | ||||
if (i == pageno) ahtml += i + " "; | if (i == pageno) ahtml += i + " "; | ||||
else ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a></li>"; | |||||
else ahtml += "<li class='page-item d-none d-sm-block'><a class='page-link' href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a></li>"; | |||||
} | } | ||||
} | } | ||||
else { | else { | ||||
@@ -81,11 +81,11 @@ | |||||
if (endnum >= pagenum) endnum = pagenum; | if (endnum >= pagenum) endnum = pagenum; | ||||
for (i = startloop; i <= endnum; i++) { | for (i = startloop; i <= endnum; i++) { | ||||
if (i == pageno) ahtml += i + " "; | if (i == pageno) ahtml += i + " "; | ||||
else ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a></li>"; | |||||
else ahtml += "<li class='page-item d-none d-sm-block'><a class='page-link' href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a></li>"; | |||||
} | } | ||||
} | } | ||||
if (pageno < pagenum) ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='javascript:;' onclick='LoadPage(" + (pageno + 1) + ")'>下页↓</a></li>"; | |||||
if (pageno != pagenum && pagenum > 1) ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='javascript:;' onclick='LoadPage(" + pagenum + ")'>末页</a></li>"; | |||||
if (pageno < pagenum) ahtml += "<li class='page-item d-none d-sm-block'><a class='page-link' href='javascript:;' onclick='LoadPage(" + (pageno + 1) + ")'>下页</a></li>"; | |||||
if (pageno != pagenum && pagenum > 1) ahtml += "<li class='page-item d-none d-sm-block'><a class='page-link' href='javascript:;' onclick='LoadPage(" + pagenum + ")'>末页</a></li>"; | |||||
ListArea.innerHTML = ahtml+"</ul>"; | ListArea.innerHTML = ahtml+"</ul>"; | ||||
} | } | ||||
</script> | </script> | ||||
@@ -77,8 +77,8 @@ function ReloadPageNum(startnum) { | |||||
var ahtml = ""; | var ahtml = ""; | ||||
var startloop = 1; | var startloop = 1; | ||||
var endnum = 0; | var endnum = 0; | ||||
ahtml += "共:" + totalrow + " 条记录/" + pagenum + "页 "; | |||||
if (pageno > 1) ahtml += "<a href='javascript:;' onclick='LoadPage(" + (pageno - 1) + ")'>↑上页</a> "; | |||||
ahtml += "共" + totalrow + "篇" + pagenum + "页"; | |||||
if (pageno > 1) ahtml += "<a href='javascript:;' onclick='LoadPage(" + (pageno - 1) + ")'>上页</a> "; | |||||
if (startnum >= pagenum - listsize) { | if (startnum >= pagenum - listsize) { | ||||
startloop = pagenum - (listsize * 2); | startloop = pagenum - (listsize * 2); | ||||
if (startloop < 1) startloop = 1; | if (startloop < 1) startloop = 1; | ||||
@@ -102,7 +102,7 @@ function ReloadPageNum(startnum) { | |||||
else ahtml += "<a href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a> "; | else ahtml += "<a href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a> "; | ||||
} | } | ||||
} | } | ||||
if (pageno < pagenum) ahtml += "<a href='javascript:;' onclick='LoadPage(" + (pageno + 1) + ")'>下页↓</a> "; | |||||
if (pageno < pagenum) ahtml += "<a href='javascript:;' onclick='LoadPage(" + (pageno + 1) + ")'>下页</a> "; | |||||
ListArea.innerHTML = ahtml; | ListArea.innerHTML = ahtml; | ||||
} | } | ||||
</script> | </script> | ||||
@@ -795,7 +795,7 @@ class Archives | |||||
if ($totalPage == 1) { | if ($totalPage == 1) { | ||||
return ""; | return ""; | ||||
} | } | ||||
$PageList = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共".$totalPage."页: </span></li>"; | |||||
$PageList = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>".$totalPage."页</span></li>"; | |||||
$nPage = $nowPage - 1; | $nPage = $nowPage - 1; | ||||
$lPage = $nowPage + 1; | $lPage = $nowPage + 1; | ||||
if ($nowPage == 1) { | if ($nowPage == 1) { | ||||
@@ -862,7 +862,7 @@ class Archives | |||||
if ($totalPage == 1) { | if ($totalPage == 1) { | ||||
return ""; | return ""; | ||||
} | } | ||||
$PageList = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共".$totalPage."页: </span></li>"; | |||||
$PageList = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>".$totalPage."页:</span></li>"; | |||||
$nPage = $nowPage - 1; | $nPage = $nowPage - 1; | ||||
$lPage = $nowPage + 1; | $lPage = $nowPage + 1; | ||||
if ($nowPage == 1) { | if ($nowPage == 1) { | ||||
@@ -643,12 +643,12 @@ class FreeList | |||||
} | } | ||||
$totalpage = ceil($this->TotalResult / $this->PageSize); | $totalpage = ceil($this->TotalResult / $this->PageSize); | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共1页/".$this->TotalResult."条记录</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>1页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共0页/".$this->TotalResult."条记录</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>0页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共{$totalpage}页/".$this->TotalResult."条记录</span></li>"; | |||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."篇</span></li>"; | |||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
$tnamerule = $this->GetMakeFileRule(); | $tnamerule = $this->GetMakeFileRule(); | ||||
$tnamerule = preg_replace("#^(.*)\/#", '', $tnamerule); | $tnamerule = preg_replace("#^(.*)\/#", '', $tnamerule); | ||||
@@ -745,12 +745,12 @@ class FreeList | |||||
} | } | ||||
$totalpage = ceil($this->TotalResult / $this->PageSize); | $totalpage = ceil($this->TotalResult / $this->PageSize); | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共1页/".$this->TotalResult."条记录</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>1页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共0页/".$this->TotalResult."条记录</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>0页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共{$totalpage}页/".$this->TotalResult."条记录</span></li>"; | |||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."篇</span></li>"; | |||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
$geturl = "lid=".$this->FreeID."&TotalResult=".$this->TotalResult."&"; | $geturl = "lid=".$this->FreeID."&TotalResult=".$this->TotalResult."&"; | ||||
$hidenform = "<input type='hidden' name='lid' value='".$this->FreeID."' />\r\n"; | $hidenform = "<input type='hidden' name='lid' value='".$this->FreeID."' />\r\n"; | ||||
@@ -782,7 +782,7 @@ class FreeList | |||||
} | } | ||||
for ($j; $j <= $total_list; $j++) { | for ($j; $j <= $total_list; $j++) { | ||||
if ($j == $this->PageNo) { | if ($j == $this->PageNo) { | ||||
$listdd .= "<li class=\"page-item active\"><span class='page-link'>$j</span></li>\r\n"; | |||||
$listdd .= "<li class='page-item active'><span class='page-link'>$j</span></li>\r\n"; | |||||
} else { | } else { | ||||
$listdd .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$j'>".$j."</a></li>\r\n"; | $listdd .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$j'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
@@ -179,7 +179,6 @@ class ListView | |||||
$this->addSql = " arc.arcrank > -1 "; | $this->addSql = " arc.arcrank > -1 "; | ||||
$typeid2like = " '%,{$this->TypeID},%' "; | $typeid2like = " '%,{$this->TypeID},%' "; | ||||
if ($cfg_list_son == 'N') { | if ($cfg_list_son == 'N') { | ||||
if ($cfg_need_typeid2 == 'N') { | if ($cfg_need_typeid2 == 'N') { | ||||
if ($this->CrossID == '') $this->addSql .= " AND (arc.typeid='".$this->TypeID."') "; | if ($this->CrossID == '') $this->addSql .= " AND (arc.typeid='".$this->TypeID."') "; | ||||
else $this->addSql .= " AND (arc.typeid in({$this->CrossID},{$this->TypeID})) "; | else $this->addSql .= " AND (arc.typeid in({$this->CrossID},{$this->TypeID})) "; | ||||
@@ -855,13 +854,13 @@ class ListView | |||||
} | } | ||||
$totalpage = ceil($this->TotalResult / $this->PageSize); | $totalpage = ceil($this->TotalResult / $this->PageSize); | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共 <strong>1</strong>页<strong>".$this->TotalResult."</strong>条记录</span></li>\r\n"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>1页".$this->TotalResult."篇</span></li>\r\n"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共 <strong>0</strong>页<strong>".$this->TotalResult."</strong>条记录</span></li>\r\n"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>0页".$this->TotalResult."篇</span></li>\r\n"; | |||||
} | } | ||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共 <strong>{$totalpage}</strong>页<strong>".$this->TotalResult."</strong>条</span></li>\r\n"; | |||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."篇</span></li>\r\n"; | |||||
$tnamerule = $this->GetMakeFileRule($this->Fields['id'], "list", $this->Fields['typedir'], $this->Fields['defaultname'], $this->Fields['namerule2']); | $tnamerule = $this->GetMakeFileRule($this->Fields['id'], "list", $this->Fields['typedir'], $this->Fields['defaultname'], $this->Fields['namerule2']); | ||||
//获得上一页和主页的链接 | //获得上一页和主页的链接 | ||||
if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
@@ -909,7 +908,7 @@ class ListView | |||||
} | } | ||||
for ($j; $j <= $total_list; $j++) { | for ($j; $j <= $total_list; $j++) { | ||||
if ($j == $this->PageNo) { | if ($j == $this->PageNo) { | ||||
$listdd .= "<li class=\"page-item active\"><span class='page-link'>$j</span></li>\r\n"; | |||||
$listdd .= "<li class='page-item active'><span class='page-link'>$j</span></li>\r\n"; | |||||
} else { | } else { | ||||
$listdd .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $j, $tnamerule)."'>".$j."</a></li>\r\n"; | $listdd .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $j, $tnamerule)."'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
@@ -943,13 +942,12 @@ class ListView | |||||
} | } | ||||
$totalpage = ceil($this->TotalResult / $this->PageSize); | $totalpage = ceil($this->TotalResult / $this->PageSize); | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<li class='d-none d-sm-block page-item disabled'><span class='page-link'>共 1 页/".$this->TotalResult." 条记录</span></li>\r\n"; | |||||
return "<li class='d-none d-sm-block page-item disabled'><span class='page-link'>1页".$this->TotalResult."篇</span></li>\r\n"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<li class='d-none d-sm-block page-item disabled'><span class=\"page-link\">共 0 页/".$this->TotalResult." 条记录</span></li>\r\n"; | |||||
return "<li class='d-none d-sm-block page-item disabled'><span class='page-link'>0页".$this->TotalResult."篇</span></li>\r\n"; | |||||
} | } | ||||
$maininfo = "<li class='d-none d-sm-block page-item disabled'><span class=\"page-link\">共 <strong>{$totalpage}</strong>页<strong>".$this->TotalResult."</strong>条</span></li>\r\n"; | |||||
$maininfo = "<li class='d-none d-sm-block page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."篇</span></li>\r\n"; | |||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
//如果开启为静态,则对规则进行替换 | //如果开启为静态,则对规则进行替换 | ||||
if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
@@ -992,9 +990,9 @@ class ListView | |||||
} | } | ||||
for ($j; $j <= $total_list; $j++) { | for ($j; $j <= $total_list; $j++) { | ||||
if ($j == $this->PageNo) { | if ($j == $this->PageNo) { | ||||
$listdd .= "<li class=\"page-item active\"><a class='page-link'>$j</a></li>\r\n"; | |||||
$listdd .= "<li class='page-item active'><a class='page-link'>$j</a></li>\r\n"; | |||||
} else { | } else { | ||||
$listdd .= "<li class=\"page-item\"><a href='".$purl."PageNo=$j' class='page-link'>".$j."</a></li>\r\n"; | |||||
$listdd .= "<li class='page-item'><a href='".$purl."PageNo=$j' class='page-link'>".$j."</a></li>\r\n"; | |||||
} | } | ||||
} | } | ||||
$plist = ''; | $plist = ''; | ||||
@@ -654,10 +654,10 @@ class SearchView | |||||
} | } | ||||
$totalpage = ceil($this->TotalResult / $this->PageSize); | $totalpage = ceil($this->TotalResult / $this->PageSize); | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<ul class=\"pagination justify-content-center pt-3\"><li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共1页/".$this->TotalResult."条记录</span></li></ul>"; | |||||
return "<ul class='pagination justify-content-center pt-3'><li class='page-item d-none d-sm-block disabled'><span class='page-link'>1页".$this->TotalResult."篇</span></li></ul>"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<ul class=\"pagination justify-content-center pt-3\"><li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共0页/".$this->TotalResult."条记录</span></li></ul>"; | |||||
return "<ul class='pagination justify-content-center pt-3'><li class='page-item d-none d-sm-block disabled'><span class='page-link'>0页".$this->TotalResult."篇</span></li></ul>"; | |||||
} | } | ||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
$oldkeyword = (empty($oldkeyword) ? $this->Keyword : $oldkeyword); | $oldkeyword = (empty($oldkeyword) ? $this->Keyword : $oldkeyword); | ||||
@@ -665,7 +665,7 @@ class SearchView | |||||
if ($this->TotalResult > $this->SearchMaxRc) { | if ($this->TotalResult > $this->SearchMaxRc) { | ||||
$totalpage = ceil($this->SearchMaxRc / $this->PageSize); | $totalpage = ceil($this->SearchMaxRc / $this->PageSize); | ||||
} | } | ||||
$infos = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共找到<b>".$this->TotalResult."</b>条记录/最大显示<b>{$totalpage}</b>页</span></li>\r\n"; | |||||
$infos = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."篇</span></li>\r\n"; | |||||
$geturl = "keyword=".urlencode($oldkeyword)."&searchtype=".$this->SearchType; | $geturl = "keyword=".urlencode($oldkeyword)."&searchtype=".$this->SearchType; | ||||
$hidenform = "<input type='hidden' name='keyword' value='".rawurldecode($oldkeyword)."'>\r\n"; | $hidenform = "<input type='hidden' name='keyword' value='".rawurldecode($oldkeyword)."'>\r\n"; | ||||
$geturl .= "&channeltype=".$this->ChannelType."&orderby=".$this->OrderBy; | $geturl .= "&channeltype=".$this->ChannelType."&orderby=".$this->OrderBy; | ||||
@@ -11,7 +11,6 @@ if (!defined('DEDEINC')) exit('dedebiz'); | |||||
*/ | */ | ||||
@set_time_limit(0); | @set_time_limit(0); | ||||
require_once(DEDEINC."/archive/partview.class.php"); | require_once(DEDEINC."/archive/partview.class.php"); | ||||
/** | /** | ||||
* 单表模型列表视图类 | * 单表模型列表视图类 | ||||
* | * | ||||
@@ -726,13 +725,13 @@ class SgListView | |||||
} | } | ||||
$totalpage = ceil($this->TotalResult / $this->PageSize); | $totalpage = ceil($this->TotalResult / $this->PageSize); | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共 1 页".$this->TotalResult."条记录</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>1页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共 0 页".$this->TotalResult."条记录</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>0页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共 {$totalpage} 页".$this->TotalResult."条</span></li>"; | |||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."篇</span></li>"; | |||||
$tnamerule = $this->GetMakeFileRule($this->Fields['id'], "list", $this->Fields['typedir'], $this->Fields['defaultname'], $this->Fields['namerule2']); | $tnamerule = $this->GetMakeFileRule($this->Fields['id'], "list", $this->Fields['typedir'], $this->Fields['defaultname'], $this->Fields['namerule2']); | ||||
$tnamerule = preg_replace("/^(.*)\//", '', $tnamerule); | $tnamerule = preg_replace("/^(.*)\//", '', $tnamerule); | ||||
//获得上一页和主页的链接 | //获得上一页和主页的链接 | ||||
@@ -834,10 +833,10 @@ class SgListView | |||||
} | } | ||||
$totalpage = ceil($this->TotalResult / $this->PageSize); | $totalpage = ceil($this->TotalResult / $this->PageSize); | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共1页/".$this->TotalResult."条记录</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>1页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共0页/".$this->TotalResult."条记录</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>0页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
$geturl = "tid=".$this->TypeID."&TotalResult=".$this->TotalResult."&nativeplace=$nativeplace&infotype=$infotype&keyword=".urlencode($keyword)."&"; | $geturl = "tid=".$this->TypeID."&TotalResult=".$this->TotalResult."&nativeplace=$nativeplace&infotype=$infotype&keyword=".urlencode($keyword)."&"; | ||||
@@ -444,10 +444,10 @@ class SpecView | |||||
} | } | ||||
$totalpage = ceil($this->TotalResult / $this->PageSize); | $totalpage = ceil($this->TotalResult / $this->PageSize); | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<span class=\"pageinfo\">共 <strong>1</strong>页<strong>".$this->TotalResult."</strong>条记录</span>"; | |||||
return "<span class='pageinfo'>1页".$this->TotalResult."篇</span>"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<span class=\"pageinfo\">共 <strong>0</strong>页<strong>".$this->TotalResult."</strong>条记录</span>"; | |||||
return "<span class='pageinfo'>0页".$this->TotalResult."篇</span>"; | |||||
} | } | ||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
$tnamerule = "spec_"; | $tnamerule = "spec_"; | ||||
@@ -481,7 +481,7 @@ class SpecView | |||||
} | } | ||||
for ($j; $j <= $total_list; $j++) { | for ($j; $j <= $total_list; $j++) { | ||||
if ($j == $this->PageNo) { | if ($j == $this->PageNo) { | ||||
$listdd .= "<li class=\"thisclass\"><a>$j</a></li>\r\n"; | |||||
$listdd .= "<li class='thisclass'><a>$j</a></li>\r\n"; | |||||
} else { | } else { | ||||
$listdd .= "<li><a href='".$tnamerule."$j".$GLOBALS['art_shortname']."'>".$j."</a></li>\r\n"; | $listdd .= "<li><a href='".$tnamerule."$j".$GLOBALS['art_shortname']."'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
@@ -508,10 +508,10 @@ class SpecView | |||||
} | } | ||||
$totalpage = ceil($this->TotalResult / $this->PageSize); | $totalpage = ceil($this->TotalResult / $this->PageSize); | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<span class=\"pageinfo\">共1页/".$this->TotalResult."条记录</span>"; | |||||
return "<span class='pageinfo'>1页".$this->TotalResult."篇</span>"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<span class=\"pageinfo\">共0页/".$this->TotalResult."条记录</span>"; | |||||
return "<span class='pageinfo'>0页".$this->TotalResult."篇</span>"; | |||||
} | } | ||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
$geturl = "typeid=".$this->TypeID."&TotalResult=".$this->TotalResult."&"; | $geturl = "typeid=".$this->TypeID."&TotalResult=".$this->TotalResult."&"; | ||||
@@ -548,7 +548,7 @@ class SpecView | |||||
} | } | ||||
for ($j; $j <= $total_list; $j++) { | for ($j; $j <= $total_list; $j++) { | ||||
if ($j == $this->PageNo) { | if ($j == $this->PageNo) { | ||||
$listdd .= "<li class=\"thisclass\"><a>$j</a></li>\r\n"; | |||||
$listdd .= "<li class='thisclass'><a>$j</a></li>\r\n"; | |||||
} else { | } else { | ||||
$listdd .= "<li><a href='".$purl."PageNo=$j'>".$j."</a></li>\r\n"; | $listdd .= "<li><a href='".$purl."PageNo=$j'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
@@ -431,12 +431,12 @@ class TagList | |||||
} | } | ||||
$totalpage = $this->TotalPage; | $totalpage = $this->TotalPage; | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共1页/".$this->TotalResult."条</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>1页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共0页/".$this->TotalResult."条</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>0页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共{$totalpage}页/".$this->TotalResult."条</span></li>\r\n"; | |||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."篇</span></li>\r\n"; | |||||
$purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
$purl .= "?/".urlencode($this->Tag); | $purl .= "?/".urlencode($this->Tag); | ||||
//获得上一页和下一页的链接 | //获得上一页和下一页的链接 | ||||
@@ -469,7 +469,7 @@ class TagList | |||||
} | } | ||||
for ($j; $j <= $total_list; $j++) { | for ($j; $j <= $total_list; $j++) { | ||||
if ($j == $this->PageNo) { | if ($j == $this->PageNo) { | ||||
$listdd .= "<li class=\"page-item active\"><span class='page-link'>$j</span></li>\r\n"; | |||||
$listdd .= "<li class='page-item active'><span class='page-link'>$j</span></li>\r\n"; | |||||
} else { | } else { | ||||
$listdd .= "<li class='page-item'><a class='page-link' href='".$purl."/$j/'>".$j."</a></li>\r\n"; | $listdd .= "<li class='page-item'><a class='page-link' href='".$purl."/$j/'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
@@ -506,12 +506,12 @@ class TagList | |||||
} | } | ||||
$totalpage = $this->TotalPage; | $totalpage = $this->TotalPage; | ||||
if ($totalpage <= 1 && $this->TotalResult > 0) { | if ($totalpage <= 1 && $this->TotalResult > 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共1页/".$this->TotalResult."条</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>1页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
if ($this->TotalResult == 0) { | if ($this->TotalResult == 0) { | ||||
return "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共0页/".$this->TotalResult."条</span></li>"; | |||||
return "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>0页".$this->TotalResult."篇</span></li>"; | |||||
} | } | ||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共{$totalpage}页/".$this->TotalResult."条</span></li>\r\n"; | |||||
$maininfo = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."篇</span></li>\r\n"; | |||||
//$purl = $this->GetCurUrl(); | //$purl = $this->GetCurUrl(); | ||||
$purl = "/a/tags/".GetPinyin($this->Tag); | $purl = "/a/tags/".GetPinyin($this->Tag); | ||||
//var_dump($purl); | //var_dump($purl); | ||||
@@ -545,7 +545,7 @@ class TagList | |||||
} | } | ||||
for ($j; $j <= $total_list; $j++) { | for ($j; $j <= $total_list; $j++) { | ||||
if ($j == $this->PageNo) { | if ($j == $this->PageNo) { | ||||
$listdd .= "<li class=\"page-item active\"><span class='page-link'>$j</span></li>\r\n"; | |||||
$listdd .= "<li class='page-item active'><span class='page-link'>$j</span></li>\r\n"; | |||||
} else { | } else { | ||||
$listdd .= "<li class='page-item'><a class='page-link' href='".$purl."/$j/'>".$j."</a></li>\r\n"; | $listdd .= "<li class='page-item'><a class='page-link' href='".$purl."/$j/'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
@@ -256,12 +256,12 @@ class DataListCP | |||||
//echo " {$totalpage}=={$this->totalResult}=={$this->pageSize}"; | //echo " {$totalpage}=={$this->totalResult}=={$this->pageSize}"; | ||||
//无结果或只有一页的情况 | //无结果或只有一页的情况 | ||||
if ($totalpage <= 1 && $this->totalResult > 0) { | if ($totalpage <= 1 && $this->totalResult > 0) { | ||||
return "<ul class='pagination justify-content-center'>\n<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">{$lang_total} 1 {$lang_page}/".$this->totalResult.$lang_record_number."</span></li></ul>"; | |||||
return "<ul class='pagination justify-content-center'><li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$lang_total}1{$lang_page}".$this->totalResult.$lang_record_number."</span></li></ul>"; | |||||
} | } | ||||
if ($this->totalResult == 0) { | if ($this->totalResult == 0) { | ||||
return "<ul class='pagination justify-content-center'>\n<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">{$lang_total} 0 {$lang_page}/".$this->totalResult.$lang_record_number."</span></li></ul>"; | |||||
return "<ul class='pagination justify-content-center'><li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$lang_total}0{$lang_page}".$this->totalResult.$lang_record_number."</span></li></ul>"; | |||||
} | } | ||||
$infos = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">{$lang_total} {$totalpage} {$lang_page}/{$this->totalResult}{$lang_record_number} </span></li>"; | |||||
$infos = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>{$lang_total}{$totalpage}{$lang_page}/{$this->totalResult}{$lang_record_number}</span></li>"; | |||||
if ($this->totalResult != 0) { | if ($this->totalResult != 0) { | ||||
$this->getValues['totalresult'] = $this->totalResult; | $this->getValues['totalresult'] = $this->totalResult; | ||||
} | } | ||||
@@ -278,13 +278,13 @@ class DataListCP | |||||
$prepage .= "<li class='page-item'><a class='page-link' href='".$purl."pageno=$prepagenum'>$lang_pre_page</a></li> \n"; | $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."pageno=$prepagenum'>$lang_pre_page</a></li> \n"; | ||||
$indexpage = "<li class='page-item'><a class='page-link' href='".$purl."pageno=1'>$lang_index_page</a></li> \n"; | $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."pageno=1'>$lang_index_page</a></li> \n"; | ||||
} else { | } else { | ||||
$indexpage = "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">"."$lang_index_page \n"."</span></li>"; | |||||
$indexpage = "<li class='page-item d-none d-sm-block disabled'><span class='page-link'>"."$lang_index_page \n"."</span></li>"; | |||||
} | } | ||||
if ($this->pageNO != $totalpage && $totalpage > 1) { | if ($this->pageNO != $totalpage && $totalpage > 1) { | ||||
$nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."pageno=$nextpagenum'>$lang_next_page</a></li> \n"; | $nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."pageno=$nextpagenum'>$lang_next_page</a></li> \n"; | ||||
$endpage = "<li class='page-item'><a class='page-link' href='".$purl."pageno=$totalpage'>$lang_end_page</a></li> \n"; | $endpage = "<li class='page-item'><a class='page-link' href='".$purl."pageno=$totalpage'>$lang_end_page</a></li> \n"; | ||||
} else { | } else { | ||||
$endpage = " <li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">$lang_end_page</span></li> \n"; | |||||
$endpage = " <li class='page-item d-none d-sm-block disabled'><span class='page-link'>$lang_end_page</span></li> \n"; | |||||
} | } | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | $listdd = ""; | ||||
@@ -327,8 +327,8 @@ class DataListCP | |||||
if (preg_match("#form#i", $atts['listitem'])) { | if (preg_match("#form#i", $atts['listitem'])) { | ||||
$plist .= " <form name='pagelist' action='".$this->GetCurUrl()."' style='float:left;' class='pagelistform'>$hidenform"; | $plist .= " <form name='pagelist' action='".$this->GetCurUrl()."' style='float:left;' class='pagelistform'>$hidenform"; | ||||
if ($totalpage > $total_list) { | if ($totalpage > $total_list) { | ||||
$plist .= "<input type='text' name='pageno' style='padding:0px;width:30px;height:18px;font-size:11px' />\r\n"; | |||||
$plist .= "<input type='submit' name='plistgo' value='GO' style='padding:0px;width:30px;height:22px;font-size:11px' />\r\n"; | |||||
$plist .= "<input type='text' name='pageno' style='padding:0px;width:30px;height:18px' />\r\n"; | |||||
$plist .= "<input type='submit' name='plistgo' value='GO' style='padding:0px;width:30px;height:22px' />\r\n"; | |||||
} | } | ||||
$plist .= "</form>\n"; | $plist .= "</form>\n"; | ||||
} | } | ||||