mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1007 B
28 lines
1007 B
<%
|
|
function heading(colwidth,thestring,sortstr)
|
|
dim writeStr, listSort
|
|
listSort = Session("ListSort")
|
|
writeStr = "<TD VALIGN='bottom' WIDTH = " & colwidth & " BORDERCOLOR=" & Session("BGCOLOR") & " BORDERCOLORDARK='#FFFFFF' BORDERCOLORLIGHT='#000000'"
|
|
if listSort and (sortstr <> "") then
|
|
|
|
if Session("hasDHTML") then
|
|
writeStr = writeStr & " OnCLick=" & quote & "parent.head.sortList('" & sortstr & "');" & quote
|
|
writeStr = writeStr & " style='cursor: hand;'"
|
|
writeStr = writeStr & ">"
|
|
writeStr = writeStr & sFont("","","",True)
|
|
writeStr = writeStr & thestring
|
|
else
|
|
writeStr = writeStr & ">"
|
|
writeStr = writeStr & sFont("","","",True)
|
|
writeStr = writeStr & "<A HREF = " & quote & "javascript:parent.head.sortList('"& sortstr & "');" & quote & ">" & thestring & "</A>"
|
|
end if
|
|
else
|
|
writeStr = writeStr & ">"
|
|
writeStr = writeStr & sFont("","","",True)
|
|
writeStr = writeStr & thestring
|
|
end if
|
|
writeStr = writeStr & "</TD>"
|
|
|
|
heading = writeStr
|
|
end function
|
|
%>
|