From 98ac2a51c9d01358d14d9d7542872cb0e16de436 Mon Sep 17 00:00:00 2001 From: kindlm Date: Wed, 9 Mar 2016 16:08:44 +0100 Subject: [PATCH] Newsite-Tag entfernt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Führt bei Unoconv zu falscher Ausgabe --- rdf/lehrauftrag.xml.php | 48 +++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 31 deletions(-) diff --git a/rdf/lehrauftrag.xml.php b/rdf/lehrauftrag.xml.php index d6c3c7969..869321655 100644 --- a/rdf/lehrauftrag.xml.php +++ b/rdf/lehrauftrag.xml.php @@ -64,8 +64,6 @@ if(isset($_GET['ss'])) else die('Fehlerhafte Parameteruebergabe'); -$ANZAHL_ZEILEN_PRO_SEITE=25; - //String der laenger als limit ist wird //abgeschnitten und '...' angehaengt function CutString($strVal, $limit) @@ -162,7 +160,6 @@ function drawLehrauftrag($uid) global $ss; global $xml; global $stgl; - global $ANZAHL_ZEILEN_PRO_SEITE; $db = new basis_db(); @@ -395,36 +392,25 @@ function drawLehrauftrag($uid) } } - $anz=0; - $newsite=false; + + foreach ($lv as $lv_row) { - if($anz>$ANZAHL_ZEILEN_PRO_SEITE) - { - if($newsite) - $xml.=''; - $xml.=''; - $newsite=true; - $anz=0; - } - $xml.=' - - - - - - - '.$lv_row['einzelgruppe'].' - - - - - - '; - $anz++; - } - if($newsite) - $xml.=''; + $xml.=' + + + + + + + '.$lv_row['einzelgruppe'].' + + + + + + '; + }; // Gesamtstunden und Gesamtkosten $xml.="