|
|
@@ -239,7 +239,7 @@ class DataListCP |
|
|
|
for ($j; $j <= $total_list; $j++) {
|
|
|
|
$listdd .= $j == $this->pageNO ? "<li class='page-item'><span class='page-link'>$j</span></li>\r\n" : "<li class='page-item'><a class='page-link' href='".$purl."pageno=$j'>".$j."</a></li>\r\n";
|
|
|
|
}
|
|
|
|
$plist = "<div class='d-flex justify-content-center'>\r\n";
|
|
|
|
$plist = "<div class='d-flex justify-content-end'>\r\n";
|
|
|
|
$sizesel = "<select name='pagesize' id='dedepagesize' class='form-control admin-input-sm mr-2'>\r\n";
|
|
|
|
$sizesel .= "<option value='30' ".($this->pagesize == 30 ? "selected='selected'" : "").">30条/页</option>\r\n";
|
|
|
|
$sizesel .= "<option value='50' ".($this->pagesize == 50 ? "selected='selected'" : "").">50条/页</option>\r\n";
|
|
|
@@ -275,14 +275,14 @@ class DataListCP |
|
|
|
$plist .= $endpage;
|
|
|
|
}
|
|
|
|
if (preg_match("#form#i", $atts['listitem'])) {
|
|
|
|
$plist .= "<li class='page-item'><form name='pagelist' action='".$this->GetCurUrl()."'>$hidenform";
|
|
|
|
$plist .= "</ul><form name='pagelist' action='".$this->GetCurUrl()."'>$hidenform";
|
|
|
|
if ($totalpage > $total_list) {
|
|
|
|
$plist .= "<input type='text' name='pageno' class='form-control admin-input-sm mr-2'>\r\n";
|
|
|
|
$plist .= "<input type='text' name='pageno' class='form-control admin-input-xs mr-2'>\r\n";
|
|
|
|
$plist .= "<button type='submit' name='plistgo' class='btn btn-success btn-sm'>跳转</button>\r\n";
|
|
|
|
}
|
|
|
|
$plist .= "</form></li>\r\n";
|
|
|
|
$plist .= "</form>\r\n";
|
|
|
|
}
|
|
|
|
$plist .= "</ul></div>\r\n";
|
|
|
|
$plist .= "</div>\r\n";
|
|
|
|
return $plist;
|
|
|
|
}
|
|
|
|
//获得当前网址
|
|
|
|