From: Thomas Mudrunka Date: Mon, 19 Mar 2012 01:22:52 +0000 (+0100) Subject: Zprehledneni CSS X-Git-Url: http://git.harvie.cz/?a=commitdiff_plain;h=f6464b5c78b26c449ce87cdf4cccdadc0b990b57;p=mirrors%2FSokoMan.git Zprehledneni CSS --- diff --git a/index.php b/index.php index 9da2fab..6ea6551 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,7 +207,8 @@ class Sklad_HTML extends HTML { //TODO: Split into few more methods