fhiiqm/inc/prozess_dat_show.inc.php
changeset 34 fc60ef80a7ad
parent 25 482252ff12fd
child 36 4411d3239444
equal deleted inserted replaced
33:f1a8785434e4 34:fc60ef80a7ad
    46             echo "<tr><td>Enddatum: </td><td>$sdat</td></tr>\n";
    46             echo "<tr><td>Enddatum: </td><td>$sdat</td></tr>\n";
    47             echo "<tr><td>Kosten: </td><td>".number_format($pz["kost"],2,",",".")." &euro;</td></tr>\n";
    47             echo "<tr><td>Kosten: </td><td>".number_format($pz["kost"],2,",",".")." &euro;</td></tr>\n";
    48             // Arbeitsschritte
    48             // Arbeitsschritte
    49             if (is_array($pz["step"]))
    49             if (is_array($pz["step"]))
    50             {
    50             {
       
    51                 $arrstat = $dbc -> queryObjectArray("SELECT proz_stat_ID,proz_stat_bez FROM Proz_Status");
       
    52                 foreach ($arrstat as $row)
       
    53                     $as[$row->proz_stat_ID] = $row->proz_stat_bez;
    51                 echo "<tr><td>Arbeitsschritte: </td>";
    54                 echo "<tr><td>Arbeitsschritte: </td>";
       
    55                 $i=0;
    52                 foreach ($pz["step"] as $step)
    56                 foreach ($pz["step"] as $step)
    53                 { 
    57                 { 
    54                     if ($next) $next ="<tr><td>&nbsp;</td>"; else $next =" ";
    58                     if ($next) $next ="<tr><td>&nbsp;</td>"; else $next =" ";
    55                     if ($step) echo "$next<td>$step</td></tr>\n";
    59                     if ($step) echo "$next<td>$step;&nbsp;<i>".$as[$pz["ststat"][$i]]."</i>;&nbsp;" .$pz["stbem"][$i]."</td></tr>\n";
       
    60                     $i++;
    56                 }
    61                 }
    57             }
    62             }
    58             // Dringlichkeit
    63             // Dringlichkeit
    59             if ($pz["urg"])
    64             if ($pz["urg"])
    60             {
    65             {