[shmookey] / portconf / common.py Repository:


UCC Code Repository

View of /portconf/common.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 120 - (download) (as text) (annotate)
Thu Jun 5 07:30:56 2008 UTC (2 years, 3 months ago) by shmookey
File size: 3879 byte(s)
general improvements, beginning stump of a configuration interface

def GetHeader (pageTitle, sideBarText):
	buffer = """
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title>%s - IT Services - UWA</title>
    <link rel="stylesheet" href="/style/uwa.css" type="text/css" />
    <link rel="stylesheet" href="/style/its.css" type="text/css" />
    <link rel="stylesheet" href="/style/tables.css" type="text/css" />
	<script type="text/javascript" src="includes/jquery.js"></script>
</head>
<body><a name="TopOfPage"></a>
<div id="uwa_header">
	<div id="uwa_header_banner"><div id="uwa_header_logo"><h1><a href="http://www.uwa.edu.au/"><img src="/images/uwalogotrans.gif" height="60" width="209" border="0" alt="The University of Western Australia" /></a></h1></div><div id="uwa_header_title"><h2>Information Technology Services</h2></div></div>
	<div id="uwa_header_links"><ul>
		<li><a href="http://www.uwa.edu.au/prospective/">Prospective Students</a> | </li>
	<li><a href="http://www.uwa.edu.au/students/">Current Students</a> | </li>
		<li><a href="http://www.uwa.edu.au/staff/">Staff</a> | </li>
		<li><a href="http://www.uwa.edu.au/alumni/">Alumni</a> | </li>
		<li><a href="http://www.uwa.edu.au/visitors/">Visitors</a> | </li>
		<li><a href="http://www.uwa.edu.au/about/">About</a></li>
	</ul></div>
	<div id="uwa_header_search"><form action="http://www.uwa.edu.au/search.php3">
		<input type="hidden" name="site" value="search" /><input type="hidden" name="hl" value="en" />
		<label for="uwa_header_search_type">Search</label>
		<select name="query" tabindex="2" id="uwa_header_search_type">
			<option value="search" selected="selected">UWA Website</option>
			<option value="person">UWA People</option>
			<option value="xpert">UWA Expertise</option>
			<option value="department">UWA Structure</option>
			<option value="intranet">UWA Intranet</option>
		</select>
		<label for="uwa_header_search_words">for</label>
		<input type="text" name="words" value="keywords..." tabindex="1" id="uwa_header_search_words" size="10" onclick="if(this.value=='keywords...')this.value='';" onfocus="if(this.value=='keywords...')this.value='';" onblur="if(this.value=='')this.value='keywords...';" />
		<input type="submit" value="Go" tabindex="3" />
	</form></div>
	<br clear="all" />
</div>
<div id="its_header">
	<div id="its_header_banner">
		<div id="its_header_banner_logo"><a href="http://www.its.uwa.edu.au/"><img src="/images/its_header_banner.jpg" width="210" height="28" border="0" alt="IT Services" /></a></div>
		<div id="its_header_banner_nav"><ul>
			<li><a href="http://www.its.uwa.edu.au/">Home</a></li>
			<li><a href="http://www.its.uwa.edu.au/students">Students</a></li>
			<li><a href="http://www.its.uwa.edu.au/staff">Staff</a></li>
			<li><a href="http://www.its.uwa.edu.au/tech_contacts">IT Support Staff</a></li>
		</ul></div>
	</div>
</div>
<div id="its_sidebar">
%s
</div>
<div id="its_content">
	""" % (pageTitle, sideBarText)
	return buffer

def GetFooter ():
	buffer = """
</div>
<div id="uwa_footer">
	<div id="uwa_footer_links"><ul>
		<li>Contact: <a href="mailto:its-help">ITS Service Desk</a></li>
		<br />
		<li><a href="#TopOfPage">Top of Page</a></li>
	</ul></div>
	<div id="uwa_footer_info">
		Updated: <!--#echo var="LAST_MODIFIED" --><br />
		Location: <a href="http://<!--#echo var="SERVER_NAME" --><!--#echo var="DOCUMENT_URI" -->">http://<!--#echo var="SERVER_NAME" --><!--#echo var="DOCUMENT_URI" --></a><br />
		<br />
		University of Western Australia<br />
		CRICOS Provider Code: 00126G<br />
	</div>
	<br clear="all" />
</div>
</body>
</html>
	"""
	return buffer

def GetErrorSidebar ():
	pageText = """
	<dt><a href="./">Navigation</a></dt>
	<dd><ul>
	<li><a href="./">Main Menu</a></li>
	</ul></dd>
	"""
	return pageText

UCC Webmasters
ViewVC Help
Powered by ViewVC 1.0.5