From 624b841e56e8a252ac8bed2b178b414a7969df44 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Tue, 29 Feb 2000 06:30:41 +0000 Subject: Put projects onto separate pages. --- html/functions.php3 | 24 +++++ html/projects.phtml | 256 +++++----------------------------------------------- 2 files changed, 47 insertions(+), 233 deletions(-) (limited to 'html') diff --git a/html/functions.php3 b/html/functions.php3 index 75c2291c..86ef295a 100644 --- a/html/functions.php3 +++ b/html/functions.php3 @@ -182,6 +182,8 @@ function htmlshow($filename,$text="",$title="") { } + + /* Markup plain text file, by escaping < and > */ function markup_plain_text($filename) { @@ -262,3 +264,25 @@ function hack_html($filename,$title="") { } + +/* Display a small page with standard header, footer added on. + Much like htmlshow. */ + +function smallpage($filename,$text="",$title="",$message="") { + if ( $text == "") { $text=$filename; }; + if ( $message == "") { $message=$title; }; + if ( $message == "") { $message=$filename; }; + $urlbits = parse_url($filename); + hlink("smallpage.phtml" + . "?title=" . urlencode($title) + . "&file=" . urlencode($urlbits["path"]) + . ($urlbits["fragment"]=="" ? "" : "#" . $urlbits["fragment"]), + $text, $message); +} + +/* Specialised version for projects */ + +function pgproject($filename,$title) { + smallpage("projects/$filename.html",$title,"Proof General Project",$title); +} + diff --git a/html/projects.phtml b/html/projects.phtml index a4000ab6..426bec3f 100644 --- a/html/projects.phtml +++ b/html/projects.phtml @@ -1,6 +1,6 @@

@@ -12,239 +12,34 @@ involving code development and possibly a portion of supporting research. They would be ideal projects for interested students or researchers.

- - - -

If you are interested in working on any of these projects, @@ -275,7 +65,7 @@ to do that. Contact the project proposer first for more details. If you would like to use any of these ideas as a formal project proposal for students at your institution, please feel free but do -if some work is begun, to help coordinate effort. +if some work is begun, to help coordinate efforts.

-- cgit v1.2.3