From cedd542ed87e4265fd232d54577f4e77467096ac Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 24 Mar 2015 15:51:42 +0300 Subject: [PATCH] added for $total to table function --- functions/functions.xhtml.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/functions/functions.xhtml.php b/functions/functions.xhtml.php index 1813140f..ce663398 100644 --- a/functions/functions.xhtml.php +++ b/functions/functions.xhtml.php @@ -111,7 +111,7 @@ function xhtml_table($content,$fields,$head = false,$class = "tclass",$highlight { $tot = array(); if ($class == "tclass") $class = "table-hover table-bordered table-condensed tclass"; - print ""; + print "
"; if ($head) { print ""; // ! added to table formatting @@ -143,7 +143,7 @@ function xhtml_table($content,$fields,$head = false,$class = "tclass",$highlight } if ($total) { - print ""; + print ""; foreach ($fields as $e) { print ""; } - print ""; + print ""; } - print "
"; @@ -151,9 +151,12 @@ function xhtml_table($content,$fields,$head = false,$class = "tclass",$highlight print $tot[$e]; print "
"; + else{ + print ""; + } + print ""; }