changeset 3359:7b601099db10

FixA: Overview: Added legend at bottom of overview table. flys-client/trunk@5046 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 18 Jul 2012 17:05:02 +0000 (2012-07-18)
parents 65b71ddc7716
children 00fd2bd71ac9
files flys-client/ChangeLog flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl
diffstat 2 files changed, 38 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Jul 18 16:16:47 2012 +0000
+++ b/flys-client/ChangeLog	Wed Jul 18 17:05:02 2012 +0000
@@ -1,4 +1,9 @@
-2012-07-13  Raimund Renkert <raimund.renkert@intevation.de>
+2012-07-18	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl:
+	  Added legend at bottom of overview table.
+
+2012-07-18  Raimund Renkert <raimund.renkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/fixation/FixFunctionSelect.java:
 	  New. UI provider for function selection in fix analysis. This UI provider
--- a/flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl	Wed Jul 18 16:16:47 2012 +0000
+++ b/flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl	Wed Jul 18 17:05:02 2012 +0000
@@ -120,10 +120,10 @@
         <xsl:text> - </xsl:text>
         <xsl:value-of select="@to"/>
         <xsl:choose>
-          <xsl:when test="@class = '0'"> / Q &#8712; [0, (MNQ+MQ)/2) </xsl:when>
-          <xsl:when test="@class = '1'"> / Q &#8712; [(MNQ+MQ)/2, (MQ+MHQ)/2)</xsl:when>
-          <xsl:when test="@class = '2'"> / Q &#8712; [(MQ+MHQ)/2, HQ5)</xsl:when>
-          <xsl:when test="@class = '3'"> / Q &#8712; [HQ5, &#8734;)</xsl:when>
+          <xsl:when test="@class = '0'"> / Q um MNQ</xsl:when>
+          <xsl:when test="@class = '1'"> / Q um MQ</xsl:when>
+          <xsl:when test="@class = '2'"> / Q um MHQ</xsl:when>
+          <xsl:when test="@class = '3'"> / Q über HQ5</xsl:when>
         </xsl:choose>
       </xsl:attribute>
       <xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;]]></xsl:text>
@@ -170,6 +170,34 @@
 
   <xsl:template match="/">
     <xsl:apply-templates/>
+    <hr/>
+    <table border="1" cellspacing="0" cellpadding="0">
+      <caption>Legende</caption>
+      <tr>
+        <th>Farbe</th>
+        <th colspan="2">Bedeutung</th>
+      </tr>
+      <tr>
+        <td style="background: green">&#160;</td>
+        <td>um MNQ</td>
+        <td>Q &#8712; [0, (MNQ+MQ)/2)</td>
+      </tr>
+      <tr>
+        <td style="background: blue">&#160;</td>
+        <td>um MQ</td>
+        <td>Q &#8712; [(MNQ+MQ)/2, (MQ+MHQ)/2)</td>
+      </tr>
+      <tr>
+        <td style="background: magenta">&#160;</td>
+        <td>um MHQ</td>
+        <td>Q &#8712; [(MQ+MHQ)/2, HQ5)</td>
+      </tr>
+      <tr>
+        <td style="background: red">&#160;</td>
+        <td>über HQ5</td>
+        <td>Q &#8712; [HQ5, &#8734;)</td>
+      </tr>
+    </table>
   </xsl:template>
 
   <xsl:template match="text()"/>

http://dive4elements.wald.intevation.org