function UpdatePeriod() { $this->MakeSafe(); $oldperiod = new EscalationTimes(); $oldperiod->EscalationTimeID = $this->EscalationTimeID; $oldperiod->GetEscalationTime(); $sql = "UPDATE fac_EscalationTimes SET TimePeriod=\"{$this->TimePeriod}\" WHERE \n\t\t\tEscalationTimeID={$this->EscalationTimeID};"; class_exists('LogActions') ? LogActions::LogThis($this, $oldperiod) : ''; return $this->query($sql); }
break; case "ESX": if ($dev->ESX) { $tooltip .= __($row["Label"]) . ": " . $dev->{$row}["Field"] . "<br>\n"; } break; case "EscalationID": $esc = new Escalations(); $esc->EscalationID = $dev->{$row}["Field"]; $esc->GetEscalation(); $tooltip .= __($row["Label"]) . ": {$esc->Details}<br>\n"; break; case "EscalationTimeID": $escTime = new EscalationTimes(); $escTime->EscalationTimeID = $dev->{$row}["Field"]; $escTime->GetEscalationTime(); $tooltip .= __($row["Label"]) . ": {$escTime->TimePeriod}<br>\n"; break; case "Owner": $dept = new Department(); $dept->DeptID = $dev->Owner; $dept->GetDeptByID(); $tooltip .= __($row["Label"]) . ": {$dept->Name}<br>\n"; break; case "TemplateID": $tmpl = new DeviceTemplate(); $tmpl->TemplateID = $dev->TemplateID; $tmpl->GetTemplateByID(); $man = new Manufacturer(); $man->ManufacturerID = $tmpl->ManufacturerID; $man->GetManufacturerByID();
$period->TimePeriod = $_POST['timeperiod']; $period->CreatePeriod(); 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]-->