mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
Second commit
This commit is contained in:
@@ -62,7 +62,7 @@ $datum_obj = new datum();
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/sizzle-0.9.3.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript">
|
||||
function alleMarkieren(checked)
|
||||
{
|
||||
|
||||
+43
-43
@@ -38,7 +38,7 @@ $user = get_uid();
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
$datum_obj = new datum();
|
||||
$bestellung = new wawi_bestellung();
|
||||
$bestellung = new wawi_bestellung();
|
||||
|
||||
// Kostenstellen auf Grund der Rechte holen
|
||||
$kst_array = $rechte->getKostenstelle('wawi/bestellung');
|
||||
@@ -58,14 +58,14 @@ if(count($kst_array)==0)
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/wawi.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css">
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/sizzle-0.9.3.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.metadata.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery-archive/jquery-metadata/jquery.metadata.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
function alleMarkieren(checked)
|
||||
@@ -76,33 +76,33 @@ if(count($kst_array)==0)
|
||||
</head>
|
||||
<body>
|
||||
<h1>Bericht - Konto</h1>
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if(isset($_POST['show']))
|
||||
{
|
||||
if(!isset($_POST['kst']))
|
||||
die('Sie müssen mindestens eine Kostenstelle auswählen!<br> <a href="#Zurueck" onclick="javascript:history.back()">Zurück</a>');
|
||||
|
||||
|
||||
$db = new basis_db();
|
||||
|
||||
|
||||
//Vom Studiensemester
|
||||
$geschaeftsjahr = $_POST['geschaeftsjahr'];
|
||||
$gj= new geschaeftsjahr();
|
||||
$gj->load($geschaeftsjahr);
|
||||
|
||||
|
||||
$kst_konto=array();
|
||||
$konto_array=array();
|
||||
$kstIN=$db->implode4SQL($_POST['kst']);
|
||||
//Tabelle auf Basis der Bestellungen
|
||||
$qry = "SELECT
|
||||
$qry = "SELECT
|
||||
tbl_bestellung.bestellung_id, sum (menge*preisprove*(100+COALESCE(mwst,0))/100) as brutto,
|
||||
tbl_bestellung.kostenstelle_id, tbl_konto.beschreibung[1], tbl_konto.konto_id
|
||||
FROM
|
||||
wawi.tbl_bestellung
|
||||
FROM
|
||||
wawi.tbl_bestellung
|
||||
JOIN wawi.tbl_bestelldetail USING(bestellung_id)
|
||||
JOIN wawi.tbl_konto USING (konto_id)
|
||||
WHERE
|
||||
tbl_bestellung.insertamum>='$gj->start' AND tbl_bestellung.insertamum<='$gj->ende'
|
||||
tbl_bestellung.insertamum>='$gj->start' AND tbl_bestellung.insertamum<='$gj->ende'
|
||||
AND kostenstelle_id IN($kstIN)
|
||||
group by tbl_bestellung.bestellung_id, tbl_bestellung.kostenstelle_id, tbl_konto.beschreibung, tbl_konto.konto_id
|
||||
order by beschreibung
|
||||
@@ -114,7 +114,7 @@ if(isset($_POST['show']))
|
||||
{
|
||||
if(!isset($konto_array[$row->konto_id]))
|
||||
$konto_array[$row->konto_id]=0;
|
||||
|
||||
|
||||
if(isset($kst_konto[$row->kostenstelle_id]) && isset($kst_konto[$row->kostenstelle_id][$row->konto_id]))
|
||||
{
|
||||
$kst_konto[$row->kostenstelle_id][$row->konto_id]+=$row->brutto;
|
||||
@@ -132,20 +132,20 @@ if(isset($_POST['show']))
|
||||
echo '<H2>Bestellungen</H2>';
|
||||
|
||||
draw_konto_table($konto_array, $kst_konto,'bestellung', $gj);
|
||||
|
||||
|
||||
//Tabelle auf Basis der Rechnungen
|
||||
$kst_konto=array();
|
||||
$konto_array=array();
|
||||
$qry = "SELECT
|
||||
$qry = "SELECT
|
||||
(betrag*(100+COALESCE(mwst,0))/100) as brutto, tbl_bestellung.bestellung_id, tbl_bestellung.konto_id,
|
||||
tbl_bestellung.kostenstelle_id, tbl_konto.beschreibung[1]
|
||||
FROM
|
||||
wawi.tbl_bestellung
|
||||
FROM
|
||||
wawi.tbl_bestellung
|
||||
JOIN wawi.tbl_konto USING(konto_id)
|
||||
JOIN wawi.tbl_rechnung USING(bestellung_id)
|
||||
JOIN wawi.tbl_rechnungsbetrag USING(rechnung_id)
|
||||
WHERE
|
||||
tbl_bestellung.insertamum::date>='$gj->start' AND tbl_bestellung.insertamum::date<='$gj->ende'
|
||||
tbl_bestellung.insertamum::date>='$gj->start' AND tbl_bestellung.insertamum::date<='$gj->ende'
|
||||
AND kostenstelle_id IN ($kstIN)
|
||||
order by beschreibung
|
||||
";
|
||||
@@ -157,34 +157,34 @@ if(isset($_POST['show']))
|
||||
//Bestelldetailtags laden
|
||||
if(!isset($konto_array[$row->konto_id]))
|
||||
$konto_array[$row->konto_id]=0;
|
||||
|
||||
|
||||
if(isset($kst_konto[$row->kostenstelle_id]) && isset($kst_konto[$row->kostenstelle_id][$row->konto_id]))
|
||||
{
|
||||
$kst_konto[$row->kostenstelle_id][$row->konto_id]+=$row->brutto;
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$kst_konto[$row->kostenstelle_id][$row->konto_id]=$row->brutto;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
die('Fehler bei Datenbankzugriff');
|
||||
|
||||
|
||||
echo '<H2>Rechnungen</H2>';
|
||||
|
||||
draw_konto_table($konto_array, $kst_konto,'rechnung', $gj);
|
||||
}else {
|
||||
|
||||
$kostenstelle = new wawi_kostenstelle();
|
||||
|
||||
|
||||
$kostenstelle->loadArray($kst_array, 'bezeichnung',false);
|
||||
echo 'Bitte markieren sie die Kostenstellen die auf der Auswertung aufscheinen sollen:<br /><br />
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="POST">
|
||||
<table>
|
||||
|
||||
|
||||
<tbody>';
|
||||
$anzahl=0;
|
||||
$gesamt = count($kst_array);
|
||||
@@ -207,7 +207,7 @@ if(isset($_POST['show']))
|
||||
$anzahl++;
|
||||
}
|
||||
echo '</table></td></tr>';
|
||||
|
||||
|
||||
echo '</tbody>
|
||||
</table>
|
||||
<br />
|
||||
@@ -222,16 +222,16 @@ if(isset($_POST['show']))
|
||||
<SELECT name="geschaeftsjahr" >';
|
||||
$gj = new geschaeftsjahr();
|
||||
$geschaeftsjahr = $gj->getakt();
|
||||
|
||||
|
||||
$gj->getAll();
|
||||
|
||||
foreach ($gj->result as $gjahr)
|
||||
{
|
||||
if($gjahr->geschaeftsjahr_kurzbz==$geschaeftsjahr)
|
||||
$selected='selected';
|
||||
else
|
||||
else
|
||||
$selected='';
|
||||
echo '<option value="'.$gjahr->geschaeftsjahr_kurzbz.'" '.$selected.'>'.$gjahr->geschaeftsjahr_kurzbz.'</option>';
|
||||
echo '<option value="'.$gjahr->geschaeftsjahr_kurzbz.'" '.$selected.'>'.$gjahr->geschaeftsjahr_kurzbz.'</option>';
|
||||
}
|
||||
echo '
|
||||
</SELECT>
|
||||
@@ -246,7 +246,7 @@ if(isset($_POST['show']))
|
||||
</html>
|
||||
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Zeichnet eine Tabelle mit Kostenstellen und Konten
|
||||
@@ -255,14 +255,14 @@ if(isset($_POST['show']))
|
||||
*/
|
||||
function draw_konto_table($konto_array, $kst_konto, $table_id, $gj)
|
||||
{
|
||||
ksort($kst_konto);
|
||||
ksort($kst_konto);
|
||||
|
||||
$vondatum = $gj->start;
|
||||
$endedatum = $gj->ende;
|
||||
|
||||
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#'.$table_id.'").tablesorter(
|
||||
{
|
||||
@@ -276,9 +276,9 @@ function draw_konto_table($konto_array, $kst_konto, $table_id, $gj)
|
||||
<tr>
|
||||
<th>Kostenstelle</th>';
|
||||
foreach(array_keys($konto_array) as $konten)
|
||||
{
|
||||
$konto = new wawi_konto();
|
||||
$konto->load($konten);
|
||||
{
|
||||
$konto = new wawi_konto();
|
||||
$konto->load($konten);
|
||||
echo '<th>',$konto->kurzbz,'</th>';
|
||||
}
|
||||
echo '
|
||||
@@ -287,11 +287,11 @@ function draw_konto_table($konto_array, $kst_konto, $table_id, $gj)
|
||||
</thead>
|
||||
<tbody>';
|
||||
|
||||
|
||||
|
||||
foreach($kst_konto as $kst=>$konten_value)
|
||||
{
|
||||
$kst_summe=0;
|
||||
|
||||
|
||||
$kostenstelle = new wawi_kostenstelle();
|
||||
$kostenstelle->load($kst);
|
||||
echo '<tr>';
|
||||
@@ -300,7 +300,7 @@ function draw_konto_table($konto_array, $kst_konto, $table_id, $gj)
|
||||
else
|
||||
$class='class="inaktiv"';
|
||||
echo '<td '.$class.'>'.$kostenstelle->bezeichnung.'</td>';
|
||||
|
||||
|
||||
foreach(array_keys($konto_array) as $konten)
|
||||
{
|
||||
if(isset($konten_value[$konten]))
|
||||
@@ -317,9 +317,9 @@ function draw_konto_table($konto_array, $kst_konto, $table_id, $gj)
|
||||
|
||||
//Kontensumme berechnen
|
||||
settype($konto_array[$konten],'float');
|
||||
settype($konten_value[$konten], 'float');
|
||||
settype($konten_value[$konten], 'float');
|
||||
$konto_array[$konten] +=$konten_value[$konten];
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
echo '<td> </td>';
|
||||
@@ -332,10 +332,10 @@ function draw_konto_table($konto_array, $kst_konto, $table_id, $gj)
|
||||
<tr>
|
||||
<th>Summe</th>';
|
||||
settype($gesamt_summe, 'float');
|
||||
$gesamt_summe = 0;
|
||||
$gesamt_summe = 0;
|
||||
foreach($konto_array as $konten=>$summe)
|
||||
{
|
||||
settype($summe, 'float');
|
||||
settype($summe, 'float');
|
||||
$gesamt_summe+=$summe;
|
||||
echo '<th class="number">',number_format($summe,2,',','.'),'</th>';
|
||||
}
|
||||
@@ -345,4 +345,4 @@ function draw_konto_table($konto_array, $kst_konto, $table_id, $gj)
|
||||
</table>';
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -66,7 +66,7 @@ $datum_obj = new datum();
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/sizzle-0.9.3.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript">
|
||||
function alleMarkieren(checked)
|
||||
{
|
||||
|
||||
@@ -56,14 +56,14 @@ if(count($kst_array)==0)
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/wawi.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css">
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/sizzle-0.9.3.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.metadata.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery-archive/jquery-metadata/jquery.metadata.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
function alleMarkieren(checked)
|
||||
@@ -79,35 +79,35 @@ if(isset($_POST['show']))
|
||||
{
|
||||
if(!isset($_POST['kst']))
|
||||
die('Sie müssen mindestens eine Kostenstelle auswählen!<br> <a href="#Zurueck" onclick="javascript:history.back()">Zurück</a>');
|
||||
|
||||
|
||||
$db = new basis_db();
|
||||
|
||||
|
||||
//Vom Studiensemester
|
||||
$geschaeftsjahr = $_POST['geschaeftsjahr'];
|
||||
$gj= new geschaeftsjahr();
|
||||
$gj->load($geschaeftsjahr);
|
||||
|
||||
|
||||
$kst_tags=array();
|
||||
$tags_array=array();
|
||||
$kstIN=$db->implode4SQL($_POST['kst']);
|
||||
//Tabelle auf Basis der Bestellungen
|
||||
$qry = "SELECT
|
||||
(menge*preisprove*(100+mwst)/100) as brutto, tbl_bestellung.bestellung_id,
|
||||
$qry = "SELECT
|
||||
(menge*preisprove*(100+mwst)/100) as brutto, tbl_bestellung.bestellung_id,
|
||||
tbl_bestellung.kostenstelle_id, tbl_bestelldetail.bestelldetail_id
|
||||
FROM
|
||||
wawi.tbl_bestellung
|
||||
FROM
|
||||
wawi.tbl_bestellung
|
||||
JOIN wawi.tbl_bestelldetail USING(bestellung_id)
|
||||
WHERE
|
||||
tbl_bestellung.insertamum::date>='$gj->start' AND tbl_bestellung.insertamum::date<='$gj->ende'
|
||||
tbl_bestellung.insertamum::date>='$gj->start' AND tbl_bestellung.insertamum::date<='$gj->ende'
|
||||
AND
|
||||
(
|
||||
bestellung_id in (SELECT bestellung_id FROM wawi.tbl_bestellungtag WHERE bestellung_id=tbl_bestellung.bestellung_id)
|
||||
OR
|
||||
bestelldetail_id in (SELECT bestelldetail_id FROM wawi.tbl_bestelldetailtag WHERE bestelldetail_id=tbl_bestelldetail.bestelldetail_id)
|
||||
)
|
||||
)
|
||||
AND kostenstelle_id IN($kstIN)
|
||||
";
|
||||
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
while($row = $db->db_fetch_object($result))
|
||||
@@ -115,13 +115,13 @@ if(isset($_POST['show']))
|
||||
//Bestelldetailtags laden
|
||||
$tags = new tags();
|
||||
$tags->GetTagsByBestelldetail($row->bestelldetail_id);
|
||||
|
||||
|
||||
if(count($tags->result)==0)
|
||||
{
|
||||
//Wenn kein Detailtag vorhanden ist, die Tags der Bestellung verwenden
|
||||
$tags->GetTagsByBestellung($row->bestellung_id);
|
||||
}
|
||||
|
||||
|
||||
foreach($tags->result as $tag)
|
||||
{
|
||||
if(!isset($tags_array[$tag->tag]))
|
||||
@@ -130,34 +130,34 @@ if(isset($_POST['show']))
|
||||
$kst_tags[$row->kostenstelle_id][$tag->tag]+=$row->brutto;
|
||||
else
|
||||
$kst_tags[$row->kostenstelle_id][$tag->tag]=$row->brutto;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
die('Fehler bei Datenbankzugriff');
|
||||
|
||||
|
||||
echo '<span style="font-size: small">Zeitraum: ',$datum_obj->formatDatum($gj->start,'d.m.Y'),' - ',$datum_obj->formatDatum($gj->ende,'d.m.Y').'</span>';
|
||||
echo '<H2>Bestellungen</H2>';
|
||||
|
||||
|
||||
draw_tag_table($tags_array, $kst_tags,'bestellung', $gj);
|
||||
|
||||
|
||||
//Tabelle auf Basis der Rechnungen
|
||||
$kst_tags=array();
|
||||
$tags_array=array();
|
||||
$qry = "SELECT
|
||||
(betrag*(100+mwst)/100) as brutto, tbl_bestellung.bestellung_id,
|
||||
$qry = "SELECT
|
||||
(betrag*(100+mwst)/100) as brutto, tbl_bestellung.bestellung_id,
|
||||
tbl_bestellung.kostenstelle_id
|
||||
FROM
|
||||
wawi.tbl_bestellung
|
||||
FROM
|
||||
wawi.tbl_bestellung
|
||||
JOIN wawi.tbl_rechnung USING(bestellung_id)
|
||||
JOIN wawi.tbl_rechnungsbetrag USING(rechnung_id)
|
||||
WHERE
|
||||
tbl_bestellung.insertamum::date>='$gj->start' AND tbl_bestellung.insertamum::date<='$gj->ende'
|
||||
tbl_bestellung.insertamum::date>='$gj->start' AND tbl_bestellung.insertamum::date<='$gj->ende'
|
||||
AND bestellung_id in (SELECT bestellung_id FROM wawi.tbl_bestellungtag WHERE bestellung_id=tbl_bestellung.bestellung_id)
|
||||
AND kostenstelle_id IN ($kstIN)
|
||||
";
|
||||
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
while($row = $db->db_fetch_object($result))
|
||||
@@ -165,7 +165,7 @@ if(isset($_POST['show']))
|
||||
//Bestelldetailtags laden
|
||||
$tags = new tags();
|
||||
$tags->GetTagsByBestellung($row->bestellung_id);
|
||||
|
||||
|
||||
foreach($tags->result as $tag)
|
||||
{
|
||||
if(!isset($tags_array[$tag->tag]))
|
||||
@@ -174,25 +174,25 @@ if(isset($_POST['show']))
|
||||
$kst_tags[$row->kostenstelle_id][$tag->tag]+=$row->brutto;
|
||||
else
|
||||
$kst_tags[$row->kostenstelle_id][$tag->tag]=$row->brutto;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
die('Fehler bei Datenbankzugriff');
|
||||
|
||||
|
||||
echo '<H2>Rechnungen</H2>';
|
||||
draw_tag_table($tags_array, $kst_tags,'rechnung', $gj);
|
||||
}
|
||||
else
|
||||
{
|
||||
$kostenstelle = new wawi_kostenstelle();
|
||||
|
||||
|
||||
$kostenstelle->loadArray($kst_array, 'bezeichnung',false);
|
||||
echo 'Bitte markieren sie die Kostenstellen die auf der Auswertung aufscheinen sollen:<br /><br />
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="POST">
|
||||
<table>
|
||||
|
||||
|
||||
<tbody>';
|
||||
$anzahl=0;
|
||||
$gesamt = count($kst_array);
|
||||
@@ -215,7 +215,7 @@ else
|
||||
$anzahl++;
|
||||
}
|
||||
echo '</table></td></tr>';
|
||||
|
||||
|
||||
echo '</tbody>
|
||||
</table>
|
||||
<br />
|
||||
@@ -230,16 +230,16 @@ else
|
||||
<SELECT name="geschaeftsjahr" >';
|
||||
$gj = new geschaeftsjahr();
|
||||
$geschaeftsjahr = $gj->getakt();
|
||||
|
||||
|
||||
$gj->getAll();
|
||||
|
||||
foreach ($gj->result as $gjahr)
|
||||
{
|
||||
if($gjahr->geschaeftsjahr_kurzbz==$geschaeftsjahr)
|
||||
$selected='selected';
|
||||
else
|
||||
else
|
||||
$selected='';
|
||||
echo '<option value="'.$gjahr->geschaeftsjahr_kurzbz.'" '.$selected.'>'.$gjahr->geschaeftsjahr_kurzbz.'</option>';
|
||||
echo '<option value="'.$gjahr->geschaeftsjahr_kurzbz.'" '.$selected.'>'.$gjahr->geschaeftsjahr_kurzbz.'</option>';
|
||||
}
|
||||
echo '
|
||||
</SELECT>
|
||||
@@ -263,10 +263,10 @@ function draw_tag_table($tags_array, $kst_tags, $table_id, $gj)
|
||||
ksort($tags_array);
|
||||
$vondatum = $gj->start;
|
||||
$endedatum = $gj->ende;
|
||||
|
||||
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#'.$table_id.'").tablesorter(
|
||||
{
|
||||
@@ -280,7 +280,7 @@ function draw_tag_table($tags_array, $kst_tags, $table_id, $gj)
|
||||
<tr>
|
||||
<th>Kostenstelle</th>';
|
||||
foreach(array_keys($tags_array) as $tags)
|
||||
{
|
||||
{
|
||||
echo '<th>',$tags,'</th>';
|
||||
}
|
||||
echo '
|
||||
@@ -289,11 +289,11 @@ function draw_tag_table($tags_array, $kst_tags, $table_id, $gj)
|
||||
</thead>
|
||||
<tbody>';
|
||||
|
||||
|
||||
|
||||
foreach($kst_tags as $kst=>$tags_value)
|
||||
{
|
||||
$kst_summe=0;
|
||||
|
||||
|
||||
$kostenstelle = new wawi_kostenstelle();
|
||||
$kostenstelle->load($kst);
|
||||
echo '<tr>';
|
||||
@@ -302,7 +302,7 @@ function draw_tag_table($tags_array, $kst_tags, $table_id, $gj)
|
||||
else
|
||||
$class='class="inaktiv"';
|
||||
echo '<td '.$class.'>'.$kostenstelle->bezeichnung.'</td>';
|
||||
|
||||
|
||||
foreach(array_keys($tags_array) as $tags)
|
||||
{
|
||||
if(isset($tags_value[$tags]))
|
||||
@@ -316,7 +316,7 @@ function draw_tag_table($tags_array, $kst_tags, $table_id, $gj)
|
||||
echo '</td>';
|
||||
//Kostenstellensumme berechnen
|
||||
$kst_summe += $tags_value[$tags];
|
||||
|
||||
|
||||
//Tagsumme berechnen
|
||||
$tags_array[$tags]+=$tags_value[$tags];
|
||||
}
|
||||
@@ -341,4 +341,4 @@ function draw_tag_table($tags_array, $kst_tags, $table_id, $gj)
|
||||
</tfoot>
|
||||
</table>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user