/[shmookey]/portconf/common.py


UCC Code Repository

Contents of /portconf/common.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 120 - (hide annotations) (download) (as text)
Thu Jun 5 07:30:56 2008 UTC (13 years, 6 months ago) by shmookey
File MIME type: text/x-python
File size: 3879 byte(s)
general improvements, beginning stump of a configuration interface

1 shmookey 117
2     def GetHeader (pageTitle, sideBarText):
3     buffer = """
4     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5     <html>
6     <head>
7     <title>%s - IT Services - UWA</title>
8     <link rel="stylesheet" href="/style/uwa.css" type="text/css" />
9     <link rel="stylesheet" href="/style/its.css" type="text/css" />
10     <link rel="stylesheet" href="/style/tables.css" type="text/css" />
11     <script type="text/javascript" src="includes/jquery.js"></script>
12     </head>
13     <body><a name="TopOfPage"></a>
14     <div id="uwa_header">
15     <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>
16     <div id="uwa_header_links"><ul>
17     <li><a href="http://www.uwa.edu.au/prospective/">Prospective Students</a> | </li>
18 shmookey 120 <li><a href="http://www.uwa.edu.au/students/">Current Students</a> | </li>
19 shmookey 117 <li><a href="http://www.uwa.edu.au/staff/">Staff</a> | </li>
20     <li><a href="http://www.uwa.edu.au/alumni/">Alumni</a> | </li>
21     <li><a href="http://www.uwa.edu.au/visitors/">Visitors</a> | </li>
22     <li><a href="http://www.uwa.edu.au/about/">About</a></li>
23     </ul></div>
24     <div id="uwa_header_search"><form action="http://www.uwa.edu.au/search.php3">
25     <input type="hidden" name="site" value="search" /><input type="hidden" name="hl" value="en" />
26     <label for="uwa_header_search_type">Search</label>
27     <select name="query" tabindex="2" id="uwa_header_search_type">
28     <option value="search" selected="selected">UWA Website</option>
29     <option value="person">UWA People</option>
30     <option value="xpert">UWA Expertise</option>
31     <option value="department">UWA Structure</option>
32     <option value="intranet">UWA Intranet</option>
33     </select>
34     <label for="uwa_header_search_words">for</label>
35     <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...';" />
36     <input type="submit" value="Go" tabindex="3" />
37     </form></div>
38     <br clear="all" />
39     </div>
40     <div id="its_header">
41     <div id="its_header_banner">
42     <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>
43     <div id="its_header_banner_nav"><ul>
44     <li><a href="http://www.its.uwa.edu.au/">Home</a></li>
45     <li><a href="http://www.its.uwa.edu.au/students">Students</a></li>
46     <li><a href="http://www.its.uwa.edu.au/staff">Staff</a></li>
47     <li><a href="http://www.its.uwa.edu.au/tech_contacts">IT Support Staff</a></li>
48     </ul></div>
49     </div>
50     </div>
51     <div id="its_sidebar">
52     %s
53     </div>
54     <div id="its_content">
55     """ % (pageTitle, sideBarText)
56     return buffer
57    
58     def GetFooter ():
59     buffer = """
60     </div>
61     <div id="uwa_footer">
62     <div id="uwa_footer_links"><ul>
63     <li>Contact: <a href="mailto:[email protected]">ITS Service Desk</a></li>
64     <br />
65     <li><a href="#TopOfPage">Top of Page</a></li>
66     </ul></div>
67     <div id="uwa_footer_info">
68     Updated: <!--#echo var="LAST_MODIFIED" --><br />
69     Location: <a href="http://<!--#echo var="SERVER_NAME" --><!--#echo var="DOCUMENT_URI" -->">http://<!--#echo var="SERVER_NAME" --><!--#echo var="DOCUMENT_URI" --></a><br />
70     <br />
71     University of Western Australia<br />
72     CRICOS Provider Code: 00126G<br />
73     </div>
74     <br clear="all" />
75     </div>
76     </body>
77     </html>
78     """
79     return buffer
80 shmookey 120
81     def GetErrorSidebar ():
82     pageText = """
83     <dt><a href="./">Navigation</a></dt>
84     <dd><ul>
85     <li><a href="./">Main Menu</a></li>
86     </ul></dd>
87     """
88     return pageText

Properties

Name Value
svn:executable *

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26