<!--#include file="Inc/Consts.inc" -->
<!--#include file="Inc/NoSQL.Asp" -->
<!--#include file="Inc/common.Asp" -->
<!--#include file="Inc/strfunc.Asp" -->
<!--#include file="Inc/sharefunc.Asp" -->
<!--#include file="Inc/downfunc.Asp" -->
<%
' 文件名称:DownList.asp 2012
' Ss简单网站管理系统-开源版 
'晴天设计www.xxzwz.com
Call SiteInfo()
If ISHTML = 1 Then
    Response.expires = 0
    Response.expiresabsolute = Now() - 1
    Response.addHeader "pragma", "no-cache"
    Response.addHeader "cache-control", "private"
    Response.CacheControl = "no-cache"
End If
Dim ID,rs,sql,SeoKeywords,SeoDescription,SortID,SortPath
ID=trim(request.QueryString("ID"))
if ID="" or not isnumeric(ID) then Call Alert("参数错误,ID Error!","b-1"):response.End()
sql = "select DownName,SeoKeywords,SeoDescription,Content,SortID,SortPath,filesize,fileurl,click_count from ["&Datapre&"_Download] where ViewFlag and ID="&ID
set rs=db(sql,3)
    If rs("SeoKeywords") <> "" Then
        SeoKeywords = rs("SeoKeywords")
    Else
        SeoKeywords = rs("DownName")
    End If
    If rs("SeoDescription") <> "" Then
        SeoDescription = rs("SeoDescription")
    Else
        SeoDescription = rs("DownName")
    End If
    SeoTitle = rs("DownName")
	SortID=rs("SortID")
	SortPath=rs("SortPath")
rs.Close:Set rs = Nothing
Dim templateurl :templateurl=SysRootDir&templatepath
Dim HeaderString,FooterString,LeftString,DownViewString
HeaderString=FileSetTemplate("Head.html")
HeaderString=Replace(HeaderString,"$SiteLogo$",SiteLogo,1,1)
HeaderString=Replace(HeaderString,"$bannerpic$",bannerpic(3),1,1)
HeaderString=Replace(HeaderString,"$MainMenu$",MainMenu(5),1,1)
LeftString=FileSetTemplate("Left.html")
LeftString=Replace(LeftString,"$searcher$",searcher,1,1)
LeftString=Replace(LeftString,"$leftcontact$",replace(replace(leftcontact,"$Address$",Address),"$Email$",Email))
DownViewString=FileSetTemplate("DownView.html")
DownViewString=Replace(DownViewString,"$SeoTitle$",SeoTitle)
DownViewString=Replace(DownViewString,"$SiteTitle$",SiteTitle)
DownViewString=Replace(DownViewString,"$Keywords$",Keywords)
DownViewString=Replace(DownViewString,"$Descriptions$",Descriptions)
DownViewString=Replace(DownViewString,"$copyright$",copyright)
DownViewString=Replace(DownViewString,"$DownMenu$",DownMenu(SortID))
DownViewString=Replace(DownViewString,"$getlocation$",getlocation("DownSort",SortID,SortPath,"DownList",DownSortName),1,1)
DownViewString=Replace(DownViewString,"$Header$",HeaderString)
DownViewString=Replace(DownViewString,"$Left$",LeftString)
DownViewString=Replace(DownViewString,"$downcontent$",Downview(ID))
DownViewString=Replace(DownViewString,"$HTMLName$",HTMLName)
DownViewString=Replace(DownViewString,"$templateurl$",templateurl)


Call PrintText(DownViewString)
' 文件名称:DownList.asp 2012
' Ss简单网站管理系统-开源版 
'晴天设计www.xxzwz.com
%>