$audit->GetLastAudit();
if ($audit->UserID != "") {
    $tmpUser = new People();
    $tmpUser->UserID = $audit->UserID;
    $tmpUser->GetUserRights();
    $AuditorName = $tmpUser->FirstName . " " . $tmpUser->LastName;
}
$pdu->CabinetID = $cab->CabinetID;
$PDUList = $pdu->GetPDUbyCabinet();
$dev->Cabinet = $cab->CabinetID;
$devList = $dev->ViewDevicesByCabinet();
$search = new Device();
$search->Cabinet = $cab->CabinetID;
$search->DeviceType = "Sensor";
$SensorList = $search->Search();
$stats = $cab->getStats($cab->CabinetID);
$totalWatts = $stats->Wattage;
$totalWeight = $stats->Weight;
$totalMoment = 0;
if ($config->ParameterArray["ReservedColor"] != "#FFFFFF" || $config->ParameterArray["FreeSpaceColor"] != "#FFFFFF") {
    $head .= "\t\t<style type=\"text/css\">\n\t\t\t.reserved {background-color: {$config->ParameterArray['ReservedColor']} !important;}\n\t\t\t.freespace {background-color: {$config->ParameterArray['FreeSpaceColor']};}\n";
    // Only show reserved in the legend if the color is something other than white
    if ($config->ParameterArray["ReservedColor"] != "#FFFFFF") {
        $legend .= "\t\t<div class=\"legenditem hide\"><span class=\"reserved colorbox border\"></span> - " . __("Reservation") . "</div>\n";
    }
    if ($config->ParameterArray["FreeSpaceColor"] != "#FFFFFF") {
        $legend .= '<div class="legenditem"><span class="freespace colorbox border"></span> - ' . __("Free Space") . '</div>' . "\n";
    }
}
$noOwnerFlag = false;
$noTemplFlag = false;