X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=475c0beebf2743235c7f8eba155442b679cf53a1;hb=8f451ba7e88be8c166664dd2159a1bb726c1c851;hp=9da2fab2b99256a6859599184569f4265e4f3e4b;hpb=1f7c4407d84c9b784228ccfbffb690f2d6c14580;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 9da2fab..475c0be 100755 --- a/index.php +++ b/index.php @@ -37,10 +37,10 @@ require_once('Fortune.php'); class HTML { function row($row,$type=false,$class=false,$parameters='',$colspan=array(),$rowspan=array(),$break_after=array()) { $html = ''; - $class = $class ? $class=" class='$class' " : ''; + $class_br = $class ? " class='$class' " : ''; + $class = $class ? " class='$class tr_nobr' " : ''; if($type) $html.="<$type>"; - $tr=""; - $html.=$tr; + $html.=""; $td = $type == 'thead' ? 'th' : 'td'; foreach($row as $id => $var) { $tdclass = " class='cell_$id'"; @@ -48,7 +48,7 @@ class HTML { $rs = isset($rowspan[$id]) ? " rowspan='$rowspan[$id]'" : ''; $cs = isset($colspan[$id]) ? " colspan='$colspan[$id]'" : ''; $html.="<$td$rs$cs$tdclass>$var"; - if(in_array($id,$break_after,true)) $html.=''.$tr; + if(in_array($id,$break_after,true)) $html.=''.""; } $html.=''; if($type) $html.=""; @@ -207,11 +207,14 @@ class Sklad_HTML extends HTML { //TODO: Split into few more methods