北京郡王府菜谱:keephouse.asp 这是什么用意呢?

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 21:18:44
命名为 keephouse.asp 的文件内容
<!--#include file="WebOfficeStyle.Css"-->
<%
dim sql
dim rs
dim conn

sub openDB()
set conn=server.createobject("ADODB.Connection")
conn.open"Driver={SQL Server};"_
&"Server=localhost;" _
&"Database=WebOffice;" _
&"Uid=sa;" _
&"Pwd="
set rs=server.createobject("ADODB.Recordset")
end sub

sub closeDB()
If IsObject(conn) Then
if not(conn is nothing) then
set rs=nothing
conn.close
set conn=nothing
end if
End If
end sub

sub insureID()
if session("PERSONNEL_ID")="" then
call closeDB()
response.redirect server.mappath("\")&"\ManageSYS\LogIn.htm"
end if
end sub

sub noRight()
response.write "<div height=50 align=center valign=center>您没有进行此操作的权限,操作被取消.</div>"
call closeDB()
response.end
end sub

sub trigErr()
response.write "<div height=50 align=center valign=center>有错误发生,操作被取消.</div>"
call closeDB()
response.end
end sub

function replacePrime(strItem)
if strItem="" then
call trigErr()
end if
replacePrime=replace(strItem,"'","#Rep_PRIME_lace#")
end function

function replaceBack(strItem)
if strItem="" then
call trigErr()
end if
replaceBack=replace(strItem,"#Rep_PRIME_lace#","'")
end function

sub Debug(strItem)
response.Write strItem
call closeDB()
response.end
end sub
%>

另外同一个文件夹里的 层叠样式表style.css是这样写的

<style type="text/css">
<!--
body { font-family: "宋体"; font-size: 12pt}

table { font-family: "宋体"; font-size: 12pt;COLOR: #000000; text-decoration: none}
td {font-size:12pt;}

A:link { FONT-SIZE: 12pt; FONT-FAMILY: "宋体"; COLOR: #0000ff; text-decoration: none }
A:visited { FONT-SIZE: 12pt; FONT-FAMILY: "宋体"; COLOR: #0000ff; text-decoration: none }
A:hover { FONT-SIZE: 12pt; FONT-FAMILY: "宋体";COLOR: #ff0000; TEXT-DECORATION: underline }

Input.buttonface{BACKGROUND: #ff9900; border:1 solid black;
COLOR: #ffffff; FONT-SIZE: 9pt; FONT-STYLE: normal;FONT-VARIANT: normal;
FONT-WEIGHT: normal; HEIGHT: 18px; LINE-HEIGHT: normal}

.b1{font-size: 12pt; font-family:"Verdana", "Arial", "宋体";}
.b2{font-size: 7pt; font-family:"Verdana", "Arial", "宋体";}
-->
</style>
在其他的页面里都出现了<!--#include file="../includes/keepHouse.asp"-->
那么 样式表究竟又是怎么调用的呢 却没有STYLE type=" /css">或者 class="/css" 什么的
请高手指导啊