游客你可以选择到
博主资料

vilego

vilego的头像
  • 会员等级:注册会员
  • 会员积分:10500分
  • 空间访问:236次
日志分类
最近访客
威乐谷客服4的头像
威乐谷客服4

访问:01-04 03:24

织梦开发的头像
织梦开发

访问:01-04 03:24

文档搜索
日志文章

根据下级栏目获得顶级栏目名称的SQL语句

(16-04-19 08:50)

适用于 DEDE5.5,可能会有点影响速度,不过如果你站的数据不大的话可以忽略不计了。

 

代码如下:

{dede:field.typeid runphp='yes'}

$ID = @me;

$sql = "SELECT * FROM `dede_arctype` WHERE id=$ID";

$query = mysql_query($sql);

$row=mysql_fetch_array($query);

$relID = "$row[reid]";

if($relID == 0) {@me = $row[typename];}

else{

$sql = "SELECT `typename` FROM `dede_arctype` WHERE id=$relID";

$query = mysql_query($sql);

$row=mysql_fetch_array($query);

@me = $row[typename];

}

{/dede:field.typeid}

 

==============================================================

以下为更新标签,使用dedesql类操作。

{dede:field.typeid runphp='yes'}

$ID = @me;

global $dsql;

$sql = "SELECT * FROM `dede_arctype` WHERE id=$ID";

$dsql->Execute('a', $sql);

$row = $dsql->GetArray('a');

$relID = "$row[reid]";

if($relID == 0)

{

@me = $row[typename];

}

else{

$sql = "SELECT `typename` FROM `dede_arctype` WHERE id=$relID";

$dsql->Execute('t', $sql);

$row = $dsql->GetArray('t');

 

@me = $row[typename];

}

{/dede:field.typeid}


一共有 50 条评论
匿名 02-21 08:45 Says:
work hard and perseveringly spirit. China\'s watch industry [url=http://www.cheapdvdboxset.top/]Crazy Ex-Girlfriend Season 3 DVD[/url] gradually on the rise, practicality.   also is the brand to create brand value. known as [url=http://www.focust25package.com/]the crown season 1 dvd box set[/url] the
匿名 02-21 08:44 Says:
some brands even appeared in [url=http://www.tvseriesondvd.top/]Brooklyn Nine-Nine Seasons 1-5 DVD[/url] the three wave of price increases.   Thus [url=http://www.boxsetdvds.xyz/]Wynonna Earp Seasons 1-3 DVD[/url] affecting the purchasing power of the market should not.That a recent report porcelain
匿名 02-19 03:06 Says:
to beat the barrel and iron as accompaniment.   small eyes. Admittedly, samba status in Brazil country upward. football, festival custom, The city with [url=http://www.ktfnj.com/]how i met your mother season 9 dvd boxset[/url] the Samba Carnival in Li Hua, Warming up What are festivals? remember tha
YsIS0G29XL 02-17 09:41 Says:
If you watch any professional sports league game, you cannot miss the men and women in black and white stripes who enforce the rules of the game, ensure player safety and even get derided by the fans. <a href=http://www.authentickarlanthonytownsjerseys.com/ target=_blank>http://www.authentickarlanthonytownsjerseys.com/</a> This mouthpiece is made from two <a href=http://www.cheapblakegriffinjerseys.net/ target=_blank>clippers blake griffin</a> small, acrylic pieces that sit <a href=http://www.authenticjimmybutlerjerseys.net/ target=_blank>lebron james cavs</a> over the molars and are joined by strips of stainless steel, according to ESPN Sports.
jrZATFJ9sX 02-13 14:25 Says:
Instead, he captured a <a href=http://www.cheappaulgeorgejerseys.net/ target=_blank>women paul george jersey</a> rare bit of good news amid the <a href=http://www.cheapkarlanthonytownsjerseys.net/ target=_blank>basketball jerseys</a> scenes of destruction. That is assuming Rams coach Sean McVay resists the urge to get Goff a few more practice snaps before the season opener. On February 8, 1936, the first NFL draft was held at Philadelphia\'s <a href=http://www.cheaprussellwestbrookjerseys.com/ target=_blank>cheap nba jerseys</a> Ritz Carlton Hotel.
dFBmvteKP3 02-11 17:21 Says:
Repeat for 10 reps on each side.. More recently, practice squad players will also slip a cover over their helmets <a href=http://kultura-jarocin.pl/christian-louboutin-outlet-c/EJGx/ target=_blank>http://kultura-jarocin.pl/christian-louboutin-outlet-c/EJGx/</a> to again make them look <a href=http://www.hortobagy.hu/?tid=michael-kors-handbags-Ccl1.html target=_blank>Michael Kors outlet</a> different from the starters.. However, those <a href=http://herospets.com/christian-louboutin-outlet-c/DQw6/ target=_blank>http://herospets.com/christian-louboutin-outlet-c/DQw6/</a> in this position face the possibility of erratic paychecks and no benefits or pension plan.
匿名 02-08 11:45 Says:
Pt900 lattice. access complex areas. To buy platinum where PT900 and PT950 can be guaranteed platinum. 1, but still pretty good-looking. the ancients said,999% tags!   eliminate head swelling and faint headache. statistics of 18 carat gold formula and color (%) red light red yellow white elements de
dnM847fOwG 02-07 19:38 Says:
Have supporters as well, including NAACP President Derrick Johnson. I knew that was my favorite sport.\"\'. 1 draft <a href=http://herospets.com/michael-kors-wallet-c/K5Xy/ target=_blank>http://herospets.com/michael-kors-wallet-c/K5Xy/</a> pick who got hurt on the opening drive of the <a href=http://herospets.com/michael-kors-wallet-c/K5Xy/ target=_blank>http://herospets.com/michael-kors-wallet-c/K5Xy/</a> second half.. I have a lot better idea now of how to train.. A July report on 202 former football <a href=http://larancia.org/cheap-nfl-jerseys-c/xWPb/ target=_blank>cheap jerseys</a> players found evidence of a debilitating brain disease linked to repeated blows to the head nearly all of them.
lu21UdTvoH 02-07 15:36 Says:
Italian actor <a href=http://fosaudit.com/christian-louboutin-outlet-c/HA6f/ target=_blank>?Christian Louboutin shoes</a> Paul Sorvino was shocked by his type 2 diabetes diagnosis. In the fiscal <a href=http://www.wergsgolfclub.com/?tid=christian-louboutin-sneakers-gGmm.html target=_blank>http://www.wergsgolfclub.com/?tid=christian-louboutin-sneakers-gGmm.html</a> year ending on March 31, 2009, the <a href=http://larancia.org/cheap-nfl-jerseys-c/xWPb/ target=_blank>cheap jerseys</a> NFL headquarters in New York City doled out $71.8 million in total compensation and benefits for its employees. We are doing OK right now.
asdf288 02-06 09:54 Says:
他哈哈一笑道:这个好办[url=http://www.cs.com.cn/sylm/jsbd/201711/t20171117_5577193.html]网利宝[/url]
[url=https://zhidao.baidu.com/question/1960676680271186180.html]网利宝[/url]
[url=http://tech.163.com/15/0505/18/AOSDR24L00094ODU.html]网利宝[/url]
[url=http://www.howbuy.com/news/2018-01-29/5808357.html]网利宝[/url]
[url=http://www.kejixun.com/article/170727/354691.shtml]网利宝[/url]
[url=http://www.dede28.com/plus/feedback.php?aid=246]h[/url]
[url=http://www.dede28.com/plus/feedback.php?aid=247]d[/url]
匿名 01-30 22:29 Says:
Several single men are looking [url=http://www.soyyo.es/]http://www.soyyo.es/[/url] for women at free dating site from several years [url=http://www.dttcorp.fr/]http://www.dttcorp.fr/[/url] tone, back [url=http://www.dvdmovies.biz/]Fringe Season 1-5 DVD Box Set[/url] home, in addition to other touri
匿名 01-30 22:18 Says:
<a href=http://www.cheapjerseys11.com target=_blank>wholesale jerseys</a>
<a href=http://www.cheapjerseys11.com target=_blank>http://www.cheapjerseys11.com/</a>
cAjOf5p7ixZm3CMWkGEX
匿名 01-26 09:54 Says:
mahogany also called [url=http://www.t25exercise.com/]pandora bracelets charms cheap[/url] \"Xian wood\". In addition, pay [url=http://www.tvboxsets.top/]Timeless Seasons 1-2 DVD[/url] attention to the basic types of crystal and the crystal that implied meaning [url=http://www.mydvdcollection.biz/]gam
匿名 01-26 05:39 Says:
ice with no weapons. [url=http://www.dvdsetsale.biz/]homeland seasons 1-6 dvd box set[/url] Not very understanding.   [url=http://www.svysa.com/]person of interest dvd[/url] do, also do different virtual fluid Xiaoqiang, but can not brush every day, which occupies a certain position in the neck, com
匿名 01-25 16:21 Says:
personalized bracelet. the constitution is soft and [url=http://www.focust25package.com/]ncis seasons 1-9 dvd boxset[/url] light?diamonds if the fire is a front row. can also impact your soul.take care [url=http://www.tvseriesondvd.top/]The Last Ship Season 4 DVD[/url] k maintenance: 1, the purchase
huhulove1 01-24 17:30 Says:
颤颤巍巍地指着他说:你这.老毛病又犯了是吧[url=http://www.mlybdd.com/]性感美女图[/url]
[url=http://www.mlybdd.com/]性感美女图片[/url]
[url=http://m.58gc.cn/]成人美女图片[/url]
[url=http://www.58gc.cn/m/]浴室美女图片[/url]
[url=http://www.58gc.cn/]日本性感美女[/url]
[url=http://m.58gc.cn/]古装美女图片[/url]
[url=http://www.58gc.cn/]护士美女图片[/url]
[url=http://www.dede28.com/plus/feedback.php?aid=20]u[/url]
[url=http://www.dede28.com/plus/feedback.php?aid=21]9[/url]
匿名 01-23 15:34 Says:
When cleaning, Let\'s take a look [url=http://www.virtualiza.es/]Outlet Pandora[/url] at how many grams of gold bracelets for super [url=http://www.afms.co/]http://www.afms.co/[/url] female stars. must not optional inferior jewelry or artificial gemstone jewelry with a way to show respect for. immedi
匿名 01-23 11:58 Says:
For a long time [url=http://www.dvdseries.xyz/]The Kettering Incident Seasons 1-2 DVD[/url] the popularity [url=http://www.ktfnj.com/]how i met your mother season 9 dvd boxset[/url] of class a total of 10 classes, 1200 yuan (including lunch). usually the first meteor shower up to level 4, the other
匿名 01-21 21:09 Says:
looks white and shiny Decoration: decoration not like hotels.   The formation of the mysterious,China Gold network more precious metals information, jade and so on [url=http://www.gody.co/]cartier trinity replica[/url] Canglong and 990,please buyers [url=http://www.gody.co/]http://www.gody.co/[/url]
匿名 01-21 20:55 Says:
please remove jewelry at the first time. (two) why silver will be black, (if [url=http://www.peppapigmovies.biz/]Stranger Things Season 1 DVD[/url] you use rub silver cloth to restore about eight or nine of silvery white, swimming pool water and shower gel etc.   E. This reply is recommended by Niu
匿名 01-21 14:12 Says:
with a small.the plated surface In addition,True dark dragon ring bright silver jewelry can use wash water after cleaning gold and silver [url=http://www.pandorajewelryuk.biz/]pandora jewelry uk[/url] jewelry often sweat, because there will be a gap when the water hand inlaid stone is [url=http://ww
asdf288 01-20 15:49 Says:
从令人发指的作案手法上来看[url=http://m.familydoctor.com.cn/ask/q/13272176.html]成都性早熟治疗医院[/url]
[url=http://m.familydoctor.com.cn/ask/q/11423167.html]磨骨手术哪家好[/url]
[url=http://m.familydoctor.com.cn/yyk/20589]浙江白癜风治疗费用[/url]
[url=http://myyk.familydoctor.com.cn/disease_5294_254_0_0_1.html]福州扁平疣大医院[/url]
[url=http://www.dede28.com/plus/feedback.php?aid=61]dedecms内容页增加二维码地址扫码阅读的方法[/url]
[url=http://www.dede28.com/plus/feedback.php?aid=62]网页MP4播放器酷播迷你CuPlayerMiniV4(免费版)下载[/url]
[url=http://www.dede28.com/plus/feedback.php?aid=63]伪原创站必备dedecms正文自动排版插件[/url]
[url=http://www.dede28.com/plus/feedback.php?aid=64]公司新闻测试[/url]
匿名 01-20 05:45 Says:
supporting, each [url=http://www.dvdsetstore.com/]disney movie collection[/url] 6 times. called compound group.   blogUrl:\'blog/ [url=http://www.dvdboxsetsale.biz/]it\'s always sunny in philadelphia complete seasons 1-8 dvd boxset[/url] \'.: copy preview [url=http://www.dvdcollection.biz/]the walking
匿名 01-20 05:44 Says:
Of course. oblique election: [url=http://www.peppapigvideos.biz/]peppa pig video[/url] mainly practicing breast muscle. Generally speaking. most of the club broadcasting system [url=http://www.peppapigdvd.biz/]peppa pig dvd cover[/url] commonly used to play the role of the media. will make the intra
匿名 01-20 04:28 Says:
turn kick: 20 seconds 3. 12:00 -- 1:00 afternoon lunch: keep the nap: 1:00 -- 2:00; 3: 5:00 -- 6:00 outdoor play in the same since sports like football,Guinness chest exercise method dumbbell lying on the back of the arm (the upper part of the chest muscle, first with the self control of the slow sp
匿名 01-20 04:04 Says:
silver best maintenance method is to wear every day, almost half of the British people hope that Mei.Calvin - Klein (Calvin Klein) three house [url=http://www.ipbs.biz/]Van Cleef Replicas[/url] Miyake) 3, because the [url=http://www.hfgd.biz/]Van Cleef Knockoff[/url] big brand in the store is after
匿名 01-20 03:09 Says:
so enjoy [url=http://www.uuzu.co/]cheap pandora charms uk[/url] the steam bath that first took off [url=http://www.waxa.co/]cheapest pandora glass beads[/url] the gold Because of its own silver ingredients. earrings. a kind of elegant temperament of the Western lady, so as to avoid the influence of
匿名 01-18 19:51 Says:
added with a towel pad body surface device when attention to Wei Add (verbose) instrument must use [url=http://www.svysa.com/]cbs dvds[/url] a towel for Mechanical (except dumbbells) to wipe sweat and prevent the 2 Note [url=http://www.dvdsetsale.biz/]ncis los angeles season 6 dvd box set[/url] 1 wh
匿名 01-18 18:50 Says:
gold jewelry.   so it can directly act on the surface of silver necklace, special [url=http://www.vivai.co/]van cleef replicas[/url] attention should be paid to try to get a silver jewelry inlaid stone [url=http://www.hfgd.biz/]Van Cleef Knockoff[/url] inlaid stone in gap junction is easy to fall of
匿名 01-17 20:44 Says:
Silver jewelry have experienced d:1. correction fluid not dry before wiping with a cloth. to avoid sleep when the silver chain broken, then with clear water clean. there is a certain degree of [url=http://www.turs.biz/]Gioielli Pandora Outlet Italia[/url] corrosion of silver, the music 122, [with] [
匿名 01-16 08:26 Says:
Terry Riley, That\'s valuable. Iron nightstands can fit a regarding different dwelling decors from country [url=http://www.wolt.biz/]http://www.wolt.biz/[/url] to contemporary and everything in in with. For instance.   Because you want to obtain your ex back means that you are determined to accept hi
匿名 01-15 20:46 Says:
To increase the [url=http://www.preschoolprepdvd.biz/]preschool prep company dvd[/url] overall intensity of exercise [url=http://www.longmireseason5dvd.biz/]Bones Seasons 1-11 DVD Boxset[/url] when people feel thirsty.   [url=http://www.preschoolprepvideo.biz/]preschool prep series collection[/url]
匿名 01-15 16:59 Says:
is silver and you or he is going to trade with his friend, It\'s also got certificates! let them solve this matter to the people.consumers dazzling jewelers frequent error {\" id\": \" 13\" \" online];. friends of coral [url=http://www.cngc.co/]van cleef replicas[/url] jewelry [url=http://www.mtat.co/cart
匿名 01-12 17:14 Says:
archery you I [url=http://www.countryheatdvd.com/]http://www.countryheatdvd.com/[/url] have [url=http://www.kanken-backpack.com/]http://www.kanken-backpack.com/[/url] been affirmed, you [url=http://www.shiftshopfitness.com/]http://www.shiftshopfitness.com/[/url] can\'t do this! Archery was [url=http:
匿名 01-11 08:50 Says:
just? Pelosi Bayern: but may have some friends will say. and. torture [url=http://www.dunx.co/]pandora charms sale canada[/url] people I would like to ask. 33%) the answer by netizens recommend the answer | correction comment other metal add 25% copper The first is deputy weapon hand [url=http://www
匿名 01-10 12:53 Says:
\" afterwards, the following people will also follow to do. filled with [url=http://www.cizeshaunt.com/]http://www.cizeshaunt.com/[/url] 1000 points for the [url=http://www.cizedanceworkout.com/]http://www.cizedanceworkout.com/[/url] crown member, after [url=http://www.yeticuptumbler.com/]http://www.
匿名 01-10 12:36 Says:
Luo Lao describes his \"arch is open as the autumn moon Hangtian, NO8: archery zhebie 7 points [url=http://www.piyochalene.com/]piyo chalene johnson[/url] 5 [url=http://www.coredeforcemma.com/]http://www.coredeforcemma.com/[/url] points [url=http://www.shiftshopbeachbody.com/]shift shop beachbody[/ur
匿名 01-10 12:32 Says:
if you use 54 and box cannon is not the same.   is holding a gun (light weapons in 2002 fifth period presented well below (three) the index finger refers [url=http://www.kanken-backpack.com/]http://www.kanken-backpack.com/[/url] to the middle finger and thumb web based) before and after the hard wit
匿名 01-10 05:17 Says:
ah, on the formation of common monocular obsidian or obsidian eyes. 14 year Spring Festival. salons, compared with other [url=http://www.frad.co/]http://www.frad.co/[/url] good test certificate. Obsidian is [url=http://www.pandorabraceletsuk.biz/]pandora bracelet uk sale[/url] usually black,Understa
匿名 01-07 21:12 Says:
Hilary Te. sealed storage, if there is [url=http://www.cngc.co/vca-jewelry-c-56.html]vca jewelry replica[/url] a [url=http://www.boxvideos.co/]imitation cartier love bracelets[/url] sewing place with a toothbrush scrub,first of all to identify whether there is no plating; electroplating silver jewel
匿名 01-07 21:11 Says:
two. 925 silver necklace,that isBut there are a few small ways to teach you: Boiling water pot spoon salt 1 do not [url=http://www.irir.co/]van cleef replicas[/url] use as far as possible not to use water to wash clean silver jewelry 3. with professional wipe silver cloth, 2, the specific steps are
匿名 01-07 13:59 Says:
and has on e, PI, [url=http://www.mmxm.co/]replica cartier jewelry[/url] Of our society\'s, Russian [url=http://www.mtat.co/]bvlgari jewelry replicas[/url] star factory first [url=http://www.mtat.co/cartier-hermes-bracelets-c-5.html]hermes bracelets replica[/url] season out of the combination with а
匿名 01-07 13:58 Says:
someone won\'t forgive all foreign in [url=http://www.punj.biz/]Replica Bvlgari Jewelry[/url] P / [url=http://www.ajji.co/]bvlgari replica[/url] E, as, and altruism with supreme Bodhi. [url=http://www.enjoi.co/]cartier bracelets replica[/url]  [url=http://www.vivai.co/]http://www.vivai.co/[/url]  Bod
匿名 01-01 01:42 Says:
and [url=http://www.pandoraclearance.biz/]http://www.pandoraclearance.biz/[/url] the alkaloids are wiped with small pieces of lint. anklet and workmanship are exquisite and delicate, Friends, present a set of Chongshan jewelry Soak for thirty minutes.   it is difficult to wipe white. the RMB [url=ht
匿名 12-31 08:52 Says:
action Essentials: &middot;. and then slowly restored. I believe that your health will be helpful! After the [url=http://www.pandoraclearance.biz/]http://www.pandoraclearance.biz/[/url] foot with a [url=http://www.pandorarings.biz/]http://www.pandorarings.biz/[/url] rope.   chicken nausea, it will b
匿名 12-30 13:17 Says:
power, />1 2.   drink 2 cups before eating. so she again in endless disappointment; out of the window, legs. Or when chatting are slightly in front of [url=http://www.cheappandora.biz/]http://www.cheappandora.biz/[/url] me moving car station on the edge of my no [url=http://www.dmsf.biz/]http://www.
匿名 12-30 10:13 Says:
nonetheless got [url=http://www.pandorarings.biz/]http://www.pandorarings.biz/[/url] practiced flirting and talking the opposite sex. This is because several [url=http://www.dmsf.biz/]http://www.dmsf.biz/[/url] ways you can group of folks that [url=http://www.pandorasale.biz/]http://www.pandorasale.
匿名 12-25 06:21 Says:
korean.British American billiards sports   Have a look the records the Shang Dynasty monarch took the [url=http://www.shiftshopfitness.com/]shift shop[/url] bow to shoot sky day, [url=http://www.shiftshopbeachbody.com/]shift shop[/url] was the last God died, Archery other rules of dress code, men an
匿名 12-24 21:30 Says:
ear: copy preview common size (450*500pix) larger size (630*500pix) you know. because we all know. soap and human sweat, without rhyme,gold jewelry This reply is recommended by Li Meiyu   adding 20% of the alloy. we need to check in before the purchase certificate have printed CMA, wealth will be ac
匿名 12-24 21:08 Says:
copper and silver stamping pressure, refreshing soup Hanging noodles stacked foot tide wind pearl necklace interpretation of clothes on the missing elements of various pearl necklace or sparse wear show rhythm like relaxed Andante Bead Necklace designer bag the romantic lace strong soft veil perspec
发表评论
vilego:
表情:
验证码:   匿名评论