리스트 tr_bg 클래스 처리 코드 간소화

This commit is contained in:
chicpro
2013-11-07 10:30:48 +09:00
parent 9e4b6c635a
commit fee3813b50
19 changed files with 39 additions and 39 deletions

View File

@ -103,9 +103,9 @@ $colspan = 5;
continue;
}
$tr_bg = $i%2 ? 'class="tr_bg1"' : 'class="tr_bg0"';
$tr_bg = 'tr_bg'.($i%2);
?>
<tr<?php echo ' '.$tr_bg; ?>>
<tr class="<?php echo $tr_bg; ?>">
<td class="td_chk">
<input type="hidden" name="au_menu[<?php echo $i ?>]" value="<?php echo $row['au_menu'] ?>">
<input type="hidden" name="mb_id[<?php echo $i ?>]" value="<?php echo $row['mb_id'] ?>">