|
<%
'---------------------------------------------------------------------------
'
' Project: UTE - (U)niversal ASP (T)able (E)ditor
'
' Module: UTE class - View Database Functions
'
' Version: 3.00
'
' Comments: This module does the following things:
' 1. defines all functions being needed in
' database mode
'
'---------------------------------------------------------------------------
'
' (c) in 2000-2003 by Tom Wellige
' http://www.wellige.com mailto:tom@wellige.com
'
' This project is released under the "GNU General Public License (GPL)"
' http://www.gnu.org/licenses/gpl.html
'
' and is maintained on SourceForge at
' http://sourceforge.net/projects/ute-asp/
'
' and can also be found on CodeProject at
' http://www.codeproject.com/asp/ute.asp
'
'---------------------------------------------------------------------------
''--------------------------------------------------------------------------
'' Name: buildHTML_Database
'' ==================
''
'' Creates entire UTE HTML code for database mode.
''
'' Parameter:
'' none
''
'' return value:
'' string HTML code
''
''--------------------------------------------------------------------------
Private Function buildHTML_Database()
Dim sValue, s
Dim rstSchema
if m_sDBName <> "" then
s = Replace(STR_DB_TITLE, "%1", m_sDBName)
else
s = Replace(STR_DB_TITLE, "%1", STR_DATABASE)
end if
sValue = _
"<p><span class=""ute_headline"">" & s & "</span></p>" & vbCrLf & _
"<table width=""100%""><tr>" & vbCrLf & _
"<td class=""ute_navigation"">" & vbCrLf & _
"<ul class=""ute_table_list"">" & vbCrLf
Set rstSchema = m_DB.OpenSchema(adSchemaTables)
Do Until rstSchema.EOF
if UCase(rstSchema("TABLE_TYPE")) = "TABLE" then
s = Request.QueryString
s = getLink(m_sUTEScript, s, sParamTable, rstSchema("TABLE_NAME"))
s = getLink(m_sUTEScript, s, sParamMode, MD_TABLE)
sValue = sValue & "<li><a href=""" & s & """>" & rstSchema("TABLE_NAME") & "</a>" & vbCrLf
end if
rstSchema.MoveNext
Loop
rstSchema.Close
Set rstSchema = Nothing
sValue = sValue & _
"</ul>" & vbCrLf & _
"</td></tr></table>" & vbCrLf & _
getPoweredBy
buildHTML_Database = sValue
End Function
%>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Tom is in software development for about 15 years. He started with a SHARP MZ80k in Basic and Assembly Language. After collecting some experiance on an ATARI 1040ST he bought his very first IBM XT 286 (incl. 287!) and started to program in
Turbo Pascal. He became very familiar with
Borland's Turbo Vision and over the last years did a lot of development in C++ (MFC), Visual Basic, VB Script, ASP and SQL. He currently works as senior consultant for
Swyx Solutions GmbH, based in Dortmund, Germany.
His absolute favourite is
Guinness Sláinte!