This commit is contained in:
Andreas Österreicher
2008-01-23 16:33:52 +00:00
parent 23171837ba
commit a655f4839d
2 changed files with 15 additions and 8 deletions
+4 -3
View File
@@ -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 '<td class="ContentHeader" width="70%"><font class="ContentHeader">&nbsp;Pinboard ';
if(isset($short))
echo $short;
if(isset($stg_bezeichnung))
echo ' - '.$stg_bezeichnung;
echo '</font></td>';
if(!isset($short))
if(!isset($stg_bezeichnung))
exit;
echo '
+11 -5
View File
@@ -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 '<td>'.$row['parent']->studiensemester_kurzbz.'</td>';
echo '<td>'.$row['parent']->buchungstext.'</td>';
echo '<td align="right">'.abs($row['parent']->betrag).' &euro;</td>';
echo '<td align="right">'.sprintf('%.2f',abs($row['parent']->betrag)).' &euro;</td>';
echo '<td align="center">';
if($betrag==0)
echo '<a href="../pdfExport.php?xml=konto.rdf.php&xsl=Zahlung&uid='.$uid.'&buchungsnummern='.$row['parent']->buchungsnr.'&zahlung=true" title="Bestaetigung drucken"><img src="../../../skin/images/pdfpic.gif" alt="Bestaetigung drucken"></a>';
else
if($betrag==0 && $row['parent']->betrag<0)
echo '<a href="../pdfExport.php?xml=konto.rdf.php&xsl=Zahlung&uid='.$uid.'&buchungsnummern='.$row['parent']->buchungsnr.'" title="Bestaetigung drucken"><img src="../../../skin/images/pdfpic.gif" alt="Bestaetigung drucken"></a>';
elseif($row['parent']->betrag>0)
{
//Auszahlung
}
else
echo 'offen';
echo '</td>';
echo '</tr>';