summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/classes/ctable.inc.php4
-rw-r--r--frontends/php/include/page_header.php6
2 files changed, 6 insertions, 4 deletions
diff --git a/frontends/php/include/classes/ctable.inc.php b/frontends/php/include/classes/ctable.inc.php
index c54420e7..03711739 100644
--- a/frontends/php/include/classes/ctable.inc.php
+++ b/frontends/php/include/classes/ctable.inc.php
@@ -104,7 +104,7 @@
$this->headerClass = NULL;
$this->footer = '';
$this->footerClass = NULL;
- $this->colnum = 0;
+ $this->colnum = 1;
$this->message = $message;
}
@@ -168,7 +168,7 @@
function SetFooter($value=NULL,$class=NULL){
if(is_null($class)) $class = $this->footerClass;
- $this->footer = $this->PrepareRow($value,$class);;
+ $this->footer = $this->PrepareRow($value,$class);
}
function AddRow($item,$rowClass=NULL){
diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php
index 3881d46c..3175efac 100644
--- a/frontends/php/include/page_header.php
+++ b/frontends/php/include/page_header.php
@@ -337,8 +337,8 @@ COpt::profiling_start("page");
if($page["type"] == PAGE_TYPE_HTML)
{
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $page['title'] ?></title>
<?php
@@ -441,6 +441,8 @@ COpt::compare_files_with_menu($ZBX_MENU);
$sub_menu_table = new CTable(NULL,'sub_menu');
$sub_menu_table->SetCellSpacing(0);
$sub_menu_table->SetCellPadding(5);
+
+ (empty($sub_menu_row))?($sub_menu_row = '&nbsp;'):('');
$sub_menu_table->AddRow(new CCol($sub_menu_row));
$sub_menu_table->Show();
}