濮阳杆衣贸易有限公司

主頁 > 知識庫 > pjblog實(shí)現(xiàn)類似CMS的首頁調(diào)用

pjblog實(shí)現(xiàn)類似CMS的首頁調(diào)用

熱門標(biāo)簽:沈陽三五防封電銷卡 云南便宜外呼系統(tǒng)平臺 沈陽電話機(jī)器人公司 廣東語音外呼系統(tǒng)公司 鄭州智能外呼電銷機(jī)器人廠家 虛擬電話外呼系統(tǒng) 長春公司外呼系統(tǒng)中心 鄢陵學(xué)校如何做地圖標(biāo)注 成都ai外呼系統(tǒng)線路
呵呵比較有意思可以看http://5e8.com/blog/index.asp
效果就是那樣的轉(zhuǎn)自http://pjblog.yyld.net/article.asp?id=31
修改default.asp,建議修改前先復(fù)制一份作為備份。

找到:
div class="Content-top">div class="ContentLeft">/div>h1 class="ContentTitle">a href=""default.asp?ID="CateRS("cate_id")""">%=CateRS("cate_Name")%>/a>/h1> /div>


修改為

div class="Content-top">div class="ContentLeft">/div>h1 class="ContentTitle"">a href="default.asp?cateID=%=CateRS("cate_id")%>">%=CateRS("cate_Name")%>/a>/h1> /div>

修改完成后的總代碼是
復(fù)制代碼 代碼如下:

!--#include file="BlogCommon.asp" -->
!--#include file="header.asp" -->
!--#include file="common/ModSet.asp" -->
!--#include file="plugins.asp" -->
!--#include file="class/cls_default.asp" -->
!--#include file="class/cls_logAction.asp" -->
  div id="Tbody">
  div id="mainContent">
   div id="innermainContent">
       div id="mainContent-topimg">/div>
    %=content_html_Top_default%>
    div id="Content_ContentList" class="content-width">
    %'主體部分!%>
  %
  if request("cateid")="" then%>
           table width=100%>%
  Dim CateRS
   Dim Trd
   Set CateRS=Server.CreateObject("Adodb.RecordSet")
   SQL="Select * FROM blog_category where cate_outlink=0"
   CateRS.Open SQL,Conn,1,1
   If CateRS.Eof And CateRS.Bof Then
    Response.Write("服務(wù)器數(shù)據(jù)讀取失??!")
   Else
    Response.Write("tr>")
    Do While Not CateRS.Eof
    If int(trd/2)=trd/2 and trd>0 then Response.Write("/tr>tr>")
  %>
              td  width=50% valign="top" style="padding-right:5px;">
              div class="Content">
              div class="Content-top">div class="ContentLeft">/div>h1 class="ContentTitle"">a href="default.asp?cateID=%=CateRS("cate_id")%>">%=CateRS("cate_Name")%>/a>/h1> /div>
              div class="Content-body">
    %Dim RS,row
    row=0
    Set RS=Server.CreateObject("Adodb.RecordSet")
    SQL="Select * FROM blog_Content where log_cateId="CateRS("cate_id")" order by log_posttime desc"
    RS.Open SQL,Conn,1,1
    SQLQueryNums=SQLQueryNums+1
    If RS.Eof And RS.Bof Then
     Response.Write("None")
    Else
     Dim log_Weather,log_ID
     Do While Not RS.Eof
      log_ID=RS("log_ID")
      Response.Write("img src=""images/code.gif""> a href=""default.asp?ID="log_ID""">"HTMLEncode(cutStr(RS("log_Title"),42))"/a>")
      Response.Write("br>")
      RS.Movenext
      row=row+1
              if row=10 then
           Exit do
              end if
     Loop
    End If
    RS.Close
    Set RS=Nothing%>br>/div>/td>
  %
   trd=trd+1
             ' if trd=10 then
       '    Exit do
              'end if
   CateRS.Movenext
   Loop
   End if
   CateRS.Close
   Set CateRS=Nothing
  %>
  /table>
%else%>%ContentList%>
%end if%>/div>
    %=content_html_Bottom_default%>
       div id="mainContent-bottomimg">/div>
   /div>
   /div>
   %Side_Module_Replace '處理系統(tǒng)側(cè)欄模塊信息%>
   div id="sidebar">
    div id="innersidebar">
       div id="sidebar-topimg">!--工具條頂部圖象-->/div>
     %=side_html_default%>
       div id="sidebar-bottomimg">/div>
    /div>
   /div>
   div style="clear: both;height:1px;overflow:hidden;margin-top:-1px;">/div>
/div>
!--#include file="footer.asp" -->

大家是不是注意到


SQL="Select * FROM blog_Content where log_cateId="CateRS("cate_id")" order by log_posttime desc"


SQL="Select * FROM blog_Content where log_cateId="CateRS("cate_id")
替換成
SQL="Select * FROM blog_Content where log_cateId="CateRS("cate_id")" order by log_posttime desc"

這是隨機(jī)顯示方法 

標(biāo)簽:四平 遼陽 朝陽 孝感 湖北 防城港 平頂山 馬鞍山

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《pjblog實(shí)現(xiàn)類似CMS的首頁調(diào)用》,本文關(guān)鍵詞  pjblog,實(shí)現(xiàn),類似,CMS,的,首頁,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《pjblog實(shí)現(xiàn)類似CMS的首頁調(diào)用》相關(guān)的同類信息!
  • 本頁收集關(guān)于pjblog實(shí)現(xiàn)類似CMS的首頁調(diào)用的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    九寨沟县| 温州市| 响水县| 德化县| 金坛市| 穆棱市| 苗栗县| 阿尔山市| 万全县| 马公市| 庆城县| 桃源县| 太谷县| 绥江县| 华安县| 荣昌县| 凉城县| 夏邑县| 长白| 武安市| 濉溪县| 乐陵市| 江安县| 高陵县| 肃北| 东乡族自治县| 三门峡市| 福安市| 新密市| 额济纳旗| 乌鲁木齐市| 垣曲县| 甘德县| 扎鲁特旗| 开原市| 甘谷县| 锦州市| 永州市| 华坪县| 涿鹿县| 汨罗市|