#!C:/Python20/python.exe
#
import mx.ODBC.Windows as odbc
from jetCursor import jetCursor
import urllib
print """Content-Type: text/html\n
Min-Web Page List
"""
cn = odbc.connect("WebData")
cr = jetCursor(cn.cursor(), cn)
sql = cr.SELECT("PgName", FROM="PgData")
cr.execute(sql)
data = cr.fetchall()
cr.close()
cn.close()
print """Click the page name to show data in an edit form
"""
for d in data:
PgName = d[0]
print """
%s
""" %Â
(urllib.quote(PgName), PgName)
print """
Create New Page
"""