{"id":1059,"date":"2017-03-02T15:22:49","date_gmt":"2017-03-02T07:22:49","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1059"},"modified":"2017-03-02T15:23:05","modified_gmt":"2017-03-02T07:23:05","slug":"dedecms%e6%90%9c%e7%b4%a2%e9%a1%b5%e9%9d%a2%e8%b0%83%e7%94%a8%e6%90%9c%e7%b4%a2%e6%80%bb%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1059.html","title":{"rendered":"DedeCMS\u641c\u7d22\u9875\u9762\u8c03\u7528\u641c\u7d22\u603b\u6570"},"content":{"rendered":"

\u6253\u5f00\/include\/arc.searchview.class.php\u6587\u4ef6\uff0c\u7136\u540e\u6309\u4e0b\u9762\u6b65\u9aa4\u4fee\u6539\u6587\u4ef6<\/p>\n

\u7b2c\u4e00\u6b65\uff1a\u5728<\/p>\n

else if($tagname==\"pagelist\")\r\n{\r\n    $list_len = trim($ctag->GetAtt(\"listsize\"));\r\n    if($list_len==\"\")\r\n    {\r\n        $list_len = 3;\r\n    }\r\n    $this->dtp->Assign($tagid,$this->GetPageListDM($list_len));\r\n}\r\n<\/pre>\n

\u4e0b\u9762\u6dfb\u52a0\uff1a<\/p>\n

else if($tagname==\"itemcount\")\r\n{   \r\n    $list_len = trim($ctag->GetAtt(\"listsize\"));   \r\n    if($list_len==\"\")   \r\n    {\r\n        $list_len = 3;   \r\n    }   \r\n    $this->dtp->Assign($tagid,$this->GetItemsCountDM($list_len));\r\n}\r\n<\/pre>\n

\u7b2c\u4e8c\u6b65\uff1a\u5728<\/p>\n

\/**\r\n *  \u83b7\u5f97\u5f53\u524d\u7684\u9875\u9762\u6587\u4ef6\u7684url\r\n *\r\n * @access    public\r\n * @return    string\r\n *\/\r\n<\/pre>\n

\u524d\u9762\u6dfb\u52a0\u4e0b\u9762\u4ee3\u7801\uff1a<\/p>\n

\/\/\u2014\u2014\u2014\u2014  \r\n\/\/\u641c\u7d22\u8f93\u51fa\u603b\u91cf  \r\n\/\/\u2014\u2014\u2014\u2014  \r\nfunction GetItemsCountDM($list_len)  \r\n{    \r\n    global $oldkeyword;    \r\n    $pagenow = ($this->PageNo-1) * 10 + 1;    \r\n    $pagenows = $this->PageNo*10;   \/\/\u5f53\u7ed3\u679c\u8d85\u8fc7\u9650\u5236\u65f6\uff0c\u91cd\u8bbe\u7ed3\u679c\u9875\u6570    \r\n    if($this->TotalResult > $this->SearchMaxRc)   \r\n    { \r\n        $totalpage = ceil($this->SearchMaxRc\/$this->PageSize);    \r\n    }   \r\n    $plist .= $this->TotalResult;    \r\n    return $plist;  \r\n}\r\n<\/pre>\n

\u7b2c\u4e09\u6b65\uff1a
\n\u5728\u8981\u663e\u793a\u7684\u5730\u65b9\u52a0\u5165{dede:itemcount listsize=\u20194\u2032\/} \u5373\u53ef<\/p>\n

\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n

\"QQ\u622a\u56fe20170302152015\"<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

\u6253\u5f00\/include\/arc.searchview.class.php\u6587\u4ef6\uff0c\u7136\u540e\u6309\u4e0b\u9762\u6b65\u9aa4\u4fee\u6539\u6587\u4ef6 \u7b2c\u4e00\u6b65\uff1a\u5728 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,293],"class_list":["post-1059","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-293"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1059","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=1059"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1059\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}