WIKI使用導(dǎo)航
站長百科導(dǎo)航
站長專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計算
- 微博營銷
- 虛擬主機(jī)管理系統(tǒng)
- 開放平臺
- WIKI程序與應(yīng)用
- 美國十大主機(jī)
喬客CMS/喬客CMS的修改
來自站長百科
喬客CMS的安裝 | 喬客CMS的修改 | 喬客CMS的調(diào)用代碼(1) | 喬客CMS的調(diào)用代碼(2) |
打開 index.asp 增加紅色部分:
Code: <!-- #include file="common/include/web.asp" --> <!-- #include file="common/include/inc.channel.asp" --> <!-- #include file="common/include/VOPS/libCodes.asp" --> <% web.setLocation(cfg.getWeb("name")) dim aTree call doLoadAnnounce() call doWebHead() call doSkinParse("index","") call doWebEnd() sub doLoadAnnounce() dim tmpSQL,tmpAnnounceID,tmpIsCache tmpAnnounceID=0 '可指定要調(diào)用的公告ID tmpIsCache=True '是否使用緩存 set aTree=new utilTree if tmpIsCache then dim tmpAry tmpAry=ops.server.getCache("sys.index.announce") if isarray(tmpAry) then aTree.setArray(tmpAry) exit sub end if end if if int(tmpAnnounceID)>0 then tmpSQL="select top 1 a_id,username,a_topic,a_remark,a_tim from db_sys_announce where nsort='sys' and a_id="&tmpAnnounceID&" order by a_id desc,a_istop desc" else tmpSQL="select top 1 a_id,username,a_topic,a_remark,a_tim from db_sys_announce where nsort='sys' order by a_id desc,a_istop desc" end if set aTree=ops.db.getQueryTree(tmpSQL) if tmpIsCache then call ops.server.setCache("sys.index.announce",aTree.getArray()) end sub%>
然后打開 skin/default/index.html 增加紅色部分.
Code: <!-- #include file="/user.login.html" --> <div class="space"></div> <div class="Block"> <div class="BlockBar">網(wǎng)站動態(tài)</div> <div class="BlockList"> <marquee scrollamount="1" scrollDelay="5" direction="up" width="100%" height="100%" onMouseOver="this.stop()" onMouseOut="this.start()"> <span class="center b"><%=opsCodes.toCodes(aTree.getItem("a_topic"),2)%></span> <div class="BlockContent"><%=opsCodes.toCodes(aTree.getItem("a_remark"),1)%></div> 發(fā)布人:<%=user.toLinkURL(aTree.getItem("username"))%><br> 發(fā)布時間:<font class="light"><%=aTree.getItem("a_tim")%></font> </marquee> </div> </div> <div class="space"></div> <div class="Block"> <div class="BlockBar">網(wǎng)站公告</div> <div class="BlockList"> <ul><label:block("announce","li","sql_append=nsort='sys'; sql_order=new;num_row=3;num_topic=30")></ul> </div> </div>
調(diào)用網(wǎng)絡(luò)天氣預(yù)報
</div> </div> <div class="SideRightT"> <div class="topTopicI"> <script src="http://www.thinkpage.cn/weather/js.aspx? c=CHXX0144&l=zh-CN&x=1&d=3&m=0&s=1&w=300&h=210&t=0&fc=0" type="text/javascript"></script> <div class="space"></div>
- 后臺修改
- 后臺的JK信息可以在Joekoe CMS 4.0\admin\MAIN.ASP里修改.
- 最下面的系統(tǒng)公告:歡迎登錄 sy CMS 4.0 管理平臺在!\admin\common\template\frame.xcml里改.
- 右邊的廣告圖片在這個地址改:\images\devs\banner.up.gif
相關(guān)條目[ ]
參考來源[ ]
喬客CMS使用手冊 | ||
---|---|---|
|