X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=ced77fb406f9bf3bbfdbe837fbc54ea802fc61f9;hb=a9516ef763e4ef55ddc8c0d5418f2be6a5e20fc6;hp=9ed67813974e1e65a410f59f77f92598666e51ec;hpb=ba30732d25e053969770906594528d46eb4bb9b0;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 9ed6781..ced77fb 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.=""; @@ -82,6 +82,7 @@ class HTML { } function img($src='#void', $title='img', $options='height=64') { + if(isset($_GET['noimgs'])) return "".basename($src).''; $options = $options ? " $options" : ''; return "$title"; } @@ -129,11 +130,11 @@ class HTML { if(!is_bool($default)) { $value=$default; $title=$selectbox[$value]; - $html .= ""; + $html .= ""; unset($selectbox[$value]); } foreach($selectbox as $value => $title) { - $html .= ""; + $html .= ""; } $html .= ""; return $html; @@ -207,19 +208,24 @@ class Sklad_HTML extends HTML { //TODO: Split into few more methods