From 9c976c3c04e8a3f9bc9f9dbbdb429d82559f58b0 Mon Sep 17 00:00:00 2001 From: artem Date: Mon, 4 Jun 2007 12:55:26 +0000 Subject: - added history of last five visited pages (Artem) git-svn-id: svn://svn.zabbix.com/trunk@4229 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/page_header.php | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'frontends/php/include/page_header.php') diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php index 05665354..d776b53c 100644 --- a/frontends/php/include/page_header.php +++ b/frontends/php/include/page_header.php @@ -350,8 +350,8 @@ COpt::profiling_start("page"); $script){ if(file_exists('js/'.$script)){ echo ' '."\n"; } elseif(file_exists($script)){ @@ -428,10 +428,10 @@ COpt::compare_files_with_menu($ZBX_MENU); $table = new CTable(); $table->SetCellSpacing(0); $table->SetCellPadding(0); - $table->options['style'] = "width: 100%;"; + $table->AddOption('style','width: 100%;'); $r_col = new CCol($node_form); - $r_col->options['style'] = "text-align: right;"; + $r_col->AddOption('style','text-align: right;'); $table->AddRow(array($menu_table,$r_col)); $table->Show(); @@ -440,9 +440,29 @@ COpt::compare_files_with_menu($ZBX_MENU); $sub_menu_table->SetCellSpacing(0); $sub_menu_table->SetCellPadding(5); $sub_menu_table->AddRow(new CCol($sub_menu_row)); - $sub_menu_table->Show(); } +//------------------------------------- --------------------------------------- + if(isset($page['hist_arg'])){ + $table = new CTable(); + $table->SetClass('history'); + + $table->SetCellSpacing(0); + $table->SetCellPadding(0); + + $history = get_user_history(); + add_user_history($page); + + $tr = new CRow(new CCol('History:','caption')); + $tr->AddItem($history); + + $table->AddRow($tr); + $table->Show(); + } else { + echo BR; + } +//------------------------------------ --------------------------------------- + unset($ZBX_MENU); unset($table, $top_page_row, $menu_table, $node_form); -- cgit