ASP数据岛操作类(4)
Case Else
End Select
End sub
public Sub AddTemplate(ByVal ColumnName,ByVal Template)
Columns.add ColumnName,ColumnName
Templates.add ColumnName,Template
End Sub
public Sub Show()
InitTable()
Dim tableStr
Dim tdStart,tdEnd,tbStyle,tbContent
Dim curRow
Dim clm
Dim regEx,Match,Matches
tableStr = "<table "&style&">" & vbCrLF
'Draw Table Head
Response.Write(tableStr)
Response.Write("<tr>")
for Each clm in Columns.Keys()
tbStyle = HeadStyle & " " & HeadItemStyle(clm)
tdStart = "<th "&tbStyle&">"
tdEnd = "</th>" & vbCrLf
Response.Write(tdStart)
'加入表头排序功能
'Code by Redsun
'Date:2005-1-17
If HeadSort(clm) Then
Response.Write Sort(clm,Columns(clm))
Else
Response.Write(Columns(clm))
End If
Response.Write(tdEnd)
Next
Response.Write("</tr>" & vbCrLF)
内容版权声明:除非注明,否则皆为本站原创文章。