Dim fl As String = "d:\web\" & e.path
If filesys.FileExists(fl)
Dim idx As Integer = fl.LastIndexOf(".")
Dim ext As String = fl.SubString(idx)
Select Case ext
Case ".jpg",".gif",".png",".bmp",".wmf",".js",".css" ,".html",".htm",".zip",".rar"
e.WriteFile(fl)
Return '这里必须返回
End Select
End If
Select Case e.Path
Case "test.htm"
Dim wb As New WeUI
wb.AppendHTML("<script src='./lib/test.js'></script>")
With wb.AddInputGroup("","ipg1","")
.AddHiddenValue("curname","")
End With
With wb.AddArticle("","ar1")
.AddTitle("h1","大标题")
.AddTitle("h2","章标题")
.AddTitle("h3","1.1节标题")
.AddContent("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute","id='p1' onclick=""getcontent('p1','s1')""")
.AddImage("./images/001.jpg")
.AddTitle("h3","1.2节标题")
.AddContent("Foxtable将Excel?Access?Foxpro?VB以及易表的优势融合在一起,无论是数据录入?查询?统计,还是报表生成,都前所未有的强大和易用,普通用户无需编写任何代码,即可轻松完成复杂的数据管理工作,真正做到拿来即用.","id='p2' onclick=""getcontent('p2','s1')""")
.AddImage("./images/002.jpg")
End With
With wb.AddActionSheet("","s1")
.Add("menu2", "菜单项目2")
.Add("menu3", "菜单项目3").Attribute = "onclick='alert(document.getElementById(document.getElementById(""curname"").value).innerHTML)'"
.Add("menu4","取消","",True)
End With
e.WriteString(wb.Build) '生成网页
End Select