{"id":298,"date":"2011-03-15T01:08:27","date_gmt":"2011-03-14T17:08:27","guid":{"rendered":"http:\/\/www.spendl.com\/?p=298"},"modified":"2015-06-25T22:53:44","modified_gmt":"2015-06-25T14:53:44","slug":"%e5%88%86%e4%ba%abdedecms%e7%bb%87%e6%a2%a6%e6%98%af%e6%80%8e%e4%b9%88%e5%9c%a8%e5%88%97%e8%a1%a8%e9%a1%b5%e9%9d%a2%e5%88%a9%e7%94%a8pagelist%e6%98%be%e7%a4%ba%e5%a4%9a%e9%a1%b9%e6%95%88%e6%9e%9c","status":"publish","type":"post","link":"https:\/\/www.spendl.com\/?p=298","title":{"rendered":"\u5206\u4eabdedecms(\u7ec7\u68a6)\u662f\u600e\u4e48\u5728\u5217\u8868\u9875\u9762\u5229\u7528pagelist\u663e\u793a\u591a\u9879\u6837\u5f0f\u6548\u679c"},"content":{"rendered":"<p>\u4eca\u5929\u5728\u4eff\u7ad9\u7684\u65f6\u5019\u9047\u5230\u90a3\u4e2a\u6548\u679c\u4e0d\u80fd\u76f4\u63a5\u7528{dede:pagelist listitem=&#8221;info,index,end,pre,next,pageno,option&#8221; listsize=&#8221;5&#8243;\/}\u8fd9\u4e2a\u6548\u679c\u5c31\u80fd\u505a\u51fa\u6765\uff0c\u672c\u6765\u90fd\u4e0d\u60f3\u641e\u7684\uff0c\u540e\u6765\u60f3\u7740\u60f3\u7740\u6bd5\u7adf\u662f\u8981\u4eff\u7ad9\u561b\uff0c\u90a3\u5f53\u7136\u8981\u8ffd\u6c42100%\u7684\u5566-\u5b8c\u7f8e\uff0c\u54c8\u54c8\uff01<\/p>\n<p>\u540e\u6765\u5728\u53c2\u8003\u201c\u5206\u4eabdedecms(\u7ec7\u68a6)\u662f\u600e\u4e48\u8c03\u7528\u641c\u7d22\u7ed3\u679c\u603b\u6570\u201d\u7684\u601d\u8def\u4e0b\u8fd8\u641e\u4e862\u4e2a\u591a\u5c0f\u65f6\u624d\u641e\u51fa\u6765\uff0c\u8981\u4fee\u6539arc.listview.class.php\u8fd9\u4e2a\u6587\u4ef6\u7684\u54e6\uff0c\u81f3\u4e8e\u8def\u5f84\u5728\u90a3\u91cc\u4f60\u61c2\u7684\uff0c\u73b0\u5728\u5206\u4eab\u4e00\u4e0b\uff01<\/p>\n<p>\u6548\u679c\uff1a<br \/>\n<a href=\"http:\/\/www.spendl.com\/wp-content\/uploads\/2011\/03\/00.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-299 alignnone\" title=\"00\" src=\"http:\/\/www.spendl.com\/wp-content\/uploads\/2011\/03\/00.jpg\" alt=\"\u5206\u4eabdedecms(\u7ec7\u68a6)\u662f\u600e\u4e48\u5728\u5217\u8868\u9875\u9762\u5229\u7528pagelist\u663e\u793a\u591a\u9879\u6548\u679c\" width=\"480\" height=\"317\" srcset=\"https:\/\/www.spendl.com\/wp-content\/uploads\/2011\/03\/00.jpg 480w, https:\/\/www.spendl.com\/wp-content\/uploads\/2011\/03\/00-300x198.jpg 300w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p>\u4e00\u3001<br \/>\n\u5728\uff1a<br \/>\n<span style=\"color: #0000ff;\">\u00a0\u00a0$maininfo = &#8220;&lt;li&gt;&lt;span class=\\&#8221;pageinfo\\&#8221;&gt;\u5171 &lt;strong&gt;{$totalpage}&lt;\/strong&gt;\u9875&lt;strong&gt;&#8221;.$this-&gt;TotalResult.&#8221;&lt;\/strong&gt;\u6761&lt;\/span&gt;&lt;\/li&gt;\\r\\n&#8221;;<br \/>\n\u00a0\u00a0$tnamerule = $this-&gt;GetMakeFileRule($this-&gt;Fields[&#8216;id&#8217;],&#8221;list&#8221;,$this-&gt;Fields[&#8216;typedir&#8217;],$this-&gt;Fields[&#8216;defaultname&#8217;],$this-&gt;Fields[&#8216;namerule2&#8217;]);<br \/>\n\u00a0\u00a0$tnamerule = ereg_replace(&#8216;^(.*)\/&#8217;,&#8221;,$tnamerule);<br \/>\n<\/span>\u4e0b\u9762\u6dfb\u52a0\u5982\u4e0b\u7ea2\u8272\u4ee3\u7801\uff1a<br \/>\n\u00a0\u00a0\/\/\u73b0\u5728\u7684\u9875\u6570<br \/>\n<span style=\"color: #ff0000;\">\u00a0\u00a0if($this-&gt;TotalResult == 0)<br \/>\n\u00a0\u00a0{<br \/>\n\u00a0\u00a0\u00a0return &#8220;&lt;font color=&#8217;#6e6e6e&#8217;&gt;\u7b2c&lt;\/font&gt;&lt;font color=#FF0000&gt;&#8221;.$this-&gt;PageNo.&#8221;&lt;\/font&gt;&lt;font color=&#8217;#6e6e6e&#8217;&gt;\/{$totalpage}&lt;\/font&gt;\\r\\n&#8221;;<br \/>\n\u00a0\u00a0}<br \/>\n\u00a0\u00a0$purl = $this-&gt;GetCurUrl();<br \/>\n\u00a0\u00a0$nowpage = &#8220;&lt;font color=&#8217;#6e6e6e&#8217;&gt;\u7b2c&lt;\/font&gt;&lt;font color=#FF0000&gt;&#8221;.$this-&gt;PageNo.&#8221;&lt;\/font&gt;&lt;font color=&#8217;#6e6e6e&#8217;&gt;\/{$totalpage}&lt;\/font&gt;\\r\\n&#8221;;<br \/>\n<\/span>\u6837\u5f0f\u81ea\u5df1\u4fee\u6539\u3002<\/p>\n<p>\u4e8c\u3001<br \/>\n\u5728\uff1a<br \/>\n<span style=\"color: #0000ff;\">$plist = &#8221;;<br \/>\n<\/span>\u4e0b\u9762\u6dfb\u52a0\u5982\u4e0b\u7ea2\u8272\u4ee3\u7801\uff1a<br \/>\n<span style=\"color: #ff0000;\">\u00a0\u00a0if(eregi(&#8216;totalr&#8217;,$listitem)) $plist .= $TotalResult;\/\/\u603b\u6587\u7ae0\u6570<br \/>\n\u00a0\u00a0if(eregi(&#8216;nowp&#8217;,$listitem)) $plist .= $nowpage;\/\/\u73b0\u5728\u7684\u9875\u6570<br \/>\n<\/span>\u6ce8\u610f\u8fd9\u91cc\u7684$plist = &#8221;;\u662f\u9759\u6001\u9875\u9762\u91cc\u9762\u7684\u54e6\uff0c\u52a8\u6001\u7684\u540c\u6837\u601d\u8def\u3002<\/p>\n<p>\u4e09\u3001<br \/>\n\u5728\u8981\u663e\u793a\u7684\u5730\u65b9\u52a0\u5165<br \/>\n<span style=\"color: #ff0000;\">{dede:pagelist listitem=&#8221;totalr&#8221; listsize=&#8221;5&#8243;\/}&lt;!&#8211;totalr\u662f\u603b\u6587\u7ae0\u6570&#8211;&gt;<br \/>\n{dede:pagelist listitem=&#8221;nowp&#8221; listsize=&#8221;5&#8243;\/}&lt;!&#8211;nowp\u662f\u73b0\u5728\u7684\u9875\u6570&#8211;&gt;<br \/>\n<\/span><\/p>\n<p>\u4e0a\u9762\u7684&#8221;totalr&#8221;\u548c&#8221;nowp&#8221;\u90fd\u662f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u7684\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u4eff\u7ad9\u7684\u65f6\u5019\u9047\u5230\u90a3\u4e2a\u6548\u679c\u4e0d\u80fd\u76f4\u63a5\u7528{dede:pagelist listitem=&#8221;info,index,end,pre,next,pageno,option&#8221; listsize=&#8221;5&#8243;\/}\u8fd9\u4e2a\u6548\u679c\u5c31\u80fd\u505a\u51fa\u6765\uff0c\u672c\u6765\u90fd\u4e0d\u60f3\u641e\u7684\uff0c\u540e\u6765\u60f3\u7740\u60f3\u7740\u6bd5\u7adf\u662f\u8981\u4eff\u7ad9\u561b\uff0c\u90a3\u5f53\u7136\u8981\u8ffd\u6c42100%\u7684\u5566-\u5b8c\u7f8e\uff0c\u54c8\u54c8\uff01<\/p>\n<div class=\"clear-float\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[99,132,133,131,134,94],"views":4465,"_links":{"self":[{"href":"https:\/\/www.spendl.com\/index.php?rest_route=\/wp\/v2\/posts\/298"}],"collection":[{"href":"https:\/\/www.spendl.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spendl.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spendl.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spendl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":5,"href":"https:\/\/www.spendl.com\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":302,"href":"https:\/\/www.spendl.com\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions\/302"}],"wp:attachment":[{"href":"https:\/\/www.spendl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spendl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spendl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}