make the stats page fit with the rest of the site

This commit is contained in:
Holden Karau 2008-04-09 19:14:13 -04:00
parent 702d4331c2
commit e3492a5769
3 changed files with 20 additions and 18 deletions

View File

@ -1,11 +1,12 @@
<!ELEMENT cscpage (biglogo*, section*, header*, footer*)> <!ELEMENT cscpage (biglogo*, section*, header*, footer*)>
<!ATTLIST cscpage <!ATTLIST cscpage
title CDATA #REQUIRED> title CDATA #REQUIRED
morestyle CDATA "">
<!ELEMENT biglogo EMPTY> <!ELEMENT biglogo EMPTY>
<!ELEMENT section (#PCDATA)> <!ELEMENT section (#PCDATA)>
<!ATTLIST section <!ATTLIST section
title CDATA #REQUIRED> title CDATA " ">
<!ELEMENT header EMPTY> <!ELEMENT header EMPTY>
<!ELEMENT footer EMPTY> <!ELEMENT footer EMPTY>

View File

@ -1,17 +1,13 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version='1.0'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <!DOCTYPE cscpage SYSTEM "csc.dtd">
<head>
<title>Network Statistics</title> <cscpage title="Network Statistics" morestyle="td {
<style type="text/css">
td {
padding: 2px 2px 8px 2px; padding: 2px 2px 8px 2px;
text-align: center; text-align: center;
} }">
</style> <header/>
</head> <section >
<body>
<table> <table>
<tr> <tr>
<td colspan="2">IST: <td colspan="2">IST:
@ -116,6 +112,6 @@
</td> </td>
</tr> </tr>
</table> </table>
</section>
</body> <footer />
</html> </cscpage>

View File

@ -17,6 +17,11 @@
type="application/rss+xml" /> type="application/rss+xml" />
<title><xsl:value-of select="@title" /></title> <title><xsl:value-of select="@title" /></title>
<link rel="stylesheet" href="{$g_pre}default.css" type="text/css" /> <link rel="stylesheet" href="{$g_pre}default.css" type="text/css" />
<xsl:if test="@morestyle">
<style>
<xsl:value-of select="@morestyle" />
</style>
</xsl:if>
</head> </head>
<body><div class="content"> <body><div class="content">
<a id="pagetop" /> <a id="pagetop" />
@ -32,7 +37,7 @@
<xsl:if test="@anchor"> <xsl:if test="@anchor">
<a id="{@anchor}" /> <a id="{@anchor}" />
</xsl:if> </xsl:if>
<h2><xsl:value-of select="@title" /></h2> <h2><xsl:value-of select="@title" /></h2>
<xsl:apply-templates /> <xsl:apply-templates />
</xsl:template> </xsl:template>