From b7c213cca8786b7a1a5a7261c6946972c9ee0afd Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 24 Feb 2015 01:52:14 +0300 Subject: [PATCH] fixed php error with lost attributes 7 and 8 in xhtml_table function, small page layout modification --- functions/functions.xhtml.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/functions.xhtml.php b/functions/functions.xhtml.php index 1c39e03a..1ab4a49a 100644 --- a/functions/functions.xhtml.php +++ b/functions/functions.xhtml.php @@ -43,7 +43,7 @@ * * @see xhtml_foot() */ -function xhtml_head($title="",$body=true,$css=false,$javascript=false,$bodytext=false,$refresh=false,$clearrefresh=false,$subtitle=false) +function xhtml_head($title="",$body=true,$css=false,$javascript=false,$bodytext=false,$refresh=false,$clearrefresh=false,$subtitle="") { print ""; ?> @@ -70,7 +70,7 @@ print ""; "; else print ""; - print "

" . "$title" . "  " . "$subtitle" . "

"; + print "

" . "$title" . "  " . "$subtitle" . "

"; /* Let's print header that equals to menu item and page title !!!, move previous headers to "subtitles"*/ } @@ -107,7 +107,7 @@ function xhtml_foot($javascript = false){ //added javascript files array to the * AD:> added @param string $id - > to transfer table ID if required * AD:> added @param string $name - > to transfer table name if required */ -function xhtml_table($content,$fields,$head = false,$class = "tclass",$highlight=false,$total=false,$id,$name) +function xhtml_table($content,$fields,$head = false,$class = "tclass",$highlight=false,$total=false,$id=false,$name=false) { $tot = array(); if ($class == "tclass") $class = "table-hover table-bordered table-condensed tclass"; @@ -174,7 +174,7 @@ function xhtml_table($content,$fields,$head = false,$class = "tclass",$highlight * @param bool $indiv Whether to display in a div or not * @param array|bool $select The element to select manually (element,string) (not using selected=\'selected\' in array) * @param bool $print Default is true, print the chooser otherwise return as a string - * + * */ function display_chooser($elements, $selectid, $var, $useblank = true, $pass = false, $js = true, $indiv = true, $selected = false, $print = true, $class=false) {