Exemplo n.º 1
0
        $hits_count = $hits;
    } else {
        $hits_count = '0';
    }
    $hits_trac = $cafe_trac->checkMac($rows['cafe_id'], $rows['mac_id']);
    //checking whether the cafe macs are working for three days or not
    if ($hits_trac == 1) {
        $img_url = '../images/ok.JPG';
    } else {
        $img_url = '../images/notok.JPG';
    }
    echo '<tr>';
    echo '<td>' . $rows['cafe_id'] . '</td>';
    echo '<td>' . $rows['mac_id'] . '</td>';
    echo '<td>' . $hits_count . '</td>';
    echo '<td>' . $cafe_activate->getMacInstTime($rows['mac_id']) . '</td>';
    echo '<td>';
    ?>
<img src="<?php 
    echo $img_url;
    ?>
" width="51" height="47" alt="Ok"></td>
  </tr>
  <?php 
}
?>
    </tbody>
</table>
</div>