This commit is contained in:
Andreas Österreicher
2014-09-01 13:17:51 +00:00
parent afb9ec24bf
commit 0aca2c1413
2 changed files with 22 additions and 12 deletions
+12 -11
View File
@@ -68,19 +68,20 @@ class FO_LayoutObject extends FO_FlowContainer {
//oesi - convertiert die daten von utf8 nach latin1 und ersetzt 'EURO' durch das eurosymbol
function convert($str)
{
$str = str_replace('ĉ','c',$str);
$str = str_replace('Č','C',$str);
$str = str_replace('č','c',$str);
$str = str_replace('ć','c',$str);
$str = str_replace('Š','S',$str);
$str = str_replace('š','s',$str);
$str = str_replace('ň','n',$str);
$str = str_replace('ř','r',$str);
$str = utf8_decode($str);
//echo str_replace('EURO',chr(128),utf8_decode($str));
$str = str_replace('EURO',chr(128),$str);
$str = str_replace('ĉ','c',$str);
$str = str_replace('Č','C',$str);
$str = str_replace('č','c',$str);
$str = str_replace('ć','c',$str);
$str = str_replace('Š','S',$str);
$str = str_replace('š','s',$str);
$str = str_replace('ň','n',$str);
$str = str_replace('ř','r',$str);
$str = str_replace('EURO',chr(128),$str);
return utf8_decode($str);
return $str;
}
//Spaltenhoehe Berechnen
+10 -1
View File
@@ -190,7 +190,16 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="12mm"><xsl:text> </xsl:text><xsl:value-of select="lehreinheit_id" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="67mm"><xsl:text> </xsl:text><xsl:value-of select="lehrveranstaltung" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="38mm"><xsl:text> </xsl:text><xsl:value-of select="substring(fachbereich,0,25)" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="38mm"><xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="string-length(fachbereich)>28">
<xsl:value-of select="substring(fachbereich,0,25)" /><xsl:text>...</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="fachbereich" />
</xsl:otherwise>
</xsl:choose>
</fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="30mm" text-align="center"><xsl:value-of select="gruppe" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="10mm" text-align="right"><xsl:value-of select="stunden" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="8mm" text-align="right"><xsl:value-of select="satz" /></fo:block></fo:table-cell>