Commit 43d0bea2 authored by Davis King's avatar Davis King
Browse files

Cleaned up the html a lot. The page doesn't use tables for layout anymore.

parent af928c9a
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
<!-- ************************************************************************* --> <!-- ************************************************************************* -->
<xsl:variable name="gray">#E3E3E3</xsl:variable> <xsl:variable name="gray">#E3E3E3</xsl:variable>
<xsl:variable name="background_color">#EDF3EE</xsl:variable>
<!-- ************************************************************************* --> <!-- ************************************************************************* -->
<!-- ************************************************************************* --> <!-- ************************************************************************* -->
...@@ -83,9 +82,9 @@ ...@@ -83,9 +82,9 @@
<body bgcolor="{$background_color}"> <body>
<a name="top" /> <a name="top" />
<div class="entire_page_header"> <div id="page_header">
<xsl:if test="$is_chm != 'true'"> <xsl:if test="$is_chm != 'true'">
<div style="float:right;width:450px"> <div style="float:right;width:450px">
<script> <script>
...@@ -104,20 +103,21 @@ ...@@ -104,20 +103,21 @@
</xsl:if> </xsl:if>
<a href="http://dlib.net"><img src="dlib-logo.png"/></a> <a href="http://dlib.net"><img src="dlib-logo.png"/></a>
</div> </div>
<div class="entire_page">
<table bgcolor="white" height="100%" bordercolor="{$background_color}"
CELLSPACING="0" CELLPADDING="10" style="border:0px;margin-top:2px"> <div id="top_content">
<tr height="100%"> <div id="main_menu" class="menu">
<xsl:apply-templates select="document($main_menu)/doc/menu"/> <xsl:apply-templates select="document($main_menu)/doc/menu"/>
</div>
<!-- ************************************************************************* --> <!-- ************************************************************************* -->
<td VALIGN="TOP" width="100%" style="border: 1px solid rgb(102,102,102);" > <div id="main_text">
<xsl:if test="title"> <xsl:if test="title">
<center><h1> <xsl:value-of select="title" /> </h1></center> <div id="main_text_title"> <xsl:value-of select="title" /> </div>
</xsl:if> </xsl:if>
<xsl:apply-templates select="body"/>
<div id="main_text_body">
<xsl:apply-templates select="body"/>
<xsl:for-each select="questions"> <xsl:for-each select="questions">
<xsl:sort select="translate(@group,$lcletters, $ucletters)"/> <xsl:sort select="translate(@group,$lcletters, $ucletters)"/>
<xsl:if test="@group"><h2><xsl:value-of select="@group"/></h2></xsl:if> <xsl:if test="@group"><h2><xsl:value-of select="@group"/></h2></xsl:if>
...@@ -128,29 +128,32 @@ ...@@ -128,29 +128,32 @@
</xsl:for-each> </xsl:for-each>
</ul> </ul>
</xsl:for-each> </xsl:for-each>
</div>
</div>
</td> <!-- ************************************************************************* -->
<!-- ************************************************************************* --> <xsl:choose>
<xsl:choose> <xsl:when test="menu/@from_file">
<xsl:when test="menu/@from_file"> <div id="right_menu" class="menu">
<xsl:apply-templates select="document(menu/@from_file)/doc/menu"> <xsl:apply-templates select="document(menu/@from_file)/doc/menu">
<xsl:with-param name="file_name" select="concat(substring-before(menu/@from_file,'.'),'.html')" /> <xsl:with-param name="file_name" select="concat(substring-before(menu/@from_file,'.'),'.html')" />
</xsl:apply-templates> </xsl:apply-templates>
</xsl:when> </div>
<xsl:otherwise> </xsl:when>
<xsl:apply-templates select="menu"/> <xsl:otherwise>
</xsl:otherwise> <xsl:if test="menu">
</xsl:choose> <div id="right_menu" class="menu">
<xsl:apply-templates select="menu"/>
</div>
<!-- ************************************************************************* --> </xsl:if>
</tr> </xsl:otherwise>
</xsl:choose>
</table> <!-- ************************************************************************* -->
</div>
<div id="bottom_content">
<xsl:apply-templates select="components"/> <xsl:apply-templates select="components"/>
<xsl:apply-templates select="questions"/> <xsl:apply-templates select="questions"/>
</div> </div>
</body> </body>
...@@ -209,21 +212,16 @@ ...@@ -209,21 +212,16 @@
<xsl:template match="menu"> <xsl:template match="menu">
<xsl:param name="file_name" /> <xsl:param name="file_name" />
<td BGCOLOR="#F5F5F5" style="padding:7px; border: 1px solid rgb(102,102,102);" VALIGN="TOP" height="100%"> <div class="menu_top">
<br/>
<table WIDTH="{@width}" height="100%">
<tr><td VALIGN="TOP">
<xsl:apply-templates select="top"> <xsl:apply-templates select="top">
<xsl:with-param name="file_name" select="$file_name" /> <xsl:with-param name="file_name" select="$file_name" />
</xsl:apply-templates> </xsl:apply-templates>
</td><td width="1"></td></tr> </div>
<tr><td valign="bottom"> <div class="menu_footer">
<xsl:apply-templates select="bottom"> <xsl:apply-templates select="bottom">
<xsl:with-param name="file_name" select="$file_name" /> <xsl:with-param name="file_name" select="$file_name" />
</xsl:apply-templates> </xsl:apply-templates>
</td></tr> </div>
</table>
</td>
</xsl:template> </xsl:template>
<xsl:template match="item"> <xsl:template match="item">
......
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