2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

fixed php error with lost attributes 7 and 8 in xhtml_table function,

small page layout modification
This commit is contained in:
Alex
2015-02-24 01:52:14 +03:00
parent 45f00f35f7
commit b7c213cca8

View File

@@ -43,7 +43,7 @@
* *
* @see xhtml_foot() * @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 "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
?> ?>
@@ -70,7 +70,7 @@ print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
</head> </head>
<?php <?php
if ($bodytext) print "<body $bodytext>"; else print "<body>"; if ($bodytext) print "<body $bodytext>"; else print "<body>";
print "<h1 class='header text-primary'>" . "$title" . "&emsp;&emsp;<small>" . "$subtitle" . "</small></h1>"; print "<h1 class='header text-primary'>" . "$title" . "&emsp;&emsp;<small class='text-capitalize'>" . "$subtitle" . "</small></h1>";
/* Let's print header that equals to menu item and page title !!!, move previous headers to "subtitles"*/ /* 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 $id - > to transfer table ID if required
* AD:> added @param string $name - > to transfer table name 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(); $tot = array();
if ($class == "tclass") $class = "table-hover table-bordered table-condensed tclass"; if ($class == "tclass") $class = "table-hover table-bordered table-condensed tclass";