digg字段創(chuàng)建、設(shè)置
成都創(chuàng)新互聯(lián)公司是一家專業(yè)提供蒙山企業(yè)網(wǎng)站建設(shè),專注與成都網(wǎng)站制作、做網(wǎng)站、H5開發(fā)、小程序制作等業(yè)務(wù)。10年已為蒙山眾多企業(yè)、政府機構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站設(shè)計公司優(yōu)惠進(jìn)行中。
先按照WC的教程 ,
新建 diggtop 字段,再用相同的方法新建 diggbot字段 。注意:新建的字段名 必須填為diggtop 和 diggbot
調(diào)用方法:
頂?shù)恼{(diào)用方法( 調(diào)用數(shù)字):
span id="diggnum"script src="/e/public/ViewClick?classid=
1id=48down=5"/script/span
頂點擊鏈接調(diào)用方法( 點擊頂次數(shù)+1):
a href="JavaScript:makeRequest('/e/public/digg?classid=[
!--classid--]id=48dotop=1doajax=1ajaxarea=d
iggnum','EchoReturnedText','GET','');"頂/a
踩的調(diào)用方法( 調(diào)用數(shù)字):
span id="diggbot"script src="/e/public/ViewClick?classid=[!--c
lassid--]id=48down=6"/script/span
踩點擊鏈接調(diào)用方法( 點擊踩次數(shù)+1):
a href="JavaScript:makeRequest('/e/public/digg/diggbot.php?cla
ssid=1id=48dotop=1doajax=1ajaxare
abot=diggbot','EchoReturnedText','GET','');"踩/a
本來不想回答
去年做過項目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)簽
附加頂功能
動態(tài)瀏覽量等
仿《當(dāng)下軟件園》 帝國cms7.5內(nèi)核免費下載
鏈接:
提取碼:dg4n
《帝國網(wǎng)站管理系統(tǒng)》英文譯為"Empire CMS",簡稱"Ecms",它是基于B/S結(jié)構(gòu),且功能強大而帝國CMS-logo易用的網(wǎng)站管理系統(tǒng)。本系統(tǒng)由帝國開發(fā)工作組獨立開發(fā),是一個經(jīng)過完善設(shè)計的適用于Linux/windows引/Unix等環(huán)境下高效的網(wǎng)站解決方案。從帝國新聞系統(tǒng)1.0版至帝國網(wǎng)站管理系統(tǒng),它的功能進(jìn)行了數(shù)次飛躍性的革新,使得網(wǎng)站的架設(shè)與管理變得極其輕松!
你的意思是想產(chǎn)生一個隨機數(shù)來隨機調(diào)用一個新聞或什么的吧?
可以用隨機函數(shù)來生成。再傳給相應(yīng)的變量。
11小游戲 祝你好運!