乔客CMS/乔客CMS的修改
来自站长百科
打开 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 '可指定要调用的公告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">网站动态</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> 发布人:<%=user.toLinkURL(aTree.getItem("username"))%><br> 发布时间:<font class="light"><%=aTree.getItem("a_tim")%></font> </marquee> </div> </div> <div class="space"></div> <div class="Block"> <div class="BlockBar">网站公告</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>
调用网络天气预报
</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里修改.
- 最下面的系统公告:欢迎登录 sy CMS 4.0 管理平台在!\admin\common\template\frame.xcml里改.
- 右边的广告图片在这个地址改:\images\devs\banner.up.gif
相关条目[ ]
参考来源[ ]
乔客CMS使用手册 | ||
---|---|---|
|