{"id":1935,"date":"2018-10-24T09:49:09","date_gmt":"2018-10-24T01:49:09","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=1935"},"modified":"2020-04-19T20:40:35","modified_gmt":"2020-04-19T12:40:35","slug":"%e7%bb%87%e6%a2%a6dedecms%e4%b8%89%e7%ba%a7%e6%a0%8f%e7%9b%ae%e8%b0%83%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1935.html","title":{"rendered":"\u7ec7\u68a6DEDECMS\u4e09\u7ea7\u680f\u76ee\u8c03\u7528"},"content":{"rendered":"

\u540e\u53f0\u680f\u76ee<\/p>\n

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

\u6548\u679c<\/h2>\n

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

\u8c03\u7528\u4ee3\u7801<\/h2>\n
 {dede:channelartlist typeid=24}\r\n                <li class=\"a1\">\r\n                    <div class=\"tx\"><a href=\"{dede:field.typeurl\/}\">{dede:field name='typename'\/}<\/a> <\/div>\r\n                    <dl>\r\n                    {dede:channel type='son'}\r\n                    <dd> <a href=\"#\">[field:typename\/]<\/a><span>\/<\/span> <\/dd>\r\n                    {\/dede:channel}\r\n                  <\/dl>\r\n                    <div class=\"pop\"> {dede:channel type=son noself=yes}\r\n                    <dl>\r\n                        <dt><a href=\"[field:typeurl\/]\"  title=\"[field:typename\/]\">[field:typename\/] ><\/a><\/dt>\r\n                        <dd> [field:id runphp=yes]\r\n                        global $dsql;\r\n                        $sql = \"Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=@me And ishidden<>1 order by sortrank asc limit 0,10\";\r\n                        $dsql->SetQuery($sql);\r\n                        $dsql->Execute('t');\r\n                        $result = '';\r\n                        while($row = $dsql->GetArray('t'))\r\n                        {\r\n                        $typename = $row['typename'];\r\n                        $typeurl = GetOneTypeUrlA($row);\r\n                        $result .= \"<a href='{$typeurl}' class='ui-link'>{$typename}\u3000|<\/a>\";\r\n                        }\r\n                        @me = $result;\r\n                        [\/field:id] <\/dd>\r\n                      <\/dl>\r\n                    <div class=\"clr\"><\/div>\r\n                    {\/dede:channel}<\/div>\r\n                  <\/li>\r\n                {\/dede:channelartlist} <\/code><\/pre>\n

\u4ee5\u4e0a\u4ee3\u7801\u662f\u6839\u636e\u4e0b\u9762\u4ee3\u7801\u4fee\u6539\u7684\u3002\u4f60\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539<\/p>\n

\u4e00\u7ea7\u3001\u4e8c\u7ea7\u3001\u4e09\u7ea7\u3001\u56db\u7ea7\u6807\u7b7e\u5d4c\u5957\u6cd5<\/h2>\n
<ul>\r\n\t{dede:channelartlist row=7 typeid=top}\r\n\t<!-- \u9876\u7ea7 -->\r\n\t<li class=\"top\">\r\n\t\t<a href=\"{dede:field.typeurl\/}\" >{dede:field name='typename'\/}<\/a>\r\n\t\t<ul class=\"sub\">\r\n\t\t{dede:channel type=son noself=yes}\r\n\t\t<!-- \u4e8c\u7ea7 -->\r\n\t\t<li>\r\n\t\t\t<a href=\"[field:typeurl\/]\"  title=\"[field:typename\/]\">[field:typename\/]<\/a>\r\n\t\t\t<ul>\r\n\t\t\t\t<!-- \u4e09\u7ea7 -->\r\n\t\t\t\t[field:id runphp=yes]\r\n\t\t\t\tglobal $dsql;\r\n\t\t\t\t$sql = \"Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=@me And ishidden<>1 order by sortrank asc limit 0,10\";\r\n\t\t\t\t$dsql->SetQuery($sql);\r\n\t\t\t\t$dsql->Execute('t');\r\n\t\t\t\t$result = '';\r\n\t\t\t\twhile($row = $dsql->GetArray('t'))\r\n\t\t\t\t{\r\n\t\t\t\t\t$typename = $row['typename'];\r\n\t\t\t\t\t$typeurl = GetOneTypeUrlA($row);\r\n\t\t\t\t\t$result .= \"<li><a href='{$typeurl}'>{$typename}<\/a><\/li>\";\r\n\t\t\t\t}\r\n\t\t\t\t@me = $result;\r\n\t\t\t\t[\/field:id]\r\n\t\t\t<\/ul>\r\n\t\t<\/li>\r\n\t\t{\/dede:channel}\r\n\t\t<\/ul>\r\n\t<\/li>    \r\n\t{\/dede:channelartlist}\r\n<\/ul><\/code><\/pre>\n

\u4e0a\u9762\u7684\u662f\u8f93\u51fa\u5230\u4e09\u7ea7\u680f\u76ee\uff0c\u5982\u679c\u9700\u8981\u56db\u7ea7\u680f\u76ee\u53ef\u4ee5\u8fd9\u6837\u4fee\u6539\u4e09\u7ea7\u56db\u7ea7<\/p>\n

<!-- \u4e09\u7ea7\/\u56db\u7ea7 -->\r\n[field:id runphp=yes]\r\nglobal $dsql;\r\n$sql = \"Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=@me And ishidden<>1 order by sortrank asc limit 0,10\";\r\n$dsql->SetQuery($sql);\r\n$dsql->Execute('t');\r\n$result = '';\r\nwhile($row = $dsql->GetArray('t'))\r\n{\r\n    $row['typeurl'] = GetOneTypeUrlA($row);\r\n\t$result .= \"<a href='{$row[typeurl]}'>{$row[typename]}<\/a>\";\r\n\t\/\/\u56db\u7ea7\r\n\t$nsql = \"Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=$row[id] And ishidden<>1 order by sortrank asc limit 0,10\";\r\n\t$dsql->SetQuery($nsql);\r\n\t$dsql->Execute('n');\r\n\twhile($nrow = $dsql->GetArray('n'))\r\n\t{\r\n\t\t$nrow['typeurl'] = GetOneTypeUrlA($nrow);\r\n\t\t$result .= \"<a href='{$nrow[typeurl]}'>{$nrow[typename]}<\/a>\";\r\n\t}\r\n}\r\n@me = $result;\r\n[\/field:id]<\/code><\/pre>\n

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

\u540e\u53f0\u680f\u76ee \u6548\u679c \u8c03\u7528\u4ee3\u7801 {dede:channelartlist typeid=24} <li cla […]<\/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,1230,1229,180,360],"class_list":["post-1935","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-1230","tag-1229","tag-180","tag-360"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1935","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=1935"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1935\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}