|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ASP是依赖组件的,能访问数据库的组件好多就有好多种,再有就是你微软的工具可是什么都要收钱的啊!<%@LANGUAGE=VBScript%>
<%Server.ScriptTimeout=5000%>
<html>
<head>
<styleTYPE="text/CSS">
/*OutlineStyleSheet*/
ULUL{display:none;
margin-left:20pt}
</style>
<scriptLANGUAGE="JavaScript">
functioncheckParent(src,dest){
//Searchforaspecificparentofthecurrentelement
while(src!=null){
if(src.tagName==dest)returnsrc;
src=src.parentElement;
}
returnnull;
}
functionoutline(){
//Expandorcollapseifalistitemisclicked.
varopen=event.srcElement;
//MakesureclickedinsideanLI.ThistestallowsrichHTMLinsidelists.
varel=checkParent(open,"LI");
if(null!=el){
varpos=0;
//Searchforanestedlist
for(varpos=0;pos<el.children.length;pos++){
if("UL"==el.children[pos].tagName)break;
}
if(pos==el.children.length)return;
}elsereturn;
el=el.children[pos];
if("UL"==el.tagName){
//ExpandorCollapsenestedlist
if(""==el.style.display){
el.style.display="block";
el.style.listStyleImage="url(images/folder.gif)";
el.parentElement.style.listStyleImage="url(images/ofolder.gif)";
}
else
{
el.style.display="";
el.parentElement.style.listStyleImage="url(images/folder.gif)";
}
}
event.cancelBubble=true;
}
document.onclick=outline;
</script>
<basetarget="main">
<title>Folders</title>
<linkrel="stylesheet"type="text/css"href="ase.css">
</head>
<bodytopmargin="0"leftmargin="0">
<SCRIPTLANGUAGE=vbscriptRUNAT=Server>
Dimfs,folderpara,folderArray
Setfs=CreateObject("Scripting.FileSystemObject")
ifnotisempty(request("txtRelative"))then
folderpara=server.mappath(request("txtRelative"))
else
folderpara=request("txtAbsolute")
endif
Response.write"<UL>"
Response.write"<LISTYLE=list-style-image:url(images/folder.gif)><ahref=files.asp?sPath="&
folderpara&">"&folderpara&"</a></LI>"
CallShowFolderList(folderpara)
Response.write"</UL>"
setfs=Nothing
SubShowFolderList(folderspec)
Dimf,f1,fc,s,fs
Setfs=Server.CreateObject("Scripting.FileSystemObject")
Setf=fs.GetFolder(folderspec)
Setfc=f.SubFolders
Setfs=f.Files
if(not(fc.count=0))then
Response.write"<UL>"
ForEachf1infc
s=f1.name
If(not((left(s,1))="_"))then
Response.write"<li>"
Response.write"<ahref=files.asp?sPath="&f1&">"
Response.writes&"</LI>"
Response.write"</a>"
CallShowFolderList((folderspec&"/"&s))
endif
Next
ForEachf1infs
s=f1.name
If(not((left(s,1))="_"))then
Response.write"<li>"
Response.write"<ahref=files.asp?sPath="&f1&"><fontcolor=666666>"
ifinstr(s,"product")>0then
Response.writereplace(s,"product","<fontcolor=008800>product</font>")
else
ifinstr(s,"prod")>0then
Response.writereplace(s,"prod","<fontcolor=008800>prod</font>")
else
Response.writes
endif
endif
Response.write"</f</p>asp,你就只能等着微软给你解决,它不乐意你就只好悲催。而且asp跑在windows服务器上,windows服务器跟linux比起来简直弱爆了! |
|