2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2003-08-19 06:45:36 +00:00
|
|
|
|
|
|
|
function last_mod() {
|
2004-11-15 21:20:58 +00:00
|
|
|
return gmdate("g:i A \U\T\C, F d Y", filemtime($_SERVER["SCRIPT_FILENAME"]));
|
2003-08-19 06:45:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function page_head($title) {
|
|
|
|
$d = last_mod();
|
2004-12-26 00:14:51 +00:00
|
|
|
echo "<html>
|
2003-09-23 23:19:41 +00:00
|
|
|
<head>
|
2004-12-26 00:19:02 +00:00
|
|
|
<link rel='stylesheet' type='text/css' href='white.css'/>
|
2004-12-26 00:14:51 +00:00
|
|
|
<link rel='shortcut icon' href='iconsmall.ico'/>
|
2003-08-19 06:45:36 +00:00
|
|
|
<title>$title</title>
|
2003-09-23 23:19:41 +00:00
|
|
|
</head>
|
2004-12-26 00:19:02 +00:00
|
|
|
<body bgcolor='ffffff'>
|
|
|
|
<table width='100%'>
|
2003-08-19 06:45:36 +00:00
|
|
|
<tr>
|
|
|
|
<td><center><h1>$title</h1></center>
|
2004-12-26 00:19:02 +00:00
|
|
|
<td align=right><a href='.'><img src='boinc.gif'></a>
|
2003-08-19 06:45:36 +00:00
|
|
|
<br>
|
2004-12-26 00:19:02 +00:00
|
|
|
<nobr><font size='2'>Last modified $d</font></nobr>
|
2003-08-19 06:45:36 +00:00
|
|
|
</td>
|
|
|
|
</tr></table>
|
|
|
|
<hr size=0 noshade>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
|
|
|
|
function page_tail() {
|
2005-02-01 21:11:08 +00:00
|
|
|
$y = date("Y ");
|
2003-08-19 06:45:36 +00:00
|
|
|
echo "
|
2004-12-26 00:21:17 +00:00
|
|
|
<hr size='0' noshade/>
|
|
|
|
<p align='center'>
|
|
|
|
<a href='/'>Return to BOINC main page</a>
|
2004-12-26 00:14:51 +00:00
|
|
|
<br/><br/>
|
2005-02-01 21:11:08 +00:00
|
|
|
Copyright © $y University of California
|
2004-12-26 00:14:51 +00:00
|
|
|
</p>
|
|
|
|
</body>
|
|
|
|
</html>
|
2003-08-19 06:45:36 +00:00
|
|
|
";
|
|
|
|
}
|
|
|
|
|
2004-09-05 18:46:19 +00:00
|
|
|
function html_text($x) {
|
|
|
|
return "<pre>".htmlspecialchars($x)."</pre>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
|
2003-08-19 06:45:36 +00:00
|
|
|
function list_start() {
|
|
|
|
echo "<p><table border=1 cellpadding=6 width=100%>\n";
|
|
|
|
}
|
|
|
|
|
2004-02-09 05:11:05 +00:00
|
|
|
function list_heading($x, $y, $z=null) {
|
|
|
|
echo "
|
|
|
|
<tr>
|
2004-02-12 01:13:47 +00:00
|
|
|
<th valign=top><b>$x</b></th>
|
|
|
|
<th valign=top>$y</th>
|
2004-02-09 05:11:05 +00:00
|
|
|
";
|
|
|
|
if ($z) {
|
2004-02-12 01:13:47 +00:00
|
|
|
echo " <th valign=top>$z</th>\n";
|
2004-02-09 05:11:05 +00:00
|
|
|
}
|
|
|
|
echo " </tr>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
function list_item($x, $y, $z=null) {
|
2003-08-19 06:45:36 +00:00
|
|
|
echo "
|
|
|
|
<tr>
|
2004-11-12 22:50:58 +00:00
|
|
|
<td bgcolor=d8d8ff valign=top><b>$x</b></td>
|
2003-08-19 06:45:36 +00:00
|
|
|
<td valign=top>$y</td>
|
2004-02-09 05:11:05 +00:00
|
|
|
";
|
|
|
|
if ($z) {
|
|
|
|
echo " <td valign=top>$z</a>\n";
|
|
|
|
}
|
|
|
|
echo " </tr>\n";
|
2003-08-19 06:45:36 +00:00
|
|
|
}
|
|
|
|
|
2004-09-05 18:46:19 +00:00
|
|
|
function list_item_func($x, $y) {
|
|
|
|
list_item(html_text($x), $y);
|
|
|
|
}
|
|
|
|
|
2004-10-01 22:00:39 +00:00
|
|
|
function list_bar($x) {
|
|
|
|
echo "
|
2004-11-12 22:50:58 +00:00
|
|
|
<tr><td colspan=3 bgcolor=b8b8ff><center><b>$x</b></center></td></tr>
|
2004-10-01 22:00:39 +00:00
|
|
|
";
|
|
|
|
}
|
|
|
|
|
2003-08-19 06:45:36 +00:00
|
|
|
function list_end() {
|
|
|
|
echo "</table><p>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|