diff --git a/cis/private/lehre/pinboard.php b/cis/private/lehre/pinboard.php index 9407e53e4..502fae95b 100644 --- a/cis/private/lehre/pinboard.php +++ b/cis/private/lehre/pinboard.php @@ -69,6 +69,7 @@ $stg_obj = new studiengang($sql_conn, $_GET['course_id']); $short = $stg_obj->kuerzel; $short_long = $stg_obj->kurzbzlang; + $stg_bezeichnung = $stg_obj->bezeichnung; $course_id = $_GET['course_id']; $term_id = $_GET['term_id']; } @@ -257,12 +258,12 @@ function show(id) { echo ' Pinboard '; - if(isset($short)) - echo $short; + if(isset($stg_bezeichnung)) + echo ' - '.$stg_bezeichnung; echo ''; - if(!isset($short)) + if(!isset($stg_bezeichnung)) exit; echo ' diff --git a/cis/private/profile/zahlungen.php b/cis/private/profile/zahlungen.php index 8c4afeb12..486a8d1a2 100644 --- a/cis/private/profile/zahlungen.php +++ b/cis/private/profile/zahlungen.php @@ -95,8 +95,10 @@ } } - if($betrag!=0) + if($betrag<0) $style='style="background-color: #FF8888;"'; + elseif($betrag>0) + $style='style="background-color: #88DD88;"'; else { $style='class="liste'.($i%2).'"'; @@ -109,11 +111,15 @@ echo ''.$row['parent']->studiensemester_kurzbz.''; echo ''.$row['parent']->buchungstext.''; - echo ''.abs($row['parent']->betrag).' €'; + echo ''.sprintf('%.2f',abs($row['parent']->betrag)).' €'; echo ''; - if($betrag==0) - echo 'Bestaetigung drucken'; - else + if($betrag==0 && $row['parent']->betrag<0) + echo 'Bestaetigung drucken'; + elseif($row['parent']->betrag>0) + { + //Auszahlung + } + else echo 'offen'; echo ''; echo '';