在 e:loop 標(biāo)簽中 調(diào)用方法為:?=$bqr[ftitle]?

創(chuàng)新互聯(lián)于2013年成立,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目網(wǎng)站設(shè)計(jì)制作、成都網(wǎng)站制作網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢想脫穎而出為使命,1280元江北做網(wǎng)站,已為上家服務(wù),為江北各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:13518219792
帝國CMS副標(biāo)題直接使用 [!--ftitle--]
經(jīng)測試,在我的帝國6.0里用第一段調(diào)用沒有問題,你檢查下你要調(diào)用的文章是否是新聞模型,且確實(shí)有正文內(nèi)容?
1.標(biāo)簽上面的“操作類型”參數(shù)要設(shè)為24,然后“欄目id”為SQL語句
2.需要開啟支持按SQL語句調(diào)用:打開e/class/connect.php文件(粗體文字的設(shè)置)
//部分參數(shù)設(shè)置
$do_theloginlog=0;
//是否記錄登陸日志(0為記錄,1為不記錄)
$do_thedolog=0;
//是否記錄操作日志(0為記錄,1為不記錄)
$do_openbqquery=0;
//開啟標(biāo)簽支持sql語句查詢(0為不支持,1為開啟)
$do_openreadfile=0;
//開啟讀取頁面標(biāo)簽支持讀取服務(wù)器本地文件,為了安全,一般情況請不要開啟(0為不支持,1為開啟)
$do_txtpath="../../d/txt/";//文本型數(shù)據(jù)存放目錄
?
3.調(diào)用例子,以ecmsinfo為例:
[ecmsinfo]"select
*
from
phome_ecms_news
where
classid=1
order
by
id
desc
limit
10",10,30,0,24,1,0[/ecmsinfo]
注:顯示欄目id為1的10條新聞表記錄。
本來不想回答
去年做過項(xiàng)目4表聯(lián)合
拿去自己改吧
不會改就沒辦法
不解釋
[e:loop={'select *
from
(
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news where istop=1 order by newstime desc limit 13 )
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news1 where istop=1 order by newstime desc limit 13)
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news2 where istop=1 order by newstime desc limit 13)
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news3 where istop=1 order by newstime desc limit 13)
) as A order by newstime desc limit 20',0,24,0}]
?php
$fb=$empire-fetch1("select *
from
(
(select id,classid,smalltext from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
) as A");
?
li class="clearfix"
a target='_blank' href="?=$bqr[titleurl]?" title="?=$bqr[title]?" class="index-img"img src="?=$bqr[titlepic]?$bqr[titlepic]:'404.jpg'?" alt="?=$bqr[title]?"/a
div class="index-text"
h1a target='_blank' href="?=$bqr[titleurl]?"?=$bqr[title]?/a
/h1
div class="index-con"/div
div class="index-intro"a target="_blank" href="?=$bqr[titleurl]??from=index_new_intro"?=$fb[smalltext]?/a/div
div class="index-like clearfix"
span class="time"
?php
$fr=$empire-fetch1("select *
from
(
(select id,classid,infotags from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
) as A");
$keyr=explode(',',$fr[infotags]);
for($i=0;$i2;$i++)
{
echo'spana href="/liaotian/tags-'.$keyr[$i].'-0.html" target=_blank'.$keyr[$i].'/a/span ';
}
?
/span
span class="time"?=format_datetime($bqr[newstime],"m-d")?/span
div class="post-ope"
a href="/e/public/digg/?classid=?=$bqr[classid]?id=?=$bqr[id]?dotop=1ajaxarea=diggnum?=$bqr[id]?" class="post-like-btn post-like" id="post-like-top-btn"
script
document.write('script src="/e/public/ViewClick/?classid=?=$bqr[classid]?id=?=$bqr[id]?down=5?t='+Math.random()+'"'+'/script');
/script
/a
/div
/div
/div
/li
[/e:loop]
功能:聯(lián)合取4表數(shù)據(jù)
關(guān)聯(lián)取附表簡介
并取標(biāo)簽
附加頂功能
動(dòng)態(tài)瀏覽量等
網(wǎng)站題目:帝國cms標(biāo)題調(diào)用代碼 帝國cms調(diào)用欄目id
本文URL:http://chinadenli.net/article22/ddgsdjc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁設(shè)計(jì)公司、營銷型網(wǎng)站建設(shè)、網(wǎng)站建設(shè)、手機(jī)網(wǎng)站建設(shè)、做網(wǎng)站、移動(dòng)網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)