{"id":229,"date":"2011-01-20T13:40:49","date_gmt":"2011-01-20T05:40:49","guid":{"rendered":"http:\/\/www.spendl.com\/?p=229"},"modified":"2015-06-25T22:53:06","modified_gmt":"2015-06-25T14:53:06","slug":"%e5%88%86%e4%ba%abdedecms%e7%bb%87%e6%a2%a6%e6%98%af%e6%80%8e%e4%b9%88%e8%b0%83%e7%94%a8%e6%90%9c%e7%b4%a2%e7%bb%93%e6%9e%9c%e6%80%bb%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.spendl.com\/?p=229","title":{"rendered":"\u5206\u4eabdedecms(\u7ec7\u68a6)\u662f\u600e\u4e48\u8c03\u7528\u641c\u7d22\u7ed3\u679c\u603b\u6570"},"content":{"rendered":"<p>17\u53f7\u90a3\u5929\u5728DEDE\u8bba\u575b\u548c\u767e\u5ea6\u4e0a\u641c\u4e86\u4e00\u4e2a\u4e0a\u5348\u90fd\u6ca1\u641c\u5230\uff0c\u6211\u5c31\u5206\u6790arc.searchview.class.php\u8fd9\u4e2a\u9875\u9762\uff0c\u603b\u7b97\u80fd\u5728\u641c\u7d22\u9875\u9762\u8c03\u7528\u641c\u7d22\u7ed3\u679c\u603b\u6570\uff0c\u5206\u4eab\u4e00\u4e0b\uff01<br \/>\n\u6548\u679c\uff1a<br \/>\n<a href=\"http:\/\/www.spendl.com\/wp-content\/uploads\/2011\/01\/01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-230\" title=\"\u5206\u4eabdedecms(\u7ec7\u68a6)\u662f\u600e\u4e48\u8c03\u7528\u641c\u7d22\u7ed3\u679c\u603b\u6570\" src=\"http:\/\/www.spendl.com\/wp-content\/uploads\/2011\/01\/01.jpg\" alt=\"\u5206\u4eabdedecms(\u7ec7\u68a6)\u662f\u600e\u4e48\u8c03\u7528\u641c\u7d22\u7ed3\u679c\u603b\u6570\" width=\"374\" height=\"290\" srcset=\"https:\/\/www.spendl.com\/wp-content\/uploads\/2011\/01\/01.jpg 374w, https:\/\/www.spendl.com\/wp-content\/uploads\/2011\/01\/01-300x232.jpg 300w\" sizes=\"(max-width: 374px) 100vw, 374px\" \/><\/a><\/p>\n<p>\u4e00\u3001<br \/>\n\u5728\uff1a<br \/>\n<span style=\"color: #0000ff;\">else if($tagname==&#8221;pagelist&#8221;)<br \/>\n{<br \/>\n$list_len = trim($ctag-&gt;GetAtt(&#8220;listsize&#8221;));<br \/>\nif($list_len==&#8221;&#8221;)<br \/>\n{<br \/>\n$list_len = 3;<br \/>\n}<br \/>\n$this-&gt;dtp-&gt;Assign($tagid,$this-&gt;GetPageListDM($list_len));<br \/>\n} <\/span><br \/>\n\u4e0b\u9762\u52a0\u5165\u5982\u4e0b\u7ea2\u8272\u4ee3\u7801\uff1a<br \/>\n<span style=\"color: #ff0000;\">else  if($tagname==&#8221;pagelists&#8221;)<br \/>\n{<br \/>\n$list_len =  trim($ctag-&gt;GetAtt(&#8220;listsize&#8221;));<br \/>\nif($list_len==&#8221;&#8221;)<br \/>\n{<br \/>\n$list_len = 3;<br \/>\n}<br \/>\n$this-&gt;dtp-&gt;Assign($tagid,$this-&gt;GetPageListsDM($list_len));<br \/>\n} <\/span><br \/>\n\u5373399\u884c\u3002<\/p>\n<p>\u4e8c\u3001<br \/>\n\u5728\uff1a<br \/>\n<span style=\"color: #0000ff;\">\/\/&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\/\/\u83b7\u5f97\u5f53\u524d\u7684\u9875\u9762\u6587\u4ef6\u7684url<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;- <\/span><br \/>\n\u524d\u9762\u52a0\u5165\u5982\u4e0b\u7ea2\u8272\u4ee3\u7801\uff0c\u5176\u5b9e\u4e5f\u5c31\u662fPageList\u4fee\u6539\u800c\u6765\u7684\uff1a<br \/>\n<span style=\"color: #ff0000;\">\/\/&#8212;&#8212;&#8212;&#8212;<br \/>\n\/\/\u641c\u7d22\u8f93\u51fa\u603b\u91cf<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;<br \/>\n\/\/\u83b7\u53d6\u52a8\u6001\u7684\u5206\u9875\u5217\u8868<br \/>\nfunction GetPageListsDM($list_len)<br \/>\n{<br \/>\nglobal $oldkeyword;<br \/>\n$pagenow = ($this-&gt;PageNo-1) * 10 + 1;<br \/>\n$pagenows = $this-&gt;PageNo*10;<\/p>\n<p>\/\/\u5f53\u7ed3\u679c\u8d85\u8fc7\u9650\u5236\u65f6\uff0c\u91cd\u8bbe\u7ed3\u679c\u9875\u6570<br \/>\nif($this-&gt;TotalResult &gt; $this-&gt;SearchMaxRc)<br \/>\n{<br \/>\n$totalpage = ceil($this-&gt;SearchMaxRc\/$this-&gt;PageSize);<br \/>\n}<\/p>\n<p>$infos = &#8220;&#8221;.$this-&gt;TotalResult.&#8221;&#8221;;<\/p>\n<p>\/\/\u8f93\u51fa<\/p>\n<p>$plist .= $infos;<\/p>\n<p>return $plist;<br \/>\n}<br \/>\n\/\/\u7ed3\u675f<\/span><br \/>\n\u672c\u4eba\u83dc\u9e1f\uff0c\u4ee3\u7801\u6709\u70b9\u51cc\u4e71\uff0c\u9ad8\u624b\u8bf7\u81ea\u884c\u51cf\u80a5\u3002<\/p>\n<p>\u4e09\u3001<br \/>\n\u5728\u8981\u663e\u793a\u7684\u5730\u65b9\u52a0\u5165<br \/>\n<span style=\"color: #ff0000;\">{dede:pagelists  listsize=&#8217;4&#8217;\/} <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>17\u53f7\u90a3\u5929\u5728DEDE\u8bba\u575b\u548c\u767e\u5ea6\u4e0a\u641c\u4e86\u4e00\u4e2a\u4e0a\u5348\u90fd\u6ca1\u641c\u5230\uff0c\u6211\u5c31\u5206\u6790arc.searchview.class.php\u8fd9\u4e2a\u9875\u9762\uff0c\u603b\u7b97\u80fd\u5728\u641c\u7d22\u9875\u9762\u8c03\u7528\u641c\u7d22\u7ed3\u679c\u603b\u6570\uff0c\u5206\u4eab\u4e00\u4e0b\uff01<\/p>\n<p>\u6548\u679c\uff1a<\/p>\n<p><a href=\"http:\/\/www.spendl.com\/wp-content\/uploads\/2011\/01\/01.jpg\"><\/a><\/p>\n<p>\u4e00\u3001<\/p>\n<p>\u5728\uff1a<\/p>\n<p><span style=\"color: #0000ff;\">else if($tagname==&#8221;pagelist&#8221;)<\/p>\n<p>{<\/p>\n<p>$list_len <\/p>\n<p><\/span><\/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":[93,92,98,96,94,97,95],"views":10656,"_links":{"self":[{"href":"https:\/\/www.spendl.com\/index.php?rest_route=\/wp\/v2\/posts\/229"}],"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=229"}],"version-history":[{"count":2,"href":"https:\/\/www.spendl.com\/index.php?rest_route=\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":232,"href":"https:\/\/www.spendl.com\/index.php?rest_route=\/wp\/v2\/posts\/229\/revisions\/232"}],"wp:attachment":[{"href":"https:\/\/www.spendl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spendl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spendl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}