리스트 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

@ -65,10 +65,10 @@ while ($row=sql_fetch_array($result)) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
$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_num"><?php echo $no ?></td>
<td class="td_category"><?php echo $key ?></td>
<td>