Commit 3d1e3442 authored by Amos Latteier's avatar Amos Latteier

Fixed the HTML of the ZSQL Methods 'Test' tab. Now there is an HTML doctype...

Fixed the HTML of the ZSQL Methods 'Test' tab. Now there is an HTML doctype and the HTML and BODY tags are correct. This should probably be moved out of the code into a HTMLFile.
parent f3cc671e
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
__doc__='''Shared classes and functions __doc__='''Shared classes and functions
$Id: Aqueduct.py,v 1.40 2000/05/12 15:06:23 brian Exp $''' $Id: Aqueduct.py,v 1.41 2000/06/13 22:10:01 amos Exp $'''
__version__='$Revision: 1.40 $'[11:-2] __version__='$Revision: 1.41 $'[11:-2]
import Globals, os import Globals, os
from Globals import HTMLFile, Persistent from Globals import HTMLFile, Persistent
...@@ -214,7 +214,9 @@ def default_input_form(id,arguments,action='query', ...@@ -214,7 +214,9 @@ def default_input_form(id,arguments,action='query',
items=arguments.items() items=arguments.items()
return ( return (
"%s\n%s%s" % ( "%s\n%s%s" % (
'<html><head><title>%s Input Data</title></head><body>\n%s\n' '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">\n'
'<html lang="en"><head><title>%s Input Data</title></head>\n'
'<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">\n%s\n'
'<form action="<dtml-var URL2>/<dtml-var id>/%s" ' '<form action="<dtml-var URL2>/<dtml-var id>/%s" '
'method="get">\n' 'method="get">\n'
'<h2>%s Input Data</h2>\n' '<h2>%s Input Data</h2>\n'
...@@ -251,7 +253,9 @@ def default_input_form(id,arguments,action='query', ...@@ -251,7 +253,9 @@ def default_input_form(id,arguments,action='query',
) )
else: else:
return ( return (
'<html><head><title>%s Input Data</title></head><body>\n%s\n' '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">\n'
'<html lang="en"><head><title>%s Input Data</title></head>\n'
'<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">\n%s\n'
'<form action="<dtml-var URL2>/<dtml-var id>/%s" ' '<form action="<dtml-var URL2>/<dtml-var id>/%s" '
'method="get">\n' 'method="get">\n'
'<h2>%s Input Data</h2>\n' '<h2>%s Input Data</h2>\n'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment