->addTimeSelector($timeline['from'], $timeline['to'], $page['web_layout_mode'] != ZBX_LAYOUT_KIOSKMODE)
require_once dirname(__FILE__).'/include/config.inc.php';
require_once dirname(__FILE__).'/include/hosts.inc.php';
require_once dirname(__FILE__).'/include/httptest.inc.php';
require_once dirname(__FILE__).'/include/forms.inc.php';
$page['title'] = _('Details of web scenario');
$page['file'] = 'httpdetails.php';
$page['scripts'] = ['class.calendar.js', 'gtlc.js', 'flickerfreescreen.js', 'layout.mode.js'];
$page['type'] = detect_page_type(PAGE_TYPE_HTML);
$page['web_layout_mode'] = CViewHelper::loadLayoutMode();
require_once dirname(__FILE__).'/include/page_header.php';
'from' => [T_ZBX_RANGE_TIME, O_OPT, P_SYS, null, null],
'to' => [T_ZBX_RANGE_TIME, O_OPT, P_SYS, null, null],
'reset' => [T_ZBX_STR, O_OPT, P_SYS|P_ACT, null, null],
'httptestid' => [T_ZBX_INT, O_MAND, P_SYS, DB_ID, null]
validateTimeSelectorPeriod(getRequest('from'), getRequest('to'));
if ($page['type'] == PAGE_TYPE_JS || $page['type'] == PAGE_TYPE_HTML_BLOCK) {
require_once dirname(__FILE__).'/include/page_footer.php';
$httptest = API::HttpTest()->get([
'output' => ['httptestid', 'name', 'hostid'],
'httptestids' => getRequest('httptestid'),
$httptest = reset($httptest);
$timeselector_options = [
'profileIdx' => 'web.httpdetails.filter',
'profileIdx2' => $httptest['httptestid'],
'from' => getRequest('from'),