########################################################## # GDIdb demo script (c) 1997 Global Data Industries # Datasource=workweb.mdb (Access database) # # In this advanced example, the script creates a top-level # page from the contents of the categories table of the # database, with links to a series of pages listing the # headings of the jobs stored under each category. # Each of the job headings are hyperlinked to a html # document containing the actual job description. ########################################################## ########################################################## # Print the information screen &cls &print("WorkWeb Demo Script") &print("---------------------------------") ########################################################## # Name the ODBC datasource to be used. &datasource("Driver={Microsoft Access Driver (*.mdb)};DBQ=workweb.mdb") ########################################################## # this variable will be used when generating forward/backward # recordset links &defvar(?var1?) ########################################################## # Generate the top-level HTML file. &html("index.html") {
Select a Job Category:
# this SQL statement retrieves all of the jobs in the database. # the only reason it does this is so that the ?recordsetsize? # variable will contain the total number of jobs in the database. &sql("SELECT * FROM Jobs") { The Job database currently contains ?recordsetsize? vacancies. (Updated from database on ?gdidbdate? at ?gdidbtime?) }
# followed by the file to link to # (created by subroutine jobcategory) &jobcategory } } |
This Site demonstrates the use of GDI's Database publishing software. A relational database consisting of jobs grouped by job category is merged with the web site HTML and passed to the web server automatically. |
System Bullet points:
|
![]() |
?JobCategory[-1]? |
Sorry, there are no jobs under this category. }
![]() |
?JobTitle? |
Job ref: ?JobNo?
?JobDesc?
\<-Home |