diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-17 15:04:53 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-17 15:04:53 +0000 |
commit | f66a127799e435c95c35b01750e358caf960db0e (patch) | |
tree | 79770846fcf1d35947df32c2d145bcbab8805e8a /frontends/php/httpdetails.php | |
parent | f1fcf4a2103bdc1beb9e348ea982ed7650527c8f (diff) | |
download | zabbix-f66a127799e435c95c35b01750e358caf960db0e.tar.gz zabbix-f66a127799e435c95c35b01750e358caf960db0e.tar.xz zabbix-f66a127799e435c95c35b01750e358caf960db0e.zip |
- [DEV-1] added new navbar to httpdetails.php (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4871 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/httpdetails.php')
-rw-r--r-- | frontends/php/httpdetails.php | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/frontends/php/httpdetails.php b/frontends/php/httpdetails.php index 7afa76ed..e2ce5225 100644 --- a/frontends/php/httpdetails.php +++ b/frontends/php/httpdetails.php @@ -24,8 +24,11 @@ require_once "include/httptest.inc.php"; require_once "include/forms.inc.php"; - $page["title"] = "S_DETAILS_OF_SCENARIO"; - $page["file"] = "httpdetails.php"; + $page["title"] = "S_DETAILS_OF_SCENARIO"; + $page["file"] = "httpdetails.php"; + $page['hist_arg'] = array('hostid','grouid','graphid','period','stime'); + $page['scripts'] = array('prototype.js','url.js','gmenu.js','scrollbar.js','sbinit.js'); + define('ZBX_PAGE_DO_REFRESH', 1); include_once "include/page_header.php"; @@ -207,7 +210,8 @@ include_once "include/page_header.php"; show_table_header(S_HISTORY.' "'.bold($httptest_data['name']).'"'); $form = new CTableInfo(); - + $form->AddOption('id','graph'); + $form->AddRow(array(bold(S_SPEED) , new CCol( get_dynamic_chart('chart3.php?'.url_param('period').url_param('from'). url_param($httptest_data['name'], false,'name'). @@ -225,8 +229,26 @@ include_once "include/page_header.php"; ,'center'))); $form->Show(); + echo BR.BR; + + + $period = get_request('period',3600); +//SDI(get_min_itemclock_by_itemid($items[HTTPSTEP_ITEM_TYPE_IN][0]['itemid'])); + $mstime = min(get_min_itemclock_by_itemid($items[HTTPSTEP_ITEM_TYPE_IN][0]['itemid']),get_min_itemclock_by_itemid($items[HTTPSTEP_ITEM_TYPE_TIME][0]['itemid'])); + $stime = ($mstime)?$mstime:0; + $bstime = time()-$period; + + if(isset($_REQUEST['stime'])){ + $bstime = $_REQUEST['stime']; + $bstime = mktime(substr($bstime,8,2),substr($bstime,10,2),0,substr($bstime,4,2),substr($bstime,6,2),substr($bstime,0,4)); + } + + $script = 'scrollinit(0,0,0,'.$period.','.$stime.',0,'.$bstime.'); + showgraphmenu("graph");'; + + zbx_add_post_js($script); - navigation_bar("#", array('httptestid')); +// navigation_bar("#", array('httptestid')); ?> <?php |