<table id="t1" class="tablesorter"> <?php if ($result_funktion != 0) { $num_rows = $db->db_num_rows($result_funktion); $num_fields = $db->db_num_fields($result_funktion); echo '<thead> <tr>'; for ($i = 0; $i < $num_fields; $i++) { echo "<th class='table-sortable:default'>" . $db->db_field_name($result_funktion, $i) . "</th>"; } echo '<th></th>'; echo '<th></th>'; echo '</tr></thead><tbody>'; for ($j = 0; $j < $num_rows; $j++) { $row = $db->db_fetch_row($result_funktion, $j); echo "<tr>"; for ($i = 0; $i < $num_fields; $i++) { echo "<td>{$row[$i]}</td>"; } echo "<td><a href=\"funktion_det.php?kurzbz={$row['1']}\">Details</a></td>"; echo "<td><a href=\"../stammdaten/benutzerberechtigung_details.php?funktion_kurzbz={$row['1']}\">Berechtigungen</a></td>"; echo "</tr>\n"; } } else { echo "Kein Eintrag gefunden!"; } ?> </tbody> </table> </body>
<body> <H1>Mehrfachbelegungen in Reservierungen Detailansicht</H1> <table border="<?php echo $cfgBorder; ?> "> <tr> <?php if ($num_rows > 0) { $num_fields = $db->db_num_fields($result); $foo = 0; for ($i = 0; $i < $num_fields; $i++) { echo "<th>" . $db->db_field_name($result, $i) . "</th>"; } for ($j = 0; $j < $num_rows; $j++) { $row = $db->db_fetch_row($result, $j); $bgcolor = $cfgBgcolorOne; $foo % 2 ? 0 : ($bgcolor = $cfgBgcolorTwo); echo '<tr class="' . $bgcolor . '">'; for ($i = 0; $i < $num_fields; $i++) { echo "<td>{$row[$i]} </td>"; } echo "<td><a href=\"res_check_delete.php?id={$row['0']}\">Delete</a></td>"; echo "<td><a href=\"res_check_mail.php?id={$row['0']}\">Mail&Delete</a></td>"; echo "</tr>\n"; $foo++; } } else { echo "Kein Eintrag gefunden!"; } ?>