Exemplo n.º 1
0
    ?>
</div>
<br>
<?php 
}
?>

<?php 
# check that rack support isenabled
if ($User->settings->enableRACK != "1") {
    $Result->show("danger", _("RACK management disabled."), false);
} else {
    # init racks object
    $Racks = new phpipam_rack($Database);
    # fetch all racks
    $Racks->fetch_all_racks();
    // table
    print "<table class='table sorted table-striped table-top table-td-top'>";
    // headers
    print "<thead>";
    print "<tr>";
    print " <th style='width:80px'></th>";
    print " <th>" . _('Name') . "</th>";
    print " <th>" . _('Size') . "</th>";
    print " <th>" . _('Description') . "</th>";
    print " <th>" . _('Devices') . "</th>";
    if (sizeof($custom) > 0) {
        foreach ($custom as $field) {
            if (!in_array($field['name'], $hidden_custom_fields)) {
                print "<th class='hidden-xs hidden-sm hidden-md'>{$field['name']}</th>";
            }