国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
手把手教你TSYS建站

手把手教你TSYS建站


2005-4-15 19:14:09 編輯:從此長大 來源:本站原創(chuàng)

目前TSYS最新版本為2.0beta1,而且網(wǎng)絡上有不少TSYS加強板,這使用的是官方發(fā)布的TSYS1.1正式版,

1。建好你的頁面模版。實際上就是建好一個靜態(tài)的頁面,頁面板塊,形式全是自己定義的,也就可以用TSYS建出形式各樣的頁面,這也是和其他一些建站系統(tǒng)有所區(qū)別的,舉例說明:
[code]
<html>
<head>
<style>
a:link  {font:9pt/12pt 宋體, MS Song; color:red}
a:visited  {font:9pt/12pt 宋體, MS Song; color:#4e4e4e}
</style>
<meta HTTP-EQUIV="Content-Type" Content="text-html; charset=gb2312">
<title>從此長大</title>
</head>
<body bgcolor="white">
<table width="400" cellpadding="3" cellspacing="5">
  <tr>
    <td id="tablePropsWidth2" width="400" colspan="2">
   <a href=http://www.31u.net>從此長大演示頁面</a>
   </td>
  </tr>
</table>
<table width="400" cellpadding="3" cellspacing="5">
  <tr>
    <td id="tablePropsWidth2" width="400" colspan="2"><font id="LID1"
    style="COLOR: black; FONT: 9pt/12pt 宋體, MS Song"><hr color="#C0C0C0" noshade>
    <p id="LID2">請嘗試以下操作:</p><ul>
      <li id="list1">如果您已經(jīng)在地址欄中輸入該網(wǎng)頁的地址,請確認其拼寫正確。<BR>
      </li>
      <li id="list2">打開 <script> Homepage(); </script> 主頁,然后查找指向您感興趣信息的鏈接。 </li>
      <li id="list3">單擊<a href="javascript:history.back(1)">后退</a>按鈕,嘗試其他鏈接。 </li>   
      <li ID="list4">單擊搜索,尋找 Internet 上的信息</li>
    </ul>
    <p><br>
    </p>
    <h2 id="ietext" style="font:9pt/12pt 宋體, MS Song; color:black">HTTP 404 - 未找到文件<br>
    Internet Explorer <BR>
    </h2>
    </font></td>
  </tr>
</table>
</body>
</html>
[/code]


2。在需要更新的地方使用標簽(標簽支持中文),如上例子,我要在“單擊搜索,尋找 Internet 上的信息”這個地方替換為以后的“國內(nèi)新聞”這個欄目~~就可以更改為
[code]
<html>
<head>
<style>
a:link  {font:9pt/12pt 宋體, MS Song; color:red}
a:visited  {font:9pt/12pt 宋體, MS Song; color:#4e4e4e}
</style>
<meta HTTP-EQUIV="Content-Type" Content="text-html; charset=gb2312">
<title>從此長大</title>
</head>
<body bgcolor="white">
<table width="400" cellpadding="3" cellspacing="5">
  <tr>
    <td id="tablePropsWidth2" width="400" colspan="2">
   <a href=http://www.31u.net>從此長大演示頁面</a>
   </td>
  </tr>
</table>
<table width="400" cellpadding="3" cellspacing="5">
  <tr>
    <td id="tablePropsWidth2" width="400" colspan="2"><font id="LID1"
    style="COLOR: black; FONT: 9pt/12pt 宋體, MS Song"><hr color="#C0C0C0" noshade>
    <p id="LID2">請嘗試以下操作:</p><ul>
      <li id="list1">如果您已經(jīng)在地址欄中輸入該網(wǎng)頁的地址,請確認其拼寫正確。<BR>
      </li>
      <li id="list2">打開 <script> Homepage(); </script> 主頁,然后查找指向您感興趣信息的鏈接。 </li>
      <li id="list3">單擊<a href="javascript:history.back(1)">后退</a>按鈕,嘗試其他鏈接。 </li>   
      <li ID="list4">
<!---國內(nèi)新聞:開始--->
<!---國內(nèi)新聞:結束--->
</li>
    </ul>
    <p><br>
    </p>
    <h2 id="ietext" style="font:9pt/12pt 宋體, MS Song; color:black">HTTP 404 - 未找到文件<br>
    Internet Explorer <BR>
    </h2>
    </font></td>
  </tr>
</table>
</body>
</html>
[/code]

3。在TSYS后臺添加“國內(nèi)新聞”這個頻道,可以看到它有個ID號,等會用的上的

4。在Tsys\Manage\UpdateSite中有系統(tǒng)自帶的page01.asp......等4個用于游戲演示站的更新文件~~我們選擇其中一個page01.asp,修改其中的代碼為
[code]
<%Option Explicit%>
<!--#include file="../Include/Config.asp" -->
<!--#include file="../Include/Tkl_SYSProedomClass.asp" -->
<!--#include file="../Include/ClassList_Fun.asp" -->
<!--#include file="../Include/CreateFile_Fun.asp" -->
<!--#include file="../Include/Tkl_StringClass.asp" -->
<!--#include file="../Include/Tkl_TemplateClass.asp" -->
<!--#Include File="../Include/OnlineClass.asp" -->
<!--#Include File="../Include/UpdateAdminTime.asp" -->
<%
‘////////////////////////////////////////////////////////////////////
‘//本頁:
‘//生成index.htm首頁內(nèi)容
‘////////////////////////////////////////////////////////////////////

Dim SysAdmin
Set SysAdmin=New SYSProedom_Class
If Not CBool(SysAdmin.Logined) Then
    Response.Write "<script>top.location=‘login.asp‘</script>"
End If

If Not SysAdmin.UpdatePage Then
    Response.Write("<script>alert(""<操作失敗>\n你的權限不足"& Def_SoftCopyright_Script &""");window.history.back();</script>")
    Response.End()
End If

Call UpdateAdminTime()

Dim Conn
Set Conn = Server.CreateObject("Adodb.Connection")
    Conn.Open ConnStr

Dim StrClass
Set StrClass = New Tkl_StringClass

Select Case Request("Work")
    Case "Update01" :
        Update01()
        UpdateOk()
    Case "All" :
        Update01()
        UpdateOk()
End Select

‘//更新成功提示
Function UpdateOk()
    Response.Write("<script>alert(""<操作成功>\n頁面更新成功"& Def_SoftCopyright_Script &""");window.history.back();</script>")
    Response.End()
End Function

‘//國內(nèi)新聞
Function Update01()
    Dim TemplateFilePath
        TemplateFilePath=Server.MapPath("../../../index.htm")  
‘////////////////////////////////////////////////////////////////////
‘//../../../index.htm
‘//以上路徑,名稱一定要設對,否則會報錯
‘////////////////////////////////////////////////////////////////////
    Dim TClass,strHtml
    Set TClass=New Tkl_TemplateClass
        strHtml=""
    Dim Rs,Sql
        Sql="Select Top 8 Title,FilePath,AddTime From view_NewsInfo Where Class In (34" & AllChildClass(34) & ") Order By Id DESC"
‘////////////////////////////////////////////////////////////////////
‘//紅色的部分改為剛添加頻道時系統(tǒng)給的ID號~~
‘//藍色的部分為要顯示的新聞條數(shù)~~
‘////////////////////////////////////////////////////////////////////

    Set Rs=Conn.ExeCute(Sql)
    While Not Rs.Eof
        strHtml=strHtml&"·[" & StrClass.FormatMyDate(Rs("AddTime"),"{m}/moiyehiw") & "]<a href=""" & Rs("FilePath") & """ target=""_blank"">" & Rs("Title") & "</a><br>" & vbCrLf
‘////////////////////////////////////////////////////////////////////
‘//以上為自定義輸出方式
‘////////////////////////////////////////////////////////////////////
        Rs.MoveNext
    Wend
    Rs.Close
    Set Rs=Nothing

    With TClass
        .OpenTemplate(TemplateFilePath)
        .StartElement="<!---國內(nèi)新聞:開始--->"
        .EndElement="<!---國內(nèi)新聞:結束--->"
‘////////////////////////////////////////////////////////////////////
‘//改為和你使用的標簽一致
‘////////////////////////////////////////////////////////////////////
        .Value=strHtml
        .ReplaceTemplate()
        .Save()
    End With
    Set TClass=Nothing
End Function
%>
[/code]

4。OK了~~在tsys后臺“資源管理”里添加文章~~因為只是用了1.1正式版演示的后臺,所以在添加文章時記得選“國內(nèi)新聞”,然后在“站點更新”“頁面資源更新”的第一個里選擇全部更新~~現(xiàn)在去你剛建的網(wǎng)頁刷新下~~是不是顯示了剛才的文章?~

本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
利用asp實現(xiàn)網(wǎng)站總訪問量代碼
整理了一些ASP初學者常用的代碼(下)
自動發(fā)送新浪博客 視頻
隱現(xiàn)菜單
自由動力3.6版90個問答-5
用ASP開發(fā)一個在線考試系統(tǒng)
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服