if (isset($_REQUEST['escalationtimeid'])) { $period->EscalationTimeID = $_REQUEST['escalationtimeid']; if (isset($_POST['action'])) { if ($_POST['timeperiod'] != null && $_POST['timeperiod'] != '') { switch ($_POST['action']) { case 'Create': $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">