{"id":5749,"date":"2025-02-19T16:44:49","date_gmt":"2025-02-19T08:44:49","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=5749"},"modified":"2025-02-19T16:44:49","modified_gmt":"2025-02-19T08:44:49","slug":"%e5%a6%82%e4%bd%95%e9%99%90%e5%88%b6dedecms%e6%a0%8f%e7%9b%ae%e5%88%97%e8%a1%a8%e9%a1%b5%e7%94%9f%e6%88%90%e7%9a%84%e6%9c%80%e5%a4%a7%e9%a1%b5%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/5749.html","title":{"rendered":"\u5982\u4f55\u9650\u5236DEDECMS\u680f\u76ee\u5217\u8868\u9875\u751f\u6210\u7684\u6700\u5927\u9875\u6570"},"content":{"rendered":"

DEDECMS\u9ed8\u8ba4\u7684\u680f\u76ee\u8868\u9875\u662f\u751f\u6210\u6240\u6709\u6587\u7ae0\u5217\u8868\uff0c\u8fd9\u6837\u7684\u8bdd\uff0c\u680f\u76ee\u7684\u6240\u6709\u5217\u8868\u9875\u90fd\u4f1a\u5c55\u793a\uff0c\u5982\u679c\u6709\u4eba\u91c7\u96c6\u7684\u8bdd\uff0c\u680f\u76ee\u6240\u6709\u7684\u6587\u7ae0\u90fd\u80fd\u5168\u90e8\u88ab\u91c7\u96c6\u642c\u8d70\u3002\u6211\u4eec\u76f4\u63a5\u7ed9\u4ed6\u8bbe\u7f6e\u5217\u8868\u9875\u53ea\u663e\u793a3\u9875\u3002\u90a3\u4e48\uff0c\u91c7\u96c6\u7684\u4e5f\u5c31\u53ea\u80fd\u91c7\u96c63\u9875\u7684\u5185\u5bb9\u3002\u8fd9\u6837\u5c31\u80fd\u5f88\u597d\u7684\u4fdd\u62a4\u5185\u5bb9\u88ab\u5168\u90e8\u642c\u8d70\u3002\u4e0b\u9762\u5c31\u662f\u8bbe\u7f6e\u6559\u7a0b\u3002<\/p>\n

\u7b2c\u4e00\u6b65\u6dfb\u52a0\u53d8\u91cf<\/h2>\n

\u6253\u5f00\u7f51\u7ad9\u540e\u53f0\uff1a\u7cfb\u7edf-\u7ad9\u70b9\u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u53d8\u91cf\uff0c<\/p>\n

\u53d8\u91cf\u540d\u79f0\uff1acfg_listmaxpage\uff0c<\/p>\n

\u53d8\u91cf\u503c\uff1a3(\u53ef\u4ee5\u503c\u53ef\u4ee5\u81ea\u5df1\u4fee\u6539)\u3002<\/p>\n

\u53d8\u91cf\u7c7b\u578b\uff1a\u6570\u5b57<\/p>\n

\u53d8\u91cf\u8bf4\u660e\uff1a\u680f\u76ee\u751f\u6210\u5217\u8868\u6700\u5927\u9875\u6570<\/p>\n

\u6240\u5c5e\u7ec4\uff1a\u9009\u62e9\u5176\u4ed6\u9009\u9879<\/p>\n

\u7136\u540e\u4fdd\u5b58\u53d8\u91cf\u3002<\/p>\n

\"\"<\/a><\/p>\n

\u7b2c\u4e8c\u6b65\u4fee\u6539\u4ee3\u7801<\/h2>\n

\u6253\u5f00\/include\/arc.listview.class.php\u6587\u4ef6<\/p>\n

\u641c\u7d22<\/p>\n

$this->TotalPage = ceil($this->TotalResult\/$this->PageSize);\r\n<\/code><\/pre>\n

\u5927\u7ea6\u5728268\u884c\uff0c\u5728\u4ed6\u4e0a\u9762\u6dfb\u52a0\u4e0b\u9762\u4ee3\u7801\uff1a<\/p>\n

$this->TotalResult = max($this->PageSize * $GLOBALS[\"cfg_listmaxpage\"], $this->TotalResult);\r\n<\/code><\/pre>\n

\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n

\"\"<\/a><\/p>\n

\u8fd9\u6bb5\u4ee3\u7801\u7684\u4f5c\u7528\u662f\u5c06\u603b\u8bb0\u5f55\u6570\u9650\u5236\u4e3a\u914d\u7f6e\u7684\u6700\u5927\u9875\u6570\u4e58\u4ee5\u6bcf\u9875\u663e\u793a\u7684\u8bb0\u5f55\u6570\uff0c\u4ece\u800c\u63a7\u5236\u603b\u9875\u6570\u4e0d\u8d85\u8fc7\u8bbe\u5b9a\u7684\u6700\u5927\u503c\uff0c\u7136\u540e\u4fdd\u5b58\u3002<\/p>\n

\u7136\u540e\u6e05\u9664\u7f13\u5b58\uff0c\u5982\u679c\u5217\u8868\u9875\u662f\u751f\u6210\u9759\u6001\u7684HTML\u7684\uff0c\u5c31\u9700\u8981\u91cd\u65b0\u751f\u6210\u3002<\/p>\n

\u4e0a\u9762\u53ea\u662f\u4e00\u79cd\u65b9\u6cd5\uff0c\u8fd8\u6709\u4e00\u79cd\u5c31\u662f\u6dfb\u52a0\u8ddf\u4e0a\u9762\u6b65\u9aa4\u5dee\u4e0d\u591a\uff0c\u53ea\u4e0d\u8fc7\u4fee\u6539\u6587\u4ef6\u6dfb\u52a0\u7684\u4ee3\u7801\u4e0d\u4e00\u6837\uff0c\u6253\u5f00\/include\/arc.listview.class.php\u6587\u4ef6<\/p>\n

\u641c\u7d22\uff1a\u521d\u59cb\u5316\u5217\u8868\u6a21\u677f\uff0c\u5e76\u7edf\u8ba1\u9875\u9762\u603b\u6570<\/p>\n

\u5927\u7ea6\u5728225\u884c\uff0c\u5728\u5b83\u4e0a\u9762\u6dfb\u52a0<\/p>\n

if($this->TotalResult > 100)\r\n{\r\n$this->TotalResult = $GLOBALS[\"cfg_listmaxpage\"];\r\n}\r\n<\/code><\/pre>\n

\u8fd9\u4e2a\u662f\u901a\u8fc7\u6587\u7ae0\u7684\u6570\u91cf\u63a7\u5236\u9875\u9762\u751f\u6570\u91cf\uff0c\u5982\u679c\u4e00\u9875\u6587\u7ae0\u6570\u91cf\u4e3a10\u7bc7\uff0c100\u7bc7\u6587\u7ae0\u5373\u751f\u621010\u9875\u3002<\/p>\n

\u6536\u5de5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

DEDECMS\u9ed8\u8ba4\u7684\u680f\u76ee\u8868\u9875\u662f\u751f\u6210\u6240\u6709\u6587\u7ae0\u5217\u8868\uff0c\u8fd9\u6837\u7684\u8bdd\uff0c\u680f\u76ee\u7684\u6240\u6709\u5217\u8868\u9875\u90fd\u4f1a\u5c55\u793a\uff0c\u5982\u679c\u6709\u4eba\u91c7\u96c6\u7684\u8bdd\uff0c\u680f\u76ee\u6240\u6709 […]<\/p>\n","protected":false},"author":1,"featured_media":5751,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,1774],"class_list":["post-5749","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-dedecms","tag-1774"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=5749"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5749\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media\/5751"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=5749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=5749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=5749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}