Example #1
0
      <table class="table">
        <thead>
          <tr>
            <th>Sanitäter</th>
            <th>Montag</th>
            <th>Dienstag</th>
            <th>Mittwoch</th>
            <th>Donnerstag</th>
            <th>Freitag</th>
          </tr>
        </thead>
        <tbody>
        <?php 
$db = new Database();
$con = $db->connectUser();
$duty_result = $db->select_dienst($con, $akw);
while ($row = $duty_result->fetch_assoc()) {
    echo "<tr>";
    echo "<td>" . $row['vorname'] . " " . $row['name'] . "</td>";
    if ($row['dmon'] == 1 and $row['amon'] == 1) {
        echo "<td><span class='glyphicon glyphicon-ok' aria-hidden='true'></span></td>";
    } else {
        echo "<td></td>";
    }
    if ($row['ddie'] == 1 and $row['adie'] == 1) {
        echo "<td><span class='glyphicon glyphicon-ok' aria-hidden='true'></span></td>";
    } else {
        echo "<td></td>";
    }
    if ($row['dmit'] == 1 and $row['amit'] == 1) {
        echo "<td><span class='glyphicon glyphicon-ok' aria-hidden='true'></span></td>";