From: Thomas Mudrunka Date: Mon, 16 Apr 2012 07:54:43 +0000 (+0200) Subject: Formulare maj obarveny tabulky X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=1f52346fa3205e61b1d0d406d60313095cbe5754;p=mirrors%2FSokoMan.git Formulare maj obarveny tabulky --- diff --git a/index.php b/index.php index 06dd1bf..6296552 100755 --- a/index.php +++ b/index.php @@ -496,8 +496,10 @@ EOF; 'model' => array('model_descript') ); $html = ''; + $even=false; foreach($columns as $column) { - $html.='
'.T($class).':'.T($column['Field']).''; + $html.='
'.T($class).':'.T($column['Field']).''; + $even = !$even; $name="values[$class][".$column['Field'].'][]'; $val = $update && isset($current[$column['Field']]) ? $current[$column['Field']] : false; switch(true) {