Пример #1
0
					}); 
			});
</script>
<body>
<H2>Funktionen</H2>
<h3>&Uuml;bersicht</h3>
<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 {
Пример #2
0
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK rel="stylesheet" href="../../../skin/vilesci.css" type="text/css">
</head>
<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]}&nbsp;</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 {