婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > pjblog實現類似CMS的首頁調用

pjblog實現類似CMS的首頁調用

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

找到:
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>

修改完成后的總代碼是
復制代碼 代碼如下:

!--#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("服務器數據讀取失敗!")
   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 '處理系統側欄模塊信息%>
   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"

這是隨機顯示方法 

標簽:四平 遼陽 朝陽 孝感 湖北 防城港 平頂山 馬鞍山

巨人網絡通訊聲明:本文標題《pjblog實現類似CMS的首頁調用》,本文關鍵詞  pjblog,實現,類似,CMS,的,首頁,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《pjblog實現類似CMS的首頁調用》相關的同類信息!
  • 本頁收集關于pjblog實現類似CMS的首頁調用的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 阿克陶县| 理塘县| 城市| 古交市| 沧州市| 扶绥县| 焉耆| 乃东县| 博爱县| 天祝| 夹江县| 灵台县| 商南县| 临桂县| 敦化市| 淳化县| 邵武市| 永靖县| 阿尔山市| 长顺县| 镇康县| 铁岭县| 常熟市| 西峡县| 兰考县| 海盐县| 大埔县| 犍为县| 昭通市| 新乡市| 中阳县| 佛山市| 乐亭县| 隆回县| 平乐县| 平遥县| 弋阳县| 将乐县| 平原县| 林西县| 民权县|