#!/usr/bin/python #import cgitb #cgitb.enable() import cgi import re form = cgi.FieldStorage() contfile = form.getfirst("content","wmindc.html") nav1,nav2 = '','' link1,link2 = '','' content = '' for x in file("list1.html"): nav1 += x if not link1: mo = re.search(r'(port_.+\.html)',x) if mo: link1 = mo.group(1) for x in file("list2.html"): nav2 += x if not link2: mo = re.search(r'(port_.+\.html)',x) if mo: link2 = mo.group(1) try: for x in file(contfile): content += x except: content = """

Details available soon.

""" nav = '' link = '' if re.search(contfile,nav2): nav = nav2 link = link1 else: nav = nav1 link = link2 print "Content-type: text/html\n\n"; for x in file("ptemplate.html"): x = re.sub(r'!!navstuff!!',nav,x) x = re.sub(r'!!content!!',content,x) x = re.sub(r'!!link!!',link,x) print x peat; } p.retlink, div#navbot p { padding-left: 20px; background: transparent url(images/tinybullet.gif) center left no-repeat; } div.techused { clear: both; margin-left: 10px; } .techused h2 { font-size: 1em; margin: 0; padding: 0; } .techused p { margin: 0; padding: 0; } overflow: hidden; margin: 0 auto; border-color: #a3a3a3; border-style: none solid; border-width: 1px; } #footer { color: #6e6e6e; font-size: 10px; font-weight: bold; text-align: center; position: absolute; bottom: 10px; width: 100%; } /*Front Page */ body, html { height: 100%; } .thankyou { color: white; font-size: 30px; font-weight: bold; background-color: #6982ab; text-align: center; position: relative; left: 80px; bottom: 180px; width: auto; height: auto; z-index: 1; float: left; margin: 0; padding: 20px; border: solid 10px; filter:alpha(opacity=85); opacity: .85; -moz-opacity:0.85; } #about { background-image: url(images/aboutbg.gif); background-repeat: repeat-x; text-align: left; width: 160px; float: left; margin: 0 5px 5px 0; } #about div { margin: 20px 0; padding: 10px; border-top: 1px dotted #bfbfbf; border-bottom: 1px dotted #bfbfbf; } #about p, #about strong { background-color: transparent; } #about a { color: #454545; font-size: 0.85em; font-weight: bold; text-decoration: underline; } #about a:hover { color: #5c76a0; } .imageright { float: right; clear: right; } form { padding: 0px; margin:0px; } .s td { background-color: #f7f7f7; } p{ background-color: #f7f7f7; } strong{ background-color: #f7f7f7; } li { background-color: #f7f7f7; } .display { background-color: #6982ab; /* background-repeat: no-repeat; background-attachment: scroll; background-position: 0 0; */ float: left; width: 25px; height: 290px; /* overflow: hidden; */ margin: 0 2px 0 0; border-color: #afafaf; border-width: 1px; } .stretcher { /*background-color: red;*/ background-repeat: no-repeat; background-position: right top; text-align: left; float: left; /*margin-top: 50px;*/ width: 480px ; height: 290px ; } #text { color: #5d5d47; font-size: 14px; font-weight: bold; background-color: #f7f7f7; text-align: right; height: 20px; padding-top: 6px; padding-right: 20px; padding-bottom: 6px; border-top: 1px solid #a3a3a3; } .image:hover { border-color: #373737; filter:alpha(opacity=100); opacity: 1.00; -moz-opacity:1.00; } .image { margin: 5px; padding: 0; border: solid 1px black; filter:alpha(opacity=70); opacity: 0.70; -moz-opacity:0.70; } ul { margin-top: 0; margin-right: 0; margin-left: 50px; list-style-type: disc; } /*Inside portfolio stuff*/ #iwrapper { background-color: #f7f7f7; background-repeat: no-repeat; background-position: right bottom; width: 795px !important; height: auto !important; overflow: hidden; margin: 0 auto; border-color: #a3a3a3; border-style: none solid; border-width: 1px; } #nav { font-size: 11px; background-image: none; background-repeat: no-repeat; text-align: left; width: 180px; height: auto; float: left; padding: 10px 20px 0 0; border-top: 1px none #a3a3a3; border-right: 1px dotted #a3a3a3; border-left: 1px none #!/usr/bin/python #import cgitb #cgitb.enable() import cgi import re form = cgi.FieldStorage() contfile = form.getfirst("content","wmindc.html") nav1,nav2 = '','' link1,link2 = '','' content = '' for x in file("list1.html"): nav1 += x if not link1: mo = re.search(r'(port_.+\.html)',x) if mo: link1 = mo.group(1) for x in file("list2.html"): nav2 += x if not link2: mo = re.search(r'(port_.+\.html)',x) if mo: link2 = mo.group(1) try: for x in file(contfil