PEATDB/web.py
def showHeader(self,title=None,menu=None):
        """show headings and column names for DB"""

        imgdir = self.imgdir
        html_header = 'Content-Type: text/html; charset=utf-8\n'
        html_header += '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">\n\n'
        print html_header
        print '<html>'
        print '<head>'

        if title==None:
            print '<title>PEAT Web Interface</title>'
        else:
            print '<title>%s</title>' % title
        print '<link href="%s/styles.css" rel="stylesheet" type="text/css" />' %self.bindir
        print '<link rel="shortcut icon" href="%s/favicon.ico" type="image/x-icon" />' %self.bindir
        print '<script type="text/javascript" src="/scripts/checkbox.js"></script>'
        print '</head>'
        print '<body>'
        print '<div class="header">'
        print '<p id="title">PEAT Web Interface: %s</p>' %self.project
        print '</div>'
        print '<script type="text/javascript" src="/scripts/boxover.js"></script>'
        print '<hr>'
        print '<div>'

        if menu==1:
            self.menu()

        return
show headings and column names for DB
show headings and column names for DB
show headings and column names for DB
def showHeader(self,title=None,menu=None):
        imgdir = self.imgdir
        html_header = 'Content-Type: text/html; charset=utf-8\n'
        html_header += '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">\n\n'
        print html_header
        print '<html>'
        print '<head>'
        if title==None:
            print '<title>PEAT Web Interface</title>'
        else:
            print '<title>%s</title>' % title
        print '<link href="%s/styles.css" rel="stylesheet" type="text/css" />' %self.bindir
        print '<link rel="shortcut icon" href="%s/favicon.ico" type="image/x-icon" />' %self.bindir
        print '<script type="text/javascript" src="/scripts/checkbox.js"></script>'
        print '</head>'
        print '<body>'
        print '<div class="header">'
        print '<p id="title">PEAT Web Interface: %s</p>' %self.project
        print '</div>'
        print '<script type="text/javascript" src="/scripts/boxover.js"></script>'
        print '<hr>'
        print '<div>'
        if menu==1:
            self.menu()
        return
def showHeader ( self , title = None , menu = None ) : imgdir = self . imgdir html_header = 'Content-Type: text/html; charset=utf-8\n' html_header += '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">\n\n' print html_header print '<html>' print '<head>' if title == None : print '<title>PEAT Web Interface</title>' else : print '<title>%s</title>' % title print '<link href="%s/styles.css" rel="stylesheet" type="text/css" />' % self . bindir print '<link rel="shortcut icon" href="%s/favicon.ico" type="image/x-icon" />' % self . bindir print '<script type="text/javascript" src="/scripts/checkbox.js"></script>' print '</head>' print '<body>' print '<div class="header">' print '<p id="title">PEAT Web Interface: %s</p>' % self . project print '</div>' print '<script type="text/javascript" src="/scripts/boxover.js"></script>' print '<hr>' print '<div>' if menu == 1 : self . menu ( ) return
show headings and column names for DB
show headings and column names for DB
"""show headings and column names for DB"""
self
title
menu