Commit 464991ed authored by Leigh Stoller's avatar Leigh Stoller

Minor mods to printable version stuff. Add basic header to each file,

with reference to tbstyle-plain.cc stylesheet. White background, smaller
fonts. This header is mostly ignored in non-printable, except for the
path, which is wrong in subdirs, so more fixes to change the base path
when docwrapping files in subdirs. Seems to work okay, but maybe not the
best solution.
parent d7ee92e5
<html>
<head>
<title>Utah Network Testbed - Policies</title>
<link rel='stylesheet' href='tbstyle.css' type='text/css'>
<title>Emulab.Net - How to Get Started</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
......
<!-- This file is sucked in by the doc wrapper. -->
<html>
<head>
<title>Emulab.Net - TMCD Reference</title>
<link rel='stylesheet' href='../tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
<center>
<h1>Testbed Master Control Daemon/Client Reference</h1>
......
......@@ -24,9 +24,27 @@ if (strstr($docname, "../")) {
USERERROR("Invalid document name: $docname!");
}
#
# Want want to spit out a basepath tag since that mimics typical behaviour
# wrt relative links in the doc, when the target file is in a subdir.
#
if (strrchr($docname, "/")) {
$dir = substr($docname, 0, strrpos($docname, "/"));
$docname = substr(strrchr($docname, "/"), 1);
if (isset($SSL_PROTOCOL)) {
echo "<base href='$TBBASE/$dir/'>\n";
}
else {
echo "<base href='$TBDOCBASE/$dir/'>\n";
}
chdir($dir);
}
if (!$printable) {
echo("<b><a href=$REQUEST_URI&printable=1>Printable version of this document</a></b><br>");
echo "<b><a href=$REQUEST_URI&printable=1>
Printable version of this document</a></b><br>";
}
readfile("$docname");
#
......
<html>
<head>
<title>Emulab.Net - Frequently Asked Questions</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
<center>
<h2>Frequently Asked Questions</h2>
</center>
......
<html>
<head>
<title>Emulab - Hardware Overview</title>
<link rel='stylesheet' href='tbstyle.css' type='text/css'>
<title>Emulab.Net - Hardware Overview</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
......@@ -91,6 +91,10 @@ Cisco 6509 high-end switches</a>. Two function as the "testbed backplane," each
<a href="http://www.apc.com/products/masterswitch/index.cfm">AP9211</a>.)
<p>
<li>7 <a href="http://www.baytechdcd.com/products/rpc27.shtml">
BayTech RPC27</a> 20 port remote power controllers.<br>
<p>
<li>10 <a href = "http://www.wrightline.com/products/freestnd.htm">
Wrightline "Tech I" racks</a>: 44U, 34" deep, 8 are 19" wide, 2 are
24" with cable management.<br>
......
<html>
<head>
<title>Utah Network Testbed - Policy</title>
<link rel='stylesheet' href='tbstyle.css' type='text/css'>
<title>Emulab.Net - Administrative Policies</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
......
<html>
<head>
<title>Security</title>
<link rel='stylesheet' href='tbstyle.css' type='text/css'>
<title>Emulab.Net - Security Issues</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
......
<html>
<head>
<title>Emulab - Software Overview</title>
<link rel='stylesheet' href='tbstyle.css' type='text/css'>
<title>Emulab.Net - Software Overview</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
......
<html>
<head>
<title>Emulab - Sponsors</title>
<link rel='stylesheet' href='tbstyle.css' type='text/css'>
<title>Emulab.Net - Sponsors</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
......
BODY {background: #FFFFFF; margin-right: 0pt; }
A.sidebarbutton {
color:#2F2FFF;
font-family:sans-serif;
}
SPAN.sidebarbutton {
font-family:sans-serif;
}
A.currentsidebarbutton {
color:#0F0F3F;
text-decoration:none;
font-family:sans-serif;
}
SPAN.currentsidebarbutton {
color:#0F0F3F;
text-decoration:none;
font-family:sans-serif;
}
H1 { color: #000000; font-weight: bold; font-size: 18pt; }
H2 { color: #000000; font-weight: bold; font-size: 16pt; }
H3 { color: #000000; font-weight: bold; font-size: 14pt; }
H4 { color: #000000; font-weight: bold; font-size: 12pt; }
PRE { margin-left: 20pt; }
<html>
<head>
<title>Emulab.Net - Testbed NS Command Extensions</title>
<link rel='stylesheet' href='../tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
<center>
<h1>Emulab - NS Testbed Commands</h1>
<h1>Emulab - Testbed NS Command Extensions</h1>
</center>
......
<html>
<head>
<title>Emulab Tutorial</title>
<link rel='stylesheet' href='../tbstyle.css' type='text/css'>
<title>Emulab.Net - Tutorial</title>
<link rel='stylesheet' href='../tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
......
......@@ -10,10 +10,10 @@ if (!$printable) {
}
if (!$printable) {
echo("<b><a href=$REQUEST_URI?printable=1>Printable version of this document</a></b><br>");
echo "<b><a href=$REQUEST_URI?printable=1>
Printable version of this document</a></b><br>\n";
}
chdir("tutorial");
readfile("tutorial.html");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment