def header_content(): return "Content-type: text/html; charset=iso-8859-15\n" def header_html(sTitle="", sStylecheet=""): return """ %s """ % (sTitle, sStylecheet) def footer_html(): return """ """ def heading(iType, sText): return """%s""" % (iType, sText, iType) def underline(sText): return """%s""" % sText def center(sText): return """
%s
""" % sText def form_fieldset(lOptions, sName, iSize=0, bMultiple=0): if iSize == 0: iSize = len(lOptions) s = """ """ def form_submit(s): return """""" % s def input_hidden(name, value): return """""" % (name, value) def input_radio(sName, sValue, bChecked=0): s = """" def br(): return "
" def table(l, bBorder=0): s = """\n""" % bBorder for row in l: s+="" for col in row: s+="""\n""" % col s+="\n" return s + "
%s
\n" def input_text(sName, sValue="", iSize=0, iMaxLength=0): s = """" def font(sText, sColor="", sSize=""): s = "%s" % sText def textarea(sName, iCols=50, iRows=10): return """""" % (sName, iCols, iRows) def paragraph(sAlign="", sText=""): s="

" def url(sLink, sText=""): if not sLink: sText = sLink return """%s""" % (sLink, sText) def form_start(sURL, sMethod="POST"): return """

""" % (sURL, sMethod) def form_end(): return """
"""