<th>vydat stravenek</th> <th>celková hodnota (<?php echo $hodnota_stravenky; ?> Kč/ks)</th> <th>příspěvek zaměstnance (45%)</th> <th>převzal</th> </tr> <?php $total_vydat = 0; $total_prispevek = 0; $employees = db_get_many("employees", "id", "active=1 AND stravenky=1", "name"); for ($i = 0; $i < count($employees); $i++) { $emp = $employees[$i]; $name = db_get("employees", "name", $emp); $cur_tots = month_totals($_GET["year"], $_GET["month"], $emp, false); $vydat = $cur_tots["stravenky"]; $hodnota = ceil($vydat * $hodnota_stravenky); $prispevek = ceil($vydat * $hodnota_stravenky * 0.45); $total_vydat += $vydat; $total_prispevek += $prispevek; echo "<tr>"; echo "<td>" . $name . "</td>"; echo "<td>" . $vydat . "</td>"; echo "<td>" . $hodnota . "</td>"; echo "<td>" . $prispevek . "</td>"; echo "<td><div class=\"signature\"></div></td>"; echo "</tr>"; } ?> </table>
//break; } $prev_tots["plusminus"] += $mt["plusminus"] - $mt["overtime"]; if ($y == $_GET["year"]) { $prev_tots["days_dovolena"] += $mt["days_dovolena"]; } $m++; if ($m > 12) { $y++; $m = 1; } } $cur_tots = month_totals($_GET["year"], $_GET["month"], $_GET["employee"], true); $dovolena_narok = db_get_condition("dovolene", "days", "employee=" . $_GET["employee"] . " AND year='" . $_GET["year"] . "'"); $dovolena_zminula = db_get_condition("dovolene", "days_lastyear", "employee=" . $_GET["employee"] . " AND year='" . $_GET["year"] . "'"); $cur_tots_noemployee = month_totals($_GET["year"], $_GET["month"], 0, false); ?> <table> <tr> <th>odpracováno tento měsíc</th> <td><?php echo secs_to_time($cur_tots["odpracovano"]); ?> </td> </tr> <tr> <th>uznané přesčasy</th> <td><?php echo secs_to_time($cur_tots["overtime"]); ?>