Exemplo n.º 1
0
            break;
    }
}
?>
<html>
    <head>
        <title>
            Digital Signage Hardware Overview
        </title>
    </head>
    <body>
        <h1>Digital Signage Hardware Overview</h1>
        <h2>Current Hardware Classes</h2>
        <p>
<?php 
$classes = HardwareClass::load_all_from_db();
if (count($classes) > 0) {
    // print table header
    foreach ($classes as $class) {
        $id = $class->get_id();
        print "<p>";
        print $class->get_name();
        print " (id {$id}): ";
        print "<a href=\"class.php?class={$id}\">Edit</a>";
        # we can't delete the default configuration
        if ($id != 1) {
            print " | <a href=\"index.php?class={$id}&action=delete\">";
            print "Delete</a>";
        }
        print "</p>";
    }