| @@ -185,7 +185,7 @@ class DataListCP | |||||
| $atts['listsize'] = 6; | $atts['listsize'] = 6; | ||||
| } | } | ||||
| if (!isset($atts['listitem'])) { | if (!isset($atts['listitem'])) { | ||||
| $atts['listitem'] = "pagesize,info,index,end,pre,next,pageno"; | |||||
| $atts['listitem'] = "pagesize,info,index,end,pre,next,pageno,form"; | |||||
| } | } | ||||
| $totalpage = ceil($this->totalResult / $this->pagesize); | $totalpage = ceil($this->totalResult / $this->pagesize); | ||||
| //echo " {$totalpage}=={$this->totalResult}=={$this->pagesize}"; | //echo " {$totalpage}=={$this->totalResult}=={$this->pagesize}"; | ||||
| @@ -240,7 +240,7 @@ class DataListCP | |||||
| $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"; | $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-end'>\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 = "<select name='pagesize' id='dedepagesize' class='form-control mr-2' style='width:100px'>\r\n"; | |||||
| $sizesel .= "<option value='30' ".($this->pagesize == 30 ? "selected='selected'" : "").">30条/页</option>\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"; | $sizesel .= "<option value='50' ".($this->pagesize == 50 ? "selected='selected'" : "").">50条/页</option>\r\n"; | ||||
| $sizesel .= "<option value='100' ".($this->pagesize == 100 ? "selected='selected'" : "").">100条/页</option>\r\n"; | $sizesel .= "<option value='100' ".($this->pagesize == 100 ? "selected='selected'" : "").">100条/页</option>\r\n"; | ||||
| @@ -271,7 +271,7 @@ class DataListCP | |||||
| if (preg_match("#form#i", $atts['listitem'])) { | if (preg_match("#form#i", $atts['listitem'])) { | ||||
| $plist .= "</ul><form name='pagelist' action='".$this->GetCurUrl()."'>$hidenform"; | $plist .= "</ul><form name='pagelist' action='".$this->GetCurUrl()."'>$hidenform"; | ||||
| if ($totalpage > $total_list) { | if ($totalpage > $total_list) { | ||||
| $plist .= "<input type='text' name='pageno' class='form-control admin-input-xs ml-2'>\r\n"; | |||||
| $plist .= "<input type='text' name='pageno' class='form-control admin-input-xs ml-2' placeholder='页数'>\r\n"; | |||||
| $plist .= "<button type='submit' name='plistgo' class='btn btn-success btn-sm'>跳转</button>\r\n"; | $plist .= "<button type='submit' name='plistgo' class='btn btn-success btn-sm'>跳转</button>\r\n"; | ||||
| } | } | ||||
| $plist .= "</form>\r\n"; | $plist .= "</form>\r\n"; | ||||