{"id":2040,"date":"2018-11-20T15:52:02","date_gmt":"2018-11-20T07:52:02","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=2040"},"modified":"2018-11-20T16:11:07","modified_gmt":"2018-11-20T08:11:07","slug":"%e7%bb%87%e6%a2%a6dedecms%e7%b3%bb%e7%bb%9f%e4%b8%adautoindex%e5%92%8citemindex%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/2040.html","title":{"rendered":"\u7ec7\u68a6DEDECMS\u7cfb\u7edf\u4e2d\u81ea\u589e\u51fd\u6570autoindex\u548citemindex\u7684\u533a\u522b\u53ca\u5b9e\u4f8b"},"content":{"rendered":"
autoindex\uff1a\u4e00\u822c\u5728\u5faa\u73af\u6807\u7b7e\u4e2d\u4f7f\u7528\uff0c\u4e0d\u53ef\u4ee5\u72ec\u7acb\u4f7f\u7528<\/p>\n
itemindex\uff1a\u53ef\u4ee5\u72ec\u7acb\u4f7f\u7528<\/p>\n
autoindex\u4e0eitemindex\u90fd\u662f\u4e2d\u90fd\u662f\u7528@me\u6765\u8868\u793a\u8ba1\u6570\u5f00\u59cb\uff0c\u800c\u7c7b\u4f3c@me+1\u5219\u53ef\u4ee5\u6307\u5b9a\u6570\u5b57\u5f00\u59cb\uff0c\u5728\u4e0d\u540c\u7684\u6807\u7b7e\u4e2d\uff0c\u4ed6\u4eec\u7684\u8d77\u59cb\u503c\u662f\u4e0d\u540c\u7684\uff1a<\/p>\n
[field:global name=autoindex runphp=\"yes\"]@me=@me+1;[\/field:global]\r\n{dede:global name=itemindex runphp=\"yes\"}@me=@me+1;{\/dede:global}<\/code><\/pre>\nchannelartlist \u6807\u7b7e\u4e0b\u4f7f\u7528\u00a0{dede:global name='itemindex' runphp='yes'}@me;{\/dede:global}\u00a0\u662f\u4ece0\u5f00\u59cb\u81ea\u589e1<\/p>\n
channelartlist \u6807\u7b7e\u4e0b\u4f7f\u7528\u00a0{dede:global.itemindex\/}\u00a0\u9ed8\u8ba4\u4ece1\u5f00\u59cb<\/p>\n
arclist \u6807\u7b7e\u4e0b\u4f7f\u7528\u00a0[field:global.autoindex\/]\u00a0\u9ed8\u8ba4\u4ece1\u5f00\u59cb<\/p>\n
channel \u6807\u7b7e\u4e0b\u4f7f\u7528\u00a0[field:global.autoindex\/]\u00a0\u9ed8\u8ba4\u4ece0\u5f00\u59cb<\/p>\n
\u800c\u5982\u679c\u60f3\u8981\u6539\u53d8\u8d77\u59cb\u503c\u5219\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u8c03\u7528\uff1a<\/strong><\/p>\n\u4ece0\u5f00\u59cb[field:global name=autoindex runphp=\"yes\"]@me=@me-1;[\/field:global]<\/p>\n
\u4ece1\u5f00\u59cb[field:global name=autoindex runphp=\"yes\"]@me=@me+1;[\/field:global]<\/p>\n
\u5176\u4e2d\uff0c@me=@me\u00b11\u5c31\u80fd\u5b9e\u73b0\u5bf9\u5e94\u7684\u8d77\u59cb\u503c\uff0c\u8fd9\u91cc\u81ea\u5df1\u6839\u636e\u9700\u8981\u4fee\u6539\u5373\u53ef\u3002<\/p>\n
channelartlist\u5b9e\u4f8b<\/strong><\/h2>\n{dede:channelartlist notypeid='123,124,146,147'}\r\n<a class=\"pd2_lmt{dede:global name=itemindex runphp='yes'}@me=(@me==1)?'1':'3';{\/dede:global}\" onmouseover=\"showitem2({dede:global name=itemindex runphp='yes'}@me=@me-1;{\/dede:global},'pd_lm','h_pd_lm_','pd2_lmt');\" href='{dede:field name='typeurl'\/}'>\r\n{dede:php}if($refObj->Fields['ispart']){echo $refObj->Fields['typename'];}{\/dede:php}\r\n<\/a>\r\n{\/dede:channelartlist}<\/code><\/pre>\nchannel\u5b9e\u4f8b<\/strong><\/h2>\n{dede:channel titlelen='32'}\r\n<li [field:global name='autoindex' runphp='yes']if(@me%2==0){@me='class=\"rr\"';}else{@me='';}[\/field:global] ><h3><a href='[field:typelink\/]'>[field:typename\/]<\/a><\/h3><\/li>\r\n{\/dede:channel}<\/code><\/pre>\n\u5728arclist\u4e2d\u4f7f\u7528autoindex runphp \u65f6\u7528\u8fd9\u79cd\u65b9\u5f0f\uff1a<\/strong><\/h2>\n{dede:arclist titlelen='22' row='4' flag='c' orderby='id'}\r\n<a href=\"[field:arcurl \/]\" target=\"_blank\">[field:title \/]<\/a>\r\n[field:global name='autoindex' runphp='yes']if(@me==2){@me=\"<br \/>\";}else{@me=' ';}[\/field:global]{\/dede:arclist}<\/code><\/pre>\narclist\u5b9e\u4f8b<\/strong><\/h2>\n{dede:arclist channelid=17 row=6 orderby=pubdate titlelen=40 addfields='docphoto,docjob,doctec' typeid='123,136,146,155,172,182,202'}\r\n<div id=\"h_nrr_zj_[field:global.autoindex\/]\" class=\"nrr_zjl\" [field:global name='autoindex' runphp='yes']if(@me==1){@me=\"\";}else{@me='style=\"display:none;\"';}[\/field:global] >\r\n<div><a href=\"[field:arcurl\/]\" title=\"[field:fulltitle\/]\" target=\"_blank\"><img src=\"[field:litpic\/]\" alt=\"[field:fulltitle\/]\" \/><\/a><\/div>\r\n<\/div>\r\n{\/dede:arclist}<\/code><\/pre>\nlist \u6807\u7b7e\u4e0b\u8bd5\u7528autoindex<\/h2>\n{dede:list pagesize='40' orderby='id'}\r\n[field:global name='autoindex' runphp='yes']if(@me%10==0){@me=\"test\";}else{@me='';}[\/field:global]\r\n{\/dede:list}<\/code><\/pre>\n<\/h1>\n\u6269\u5c55\u7528\u6cd5<\/strong><\/h1>\n\u8d77\u59cb\u503c\u52a05\u5f00\u59cb\u81ea\u589e\u8ba1\u6570<\/strong><\/p>\n[field:global name=autoindex runphp=\"yes\"]@me=@me+5;[\/field:global]<\/code><\/pre>\n\u5982\u679c\u88ab2\u6574\u9664\u5219\u8f93\u51fa\u7ad6\u7ebf\u5426\u5219\u4e3a\u7a7a<\/strong><\/p>\n[field:global name=autoindex runphp=\"yes\"](@me%2==0)? @me=\"|\":@me=\"\";[\/field:global]<\/code><\/pre>\n\u5982\u679c\u4e0d\u7b49\u4e8e8\u8f93\u51fa\u7ad6\u7ebf\u5426\u5219\u4e3a\u7a7a\uff0c\u5373\u4e3a8\u7684\u65f6\u5019\u4e0d\u6253\u5370\u7ad6\u7ebf<\/strong><\/p>\n[field:global name=autoindex runphp=\"yes\"](@me!=8)? @me=\"|\":@me=\"\";[\/field:global]<\/code><\/pre>\n\u5217\u8868\u6bcf5\u884c\u6709\u5e26\u5212\u7ebf<\/strong><\/p>\n[field:global runphp='yes' name=autoindex]\r\n $a=\"<li>\";\r\n $c=\"<li class='line'>\";\r\n if ((@me % 5) == 0) @me = $c;\r\n else @me = $a;\r\n [\/field:global]\r\n <\/code><\/pre>\n\u5728\u7b2c5\u884c\u548c\u7b2c10\u884c\u52a0\u5e7f\u544a\uff0c\u5176\u4ed6\u884c\u4e3a\u7a7a<\/strong><\/p>\n [field:global runphp='yes' name=autoindex]\r\n $a=\"<div class='box'>\";\r\n $b=\"\u5e7f\u544a1\";\r\n $c=\"<\/div>\";\r\n $d=\"\u5e7f\u544a2\";\r\n $e=\"\";\r\n if (@me == 5) @me = $a.$b.$c;\r\n else if (@me == 10) @me = $a.$d.$c;\r\n else @me = $e;\r\n [\/field:global]<\/code><\/pre>\n\u7b2c\u4e00\u884c\u6837\u5f0f\u4e3aclass=\"check\"\uff0c\u5176\u4ed6\u884c\u6309\u884c\u6570\u7c7b\u540d\u5b57\u540e\u9762id=\"life_channe1\"\u7684\u6570\u5b571\u5b9e\u73b0\u81ea\u589e<\/strong><\/p>\n<li><a href=\"[field:typeurl\/] \" [field:global name='autoindex'runphp='yes']if(@me==0){@me='class=\"check\"';}else{@me='id=\"life_channe'.@me.'\" goto=\"life_channe'.@me.'\"';}[\/field:global]>[field:typename\/]<\/a><\/li><\/code><\/pre>\nDiv\u4e2did\u540d\u5b57\u540e\u9762\u7684\u6570\u5b57\u4ece0\u5f00\u59cb\u81ea\u589e\uff0c\u5224\u65ad\u5982\u679c\u662f\u7b2c\u4e00\u884c\u5219\u52a0style=\"display:none;\"\u5c5e\u6027\uff0c\u5176\u4ed6\u884c\u4e3a\u7a7a<\/strong><\/p>\n<div id=\"HomeCon2_1_{dede:global name=itemindex runphp='yes'}@me=@me-1;{\/dede:global}\" class=\"HomeCon2_1_1\" {dede:global name='itemindex' runphp='yes'}@me=(@me==1)?'':'style=\"display:none;\"';{\/dede:global} ><\/code><\/pre>\n\u5bf9autoindex\/itemindex\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/strong><\/p>\n\u5148\u5728include\/extend.fun.php\u91cc\u6dfb\u52a0\u81ea\u5b9a\u4e49\u51fd\u6570<\/p>\n
function MyPosition($p){\r\n$positionArr=array(275,330,380,435,495,547);\r\nreturn $positionArr[$p];\r\n <\/code><\/pre>\n\u6a21\u7248\u4e2d\u8c03\u7528\u65b9\u6cd5\u4e3a\uff1a<\/p>\n
{dede:channel type='son' typeid='13' row='6' noself='yes'}\r\n<!-----\u4fa7\u680f\u83dc\u5355------------------> \r\n<div id='pdv_16795' class='pdv_class' title='' style=\"width:71px;height:20px;top:[field:global.autoindex function='MyPosition(@me)'\/]px;left:136px; z-index:17\">\r\n<div style=\"FONT-FAMILY: SimSun; COLOR: #fecd2e; FONT-SIZE: 15px; fon-weight: bold\"><a style=\"FONT-FAMILY: SimSun; COLOR: #fecd2e; FONT-SIZE: 15px; fon-weight: bold\" href=\"[field:typeurl\/]\" target=_blank><strong>[field:typename\/]<\/strong><\/a><\/div>\r\n<\/div>\r\n{\/dede:channel}<\/code><\/pre>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
\u7ec7\u68a6DEDECMS\u7cfb\u7edf\u4e2dautoindex\u548citemindex\u7684\u533a\u522b autoindex\uff1a\u4e00\u822c\u5728\u5faa\u73af\u6807\u7b7e\u4e2d\u4f7f\u7528 […]<\/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":[680,43,681,180],"class_list":["post-2040","post","type-post","status-publish","format-standard","hentry","category-web","tag-autoindex","tag-dedecms","tag-itemindex","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2040","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=2040"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2040\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}