} $options = array('groups' => array('monitored_hosts' => 1, 'with_graphs' => 1), 'hosts' => array('monitored_hosts' => 1, 'with_graphs' => 1), 'groupid' => get_request('groupid', null), 'hostid' => get_request('hostid', null), 'graphs' => array('templated' => 0), 'graphid' => get_request('graphid', null)); $pageFilter = new CPageFilter($options); $_REQUEST['graphid'] = $pageFilter->graphid; // resets get params for proper page refresh if (isset($_REQUEST['period']) || isset($_REQUEST['stime'])) { navigation_bar_calc('web.graph', $_REQUEST['graphid'], true); resetGetParams(array('period', 'stime')); } //-- $effectiveperiod = navigation_bar_calc('web.graph', $_REQUEST['graphid']); $r_form = new CForm(null, 'get'); $r_form->addVar('fullscreen', $_REQUEST['fullscreen']); $r_form->addItem(array(S_GROUP . SPACE, $pageFilter->getGroupsCB(true))); $r_form->addItem(array(SPACE . S_HOST . SPACE, $pageFilter->getHostsCB(true))); $r_form->addItem(array(SPACE . S_GRAPH . SPACE, $pageFilter->getGraphsCB(true))); $icons = array(); $charts_wdgt = new CWidget('hat_charts'); $table = new CTableInfo('...', 'chart'); $header = null; if ($pageFilter->graphsSelected) { $header = $pageFilter->graphs[$pageFilter->graphid]; $scroll_div = new CDiv(); $scroll_div->setAttribute('id', 'scrollbar_cntr'); $charts_wdgt->addFlicker($scroll_div, CProfile::get('web.charts.filter.state', 1)); $graphDims = getGraphDims($_REQUEST['graphid']); if ($graphDims['graphtype'] == GRAPH_TYPE_PIE || $graphDims['graphtype'] == GRAPH_TYPE_EXPLODED) { $loadSBox = 0; $scrollWidthByImage = 0; $containerid = 'graph_cont1'; $src = 'chart6.php?graphid=' . $_REQUEST['graphid'];