diff --git a/include/Excel/Format.php b/include/Excel/Format.php index 7eca2c6f1..829c3e353 100644 --- a/include/Excel/Format.php +++ b/include/Excel/Format.php @@ -428,7 +428,16 @@ class Spreadsheet_Excel_Writer_Format extends PEAR $header = pack("vv", $record, $length); - $rotation = 0x00; + //$rotation = 0x00; + //oesi fix rotation mit utf8 + switch($this->_rotation) + { + case 0: $rotation = 0; break; + case 1: $rotation = 255; break; + case 2: $rotation = 90; break; + case 3: $rotation = 180; break; + default: $rotation = 0; break; + } $biff8_options = 0x00; $data = pack("vvvC", $ifnt, $ifmt, $style, $align); $data .= pack("CCC", $rotation, $biff8_options, $used_attrib); diff --git a/include/basis_db.class.php b/include/basis_db.class.php index 54fd93d3f..3c1d69303 100644 --- a/include/basis_db.class.php +++ b/include/basis_db.class.php @@ -17,6 +17,7 @@ abstract class db extends basis abstract function db_fetch_object($result=null, $i=null); abstract function db_num_rows($result=null); abstract function db_last_error(); + abstract function db_affected_rows($result=null); } diff --git a/include/pgsql.class.php b/include/pgsql.class.php index b007ba0b4..e6c9e7def 100644 --- a/include/pgsql.class.php +++ b/include/pgsql.class.php @@ -60,5 +60,13 @@ class basis_db extends db { return pg_last_error(); } + + function db_affected_rows($result=null) + { + if(is_null($result)) + return pg_affected_rows($this->db_result); + else + return pg_affected_rows($result); + } } ?> \ No newline at end of file diff --git a/include/studiengang.class.php b/include/studiengang.class.php index b80d1ff10..cec6090f9 100644 --- a/include/studiengang.class.php +++ b/include/studiengang.class.php @@ -50,6 +50,7 @@ class studiengang extends basis_db public $zusatzinfo_html; public $sprache; public $testtool_sprachwahl; + public $studienplaetze; public $kuerzel; // = typ + kurzbz (Bsp: BBE) @@ -117,6 +118,7 @@ class studiengang extends basis_db $this->zusatzinfo_html = $row->zusatzinfo_html; $this->sprache = $row->sprache; $this->testtool_sprachwahl = ($row->testtool_sprachwahl=='t'?true:false); + $this->studienplaetze = $row->studienplaetze; $this->telefon=$row->telefon; $this->titelbescheidvom=$row->titelbescheidvom; @@ -180,6 +182,7 @@ class studiengang extends basis_db $stg_obj->zusatzinfo_html = $row->zusatzinfo_html; $stg_obj->sprache = $row->sprache; $stg_obj->testtool_sprachwahl = ($row->testtool_sprachwahl=='t'?true:false); + $stg_obj->studienplaetze = $row->studienplaetze; $stg_obj->telefon=$row->telefon; $stg_obj->titelbescheidvom=$row->titelbescheidvom;