convert to php

This commit is contained in:
David Schleef 2002-12-02 22:38:16 +00:00
parent 573b8b539c
commit bce965af78
11 changed files with 110 additions and 16 deletions

30
comedi.css Normal file
View file

@ -0,0 +1,30 @@
h1 {
color: #333333;
text-decoration: none;
font-size:1.6em;
font-family: "Arial Narrow", "Arial", sans-serif;
}
h2 {
color: #333333;
text-decoration: none;
font-size: 1.2em;
font-family: "Arial Narrow", "Arial", sans-serif;
}
h3 {
color: #333333;
text-decoration: none;
font-size: 1em;
font-family: "Arial Narrow", "Arial", sans-serif;
}
a:link { color: #0000FF; text-decoration: none; }
a:visited { color: #6666CC; text-decoration: none; }
a:hover { color: #FF3333; text-decoration: underline; }
a.gstnavside:link { color: #000000; text-decoration: none; font-family: "Arial", sans-serif; }
a.gstnavside:visited { color: #000000; text-decoration: none; font-family: "Arial", sans-serif; }
a.gstnavside:hover { color: #3333CC; text-decoration: none; font-family: "Arial", sans-serif; }
.right { text-align: right; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

View file

@ -1,4 +1,7 @@
<?php
include('lib/template.php');
echo get_header('comedi', '.');
?>
<h1>Documentation</h1> <h1>Documentation</h1>
@ -9,3 +12,7 @@ Comedi and Comedilib.
<p> <p>
<a href="doc/index.html">Comedilib Reference</a> <a href="doc/index.html">Comedilib Reference</a>
<?php
echo get_footer();
?>

View file

@ -1,4 +1,8 @@
<?php
include('lib/template.php');
echo get_header('comedi', '.');
?>
<h1>Download</h1> <h1>Download</h1>
@ -9,3 +13,6 @@
<li><a href="https://cvs.comedi.org/cgi-bin/viewcvs.cgi/comedilib/comedilib.tar.gz?tarball=1">Current Comedilib CVS snapshot</a> <li><a href="https://cvs.comedi.org/cgi-bin/viewcvs.cgi/comedilib/comedilib.tar.gz?tarball=1">Current Comedilib CVS snapshot</a>
</ul> </ul>
<?php
echo get_footer();
?>

View file

@ -1,4 +1,8 @@
<?php
include('lib/template.php');
echo get_header('comedi', '.');
?>
<h1>Supported Hardware</h1> <h1>Supported Hardware</h1>
@ -259,3 +263,6 @@ SSV Embedded Systems DIL/Net-PC 1486 ssv_dnp.o dnp-1486
</pre> </pre>
<?php
echo get_footer();
?>

BIN
images/comedi_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

@ -1,3 +1,8 @@
<?php
include('lib/template.php');
echo get_header('comedi', '.');
?>
<h1>Introduction</h1> <h1>Introduction</h1>
<p> <p>
@ -39,8 +44,8 @@ for using Comedi from real-time tasks.
(probably not accurate!) (probably not accurate!)
<ul> <ul>
<li>comedi-0.7.45 <li>comedi-0.7.66
<li>comedilib-0.7.9 <li>comedilib-0.7.19
</ul> </ul>
<p> <p>
@ -58,3 +63,6 @@ David Schleef <address>ds@schleef.org</address>
Much of Comedi has been developed by others, suggesting the need for Much of Comedi has been developed by others, suggesting the need for
a contributors list. a contributors list.
<?php
echo get_footer();
?>

View file

@ -1,3 +1,15 @@
<?php
$local_prefix = '';
function get_header($title, $prefix) {
global $local_prefix, $clean;
$local_prefix = $prefix; // this is a hack so i don't have to pass prefix to get_footer
if ($clean==1)
return "<html><head><title>$title</title></head><body>\n";
$ret = <<<EOF
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html> <html>
<head> <head>
@ -30,13 +42,13 @@
Index Index
</b></font> </b></font>
<font size=2><b> <font size=2><b>
<br><a href="intro.html">Introduction</a> <br><a href="index.php">Introduction</a>
<br><a href="download.html">Download</a> <br><a href="download.php">Download</a>
<br><a href="https://cvs.comedi.org/cgi-bin/viewcvs.cgi/">CVS</a> <br><a href="https://cvs.comedi.org/cgi-bin/viewcvs.cgi/">CVS</a>
<br><a href="documentation.html">Documentation</a> <br><a href="documentation.php">Documentation</a>
<br><a href="mailinglist.html">Mailing list</a> <br><a href="mailinglist.php">Mailing list</a>
<br><a href="hardware.html">Supported<br>hardware</a> <br><a href="hardware.php">Supported<br>hardware</a>
<br><a href="links.html">Manufacturers</a> <br><a href="links.php">Manufacturers</a>
<br> <br>
</b></font> </b></font>
<br> <br>
@ -54,16 +66,25 @@ Links
</nobr> </nobr>
</td> </td>
<td valign=top align=left> <td valign=top align=left>
EOF;
return $ret;
}
CONTENT function get_footer() {
global $local_prefix, $clean;
$prefix = $local_prefix;
if ($clean==1)
return "</body></html>\n";
$ret = <<<EOF
</td> </td>
</tr> </tr>
</table> </table>
</body> </body>
</html> </html>
EOF;
return $ret;
}
?>

View file

@ -1,3 +1,7 @@
<?php
include('lib/template.php');
echo get_header('comedi', '.');
?>
<h1>Manufacturer Links</h1> <h1>Manufacturer Links</h1>
@ -15,3 +19,6 @@
<li><a href="http://www.quanser.com">Quanser Consulting</a> <li><a href="http://www.quanser.com">Quanser Consulting</a>
</ul> </ul>
<?php
echo get_footer();
?>

View file

@ -1,3 +1,7 @@
<?php
include('lib/template.php');
echo get_header('comedi', '.');
?>
<h1>Mailing List</h1> <h1>Mailing List</h1>
@ -18,3 +22,6 @@ interface below.
<p> <p>
Mailing list archive before May 2000 is not currently available Mailing list archive before May 2000 is not currently available
<?php
echo get_footer();
?>