} if ($config->ParameterArray["mDate"] == "now") { if ($dev->MfgDate <= "1970-01-01") { $dev->MfgDate = date("Y-m-d"); } } if ($config->ParameterArray["wDate"] == "now") { if ($dev->WarrantyExpire <= "1970-01-01") { $dev->WarrantyExpire = date("Y-m-d"); } } $portList = DevicePorts::getPortList($dev->DeviceID); $mediaTypes = MediaTypes::GetMediaTypeList(); $colorCodes = ColorCoding::GetCodeList(); $templateList = $templ->GetTemplateList(); $escTimeList = $escTime->GetEscalationTimeList(); $escList = $esc->GetEscalationList(); $deptList = $Dept->GetDepartmentList(); $templ->TemplateID = $dev->TemplateID; $templ->GetTemplateByID(); $title = $dev->Label != '' ? "{$dev->Label} :: {$dev->DeviceID}" : __("openDCIM Device Maintenance"); function buildESXtable($DeviceID) { $ESX = new ESX(); $ESX->DeviceID = $DeviceID; $vmList = $ESX->GetDeviceInventory(); print "\n<div class=\"table border\"><div><div>" . __("VM Name") . "</div><div>" . __("Status") . "</div><div>" . __("Owner") . "</div><div>" . __("Last Updated") . "</div></div>\n"; foreach ($vmList as $vmRow) { $onOff = preg_match('/off/i', $vmRow->vmState) ? 'off' : 'on'; $Dept = new Department(); $Dept->DeptID = $vmRow->Owner;
break; case 'Update': $period->TimePeriod = $_POST['timeperiod']; $status = __("Updated"); $period->UpdatePeriod(); break; case 'Delete': $period->DeletePeriod(); header('Location: ' . redirect("timeperiods.php")); exit; } } } $period->GetEscalationTime(); } $periodList = $period->GetEscalationTimeList(); ?> <!doctype html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>openDCIM Data Center Inventory</title> <link rel="stylesheet" href="css/inventory.php" type="text/css"> <link rel="stylesheet" href="css/jquery-ui.css" type="text/css"> <!--[if lt IE 9]> <link rel="stylesheet" href="css/ie.css" type="text/css"> <![endif]--> <script type="text/javascript" src="scripts/jquery.min.js"></script> <script type="text/javascript" src="scripts/jquery-ui.min.js"></script>